खोज केवल इस्तेमाल करने पर लोड होती है। नीचे सभी श्रेणियाँ देखें।

MCP टूल

रिपोर्ट टेम्पलेट के मैप किए गए फ़ील्ड का पूर्वावलोकन करें

sosoapi_preview_report_template

रिपोर्ट टेम्पलेट के मैप किए गए फ़ील्ड का पूर्वावलोकन करें. स्पष्ट रूप से चुने गए समीक्षित डेटासेट और संस्करण का उपयोग करता है; स्रोत अपने-आप रीफ़्रेश नहीं होता. रेंडरिंग इनपुट को पाइप के ज़रिए sosoapi report render --output FILE तक भेजा जा सकता है.

Markdown में पढ़ें

प्रोफ़ाइल और ट्रांसपोर्ट

प्रोफ़ाइल: full · ट्रांसपोर्ट: stdio, http

क्लाइंट में दिखने वाले टूल के लिए core या full चुनें; इससे अनुमतियाँ नहीं बदलतीं। लोकल फ़ाइल अपलोड के लिए stdio चाहिए और HTTP पर उपलब्ध नहीं। खोज में आउटपुट स्कीमा के लिए SOSOAPI_OUTPUT_SCHEMAS=1 सेट करें। इस सेटिंग के साथ या बिना टूल संरचित परिणाम लौटाते हैं।

अनुमतियाँ और अन्य प्रभाव

एनोटेशन क्लाइंट को टूल का वर्णन करने में मदद करते हैं। हर कॉल फिर भी यूज़र का प्रमाणीकरण, भूमिका, संसाधन एक्सेस और क्षमता अधिकार जाँचती है।

{
  "readOnlyHint": true,
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": true
}

इनपुट फ़ील्ड

Required का अर्थ पैरेंट ऑब्जेक्ट और चुनी शाखा के भीतर अनिवार्य है। अनिवार्य चाइल्ड से वैकल्पिक पैरेंट अनिवार्य नहीं होता। नीचे के नियम और फ़ील्ड नाम कॉन्ट्रैक्ट से लिए गए हैं।

इनपुट फ़ील्ड
फ़ील्ड / शाखाप्रकार / अनिवार्यशर्तें
$objectपैरेंट में अनिवार्य
  • additionalProperties: false
workspace_idstringपैरेंट में अनिवार्य
  • format: "uuid"
idstringपैरेंट में अनिवार्य
  • format: "uuid"
versionintegerपैरेंट में अनिवार्य
  • minimum: 1
  • maximum: 1000000
datasetobjectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.contractVersionstringपैरेंट में अनिवार्य
  • enum: ["analytics-report/v1"]
dataset.idstringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.reviewedAtstringपैरेंट में अनिवार्य
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
dataset.selectionobjectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.selection.workspaceIdstringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.selection.accountIdsarrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 50
dataset.selection.accountIds[]stringवैकल्पिक / आइटम
  • format: "uuid"
dataset.selection.platformsarrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 4
dataset.selection.platforms[]stringवैकल्पिक / आइटम
  • enum: ["facebook","instagram","threads","youtube"]
dataset.selection.startDatestringपैरेंट में अनिवार्य
  • pattern: "^\\d{4}-\\d{2}-\\d{2}$"
dataset.selection.endDatestringपैरेंट में अनिवार्य
  • pattern: "^\\d{4}-\\d{2}-\\d{2}$"
dataset.selection.timezonestringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 100
dataset.accountsarrayपैरेंट में अनिवार्य
  • maxItems: 50
dataset.accounts[]objectवैकल्पिक / आइटम
  • additionalProperties: false
dataset.accounts[].idstringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.accounts[].workspaceIdstringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.accounts[].platformstringपैरेंट में अनिवार्य
  • enum: ["facebook","instagram","threads","youtube"]
dataset.accounts[].namestringपैरेंट में अनिवार्य
  • maxLength: 500
dataset.accounts[].connectionStatusstringवैकल्पिक / आइटम
  • maxLength: 100
dataset.accounts[].healthMessagestringवैकल्पिक / आइटम
  • maxLength: 1000
dataset.postsarrayपैरेंट में अनिवार्य
  • maxItems: 1000
dataset.posts[]objectवैकल्पिक / आइटम
  • additionalProperties: false
dataset.posts[].social_post_idstringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.posts[].workspace_idstringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.posts[].social_account_idstringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.posts[].platformstringपैरेंट में अनिवार्य
  • enum: ["instagram","facebook","threads","youtube"]
dataset.posts[].provider_post_idstringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 512
dataset.posts[].provider_published_atstring | nullपैरेंट में अनिवार्य—
dataset.posts[].provider_published_atanyOf 1stringपैरेंट में अनिवार्य
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
dataset.posts[].provider_published_atanyOf 2nullपैरेंट में अनिवार्य—
dataset.posts[].content_formatstring | nullपैरेंट में अनिवार्य—
dataset.posts[].content_formatanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 100
dataset.posts[].content_formatanyOf 2nullपैरेंट में अनिवार्य—
dataset.posts[].permalinkstring | nullपैरेंट में अनिवार्य—
dataset.posts[].permalinkanyOf 1stringपैरेंट में अनिवार्य
  • format: "uri"
  • maxLength: 2048
dataset.posts[].permalinkanyOf 2nullपैरेंट में अनिवार्य—
dataset.posts[].provider_statestringपैरेंट में अनिवार्य
  • enum: ["available","deleted","unavailable","unknown"]
dataset.posts[].first_seen_atstringपैरेंट में अनिवार्य
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
dataset.posts[].last_seen_atstringपैरेंट में अनिवार्य
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
dataset.posts[].scheduled_post_idstring | nullपैरेंट में अनिवार्य—
dataset.posts[].scheduled_post_idanyOf 1stringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.posts[].scheduled_post_idanyOf 2nullपैरेंट में अनिवार्य—
dataset.posts[].provenanceobjectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.posts[].provenance.providerstringपैरेंट में अनिवार्य
  • enum: ["instagram","facebook","threads","youtube"]
dataset.posts[].provenance.sourcestringपैरेंट में अनिवार्य
  • enum: ["provider_api","provider_webhook","publication_outcome","backfill"]
