{
  "contractVersion": 1,
  "methods": [
    {
      "name": "setAnalyticsConsent",
      "description": "Grant or deny measurement. Does not affect playback or override URL DNT.",
      "signatures": [
        "(state: Consent): void"
      ]
    },
    {
      "name": "track",
      "description": "Report only an allowed semantic event and its exact details; never a provider payload.",
      "signatures": [
        "(...args: ReportArgs): void"
      ]
    },
    {
      "name": "getContext",
      "description": "One frozen public context per navigation; null until ready.",
      "signatures": [
        "(): PublicContext | null"
      ]
    },
    {
      "name": "bind",
      "description": "Fill marked leaf text in newly inserted CMS markup; no HTML insertion or new session.",
      "signatures": [
        "(root: BindingRoot): void"
      ]
    },
    {
      "name": "getState",
      "description": "Read current readiness, media seconds/duration and last error. Times may be null.",
      "signatures": [
        "(): Readonly<{ ready: boolean; playerReady: boolean; currentTime: number | null; duration: number | null; lastError: Readonly<PageError> | null; }>"
      ]
    },
    {
      "name": "player",
      "description": "Controls for this page's Pitchlane player, not the raw Video.js instance.",
      "signatures": []
    },
    {
      "name": "on",
      "description": "Subscribe immediately after the SDK script. Returns a function to unsubscribe.",
      "signatures": [
        "<K extends keyof PlaybackEvents>(name: K, callback: (payload: PlaybackEvents[K]) => void): Off",
        "(name: \"ready\", callback: () => void): Off",
        "(name: \"player:ready\", callback: OnPlayerReady): Off",
        "(name: \"player:cue\", options: { at: number; }, callback: OnCue): Off"
      ]
    }
  ],
  "player": [
    {
      "name": "mount",
      "description": "Mount in a selector or HTMLElement after ready. Repeating the same mount is harmless.",
      "signatures": [
        "(target: string | HTMLElement): void"
      ]
    },
    {
      "name": "unmount",
      "description": "Remove the Pitchlane-owned player; do this before mounting in a different host.",
      "signatures": [
        "(): void"
      ]
    },
    {
      "name": "play",
      "description": "Play after metadata is ready. Handle the promise: browsers can refuse autoplay.",
      "signatures": [
        "(): Promise<void>"
      ]
    },
    {
      "name": "pause",
      "description": "Pause after metadata is ready.",
      "signatures": [
        "(): void"
      ]
    },
    {
      "name": "seek",
      "description": "Seek to finite seconds between zero and the current duration, inclusive.",
      "signatures": [
        "(seconds: number): void"
      ]
    }
  ],
  "subscriptions": [
    {
      "name": "error",
      "description": "A bounded player/SDK failure. Use getState() for the last error.",
      "options": null,
      "payload": {
        "type": "object",
        "properties": {
          "scope": {
            "type": "string",
            "enum": [
              "player",
              "sdk"
            ]
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "scope",
          "code",
          "message"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "player:cue",
      "description": "Supply {at: seconds}. Fires once per subscription on playback or completed seek at or past that point, including late registration. A rewind does not rearm it.",
      "options": {
        "type": "object",
        "properties": {
          "at": {
            "type": "number"
          }
        },
        "required": [
          "at"
        ],
        "additionalProperties": false
      },
      "payload": {
        "type": "object",
        "properties": {
          "at": {
            "type": "number"
          },
          "currentTime": {
            "type": "number"
          }
        },
        "required": [
          "at",
          "currentTime"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "player:ended",
      "description": "Playback ended. Future events only.",
      "options": null,
      "payload": {
        "type": "object",
        "properties": {
          "currentTime": {
            "type": "number"
          }
        },
        "required": [
          "currentTime"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "player:pause",
      "description": "Playback paused. Future events only.",
      "options": null,
      "payload": {
        "type": "object",
        "properties": {
          "currentTime": {
            "type": "number"
          }
        },
        "required": [
          "currentTime"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "player:play",
      "description": "Playback started, resumed or replayed. Future events only.",
      "options": null,
      "payload": {
        "type": "object",
        "properties": {
          "currentTime": {
            "type": "number"
          },
          "reason": {
            "type": "string",
            "enum": [
              "replay",
              "resume",
              "start"
            ]
          }
        },
        "required": [
          "currentTime",
          "reason"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "player:ready",
      "description": "First usable media metadata (duration in seconds); remembered for late subscribers.",
      "options": null,
      "payload": {
        "type": "object",
        "properties": {
          "duration": {
            "type": "number"
          }
        },
        "required": [
          "duration"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "player:timeupdate",
      "description": "Local playhead and duration in seconds, at most four updates per second. Not analytics.",
      "options": null,
      "payload": {
        "type": "object",
        "properties": {
          "currentTime": {
            "type": "number"
          },
          "duration": {
            "type": "number"
          }
        },
        "required": [
          "currentTime",
          "duration"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "ready",
      "description": "DOM and recipient context are ready. A late subscriber is called once on a microtask.",
      "options": null,
      "payload": null
    }
  ],
  "authorReports": [
    {
      "name": "cta_click",
      "description": "Intentional CTA activation, not every link click.",
      "details": {
        "type": "object",
        "properties": {
          "slot": {
            "type": "string",
            "enum": [
              "primary",
              "secondary"
            ]
          }
        },
        "required": [
          "slot"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "calendar_step",
      "description": "Calendly funnel step; not a booking.",
      "details": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "calendly"
            ]
          },
          "step": {
            "type": "string",
            "enum": [
              "event_type_viewed",
              "profile_viewed",
              "time_selected"
            ]
          }
        },
        "required": [
          "provider",
          "step"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "calendar_booking",
      "description": "Report only the provider's scheduled event. Pitchlane treats a booking as human activity; it can release held views and trigger subscribed webhooks.",
      "details": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "calendly",
              "savvycal"
            ]
          }
        },
        "required": [
          "provider"
        ],
        "additionalProperties": false
      }
    }
  ],
  "outputContexts": {
    "text": "html-text",
    "quotedTextAttributes": [
      "title",
      "alt",
      "aria-label",
      "aria-description",
      "placeholder"
    ],
    "wholeQuotedAttributes": [
      {
        "element": "html",
        "attribute": "lang",
        "kind": "language"
      },
      {
        "element": "a",
        "attribute": "href",
        "kind": "https"
      },
      {
        "element": "img",
        "attribute": "src",
        "kind": "https"
      }
    ]
  },
  "variables": {
    "video": {
      "id": {
        "kind": "text",
        "nullable": false
      },
      "shortId": {
        "kind": "text",
        "nullable": false
      },
      "title": {
        "kind": "text",
        "nullable": true
      },
      "videoUrl": {
        "kind": "https",
        "nullable": false
      },
      "posterImageUrl": {
        "kind": "https",
        "nullable": true
      },
      "createdAt": {
        "kind": "instant",
        "nullable": false
      },
      "renderedAt": {
        "kind": "instant",
        "nullable": true
      }
    },
    "page": {
      "locale": {
        "kind": "language",
        "nullable": false
      }
    },
    "commonData": {
      "firstName": {
        "kind": "text",
        "nullable": true,
        "standard": "FIRST_NAME"
      },
      "lastName": {
        "kind": "text",
        "nullable": true,
        "standard": "LAST_NAME"
      },
      "email": {
        "kind": "text",
        "nullable": true,
        "standard": "EMAIL"
      },
      "companyName": {
        "kind": "text",
        "nullable": true,
        "standard": "COMPANY_NAME"
      },
      "website": {
        "kind": "text",
        "nullable": true,
        "standard": "WEBSITE"
      },
      "linkedinUrl": {
        "kind": "text",
        "nullable": true,
        "standard": "LINKEDIN_PROFILE"
      }
    },
    "leadData": {
      "additionalProperties": {
        "kind": "text",
        "nullable": true
      },
      "keys": "Campaign-admitted literal schema keys only",
      "missingKey": "undefined"
    }
  }
}
