intelligence-cloud 0.1.0__tar.gz → 0.1.1__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 (39) hide show
  1. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/CHANGELOG.md +4 -0
  2. intelligence_cloud-0.1.1/CONTRIBUTING.md +19 -0
  3. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/PKG-INFO +2 -2
  4. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/README.md +1 -1
  5. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/pyproject.toml +1 -1
  6. intelligence_cloud-0.1.1/src/intelligence_cloud/_version.py +1 -0
  7. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/src/intelligence_cloud/workflows.py +3 -3
  8. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/tests/live/test_live.py +1 -1
  9. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/tests/unit/test_workflows.py +9 -2
  10. intelligence_cloud-0.1.0/src/intelligence_cloud/_version.py +0 -1
  11. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/.gitignore +0 -0
  12. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/LICENSE +0 -0
  13. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/SECURITY.md +0 -0
  14. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/examples/_common.py +0 -0
  15. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/examples/after-call-sample.json +0 -0
  16. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/examples/alert_webhook_receiver.py +0 -0
  17. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/examples/export_calls.py +0 -0
  18. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/examples/provision_seat.py +0 -0
  19. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/examples/webhook_receiver.py +0 -0
  20. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/examples/whoami.py +0 -0
  21. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/src/intelligence_cloud/__init__.py +0 -0
  22. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/src/intelligence_cloud/_base.py +0 -0
  23. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/src/intelligence_cloud/_generated.py +0 -0
  24. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/src/intelligence_cloud/_spec.py +0 -0
  25. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/src/intelligence_cloud/auth.py +0 -0
  26. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/src/intelligence_cloud/client.py +0 -0
  27. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/src/intelligence_cloud/data/spec.json +0 -0
  28. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/src/intelligence_cloud/errors.py +0 -0
  29. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/src/intelligence_cloud/intelligence.py +0 -0
  30. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/src/intelligence_cloud/py.typed +0 -0
  31. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/src/intelligence_cloud/receiver.py +0 -0
  32. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/src/intelligence_cloud/resources.py +0 -0
  33. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/tests/__init__.py +0 -0
  34. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/tests/unit/__init__.py +0 -0
  35. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/tests/unit/fake_api.py +0 -0
  36. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/tests/unit/test_client.py +0 -0
  37. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/tests/unit/test_intelligence.py +0 -0
  38. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/tests/unit/test_review2.py +0 -0
  39. {intelligence_cloud-0.1.0 → intelligence_cloud-0.1.1}/tools/generate.py +0 -0
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1 (2026-11-29)
4
+
5
+ - 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.
6
+
3
7
  ## 0.1.0: Base Intelligence Seat manager lines (2026-11-18)
4
8
 
5
9
  - 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.