dataset.posts[].provenance.source_job_idstring | nullपैरेंट में अनिवार्य—
dataset.posts[].provenance.source_job_idanyOf 1stringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.posts[].provenance.source_job_idanyOf 2nullपैरेंट में अनिवार्य—
dataset.posts[].provenance.provider_api_versionstring | nullपैरेंट में अनिवार्य—
dataset.posts[].provenance.provider_api_versionanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 200
dataset.posts[].provenance.provider_api_versionanyOf 2nullपैरेंट में अनिवार्य—
dataset.posts[].provenance.schema_versionstring | nullपैरेंट में अनिवार्य—
dataset.posts[].provenance.schema_versionanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 200
dataset.posts[].provenance.schema_versionanyOf 2nullपैरेंट में अनिवार्य—
dataset.sourcesarrayपैरेंट में अनिवार्य
  • maxItems: 30
dataset.sources[]objectवैकल्पिक / आइटम
  • additionalProperties: false
dataset.sources[].accountIdstringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.sources[].platformstringपैरेंट में अनिवार्य
  • enum: ["facebook","instagram","threads","youtube"]
dataset.sources[].resourceKindstringपैरेंट में अनिवार्य
  • enum: ["account","post"]
dataset.sources[].providerResourceIdstring | nullपैरेंट में अनिवार्य—
dataset.sources[].providerResourceIdanyOf 1stringपैरेंट में अनिवार्य
  • maxLength: 512
dataset.sources[].providerResourceIdanyOf 2nullपैरेंट में अनिवार्य—
dataset.sources[].requestIdstring | nullपैरेंट में अनिवार्य—
dataset.sources[].requestIdanyOf 1stringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.sources[].requestIdanyOf 2nullपैरेंट में अनिवार्य—
dataset.sources[].statusstringपैरेंट में अनिवार्य
  • enum: ["available","partial","not_returned","unsupported","permission_required","threshold_not_met","no_data","failed","pending","stale"]
dataset.sources[].reasonstring | nullपैरेंट में अनिवार्य—
dataset.sources[].reasonanyOf 1stringपैरेंट में अनिवार्य
  • maxLength: 8000
dataset.sources[].reasonanyOf 2nullपैरेंट में अनिवार्य—
dataset.sources[].envelopeobject | nullपैरेंट में अनिवार्य—
dataset.sources[].envelopeanyOf 1objectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.sources[].envelope.contract_versionanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["provider-insights/v1"]
dataset.sources[].envelope.request_idanyOf 1stringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.sources[].envelope.platformanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["facebook","instagram","threads","youtube"]
dataset.sources[].envelope.resourceanyOf 1objectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.sources[].envelope.resource.kindanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["account","post"]
dataset.sources[].envelope.resource.social_account_idanyOf 1stringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.sources[].envelope.resource.provider_resource_idanyOf 1string | nullपैरेंट में अनिवार्य—
dataset.sources[].envelope.provider_api_versionanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 100
dataset.sources[].envelope.fetched_atanyOf 1stringपैरेंट में अनिवार्य
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
dataset.sources[].envelope.statusanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["available","partial","unavailable"]
dataset.sources[].envelope.availabilityanyOf 1arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 64
dataset.sources[].envelope.availability[]anyOf 1objectवैकल्पिक / आइटम
  • additionalProperties: false
dataset.sources[].envelope.availability[].scopeanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 200
dataset.sources[].envelope.availability[].statusanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["available","partial","not_returned","unsupported","permission_required","threshold_not_met","no_data","failed"]
dataset.sources[].envelope.availability[].reasonanyOf 1stringवैकल्पिक / आइटम
  • minLength: 1
  • maxLength: 2000
dataset.sources[].envelope.availability[].diagnosticsanyOf 1objectवैकल्पिक / आइटम
  • additionalProperties: false
dataset.sources[].envelope.availability[].diagnostics.http_statusanyOf 1integerपैरेंट में अनिवार्य
  • minimum: 0
  • maximum: 599
dataset.sources[].envelope.availability[].diagnostics.failed_stepanyOf 1stringवैकल्पिक / आइटम
  • minLength: 1
  • maxLength: 200
dataset.sources[].envelope.availability[].diagnostics.provider_codeanyOf 1number | stringवैकल्पिक / आइटम—
dataset.sources[].envelope.availability[].diagnostics.provider_codeanyOf 1 / anyOf 1numberवैकल्पिक / आइटम—
dataset.sources[].envelope.availability[].diagnostics.provider_codeanyOf 1 / anyOf 2stringवैकल्पिक / आइटम
  • maxLength: 100
dataset.sources[].envelope.availability[].diagnostics.provider_subcodeanyOf 1number | stringवैकल्पिक / आइटम—
dataset.sources[].envelope.availability[].diagnostics.provider_subcodeanyOf 1 / anyOf 1numberवैकल्पिक / आइटम—
dataset.sources[].envelope.availability[].diagnostics.provider_subcodeanyOf 1 / anyOf 2stringवैकल्पिक / आइटम
  • maxLength: 100
dataset.sources[].envelope.availability[].diagnostics.provider_typeanyOf 1stringवैकल्पिक / आइटम
  • maxLength: 200
dataset.sources[].envelope.availability[].diagnostics.is_transientanyOf 1booleanवैकल्पिक / आइटम—
dataset.sources[].envelope.availability[].diagnostics.provider_request_idanyOf 1stringवैकल्पिक / आइटम
  • maxLength: 200
dataset.sources[].envelope.availability[].diagnostics.accessanyOf 1objectवैकल्पिक / आइटम
  • additionalProperties: false
dataset.sources[].envelope.availability[].diagnostics.access.login_modeanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["instagram_login","facebook_login","threads_user"]
dataset.sources[].envelope.availability[].diagnostics.access.provider_hostanyOf 1stringपैरेंट में अनिवार्य
  • maxLength: 200
dataset.sources[].envelope.availability[].diagnostics.access.required_permissionsanyOf 1arrayपैरेंट में अनिवार्य
  • maxItems: 16
dataset.sources[].envelope.availability[].diagnostics.access.required_permissions[]anyOf 1stringवैकल्पिक / आइटम
  • maxLength: 100
dataset.sources[].envelope.availability[].diagnostics.access.current_connection_policy_permissionsanyOf 1arrayपैरेंट में अनिवार्य
  • maxItems: 16
dataset.sources[].envelope.availability[].diagnostics.access.current_connection_policy_permissions[]anyOf 1stringवैकल्पिक / आइटम
  • maxLength: 100
dataset.sources[].envelope.availability[].diagnostics.access.granted_permissionsanyOf 1array | nullपैरेंट में अनिवार्य—
dataset.sources[].envelope.availability[].diagnostics.access.granted_permissionsanyOf 1 / anyOf 1arrayपैरेंट में अनिवार्य
  • maxItems: 128
dataset.sources[].envelope.availability[].diagnostics.access.granted_permissions[]anyOf 1 / anyOf 1stringवैकल्पिक / आइटम
  • maxLength: 100
