intelligence-cloud 0.1.1__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. intelligence_cloud-0.3.0/CHANGELOG.md +146 -0
  2. intelligence_cloud-0.3.0/PKG-INFO +664 -0
  3. intelligence_cloud-0.3.0/README.md +619 -0
  4. intelligence_cloud-0.3.0/examples/_common.py +24 -0
  5. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/examples/alert_webhook_receiver.py +13 -24
  6. intelligence_cloud-0.3.0/examples/create_customer.py +68 -0
  7. intelligence_cloud-0.3.0/examples/my_day.py +33 -0
  8. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/examples/webhook_receiver.py +62 -20
  9. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/pyproject.toml +9 -3
  10. intelligence_cloud-0.3.0/src/intelligence_cloud/__init__.py +97 -0
  11. intelligence_cloud-0.3.0/src/intelligence_cloud/_redact.py +69 -0
  12. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/src/intelligence_cloud/_spec.py +78 -8
  13. intelligence_cloud-0.3.0/src/intelligence_cloud/_version.py +1 -0
  14. intelligence_cloud-0.3.0/src/intelligence_cloud/accounts.py +2381 -0
  15. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/src/intelligence_cloud/client.py +171 -52
  16. intelligence_cloud-0.3.0/src/intelligence_cloud/conversations.py +569 -0
  17. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/src/intelligence_cloud/data/spec.json +349 -0
  18. intelligence_cloud-0.3.0/src/intelligence_cloud/errors.py +279 -0
  19. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/src/intelligence_cloud/intelligence.py +41 -15
  20. intelligence_cloud-0.3.0/src/intelligence_cloud/receiver.py +609 -0
  21. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/src/intelligence_cloud/resources.py +15 -5
  22. intelligence_cloud-0.3.0/src/intelligence_cloud/testing/__init__.py +21 -0
  23. intelligence_cloud-0.3.0/src/intelligence_cloud/testing/_fake.py +1202 -0
  24. intelligence_cloud-0.3.0/tests/live/test_live.py +619 -0
  25. intelligence_cloud-0.3.0/tests/unit/behaviour_runner.py +131 -0
  26. intelligence_cloud-0.3.0/tests/unit/fake_api.py +2 -0
  27. intelligence_cloud-0.3.0/tests/unit/fixtures/after_call_parse_vectors.json +224 -0
  28. intelligence_cloud-0.3.0/tests/unit/fixtures/canonical_vectors.json +170 -0
  29. intelligence_cloud-0.3.0/tests/unit/fixtures/delivery_key_vectors.json +296 -0
  30. intelligence_cloud-0.3.0/tests/unit/fixtures/fake_behaviour_vectors.json +807 -0
  31. intelligence_cloud-0.3.0/tests/unit/fixtures/fake_strictness_vectors.json +267 -0
  32. intelligence_cloud-0.3.0/tests/unit/fixtures/line_vectors.json +78 -0
  33. intelligence_cloud-0.3.0/tests/unit/fixtures/path_argument_vectors.json +147 -0
  34. intelligence_cloud-0.3.0/tests/unit/fixtures/retry_after_vectors.json +98 -0
  35. intelligence_cloud-0.3.0/tests/unit/test_accounts.py +643 -0
  36. intelligence_cloud-0.3.0/tests/unit/test_conversations.py +206 -0
  37. intelligence_cloud-0.3.0/tests/unit/test_developer_round.py +244 -0
  38. intelligence_cloud-0.3.0/tests/unit/test_final_030.py +241 -0
  39. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/tests/unit/test_intelligence.py +22 -9
  40. intelligence_cloud-0.3.0/tests/unit/test_policy.py +346 -0
  41. intelligence_cloud-0.3.0/tests/unit/test_request_counts.py +133 -0
  42. intelligence_cloud-0.3.0/tests/unit/test_review2.py +197 -0
  43. intelligence_cloud-0.3.0/tests/unit/test_review_030.py +317 -0
  44. intelligence_cloud-0.3.0/tests/unit/test_review_fixes.py +564 -0
  45. intelligence_cloud-0.3.0/tests/unit/test_shared_vectors.py +268 -0
  46. intelligence_cloud-0.3.0/tests/unit/test_testing_module.py +157 -0
  47. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/tools/generate.py +2 -1
  48. intelligence_cloud-0.3.0/tools/make_shared_vectors.py +478 -0
  49. intelligence_cloud-0.1.1/CHANGELOG.md +0 -46
  50. intelligence_cloud-0.1.1/PKG-INFO +0 -410
  51. intelligence_cloud-0.1.1/README.md +0 -371
  52. intelligence_cloud-0.1.1/examples/_common.py +0 -23
  53. intelligence_cloud-0.1.1/examples/provision_seat.py +0 -48
  54. intelligence_cloud-0.1.1/src/intelligence_cloud/__init__.py +0 -62
  55. intelligence_cloud-0.1.1/src/intelligence_cloud/_version.py +0 -1
  56. intelligence_cloud-0.1.1/src/intelligence_cloud/errors.py +0 -179
  57. intelligence_cloud-0.1.1/src/intelligence_cloud/receiver.py +0 -197
  58. intelligence_cloud-0.1.1/src/intelligence_cloud/workflows.py +0 -791
  59. intelligence_cloud-0.1.1/tests/live/test_live.py +0 -449
  60. intelligence_cloud-0.1.1/tests/unit/fake_api.py +0 -420
  61. intelligence_cloud-0.1.1/tests/unit/test_review2.py +0 -408
  62. intelligence_cloud-0.1.1/tests/unit/test_workflows.py +0 -369
  63. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/.gitignore +0 -0
  64. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/CONTRIBUTING.md +0 -0
  65. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/LICENSE +0 -0
  66. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/SECURITY.md +0 -0
  67. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/examples/after-call-sample.json +0 -0
  68. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/examples/export_calls.py +0 -0
  69. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/examples/whoami.py +0 -0
  70. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/src/intelligence_cloud/_base.py +0 -0
  71. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/src/intelligence_cloud/_generated.py +0 -0
  72. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/src/intelligence_cloud/auth.py +0 -0
  73. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/src/intelligence_cloud/py.typed +0 -0
  74. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/tests/__init__.py +0 -0
  75. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/tests/unit/__init__.py +0 -0
  76. {intelligence_cloud-0.1.1 → intelligence_cloud-0.3.0}/tests/unit/test_client.py +0 -0
