Skip to content

0.2.0: account and conversation layers - #3

Merged
robertgalop merged 12 commits into
mainfrom
accounts-conversations-0.2.0
Nov 30, 2026
Merged

robertgalop merged 12 commits into
mainfrom
accounts-conversations-0.2.0

Conversation

@robertgalop

Copy link
Copy Markdown
Contributor

What

  • client.accounts replaces client.workflows: create and maintain a customer on the current packaging (Base User, Base Manager, teams, a Management location), with three default alerts per team, alert email off, and "monitor all numbers" always off.
  • client.conversations: what a signed-in person does with their own calls, tasks and alerts. Summaries by default, one transcript at a time, recordings as an expiring link, bounded windows and result counts, masked caller numbers, app links.
  • ConnectorSpec is a type plus that platform's settings (ConnectorSpec.netsapiens(...) for the documented type); secrets are hidden at any depth when printed.
  • AlertSettings carries phrases and a sentiment level per alert.
  • A running connector may report connected as well as active.
  • Every existing client.intelligence helper and generated method is unchanged.
  • Removed with no aliases: the workflows namespace and its types. The changelog has the mapping.

Checks

  • Unit tests: 150 pass on Python 3.12 (3.10 also run during the build).
  • An independent review found 3 blockers and 6 further defects; all fixed, each with a test.
  • Live suite on a sandbox company: 20 passed, 3 skipped; the company was deactivated at the end.
  • Disclosure check on the changed files.

Not in this PR

TypeScript and PHP follow from this reference. Publishing is a separate step after all three are ready.

🤖 Generated with Claude Code

Robert Galop and others added 8 commits November 29, 2026 13:58
client.accounts creates and maintains a customer on Base User and Base
Manager licenses: teams plus a Management location, five groups and three
alert rules per team, a connector per location, and helpers for people,
licenses, lines and offboarding. Every helper finds before it writes, so a
re-run writes nothing; a partial stop raises AccountError.

client.conversations gives a signed-in person their own calls, tasks and
alerts with masked caller numbers, bounded windows and limits, and briefs
that print only their id and time. parse_first_alert_event parses the
First Alert webhook.

New errors: AccountError and WrongLoginError. client.workflows and its
types are removed without aliases. Version 0.2.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y_day.py

create_customer.py builds a customer with the account layer (dry run
unless --apply; phrase lists optional). my_day.py shows a person's day
through the conversation layer with masked numbers and no content in logs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The README replaces the workflow sections with the account and
conversation layers and keeps the sections on reading data. The
CHANGELOG entry carries the removal table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- add_* helpers refuse a person already set up with another license
- change_line changes only the person's own line; shared lines stay listed
- change_license and move_user continue after a stop; old lines and teams
  stay on the result until the change completes; former teams are left
- a line owned by someone read back as "other" is never released
- connector failures stop create_customer, add_team and set_connector at
  the end with AccountError(step="connectors")
- nested connector secrets hidden; config wraps on assignment
- numbers inside names masked; day windows use each date's own offset
- notes when a team's alert groups lose their last manager; people
  helpers switch monitor-all off on teams they touch
- CallBrief.link, AlertBrief.link and reference() give app page links;
  Client(app_url=...)
- fake API: duplicate email 409, alert search as published

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The live API reports a working connector as "connected" as well as "active".
Waiting only for "active" timed out on a connector that was working.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Robert Galop and others added 4 commits November 29, 2026 15:00
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Alerts go on for every team. Teams whose alert groups have no manager are
listed under no_manager; their alerts show in the app only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The HTTP library's error held the request (password at sign-in, token, connector key)
and escaped unwrapped. NetworkError carries only the kind of failure.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Compares types, counts, masking and link shape only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@robertgalop
robertgalop merged commit 1369bf7 into main Nov 30, 2026
2 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