dataset.sources[].envelope.availability[].diagnostics.access.granted_permissionsanyOf 1 / anyOf 2nullपैरेंट में अनिवार्य—
dataset.sources[].envelope.availability[].diagnostics.access.grant_evidenceanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["exact","unknown"]
dataset.sources[].envelope.availability[].diagnostics.access.permission_stateanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["granted","missing","unknown"]
dataset.sources[].envelope.availability[].diagnostics.access.grant_observed_atanyOf 1stringवैकल्पिक / आइटम
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
dataset.sources[].envelope.availability[].diagnostics.access.app_accessanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["unverified"]
dataset.sources[].envelope.availability[].diagnostics.access.next_stepanyOf 1stringपैरेंट में अनिवार्य
  • maxLength: 1500
dataset.sources[].envelope.provider_dataanyOf 1any JSON value | nullपैरेंट में अनिवार्य—
dataset.sources[].envelope.provider_dataanyOf 1 / anyOf 1any JSON valueपैरेंट में अनिवार्य—
dataset.sources[].envelope.provider_dataanyOf 1 / anyOf 2nullपैरेंट में अनिवार्य—
dataset.sources[].envelope.requested_date_rangeanyOf 1object | nullपैरेंट में अनिवार्य—
dataset.sources[].envelope.requested_date_rangeanyOf 1 / anyOf 1objectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.sources[].envelope.requested_date_range.start_dateanyOf 1 / anyOf 1stringपैरेंट में अनिवार्य
  • pattern: "^\\d{4}-\\d{2}-\\d{2}$"
dataset.sources[].envelope.requested_date_range.end_dateanyOf 1 / anyOf 1stringपैरेंट में अनिवार्य
  • pattern: "^\\d{4}-\\d{2}-\\d{2}$"
dataset.sources[].envelope.requested_date_rangeanyOf 1 / anyOf 2nullपैरेंट में अनिवार्य—
dataset.sources[].envelope.cacheanyOf 1objectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.sources[].envelope.cache.authoritativeanyOf 1booleanपैरेंट में अनिवार्य
  • enum: [false]
dataset.sources[].envelope.cache.statusanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["stored","hit","bypassed"]
dataset.sources[].envelope.cache.expires_atanyOf 1stringपैरेंट में अनिवार्य
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
dataset.sources[].envelopeanyOf 2nullपैरेंट में अनिवार्य—
dataset.sources[].metricsarrayपैरेंट में अनिवार्य
  • maxItems: 5000
dataset.sources[].metrics[]objectवैकल्पिक / आइटम
  • additionalProperties: false
dataset.sources[].metrics[].keystringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 150
dataset.sources[].metrics[].definitionstringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 1000
dataset.sources[].metrics[].unitstringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 100
dataset.sources[].metrics[].grainstringपैरेंट में अनिवार्य
  • enum: ["post","account"]
dataset.sources[].metrics[].valuenumber | nullपैरेंट में अनिवार्य—
dataset.sources[].metrics[].availabilitystringपैरेंट में अनिवार्य
  • enum: ["available","partial","not_returned","unsupported","permission_required","threshold_not_met","no_data","failed","pending","stale"]
dataset.sources[].metrics[].reasonstring | nullपैरेंट में अनिवार्य—
dataset.sources[].metrics[].reasonanyOf 1stringपैरेंट में अनिवार्य
  • maxLength: 4000
dataset.sources[].metrics[].reasonanyOf 2nullपैरेंट में अनिवार्य—
dataset.sources[].metrics[].measurementobjectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.sources[].metrics[].measurement.kindstringपैरेंट में अनिवार्य
  • enum: ["lifetime","snapshot","period","unknown"]
dataset.sources[].metrics[].measurement.periodstring | nullपैरेंट में अनिवार्य—
dataset.sources[].metrics[].measurement.periodanyOf 1stringपैरेंट में अनिवार्य
  • maxLength: 100
dataset.sources[].metrics[].measurement.periodanyOf 2nullपैरेंट में अनिवार्य—
dataset.sources[].metrics[].measurement.startstring | nullपैरेंट में अनिवार्य—
dataset.sources[].metrics[].measurement.startanyOf 1stringपैरेंट में अनिवार्य
  • maxLength: 100
dataset.sources[].metrics[].measurement.startanyOf 2nullपैरेंट में अनिवार्य—
dataset.sources[].metrics[].measurement.endstring | nullपैरेंट में अनिवार्य—
dataset.sources[].metrics[].measurement.endanyOf 1stringपैरेंट में अनिवार्य
  • maxLength: 100
dataset.sources[].metrics[].measurement.endanyOf 2nullपैरेंट में अनिवार्य—
dataset.sources[].metrics[].measurement.timezonestring | nullपैरेंट में अनिवार्य—
dataset.sources[].metrics[].measurement.timezoneanyOf 1stringपैरेंट में अनिवार्य
  • maxLength: 100
dataset.sources[].metrics[].measurement.timezoneanyOf 2nullपैरेंट में अनिवार्य—
dataset.sources[].metrics[].sourcePathstringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 2000
dataset.coverageobjectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.coverage.populationstringपैरेंट में अनिवार्य
  • enum: ["discovered_posts"]
dataset.coverage.postsCompletebooleanपैरेंट में अनिवार्य—
dataset.coverage.nextCursorstring | nullपैरेंट में अनिवार्य—
dataset.coverage.nextCursoranyOf 1stringपैरेंट में अनिवार्य
  • maxLength: 16384
dataset.coverage.nextCursoranyOf 2nullपैरेंट में अनिवार्य—
dataset.coverage.postLimitintegerपैरेंट में अनिवार्य
  • minimum: 0
  • maximum: 1000
dataset.coverage.postInsightsLimitintegerपैरेंट में अनिवार्य
  • minimum: 0
  • maximum: 20
dataset.coverage.omittedPostInsightsintegerपैरेंट में अनिवार्य
  • minimum: 0
  • maximum: 9007199254740991
dataset.coverage.notesarrayपैरेंट में अनिवार्य
  • maxItems: 50
dataset.coverage.notes[]stringवैकल्पिक / आइटम
  • maxLength: 2000
dataset.customMetricsarrayपैरेंट में अनिवार्य
  • maxItems: 50
dataset.customMetrics[]objectवैकल्पिक / आइटम
  • additionalProperties: false
dataset.customMetrics[].idstringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.customMetrics[].namestringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 100
dataset.customMetrics[].versionintegerपैरेंट में अनिवार्य
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
dataset.customMetrics[].expressionstringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 1000
dataset.customMetrics[].definitionstringपैरेंट में अनिवार्य
  • maxLength: 1000