@@ -0,0 +1,146 @@
1
+ # Changelog
2
+
3
+ ## 0.3.0 (2026-12-01)
4
+
5
+ ### What changed for callers
6
+
7
+ - **Bad input never reaches the network.** Every helper of `client.accounts` and `client.conversations` checks its arguments before it signs in or sends anything. A 40-day window, `limit=500` or `alerts(status=...)` raise `InvalidRequestError` with no request made, even with the network down, and cost no sign-in.
8
+ - **Token renewal never resends a refresh token that may have been used.** It is sent again only after a 429 or a network failure that provably never left (no connection, no free pooled connection, a request that could not be written); after a 5xx, a timeout after sending or an unreadable answer the client signs in instead. Sending a used refresh token ends every session of the login.
9
+ - **`Client(deadline=120)`** bounds one API request, with its sign-in, renewal, retries and waits; when the time left cannot cover the next wait it stops at once (`RateLimitError`, `NetworkError` kind `"timeout"`, or the last 5xx). Each attempt gets at most `timeout` split across httpx's phases. `clock=` replaces the clock in tests.
10
+ - **Arguments are read once and type-checked.** A generator passed as `teams`, `user_ids` or `phrases` is read a single time; a value of the wrong type anywhere in a spec or argument raises `InvalidRequestError` before any request.
11
+ - **One retry policy, written down** (README "Retries"). Network failures and 5xx are now retried on sign-in too, and on token renewal when the request never left. A 429 whose `Retry-After` is longer than the wait limit raises `RateLimitError` at once with `.retry_after` (a sign-in 429 with `Retry-After: 120` used to wait 60 seconds and then fail). User creation keeps retrying with its idempotency key.
12
+ - **One error tree in every SDK language** (README "Error handling"). `ApiError.server_message` holds the server's text; `.message` stays as an alias. `NetworkError.request_sent` says whether the request left. `AccountError.find(ErrorType)` returns the first error of that type in the cause chain: a clashing line is `AccountError` → `ExtensionMappingError` → `ConflictError`.
13
+ - **Events: store by call id and upsert.** A later After Call delivery for the same call can carry newer data. `Deduplicator.seen(event)` only checks whether this exact delivery (same event type, location, call id and canonical-JSON content) was remembered; `Deduplicator.remember(event)` records it and is called after your durable write, so a delivery whose storage failed is processed when it is retried. Both take an event, a parsed body or raw bytes; a plain id is refused. Newer data is never hidden. New `upsert_key(event)` (also `Deduplicator.upsert_key`) returns the call id (or alert id) to store under. The README receiver section and `examples/webhook_receiver.py` follow this.
14
+ - **First Alert payload is not final.** `parse_first_alert_event` accepts any id of letters, digits, `-` and `_` up to 128 characters (it used to accept only UUIDs and lower-cased them); the first of `alert_id`, `alert.id`, `id` that is present decides; it keeps reading rule, location, call and time from today's shapes, and `raw` holds the whole payload.
15
+ - **`intelligence_cloud.testing`**: a supported fake API for your tests and CI. `FakeAPI.client(role="admin" | "user")`, fictional seed data (`seed_customer`, `seed_calls`), failure knobs (`connector_outcome`, `fail_next` for each HTTP and network failure, `fail_write`, `network_down`, `rate_limit`, `expire_access_tokens`), a request log and `auth_log`, refresh-token reuse that ends every session as on the platform, and strict refusal of requests the published spec does not define, including value types, enums and formats of top-level fields. README "Testing your code" lists the whole supported surface.
16
+ - **Path arguments are checked at the one place paths are built**: a value of `.`, `..`, or with `/`, `\`, `?`, `#`, `%`, whitespace or control characters, or longer than 128 characters, raises `InvalidRequestError` before any request (0.2.0 let `".."` collapse the URL, so `deactivate_company_user(cid, "..")` reached the company). Free-text and number arguments must be real strings of at most 200 characters.
17
+ - **Delivery keys use RFC 8785 (JSON Canonicalization Scheme)** over the event as the SDK reads it, so every SDK computes the same key; bodies that are not I-JSON (duplicate keys, NaN, Infinity, lone surrogates) raise `WebhookPayloadError`. New `canonical_json` in `intelligence_cloud.receiver`. Shared test vectors ship in `tests/unit/fixtures/` (the sdist).
18
+ - **One After Call parse rule:** an event is refused exactly when a field the published schema marks required is missing or has the wrong JSON type; optional fields of the wrong type read as None; `call_date` and `timestamp` read as None when their text is not a date (they used to refuse the event).
19
+ - **One Retry-After rule:** only decimal seconds count; anything else means the client's own backoff. `RateLimitError.retry_after` is a float or None.
20
+ - **A passed `Customer` is kept current:** helpers check it against the live location list (one request) and re-read it when it differs; group and rule ids are read live for the teams they touch; a Customer carrying another company's locations is refused. `Customer.refreshed_at` is new.
21
+ - Testing module: `fail_next(..., after_processing=False)` fails before the platform acts by default (a renewal's 429 keeps its token); strict mode uses explicit patterns for numbers, dates, date-times and uuids and checks body enums and formats (the generator now keeps them in the bundled spec); secret-named values are masked in the request log.
22
+ - **Whole-value checks and one path rule:** every pattern validates the whole value (a trailing newline no longer passes); a path argument is 1-128 code points with no `/ \ ? #` `%`, control characters or whitespace, never trimmed.
23
+ - **Event safety:** bodies nested deeper than 64 levels are refused (`WebhookPayloadError`) without recursion; `call.id`, `location_id` and First Alert ids must be plain ids (`[A-Za-z0-9_-]{1,128}`); an event with no string `type` has the delivery-key prefix `unknown`.
24
+ - **Top-level body types are checked before sending** for every generated method and helper; allowed values (enums) are left to the platform, so a connector type the spec does not list still reaches the API. The account layer no longer reads the connector-type list before a connector write.
25
+ - **Sign-in is not retried after a timeout or reset once the request was sent** (still after a failure that never left, a 5xx, or a 429 within the wait limit).
26
+ - **Secrets stay out of tracebacks:** request bodies, headers and webhook addresses travel in types whose printed form hides secret-named values and URL paths; the refresh token stays inside `Tokens`.
27
+ - `license_report` reads the customer once; a team read earlier in the same helper call is not read again.
28
+ - **Typed account results:** `license_report`, `activate_alerts`, `sync_lines`, `remove_user` and `offboard_customer` return frozen dataclasses (`LicenseReport`, `AlertActivation` with `NoManagerTeam`, `LineSyncReport` with `TeamLines` and `LineDiff`, `RemovalSummary`, `OffboardSummary`) with the same field names in every SDK; they still support `result["key"]`, `"key" in result`, `.get()` and equality with a dict, and `to_dict()`.
29
+ - **Lines** must be the whole value `+?[0-9*#]{1,32}`; anything else (a space, a dash) raises `InvalidRequestError` before any request.
30
+ - **Out-of-order deliveries:** `is_older(event, stored)` compares the events' own timestamps; the receiver flow is parse, seen, compare with what is stored, upsert, remember. When two deliveries carry the same timestamp, the later arrival wins.
31
+ - `Member.teams` lists every team the person is on after the call; `conversations.teams()` lists teams first (in name order) and Management last; error messages name the parameters as the caller wrote them (`number`/`search` for `calls`).
32
+ - A connector found still settling when a helper runs again is checked again and restarted once if it does not settle.
33
+ - Testing module: `requests` logs every request with what answered it (`answer`); `auth_log` logs every sign-in and renewal attempt; `connector_outcome` applies to connection attempts made after it is set, and `settle_connector` settles a waiting one; `client(as_user=...)` signs in as a seeded person (`seed_customer` returns `people`); `seed_calls(recording=..., topics=...)`; `fail_next(sign_in=...)`; strict mode off lets an unlisted connector type through. Shared behaviour scenarios in `fake_behaviour_vectors.json`.
34
+ - Connector waits count the check intervals as well as the clock, so a replaced `sleep` (tests) cannot spin for the whole timeout.
35
+ - README: "Retries" with worst-case blocking time, "Testing your code", "Running helpers from more than one process", "How many requests" (pinned by a test), the error tree. SDK documentation links now point to the SDK pages (https://docs.intelligence.cloud/sdk/, /sdk/quick-start, /sdk/reference, /sdk/events, /sdk/configuration, /sdk/downloads); API links stay https://docs.intelligence.cloud/api and https://docs.intelligence.cloud/reference. The examples ship in the source distribution, not the wheel, and the README says so. Package metadata links to the SDK pages, with "Changelog" on https://docs.intelligence.cloud/sdk/downloads.
36
+ - Examples use one fictional customer, Riverbend Auto Group, and the variables `IC_ADMIN_EMAIL` / `IC_ADMIN_PASSWORD` and `IC_USER_EMAIL` / `IC_USER_PASSWORD` (`IC_DATA_*` still read by the examples as a fallback).
37
+
38
+ ### Breaking changes
39
+
40
+ | 0.2.0 | 0.3.0 |
41
+ |---|---|
42
+ | `Client(base_url, email, password, token_store, timeout, ...)`, positional | `Client(email, password, *, base_url=..., token_store=..., timeout=..., ...)`: only email and password by position |
43
+ | `MfaRequiredError` derived from `IntelligenceCloudError` only | It is an `AuthError` (status 200, code `mfa_required`): an `except AuthError` now catches it |
44
+ | `ConnectorTimeoutError` was not a `ConnectorError` | It is: an `except ConnectorError` now catches timeouts too (put `except ConnectorTimeoutError` first to tell them apart) |
45
+ | `FrontlineRequiredError` derived from `IntelligenceCloudError` only | It is a `WrongLoginError` |
46
+ | `activate_alerts`, `license_report`, `sync_lines`, `remove_user` and `offboard_customer` returned dicts | Typed results; reading them by key still works, but code that mutates them or checks `isinstance(result, dict)` breaks |
47
+ | A line with a space or a dash was sent | Refused before sending |
48
+ | `conversations.teams()` listed Management first | Teams first, Management last |
49
+ | `Deduplicator.is_duplicate(event_or_call_id)` checked and recorded in one call, keyed on the call id | Removed, with no alias: `seen(event)` checks, `remember(event)` records after your write. A plain id raises `InvalidRequestError` |
50
+ | A custom `DedupStore` needed `add(key) -> bool` | It needs `has(key) -> bool` and `add(key)` |
51
+ | No overall time limit | `deadline=120` seconds per API request (sign-in, renewal, retries and waits included); raise it for long Retry-After waits |
52
+ | A path argument such as `".."` reached the API | Refused before any request (see the path rule) |
53
+ | `parse_after_call_event` refused a `call_date` or `timestamp` that was not a date | Accepted; the field reads as None. Refused only for a missing or wrongly typed required field |
54
+ | `AfterCallCall.call_date` and `AfterCallEvent.timestamp` were always set | Optional (None when the text is not a date) |
55
+ | Retry-After values such as `" 5"` or `"1e2"` were honoured | Treated as absent: backoff applies |
56
+ | Bodies with duplicate keys or NaN were parsed | Refused with `WebhookPayloadError` |
57
+ | Ids such as `" a"` were trimmed, and `"a\n"` passed | Refused, never trimmed |
58
+ | A body value of the wrong JSON type was sent | Refused before sending |
59
+ | Event `call.id` / `location_id` could be any string | Plain ids only; deeper than 64 levels refused |
60
+ | An id inside an app link could be any string | Links carry only ids of letters, digits, `-` and `_`; `reference()` refuses others and briefs with such an id get `link=None` |
61
+ | `parse_first_alert_event` refused non-UUID ids and lower-cased ids | Ids of letters, digits, `-` and `_` (at most 128), kept as sent |
62
+ | A sign-in 429 always waited `login_rate_limit_wait` once | It waits only when `Retry-After` fits in that limit; otherwise raises at once |
63
+ | Conversation and account helpers signed in before checking arguments | They check first; with a bad argument no request is sent (your mocks may see fewer requests) |
64
+
65
+ ## 0.2.0 (2026-11-29)
66
+
67
+ Two new layers. `client.accounts` replaces `client.workflows`; `client.conversations` is new. Every generated resource method and every `client.intelligence` helper keeps its name and behaviour.
68
+
69
+ - **Account layer, `client.accounts`** (administrator login): create and maintain a customer on Base User and Base Manager licenses. A customer is a company with teams and a `<Company> - Management` location. Each team gets its own connector, five groups (Customer Threats, Upset Customers, Low Sentiment Calls, Insights Hub Access, Insights Hub Weekly Reports) and three alerts (Customer Threat, Upset Customer, Low Sentiment), each routed to its group. Management gets its own connector, which captures the managers' own lines, and the weekly reports group; it has no alerts. Helpers: `create_customer`, `get_customer`, `add_team`, `set_alerts`, `set_connector`, `add_base_user`, `add_base_manager`, `add_integration_user`, `change_license`, `move_user`, `change_line`, `remove_user`, `activate_alerts`, `send_invitations`, `list_members`, `license_report`, `sync_lines`, `offboard_customer`.
70
+ - Every account helper finds what exists before it writes: a second run with the same input writes nothing. A helper that stops part-way raises `AccountError` with the step, the result so far and the cause.
71
+ - A customer can be created without the phrase lists: Low Sentiment and every group are created, `Customer.pending` lists the two phrase alerts, and `set_alerts` creates them when the lists arrive. `AlertSettings` sets the phrases and the sentiment level of each alert; `None` keeps what is there. Alerts are created switched off; `activate_alerts` switches them on for every team, and lists under `no_manager` the teams whose alert groups have no Base Manager (their alerts show in the app only). (Corrected in 0.3.0: this entry first said alerts came on only where each group had a manager.)
72
+ - Alert email is off for every person the helpers create, managers included (0.1.x switched it on for managers). Insights Hub "monitor all numbers" stays off.
73
+ - `ConnectorSpec(type, config, name=None, timeout=600)` takes any connector type the API accepts with that type's own settings; `ConnectorSpec.netsapiens(api_url, domain, api_key)` is the shortcut for the documented one. Values whose names contain key, secret, token or password are hidden when the spec is printed. `add_team` requires a connector; `set_connector` attaches one to a customer created without it.
74
+ - **Conversation layer, `client.conversations`** (the person's own login): `me`, `teams`, `calls`, `brief`, `transcript`, `recording_link`, `caller_history`, `open_tasks`, `alerts`, `alert`, `team_view`, `topics`, `reference`, `parse_first_alert_event`. Caller numbers are masked to their last four digits unless the client is created with `mask_numbers=False`. Windows are at most 31 days and lists at most 200 (`caller_history` 50), checked before any request. Printing a `CallBrief` or `AlertBrief` shows only its id and time.
75
+ - **Network failures raise `NetworkError`** (an `ApiError` with status 0) in place of the HTTP library's own error, which held the request: a request can hold a password, a token or a connection key.
76
+ - `CallBrief.link`, `AlertBrief.link` and `reference()` give the call or alert page in the app. `Client(app_url=...)` sets the app address (https only; default `https://app.intelligence.cloud`).
77
+ - A connector that does not become active stops `create_customer`, `add_team` and `set_connector` with `AccountError` (step `"connectors"`, cause `ConnectorTimeoutError` or `ConnectorError`) once everything else is built; run again to finish.
78
+ - `add_base_user`, `add_base_manager` and `add_integration_user` refuse a person already set up with another license; `change_license` converts. `change_license` and `move_user` continue from where an earlier run stopped.
79
+ - `parse_first_alert_event` and `FirstAlertEvent` parse the First Alert webhook, beside `parse_after_call_event`.
80
+ - New errors: `AccountError` and `WrongLoginError` (an account helper with a user login, or a conversation helper with an administrator login).
81
+ - Examples: `examples/create_customer.py` replaces the provisioning example; `examples/my_day.py` shows the conversation layer.
82
+
83
+ Removed in 0.2.0, with no aliases:
84
+
85
+ | 0.1.x | 0.2.0 |
86
+ |---|---|
87
+ | `client.workflows` | `client.accounts` |
88
+ | the 0.1.x provisioning helper and its spec and result types | `create_customer`, `CustomerSpec`, `Customer` |
89
+ | `ConnectorSpec(api_url, domain, api_key)` | `ConnectorSpec.netsapiens(api_url, domain, api_key)`, or `ConnectorSpec(type, config)` |
90
+ | `threat_phrases` | `alerts` (`AlertSettings`: phrases and sentiment level per alert) |
91
+ | the 0.1.x customer read-back helper | `get_customer` |
92
+ | `add_frontline_user` | `add_base_user` |
93
+ | `add_manager` | `add_base_manager` (own line now captured at Management; alert email now off) |
94
+ | the 0.1.x alert activation helper | `activate_alerts` |
95
+ | `change_user_extension` | `change_line` |
96
+ | `list_frontline_users`, `list_managers`, `list_integration_users` | `list_members(license=...)` |
97
+ | `sync_numbers` | `sync_lines` |
98
+ | the 0.1.x user result type, `UserSpec`, `LocationSpec` | `Member`, `PersonSpec`, `TeamSpec` |
99
+ | "Manager Alerts" group, two rules | Three groups and three rules per team |
100
+
101
+ A customer built with 0.1.x is not converted automatically: `get_customer` lists what its layout is missing in `Customer.pending`.
102
+
103
+ ## 0.1.1 (2026-11-29)
104
+
105
+ - Insights Hub "monitor all numbers" is never switched on. `provision_seat_customer` used to set `monitor_all_numbers` to true; it now leaves it off and switches it off where an earlier run switched it on. Insights Hub covers the lines listed for the location, which `add_frontline_user` already adds. Re-run `provision_seat_customer` for customers set up with 0.1.0.
106
+
107
+ ## 0.1.0: Base Intelligence Seat manager lines (2026-11-18)
108
+
109
+ - On the Base Intelligence Seat a manager's own phone line is not captured. `add_manager(customer, user, *, activate_alerts=True)` no longer takes `own_extension` (`activate_alerts` is keyword-only, so an extension passed positionally raises `TypeError`): a manager is mapped to exactly the end-user lines at the location, and their own extension is never mapped, nor added to First Alert or Insights Hub.
110
+ - `sync_numbers` sets every manager's mapping to exactly the lines (as for integration users); a number on a manager that is not a line is removed.
111
+
112
+ ## 0.1.0: review changes (2026-11-17)
113
+
114
+ - Licence: the Intelligence Cloud SDK Licence (Copyright (c) 2026 Creo Solutions, Inc. d/b/a Tresic), the same text in every SDK: partners, their customers and contractors may use, copy, modify and distribute the SDK solely to access Intelligence Cloud; provided as is.
115
+ - **Python 3.10 or later, `httpx` 0.27 or later.** The package ships `py.typed`.
116
+ - `provision_seat_customer` never adopts a company by its name alone. Pass `SeatCustomerSpec.company_id` (store it from the first run). Without it, a same-named company is used only when its primary contact email is `admin_email`; otherwise `ConflictError` (code `company_name_conflict`) is raised before anything is written. New helper `companies.find_companies`.
117
+ - Integration users: `add_integration_user` (password sign-in, tagged `department: "integration"`, all products, both groups, alert email off, every line) and `list_integration_users`. Integration users are never counted as seats or managers and get every new line. A manager now needs all three products.
118
+ - `remove_user` releases only an end user's line, and only when no other end user holds it. Removing a manager, an integration user or anyone holding several lines never takes a line off anyone else. `sync_numbers` counts as lines only end users holding exactly one number.
119
+ - `SeatCustomer.exclude_user_ids` / `exclude_emails`: users every workflow ignores.
120
+ - `offboard_customer`: pause the After Call webhook, clear the First Alert webhook, stop the connector, deactivate integration users, deactivate the company.
121
+ - Connectors are matched on their phone-system domain. A re-run updates a connector in `error`, stopped or changed with the settings passed (including a new key) and restarts it; it never creates a second one.
122
+ - `parse_after_call_event` returns `UnknownEvent` for event types it doesn't handle, and takes `max_bytes` (256 KB, `MAX_EVENT_BYTES`; `PayloadTooLargeError` above it).
123
+ - Token stores may implement `lock()` for sharing tokens across processes; new `FileTokenStore`. A 429 on renewal retries the same refresh token instead of signing in.
124
+ - `Retry-After` is honoured up to 60 seconds; a longer one raises `RateLimitError` at once. `Client(login_rate_limit_wait=60)` makes the sign-in wait configurable.
125
+ - `Client(keep_unknown_fields=True)` keeps response fields the reference doesn't list yet on customer-lifecycle reads (never sign-in links; conversation-data reads always keep only documented fields).
126
+ - `base_url` must be https (http only for localhost). A `datetime` without a time zone is refused. Alert `numbers` send North American numbers as their last 10 digits.
127
+ - Exception text carries only the status, code and request id (plus text the SDK wrote); the server's text stays on `.message`.
128
+ - Examples: receivers read their path token from the environment and refuse one shorter than 32 characters; the After Call receiver caps bodies at 256 KB, stores each call id in a persistent queue before answering and reads the call before using it. `examples/after-call-sample.json` for local tests.
129
+ - `tools/generate.py` takes the spec path (required) and `--check`.
130
+
131
+ ## 0.1.0 (2026-11-16)
132
+
133
+ First release.
134
+
135
+ - Client with email and password sign-in for a dedicated integration user, automatic token renewal (single-use refresh tokens, renewal serialised across threads) and a pluggable token store.
136
+ - One method per API operation, grouped by reference section, with `iter_*` paging.
137
+ - Filters checked before sending: unknown filters, date-only values, enum values, up to 25 numbers and 50 location ids.
138
+ - Responses carry only the fields in the published reference.
139
+ - Read-merge-write helpers for every full-replacement write.
140
+ - User create with an idempotency key and recovery when a refused create left the user behind.
141
+ - Connector create, reactivate and deactivate wait for the final status, checking every 10 seconds for up to 10 minutes (`timeout=`, `ConnectorsAPI.check_interval`).
142
+ - Base Intelligence Seat workflows: provision a customer, add managers and end users, change an extension, remove a user, list users by type, sync numbers.
143
+ - Workflows email each user's invitation last, after their lines are mapped. Alert rules are created switched off and come on with the first manager (`activate_seat_alerts`).
144
+ - Conversation intelligence: calls, transcripts, recording links, alerts, tasks, insights.
145
+ - After Call and First Alert webhook configuration, After Call event parsing and de-duplication.
146
+ - New calls and alerts reach you on the After Call and First Alert webhooks (2026-11-17). `examples/alert_webhook_receiver.py` is a First Alert receiver: it reads only the alert id, answers at once and fetches the alert and its call with `get_alert(alert_id, with_call=True)`. The README covers a one-off catch-up after an outage.