@@ -0,0 +1,19 @@
1
+ # Contributing
2
+
3
+ Thanks for your interest in the Intelligence Cloud SDK. Tresic maintains this SDK.
4
+
5
+ ## Pull requests
6
+
7
+ We don't accept code contributions from outside Tresic. Pull requests from outside contributors are closed without being merged, so that all code in the SDK is owned by Tresic and covered by its licence (see `LICENSE`). If you have a fix in mind, describe it in an issue instead.
8
+
9
+ ## Bugs and feature requests
10
+
11
+ Open a GitHub issue, or write to support@tresic.cloud or your provider. Issues are public, so never include tokens, passwords, API keys, webhook URLs, recording links, phone numbers, names or any conversation content. Include the SDK version, your runtime version, the method you called and the `request_id` from the error.
12
+
13
+ ## Security issues
14
+
15
+ Don't open an issue. Report vulnerabilities to security@tresic.cloud, as described in `SECURITY.md` and at https://docs.intelligence.cloud/security.
16
+
17
+ ## Feedback
18
+
19
+ Suggestions and feedback you send may be used by Tresic without obligation to you, as the Intelligence Cloud API and SDK Terms (https://docs.intelligence.cloud/terms/api) set out.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: intelligence-cloud
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Python client for the Intelligence Cloud partner API: customer lifecycle and conversation intelligence.
5
5
  Project-URL: Homepage, https://docs.intelligence.cloud
6
6
  Project-URL: Documentation, https://docs.intelligence.cloud/api
@@ -44,7 +44,7 @@ Python client for the Intelligence Cloud partner API. It covers both jobs:
44
44
  - **Customer lifecycle** with admin credentials (a reseller admin login): companies, locations, users, products, connectors, First Alert, Insights Hub, and the Base Intelligence Seat workflows.
45
45
  - **Conversation intelligence** with frontline credentials (a frontline user login): calls, transcripts, recordings, alerts, tasks, insights, and the After Call webhook.
46
46
 
47
- Version 0.1.0. Python 3.10 or later. One dependency: `httpx` (0.27 or later).
47
+ Version 0.1.1. Python 3.10 or later. One dependency: `httpx` (0.27 or later).
48
48
 
49
49
  The API reference is at https://docs.intelligence.cloud/reference.html, built from https://docs.intelligence.cloud/openapi.yaml.
50
50
 
@@ -5,7 +5,7 @@ Python client for the Intelligence Cloud partner API. It covers both jobs:
5
5
  - **Customer lifecycle** with admin credentials (a reseller admin login): companies, locations, users, products, connectors, First Alert, Insights Hub, and the Base Intelligence Seat workflows.
6
6
  - **Conversation intelligence** with frontline credentials (a frontline user login): calls, transcripts, recordings, alerts, tasks, insights, and the After Call webhook.
7
7
 
8
- Version 0.1.0. Python 3.10 or later. One dependency: `httpx` (0.27 or later).
8
+ Version 0.1.1. Python 3.10 or later. One dependency: `httpx` (0.27 or later).
9
9
 
10
10
  The API reference is at https://docs.intelligence.cloud/reference.html, built from https://docs.intelligence.cloud/openapi.yaml.
11
11
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "intelligence-cloud"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "Python client for the Intelligence Cloud partner API: customer lifecycle and conversation intelligence."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -0,0 +1 @@
1
+ __version__ = "0.1.1"
@@ -272,7 +272,7 @@ class Workflows(Namespace):
272
272
  if spec.connector is not None:
273
273
  self._ensure_connector(location_id, spec, result)
274
274
 
275
- # 7. Insights Hub: group access + every call at the location
275
+ # 7. Insights Hub: group access; only the listed lines are covered ("monitor all numbers" stays off)
276
276
  setup = unwrap(c.insights_hub.get_insights_hub_setup(location_id)) or {}
277
277
  access = setup.get("group_access") or []
278
278
  if result.insights_hub_group_id not in access:
@@ -282,8 +282,8 @@ class Workflows(Namespace):
282
282
  else:
283
283
  c.insights_hub.add_groups(location_id, [result.insights_hub_group_id])
284
284
  cfg = unwrap(c.insights_hub.get_insights_hub_config(location_id)) or {}
285
- if not cfg.get("monitor_all_numbers"):
286
- c.insights_hub.update_insights_hub_config(location_id, {"monitor_all_numbers": True})
285
+ if cfg.get("monitor_all_numbers"):
286
+ c.insights_hub.update_insights_hub_config(location_id, {"monitor_all_numbers": False})
287
287
 
288
288
  # 8. SSO domain claim (optional): the customer publishes the TXT record, then verify
289
289
  if spec.sso_domain:
@@ -221,7 +221,7 @@ def test_provision_seat_customer(admin, customer):
221
221
  assert [g["id"] for g in threat["groups"]] == [customer.manager_alerts_group_id]
222
222
  setup = unwrap(admin.insights_hub.get_insights_hub_setup(customer.location_id))
223
223
  assert customer.insights_hub_group_id in setup["group_access"]
224
- assert unwrap(admin.insights_hub.get_insights_hub_config(customer.location_id))["monitor_all_numbers"] is True
224
+ assert unwrap(admin.insights_hub.get_insights_hub_config(customer.location_id))["monitor_all_numbers"] is False
225
225
  raw_keys(admin, "getConnector", {"locationId": customer.location_id, "connectorId": customer.connector_id})
226
226
  raw_keys(admin, "getCompany", {"companyId": customer.company_id})
227
227
 
@@ -48,7 +48,7 @@ def test_provision_call_sequence(api):
48
48
  ("POST", r"/resellers/[^/]+/companies"), ("PATCH", r"/companies/[^/]+"),
49
49
  ("POST", r"/companies/[^/]+/locations"), ("POST", r"/locations/[^/]+/user-groups"),
50
50
  ("POST", r"/locations/[^/]+/first-alert/rules"), ("POST", r"/locations/[^/]+/connectors"),
51
- ("POST", r"/locations/[^/]+/insights-hub/setup"), ("PATCH", r"/locations/[^/]+/insights-hub/config"),
51
+ ("POST", r"/locations/[^/]+/insights-hub/setup"),
52
52
  ("POST", r"/companies/[^/]+/domains"),
53
53
  ]
54
54
  import re
@@ -72,7 +72,8 @@ def test_provision_call_sequence(api):
72
72
  assert api.count("PATCH", r"/locations/[^/]+/first-alert/rules/[^/]+") == 0
73
73
  assert all(r["groups"] == [{"id": cust.manager_alerts_group_id}] for r in rules.values())
74
74
  assert api.ih_setup[cust.location_id]["group_access"] == [cust.insights_hub_group_id]
75
- assert api.ih_config[cust.location_id] is True
75
+ assert api.ih_config.get(cust.location_id, False) is False # "monitor all numbers" stays off
76
+ assert api.count("PATCH", r"/locations/[^/]+/insights-hub/config") == 0
76
77
  assert cust.connector_status == "active" and cust.connector_id
77
78
  assert cust.sso_txt_record == {"name": "_ic-verify.riverbend.example.com", "value": "abc"}
78
79
  assert "company" in cust.created and not cust.existing
@@ -82,6 +83,12 @@ def test_provision_call_sequence(api):
82
83
  "enabled_products"}
83
84
 
84
85
 
86
+ def test_rerun_switches_monitor_all_off(api, customer):
87
+ api.ih_config[customer.location_id] = True # as a 0.1.0 run left it
88
+ api.client().workflows.provision_seat_customer(spec())
89
+ assert api.ih_config[customer.location_id] is False
90
+
91
+
85
92
  def test_provision_is_idempotent(api, customer):
86
93
  before = len(api.calls)
87
94
  again = api.client().workflows.provision_seat_customer(spec())
@@ -1 +0,0 @@
1
- __version__ = "0.1.0"