dataset.customMetrics[].unitstringपैरेंट में अनिवार्य
  • maxLength: 100
dataset.customMetrics[].grainstringपैरेंट में अनिवार्य
  • enum: ["post","account","compatible_sum"]
dataset.customMetrics[].roundingobjectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.customMetrics[].rounding.decimalPlacesintegerपैरेंट में अनिवार्य
  • minimum: 0
  • maximum: 8
dataset.customMetrics[].rounding.modestringपैरेंट में अनिवार्य
  • enum: ["half_away_from_zero"]
dataset.customMetrics[].inputsarrayपैरेंट में अनिवार्य
  • maxItems: 5000
dataset.customMetrics[].inputs[]objectवैकल्पिक / आइटम
  • additionalProperties: false
dataset.customMetrics[].inputs[].requestIdstring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].inputs[].requestIdanyOf 1stringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.customMetrics[].inputs[].requestIdanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].inputs[].sourcePathstringपैरेंट में अनिवार्य
  • maxLength: 2000
dataset.customMetrics[].inputs[].valuenumber | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].inputs[].availabilitystringपैरेंट में अनिवार्य
  • enum: ["available","partial","not_returned","unsupported","permission_required","threshold_not_met","no_data","failed","pending","stale"]
dataset.customMetrics[].valuenumber | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].availabilitystringपैरेंट में अनिवार्य
  • enum: ["available","partial","not_returned","unsupported","permission_required","threshold_not_met","no_data","failed","pending","stale"]
dataset.customMetrics[].reasonstring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].reasonanyOf 1stringपैरेंट में अनिवार्य
  • maxLength: 4000
dataset.customMetrics[].reasonanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].formulaobjectवैकल्पिक / आइटम
  • additionalProperties: false
dataset.customMetrics[].formula.contractVersionstringपैरेंट में अनिवार्य
  • enum: ["analytics-metric/v1"]
dataset.customMetrics[].formula.idstringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.customMetrics[].formula.workspaceIdstringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.customMetrics[].formula.namestringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 100
dataset.customMetrics[].formula.versionintegerपैरेंट में अनिवार्य
  • minimum: 1
  • maximum: 1000000
dataset.customMetrics[].formula.expressionstringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 1000
dataset.customMetrics[].formula.fieldsarrayपैरेंट में अनिवार्य
  • maxItems: 32
dataset.customMetrics[].formula.fields[]objectवैकल्पिक / आइटम
  • additionalProperties: false
dataset.customMetrics[].formula.fields[].identifierstringपैरेंट में अनिवार्य
  • pattern: "^[a-z][a-z0-9_]{0,63}$"
dataset.customMetrics[].formula.fields[].selectorobjectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.customMetrics[].formula.fields[].selector.platformstringपैरेंट में अनिवार्य
  • enum: ["facebook","instagram","threads","youtube"]
dataset.customMetrics[].formula.fields[].selector.keystringपैरेंट में अनिवार्य
  • pattern: "^[A-Za-z][A-Za-z0-9_]{0,100}$"
dataset.customMetrics[].formula.fields[].selector.definitionstringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 500
dataset.customMetrics[].formula.fields[].selector.unitstringपैरेंट में अनिवार्य
  • enum: ["count","seconds","minutes","percent","ratio"]
dataset.customMetrics[].formula.fields[].selector.grainstringपैरेंट में अनिवार्य
  • enum: ["post","account"]
dataset.customMetrics[].formula.fields[].selector.measurementKindstringपैरेंट में अनिवार्य
  • enum: ["lifetime","snapshot","period","unknown"]
dataset.customMetrics[].formula.fields[].selector.nativePeriodstring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].formula.fields[].selector.nativePeriodanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 64
dataset.customMetrics[].formula.fields[].selector.nativePeriodanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].formula.fields[].selector.timezonestring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].formula.fields[].selector.timezoneanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 100
dataset.customMetrics[].formula.fields[].selector.timezoneanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].formula.fields[].aggregationstringपैरेंट में अनिवार्य
  • enum: ["single","sum"]
dataset.customMetrics[].formula.roundingobjectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.customMetrics[].formula.rounding.decimalPlacesintegerपैरेंट में अनिवार्य
  • minimum: 0
  • maximum: 8
dataset.customMetrics[].formula.rounding.modestringपैरेंट में अनिवार्य
  • enum: ["half_away_from_zero"]
dataset.customMetrics[].calculationobjectवैकल्पिक / आइटम
  • additionalProperties: false
dataset.customMetrics[].calculation.contractVersionstringपैरेंट में अनिवार्य
  • enum: ["analytics-metric/v1"]
dataset.customMetrics[].calculation.workspaceIdstringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.customMetrics[].calculation.datasetIdstringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 100
dataset.customMetrics[].calculation.formulaIdstringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.customMetrics[].calculation.namestringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 100
dataset.customMetrics[].calculation.versionintegerपैरेंट में अनिवार्य
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
dataset.customMetrics[].calculation.expressionstringपैरेंट में अनिवार्य
  • maxLength: 1000
dataset.customMetrics[].calculation.roundingobjectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.customMetrics[].calculation.rounding.decimalPlacesintegerपैरेंट में अनिवार्य
  • minimum: 0
  • maximum: 8
dataset.customMetrics[].calculation.rounding.modestringपैरेंट में अनिवार्य
  • enum: ["half_away_from_zero"]
dataset.customMetrics[].calculation.valuenumber | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.unitstringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 200
dataset.customMetrics[].calculation.statusstringपैरेंट में अनिवार्य
  • enum: ["available","not_returned"]
dataset.customMetrics[].calculation.codestringपैरेंट में अनिवार्य
  • enum: ["ok","invalid_expression","missing_input","incompatible_input","zero_denominator","numeric_limit","workspace_mismatch","ambiguous_input","unknown_exclusion"]
dataset.customMetrics[].calculation.reasonstring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.reasonanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 500
dataset.customMetrics[].calculation.reasonanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.excludedInputIdsarrayपैरेंट में अनिवार्य
  • maxItems: 5000
dataset.customMetrics[].calculation.excludedInputIds[]stringवैकल्पिक / आइटम
  • minLength: 1
  • maxLength: 1500
dataset.customMetrics[].calculation.inputsarrayपैरेंट में अनिवार्य
  • maxItems: 5000
dataset.customMetrics[].calculation.inputs[]objectवैकल्पिक / आइटम
  • additionalProperties: false
