Skip to content

Minor release: v1.1.0 - #139

Merged
mikemadeja merged 2 commits into
mainfrom
develop
Oct 7, 2026
Merged

mikemadeja merged 2 commits into
mainfrom
develop

Conversation

@mikemadeja

Copy link
Copy Markdown
Owner

Summary

🤖 Generated with Claude Code

mikemadeja and others added 2 commits October 6, 2026 22:13
Adds Import-PiHoleTeleporter (POST /teleporter), the last remaining
functional gap in the Pi-hole v6 API. Restores a Teleporter archive
(as produced by Get-PiHoleTeleporterDownload), with flat switch
parameters (-Config, -DhcpLeases, -Group, -Adlist, -AdlistByGroup,
-Domainlist, -DomainlistByGroup, -Client, -ClientByGroup) selecting
which items to restore instead of Pi-hole's own nested request shape.
Omitting every switch imports everything, matching the API's own
default.

This overwrites the current configuration, so unlike every other
function in the module it prompts for confirmation by default
(ConfirmImpact = 'High') rather than only when -Confirm is passed
explicitly - pass -Confirm:$false to skip the prompt, or -WhatIf for
a dry run.

Confirmed two things by hand against a real server that don't match
the OpenAPI spec or weren't otherwise obvious:
- The response's processed-items array is actually returned under
  "files", not "processed" as the spec documents.
- Pi-hole reloads internally right after any import, briefly refusing
  connections - the integration tests and the docs example script
  both settle afterward to avoid a flaky next call.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
feat: add Import-PiHoleTeleporter, completing API coverage
@mikemadeja
mikemadeja merged commit e21bed1 into main Oct 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant