AppleIntents.Privacy (apple_intents v0.1.0)

Copy Markdown View Source

Server-side privacy manifest helpers for Apple deferred fulfillment.

Generates and validates fragments for PrivacyInfo.xcprivacy cross-reference.

Summary

Functions

Generates a privacy manifest fragment for an intent handler module.

JSON export for docs and agents.

Validates a manifest against Apple's expected shape.

Functions

manifest(intent, opts \\ [])

@spec manifest(
  module(),
  keyword()
) :: map()

Generates a privacy manifest fragment for an intent handler module.

Options

  • :categories — declared data categories (atoms or strings)

to_json(intent, opts \\ [])

@spec to_json(
  module(),
  keyword()
) :: String.t()

JSON export for docs and agents.

validate(manifest)

@spec validate(map()) :: :ok | {:error, String.t()}

Validates a manifest against Apple's expected shape.