dataset.customMetrics[].calculation.inputs[].inputIdstringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 1500
dataset.customMetrics[].calculation.inputs[].selectorobjectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.customMetrics[].calculation.inputs[].selector.platformstringपैरेंट में अनिवार्य
  • enum: ["facebook","instagram","threads","youtube"]
dataset.customMetrics[].calculation.inputs[].selector.keystringपैरेंट में अनिवार्य
  • pattern: "^[A-Za-z][A-Za-z0-9_]{0,100}$"
dataset.customMetrics[].calculation.inputs[].selector.definitionstringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 500
dataset.customMetrics[].calculation.inputs[].selector.unitstringपैरेंट में अनिवार्य
  • enum: ["count","seconds","minutes","percent","ratio"]
dataset.customMetrics[].calculation.inputs[].selector.grainstringपैरेंट में अनिवार्य
  • enum: ["post","account"]
dataset.customMetrics[].calculation.inputs[].selector.measurementKindstringपैरेंट में अनिवार्य
  • enum: ["lifetime","snapshot","period","unknown"]
dataset.customMetrics[].calculation.inputs[].selector.nativePeriodstring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].selector.nativePeriodanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 64
dataset.customMetrics[].calculation.inputs[].selector.nativePeriodanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].selector.timezonestring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].selector.timezoneanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 100
dataset.customMetrics[].calculation.inputs[].selector.timezoneanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].valuenumber | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].availabilitystringपैरेंट में अनिवार्य
  • enum: ["available","partial","not_returned","unsupported","permission_required","threshold_not_met","no_data","failed","pending","stale"]
dataset.customMetrics[].calculation.inputs[].reasonstring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].reasonanyOf 1stringपैरेंट में अनिवार्य
  • maxLength: 8000
dataset.customMetrics[].calculation.inputs[].reasonanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].measurementobjectपैरेंट में अनिवार्य
  • additionalProperties: false
dataset.customMetrics[].calculation.inputs[].measurement.kindstringपैरेंट में अनिवार्य
  • enum: ["lifetime","snapshot","period","unknown"]
dataset.customMetrics[].calculation.inputs[].measurement.periodstring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].measurement.periodanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 64
dataset.customMetrics[].calculation.inputs[].measurement.periodanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].measurement.startstring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].measurement.startanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 64
dataset.customMetrics[].calculation.inputs[].measurement.startanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].measurement.endstring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].measurement.endanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 64
dataset.customMetrics[].calculation.inputs[].measurement.endanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].measurement.timezonestring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].measurement.timezoneanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 100
dataset.customMetrics[].calculation.inputs[].measurement.timezoneanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].requestIdstring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].requestIdanyOf 1stringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.customMetrics[].calculation.inputs[].requestIdanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].sourcePathstringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 1000
dataset.customMetrics[].calculation.inputs[].accountIdstringपैरेंट में अनिवार्य
  • format: "uuid"
dataset.customMetrics[].calculation.inputs[].providerResourceIdstring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].providerResourceIdanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 512
dataset.customMetrics[].calculation.inputs[].providerResourceIdanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].fetchedAtstring | nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].fetchedAtanyOf 1stringपैरेंट में अनिवार्य
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
dataset.customMetrics[].calculation.inputs[].fetchedAtanyOf 2nullपैरेंट में अनिवार्य—
dataset.customMetrics[].calculation.inputs[].identifierstringपैरेंट में अनिवार्य
  • pattern: "^[a-z][a-z0-9_]{0,63}$"
dataset.customMetrics[].calculation.inputs[].includedbooleanपैरेंट में अनिवार्य—
संपूर्ण JSON Schema
{
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string",
      "format": "uuid"
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "version": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000
    },
    "dataset": {
      "type": "object",
      "properties": {
        "contractVersion": {
          "type": "string",
          "enum": [
            "analytics-report/v1"
          ]
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "reviewedAt": {
          "type": "string",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
          "format": "date-time"
        },
        "selection": {
          "type": "object",
          "properties": {
            "workspaceId": {
              "type": "string",
              "format": "uuid"
            },
            "accountIds": {
              "minItems": 1,
              "maxItems": 50,
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            },
            "platforms": {
              "minItems": 1,
              "maxItems": 4,
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "facebook",
                  "instagram",
                  "threads",
                  "youtube"
                ]
              }
            },
            "startDate": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "endDate": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "timezone": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "required": [
            "workspaceId",
            "accountIds",
            "platforms",
            "startDate",
            "endDate",
            "timezone"
          ],
          "additionalProperties": false
        },
        "accounts": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "workspaceId": {
                "type": "string",
                "format": "uuid"
              },
              "platform": {
                "type": "string",
                "enum": [
                  "facebook",
                  "instagram",
                  "threads",
                  "youtube"
                ]
              },
              "name": {
                "type": "string",
                "maxLength": 500
              },
              "connectionStatus": {
                "type": "string",
                "maxLength": 100
              },
              "healthMessage": {
                "type": "string",
                "maxLength": 1000
              }
            },
            "required": [
              "id",
              "workspaceId",
              "platform",
              "name"
            ],
            "additionalProperties": false
          }
        },
        "posts": {
          "maxItems": 1000,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "social_post_id": {
                "type": "string",
                "format": "uuid"
              },
              "workspace_id": {
                "type": "string",
                "format": "uuid"
              },
              "social_account_id": {
                "type": "string",
                "format": "uuid"
              },
              "platform": {
                "type": "string",
                "enum": [
                  "instagram",
                  "facebook",
                  "threads",
                  "youtube"
                ]
              },
              "provider_post_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              "provider_published_at": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "content_format": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "permalink": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "provider_state": {
                "type": "string",
                "enum": [
                  "available",
                  "deleted",
                  "unavailable",
                  "unknown"
                ]
              },
              "first_seen_at": {
                "type": "string",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "format": "date-time"
              },
              "last_seen_at": {
                "type": "string",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "format": "date-time"
              },
              "scheduled_post_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "provenance": {
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string",
                    "enum": [
                      "instagram",
                      "facebook",
                      "threads",
                      "youtube"
                    ]
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "provider_api",
                      "provider_webhook",
                      "publication_outcome",
                      "backfill"
                    ]
                  },
                  "source_job_id": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "provider_api_version": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "schema_version": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "provider",
                  "source",
                  "source_job_id",
                  "provider_api_version",
                  "schema_version"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "social_post_id",
              "workspace_id",
              "social_account_id",
              "platform",
              "provider_post_id",
              "provider_published_at",
              "content_format",
              "permalink",
              "provider_state",
              "first_seen_at",
              "last_seen_at",
              "scheduled_post_id",
              "provenance"
            ],
            "additionalProperties": false
          }
        },
        "sources": {
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "accountId": {
                "type": "string",
                "format": "uuid"
              },
              "platform": {
                "type": "string",
                "enum": [
                  "facebook",
                  "instagram",
                  "threads",
                  "youtube"
                ]
              },
              "resourceKind": {
                "type": "string",
                "enum": [
                  "account",
                  "post"
                ]
              },
              "providerResourceId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "requestId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "available",
                  "partial",
                  "not_returned",
                  "unsupported",
                  "permission_required",
                  "threshold_not_met",
                  "no_data",
                  "failed",
                  "pending",
                  "stale"
                ]
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 8000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "envelope": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "contract_version": {
                        "type": "string",
                        "enum": [
                          "provider-insights/v1"
                        ]
                      },
                      "request_id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "platform": {
                        "type": "string",
                        "enum": [
                          "facebook",
                          "instagram",
                          "threads",
                          "youtube"
                        ]
                      },
                      "resource": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "account",
                              "post"
                            ]
                          },
                          "social_account_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "provider_resource_id": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "kind",
                          "social_account_id",
                          "provider_resource_id"
                        ],
                        "additionalProperties": false
                      },
                      "provider_api_version": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "fetched_at": {
                        "type": "string",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                        "format": "date-time"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "available",
                          "partial",
                          "unavailable"
                        ]
                      },
                      "availability": {
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "available",
                                "partial",
                                "not_returned",
                                "unsupported",
                                "permission_required",
                                "threshold_not_met",
                                "no_data",
                                "failed"
                              ]
                            },
                            "reason": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            },
                            "diagnostics": {
                              "type": "object",
                              "properties": {
                                "http_status": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 599
                                },
                                "failed_step": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200
                                },
                                "provider_code": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "maxLength": 100
                                    }
                                  ]
                                },
                                "provider_subcode": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "maxLength": 100
                                    }
                                  ]
                                },
                                "provider_type": {
                                  "type": "string",
                                  "maxLength": 200
                                },
                                "is_transient": {
                                  "type": "boolean"
                                },
                                "provider_request_id": {
                                  "type": "string",
                                  "maxLength": 200
                                },
                                "access": {
                                  "type": "object",
                                  "properties": {
                                    "login_mode": {
                                      "type": "string",
                                      "enum": [
                                        "instagram_login",
                                        "facebook_login",
                                        "threads_user"
                                      ]
                                    },
                                    "provider_host": {
                                      "type": "string",
                                      "maxLength": 200
                                    },
                                    "required_permissions": {
                                      "maxItems": 16,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "maxLength": 100
                                      }
                                    },
                                    "current_connection_policy_permissions": {
                                      "maxItems": 16,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "maxLength": 100
                                      }
                                    },
                                    "granted_permissions": {
                                      "anyOf": [
                                        {
                                          "maxItems": 128,
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "maxLength": 100
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "grant_evidence": {
                                      "type": "string",
                                      "enum": [
                                        "exact",
                                        "unknown"
                                      ]
                                    },
                                    "permission_state": {
                                      "type": "string",
                                      "enum": [
                                        "granted",
                                        "missing",
                                        "unknown"
                                      ]
                                    },
                                    "grant_observed_at": {
                                      "type": "string",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                                      "format": "date-time"
                                    },
                                    "app_access": {
                                      "type": "string",
                                      "enum": [
                                        "unverified"
                                      ]
                                    },
                                    "next_step": {
                                      "type": "string",
                                      "maxLength": 1500
                                    }
                                  },
                                  "required": [
                                    "login_mode",
                                    "provider_host",
                                    "required_permissions",
                                    "current_connection_policy_permissions",
                                    "granted_permissions",
                                    "grant_evidence",
                                    "permission_state",
                                    "app_access",
                                    "next_step"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "http_status"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "scope",
                            "status"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "provider_data": {
                        "anyOf": [
                          {},
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "requested_date_range": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "start_date": {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                              },
                              "end_date": {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                              }
                            },
                            "required": [
                              "start_date",
                              "end_date"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "cache": {
                        "type": "object",
                        "properties": {
                          "authoritative": {
                            "type": "boolean",
                            "enum": [
                              false
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "stored",
                              "hit",
                              "bypassed"
                            ]
                          },
                          "expires_at": {
                            "type": "string",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "authoritative",
                          "status",
                          "expires_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "contract_version",
                      "request_id",
                      "platform",
                      "resource",
                      "provider_api_version",
                      "fetched_at",
                      "status",
                      "availability",
                      "provider_data",
                      "requested_date_range",
                      "cache"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "metrics": {
                "maxItems": 5000,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 150
                    },
                    "definition": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1000
                    },
                    "unit": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "grain": {
                      "type": "string",
                      "enum": [
                        "post",
                        "account"
                      ]
                    },
                    "value": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "availability": {
                      "type": "string",
                      "enum": [
                        "available",
                        "partial",
                        "not_returned",
                        "unsupported",
                        "permission_required",
                        "threshold_not_met",
                        "no_data",
                        "failed",
                        "pending",
                        "stale"
                      ]
                    },
                    "reason": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 4000
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "measurement": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "lifetime",
                            "snapshot",
                            "period",
                            "unknown"
                          ]
                        },
                        "period": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 100
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "start": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 100
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "end": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 100
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "timezone": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 100
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "period",
                        "start",
                        "end",
                        "timezone"
                      ],
                      "additionalProperties": false
                    },
                    "sourcePath": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2000
                    }
                  },
                  "required": [
                    "key",
                    "definition",
                    "unit",
                    "grain",
                    "value",
                    "availability",
                    "reason",
                    "measurement",
                    "sourcePath"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "accountId",
              "platform",
              "resourceKind",
              "providerResourceId",
              "requestId",
              "status",
              "reason",
              "envelope",
              "metrics"
            ],
            "additionalProperties": false
          }
        },
        "coverage": {
          "type": "object",
          "properties": {
            "population": {
              "type": "string",
              "enum": [
                "discovered_posts"
              ]
            },
            "postsComplete": {
              "type": "boolean"
            },
            "nextCursor": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 16384
                },
                {
                  "type": "null"
                }
              ]
            },
            "postLimit": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000
            },
            "postInsightsLimit": {
              "type": "integer",
              "minimum": 0,
              "maximum": 20
            },
            "omittedPostInsights": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "notes": {
              "maxItems": 50,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 2000
              }
            }
          },
          "required": [
            "population",
            "postsComplete",
            "nextCursor",
            "postLimit",
            "postInsightsLimit",
            "omittedPostInsights",
            "notes"
          ],
          "additionalProperties": false
        },
        "customMetrics": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "version": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "expression": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              },
              "definition": {
                "type": "string",
                "maxLength": 1000
              },
              "unit": {
                "type": "string",
                "maxLength": 100
              },
              "grain": {
                "type": "string",
                "enum": [
                  "post",
                  "account",
                  "compatible_sum"
                ]
              },
              "rounding": {
                "type": "object",
                "properties": {
                  "decimalPlaces": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 8
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "half_away_from_zero"
                    ]
                  }
                },
                "required": [
                  "decimalPlaces",
                  "mode"
                ],
                "additionalProperties": false
              },
              "inputs": {
                "maxItems": 5000,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "requestId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourcePath": {
                      "type": "string",
                      "maxLength": 2000
                    },
                    "value": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "availability": {
                      "type": "string",
                      "enum": [
                        "available",
                        "partial",
                        "not_returned",
                        "unsupported",
                        "permission_required",
                        "threshold_not_met",
                        "no_data",
                        "failed",
                        "pending",
                        "stale"
                      ]
                    }
                  },
                  "required": [
                    "requestId",
                    "sourcePath",
                    "value",
                    "availability"
                  ],
                  "additionalProperties": false
                }
              },
              "value": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "availability": {
                "type": "string",
                "enum": [
                  "available",
                  "partial",
                  "not_returned",
                  "unsupported",
                  "permission_required",
                  "threshold_not_met",
                  "no_data",
                  "failed",
                  "pending",
                  "stale"
                ]
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 4000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "formula": {
                "type": "object",
                "properties": {
                  "contractVersion": {
                    "type": "string",
                    "enum": [
                      "analytics-metric/v1"
                    ]
                  },
                  "id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "workspaceId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000000
                  },
                  "expression": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000
                  },
                  "fields": {
                    "maxItems": 32,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "identifier": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]{0,63}$"
                        },
                        "selector": {
                          "type": "object",
                          "properties": {
                            "platform": {
                              "type": "string",
                              "enum": [
                                "facebook",
                                "instagram",
                                "threads",
                                "youtube"
                              ]
                            },
                            "key": {
                              "type": "string",
                              "pattern": "^[A-Za-z][A-Za-z0-9_]{0,100}$"
                            },
                            "definition": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 500
                            },
                            "unit": {
                              "type": "string",
                              "enum": [
                                "count",
                                "seconds",
                                "minutes",
                                "percent",
                                "ratio"
                              ]
                            },
                            "grain": {
                              "type": "string",
                              "enum": [
                                "post",
                                "account"
                              ]
                            },
                            "measurementKind": {
                              "type": "string",
                              "enum": [
                                "lifetime",
                                "snapshot",
                                "period",
                                "unknown"
                              ]
                            },
                            "nativePeriod": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "timezone": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "platform",
                            "key",
                            "definition",
                            "unit",
                            "grain",
                            "measurementKind",
                            "nativePeriod",
                            "timezone"
                          ],
                          "additionalProperties": false
                        },
                        "aggregation": {
                          "type": "string",
                          "enum": [
                            "single",
                            "sum"
                          ]
                        }
                      },
                      "required": [
                        "identifier",
                        "selector",
                        "aggregation"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "rounding": {
                    "type": "object",
                    "properties": {
                      "decimalPlaces": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 8
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "half_away_from_zero"
                        ]
                      }
                    },
                    "required": [
                      "decimalPlaces",
                      "mode"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "contractVersion",
                  "id",
                  "workspaceId",
                  "name",
                  "version",
                  "expression",
                  "fields",
                  "rounding"
                ],
                "additionalProperties": false
              },
              "calculation": {
                "type": "object",
                "properties": {
                  "contractVersion": {
                    "type": "string",
                    "enum": [
                      "analytics-metric/v1"
                    ]
                  },
                  "workspaceId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "datasetId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "formulaId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "expression": {
                    "type": "string",
                    "maxLength": 1000
                  },
                  "rounding": {
                    "type": "object",
                    "properties": {
                      "decimalPlaces": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 8
                      },
                      "mode": {
                        "type": "string",
                        "enum": [
                          "half_away_from_zero"
                        ]
                      }
                    },
                    "required": [
                      "decimalPlaces",
                      "mode"
                    ],
                    "additionalProperties": false
                  },
                  "value": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "unit": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "available",
                      "not_returned"
                    ]
                  },
                  "code": {
                    "type": "string",
                    "enum": [
                      "ok",
                      "invalid_expression",
                      "missing_input",
                      "incompatible_input",
                      "zero_denominator",
                      "numeric_limit",
                      "workspace_mismatch",
                      "ambiguous_input",
                      "unknown_exclusion"
                    ]
                  },
                  "reason": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "excludedInputIds": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1500
                    }
                  },
                  "inputs": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "inputId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1500
                        },
                        "selector": {
                          "type": "object",
                          "properties": {
                            "platform": {
                              "type": "string",
                              "enum": [
                                "facebook",
                                "instagram",
                                "threads",
                                "youtube"
                              ]
                            },
                            "key": {
                              "type": "string",
                              "pattern": "^[A-Za-z][A-Za-z0-9_]{0,100}$"
                            },
                            "definition": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 500
                            },
                            "unit": {
                              "type": "string",
                              "enum": [
                                "count",
                                "seconds",
                                "minutes",
                                "percent",
                                "ratio"
                              ]
                            },
                            "grain": {
                              "type": "string",
                              "enum": [
                                "post",
                                "account"
                              ]
                            },
                            "measurementKind": {
                              "type": "string",
                              "enum": [
                                "lifetime",
                                "snapshot",
                                "period",
                                "unknown"
                              ]
                            },
                            "nativePeriod": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "timezone": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "platform",
                            "key",
                            "definition",
                            "unit",
                            "grain",
                            "measurementKind",
                            "nativePeriod",
                            "timezone"
                          ],
                          "additionalProperties": false
                        },
                        "value": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "availability": {
                          "type": "string",
                          "enum": [
                            "available",
                            "partial",
                            "not_returned",
                            "unsupported",
                            "permission_required",
                            "threshold_not_met",
                            "no_data",
                            "failed",
                            "pending",
                            "stale"
                          ]
                        },
                        "reason": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 8000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "measurement": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "lifetime",
                                "snapshot",
                                "period",
                                "unknown"
                              ]
                            },
                            "period": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "start": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "end": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "timezone": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "kind",
                            "period",
                            "start",
                            "end",
                            "timezone"
                          ],
                          "additionalProperties": false
                        },
                        "requestId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourcePath": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1000
                        },
                        "accountId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "providerResourceId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 512
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "fetchedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "identifier": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]{0,63}$"
                        },
                        "included": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "inputId",
                        "selector",
                        "value",
                        "availability",
                        "reason",
                        "measurement",
                        "requestId",
                        "sourcePath",
                        "accountId",
                        "providerResourceId",
                        "fetchedAt",
                        "identifier",
                        "included"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "contractVersion",
                  "workspaceId",
                  "datasetId",
                  "formulaId",
                  "name",
                  "version",
                  "expression",
                  "rounding",
                  "value",
                  "unit",
                  "status",
                  "code",
                  "reason",
                  "excludedInputIds",
                  "inputs"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "name",
              "version",
              "expression",
              "definition",
              "unit",
              "grain",
              "rounding",
              "inputs",
              "value",
              "availability",
              "reason"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "contractVersion",
        "id",
        "reviewedAt",
        "selection",
        "accounts",
        "posts",
        "sources",
        "coverage",
        "customMetrics"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "workspace_id",
    "id",
    "version",
    "dataset"
  ],
  "additionalProperties": false
}

संरचित आउटपुट

यह स्कीमा सफल टूल परिणाम के structuredContent का वर्णन करता है। MCP रिस्पॉन्स में content भी होता है और कॉल विफल होने पर isError सेट हो सकता है। प्रकाशन के लिए स्वीकृत अनुरोध या टेक्स्ट रिस्पॉन्स को पुष्टि मानने के बजाय पोस्ट का अंतिम परिणाम पढ़ें। लिंक किया गया API ऑपरेशन अनुमतियाँ और पुनः प्रयास के नियम समझाता है।

Required का अर्थ पैरेंट ऑब्जेक्ट और चुनी शाखा के भीतर अनिवार्य है। अनिवार्य चाइल्ड से वैकल्पिक पैरेंट अनिवार्य नहीं होता। नीचे के नियम और फ़ील्ड नाम कॉन्ट्रैक्ट से लिए गए हैं।

संरचित आउटपुट
फ़ील्ड / शाखाप्रकार / अनिवार्यशर्तें
$objectपैरेंट में अनिवार्य
  • additionalProperties: false
datasetIdstringपैरेंट में अनिवार्य
  • format: "uuid"
sourceSha256stringपैरेंट में अनिवार्य
  • pattern: "^[a-f0-9]{64}$"
fingerprintstringपैरेंट में अनिवार्य
  • pattern: "^[a-f0-9]{64}$"
valuesarrayपैरेंट में अनिवार्य
  • maxItems: 100
values[]objectवैकल्पिक / आइटम
  • additionalProperties: false
values[].namestringपैरेंट में अनिवार्य
  • maxLength: 64
values[].requiredbooleanपैरेंट में अनिवार्य—
values[].kindstring | nullपैरेंट में अनिवार्य—
values[].kindanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["text","selection","metric","formula","table","chart"]
values[].kindanyOf 2nullपैरेंट में अनिवार्य—
values[].textstringपैरेंट में अनिवार्य—
values[].statusstringपैरेंट में अनिवार्य
  • enum: ["resolved","missing","unavailable"]
values[].reasonstring | nullपैरेंट में अनिवार्य—
values[].rowsarrayवैकल्पिक / आइटम—
values[].rows[]arrayवैकल्पिक / आइटम—
values[].rows[][]stringवैकल्पिक / आइटम—
values[].chartarrayवैकल्पिक / आइटम—
values[].chart[]objectवैकल्पिक / आइटम
  • additionalProperties: false
values[].chart[].labelstringपैरेंट में अनिवार्य—
values[].chart[].valuenumberपैरेंट में अनिवार्य—
blockingarrayपैरेंट में अनिवार्य—
blocking[]stringवैकल्पिक / आइटम—
warningsarrayपैरेंट में अनिवार्य—
warnings[]stringवैकल्पिक / आइटम—
संपूर्ण JSON Schema
{
  "type": "object",
  "properties": {
    "datasetId": {
      "type": "string",
      "format": "uuid"
    },
    "sourceSha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "fingerprint": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "values": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 64
          },
          "required": {
            "type": "boolean"
          },
          "kind": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "text",
                  "selection",
                  "metric",
                  "formula",
                  "table",
                  "chart"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "text": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "resolved",
              "missing",
              "unavailable"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "chart": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                }
              },
              "required": [
                "label",
                "value"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "name",
          "required",
          "kind",
          "text",
          "status",
          "reason"
        ],
        "additionalProperties": false
      }
    },
    "blocking": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "datasetId",
    "sourceSha256",
    "fingerprint",
    "values",
    "blocking",
    "warnings"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

टूल कॉल का उदाहरण

उदाहरणों में स्कीमा से जाँचे काल्पनिक मान हैं। IDs को अधिकृत IDs, मीडिया को तैयार एसेट और तारीखों को पुष्ट प्रकाशन समय से बदलें। राइट सबमिट करने से पहले खाते की पात्रता जाँचें। यह पेज API अनुरोध नहीं भेजता।

{
  "name": "sosoapi_preview_report_template",
  "arguments": {
    "workspace_id": "11111111-1111-4111-8111-111111111111",
    "id": "11111111-1111-4111-8111-111111111111",
    "version": 1,
    "dataset": {
      "contractVersion": "analytics-report/v1",
      "id": "11111111-1111-4111-8111-111111111111",
      "reviewedAt": "2099-01-15T09:00:00Z",
      "selection": {
        "workspaceId": "11111111-1111-4111-8111-111111111111",
        "accountIds": [
          "11111111-1111-4111-8111-111111111111"
        ],
        "platforms": [
          "facebook"
        ],
        "startDate": "2099-01-15",
        "endDate": "2099-01-15",
        "timezone": "UTC"
      },
      "accounts": [
        {
          "id": "11111111-1111-4111-8111-111111111111",
          "workspaceId": "11111111-1111-4111-8111-111111111111",
          "platform": "facebook",
          "name": "Fictional report account"
        }
      ],
      "posts": [],
      "sources": [],
      "coverage": {
        "population": "discovered_posts",
        "postsComplete": false,
        "nextCursor": null,
        "postLimit": 0,
        "postInsightsLimit": 0,
        "omittedPostInsights": 0,
        "notes": []
      },
      "customMetrics": []
    }
  }
}

structuredContent

{
  "datasetId": "11111111-1111-4111-8111-111111111111",
  "sourceSha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "fingerprint": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "values": [],
  "blocking": [],
  "warnings": []
}
MCP इंस्टॉल या कनेक्ट करें