reconify-python 1.0.0__py3-none-any.whl → 2.0.0__py3-none-any.whl

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.
reconify/client.py CHANGED
@@ -26,12 +26,12 @@ from .resources import (
26
26
  )
27
27
  from .transport import AsyncTransport, RetryConfig, SyncTransport
28
28
 
29
- DEFAULT_BASE_URL = "https://api.reconifyhq.com/v1"
29
+ DEFAULT_BASE_URL = "https://api.reconifyhq.com/v2"
30
30
 
31
31
 
32
32
  def _normalize_base_url(base_url: str | None) -> str:
33
33
  value = (base_url or os.getenv("RECONIFY_API_URL") or DEFAULT_BASE_URL).rstrip("/")
34
- return value if value.endswith("/v1") else f"{value}/v1"
34
+ return value if value.endswith("/v2") else f"{value}/v2"
35
35
 
36
36
 
37
37
  def _api_key(api_key: str | None) -> str:
@@ -22,19 +22,35 @@ ASYNC_RESOURCE_CLASSES = {
22
22
  }
23
23
 
24
24
  OPERATION_SPECS = {
25
- "get_api_info": ("metadata", "GET", "/"),
26
- "list_events": ("events", "GET", "/events"),
27
- "ingest_monitoring_events": ("ingestion", "POST", "/events"),
28
- "get_event": ("events", "GET", "/events/{event_id}"),
29
- "get_health": ("metadata", "GET", "/health"),
30
- "list_issues": ("issues", "GET", "/issues"),
31
- "get_issue": ("issues", "GET", "/issues/{issue_id}"),
32
- "update_issue": ("issues", "PATCH", "/issues/{issue_id}"),
33
- "list_issue_events": ("events", "GET", "/issues/{issue_id}/events"),
34
- "list_issue_notes": ("issues", "GET", "/issues/{issue_id}/notes"),
35
- "add_issue_note": ("issues", "POST", "/issues/{issue_id}/notes"),
36
- "get_organization": ("organization", "GET", "/organization"),
37
- "list_organization_members": ("organization", "GET", "/organization/members"),
25
+ "api_info_get": ("metadata", "GET", "/"),
26
+ "events_list": ("events", "GET", "/events"),
27
+ "events_ingest": ("ingestion", "POST", "/events"),
28
+ "events_get": ("events", "GET", "/events/{event_id}"),
29
+ "health_get": ("metadata", "GET", "/health"),
30
+ "issues_list": ("issues", "GET", "/issues"),
31
+ "issues_get": ("issues", "GET", "/issues/{issue_id}"),
32
+ "issues_assign": ("issues", "PATCH", "/issues/{issue_id}"),
33
+ "issues_list_events": ("events", "GET", "/issues/{issue_id}/events"),
34
+ "issues_list_notes": ("issues", "GET", "/issues/{issue_id}/notes"),
35
+ "issues_add_note": ("issues", "POST", "/issues/{issue_id}/notes"),
36
+ "organization_get": ("organization", "GET", "/organization"),
37
+ "organization_list_members": ("organization", "GET", "/organization/members"),
38
+ }
39
+
40
+ OPERATION_METHODS = {
41
+ "api_info_get": "get_api_info",
42
+ "events_list": "list_events",
43
+ "events_ingest": "ingest_monitoring_events",
44
+ "events_get": "get_event",
45
+ "health_get": "get_health",
46
+ "issues_list": "list_issues",
47
+ "issues_get": "get_issue",
48
+ "issues_assign": "update_issue",
49
+ "issues_list_events": "list_issue_events",
50
+ "issues_list_notes": "list_issue_notes",
51
+ "issues_add_note": "add_issue_note",
52
+ "organization_get": "get_organization",
53
+ "organization_list_members": "list_organization_members",
38
54
  }
39
55
 
40
56
  __all__ = [
@@ -50,5 +66,6 @@ __all__ = [
50
66
  "Organization",
51
67
  "ASYNC_RESOURCE_CLASSES",
52
68
  "OPERATION_SPECS",
69
+ "OPERATION_METHODS",
53
70
  "SYNC_RESOURCE_CLASSES",
54
71
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: reconify-python
3
- Version: 1.0.0
3
+ Version: 2.0.0
4
4
  Summary: Typed Python client for the Reconify Public API
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -18,7 +18,7 @@ Description-Content-Type: text/markdown
18
18
 
19
19
  # Reconify Python SDK
20
20
 
21
- Typed synchronous and asynchronous clients for the public Reconify v1 API.
21
+ Typed synchronous and asynchronous clients for the public Reconify v2 API.
22
22
 
23
23
  ## Installation and quickstart
24
24
 
@@ -36,8 +36,8 @@ with Reconify(api_key="rk_...") as client:
36
36
  ```
37
37
 
38
38
  The API key may also come from `RECONIFY_API_KEY`. The default endpoint is
39
- `https://api.reconifyhq.com/v1`. `RECONIFY_API_URL` or `base_url` can select a
40
- staging or self-hosted endpoint, and URLs with or without `/v1` are accepted.
39
+ `https://api.reconifyhq.com/v2`. `RECONIFY_API_URL` or `base_url` can select a
40
+ staging or self-hosted endpoint, and URLs with or without `/v2` are accepted.
41
41
 
42
42
  ## Public resources
43
43
 
@@ -74,11 +74,11 @@ The default source is the public manifest at
74
74
  set `RECONIFY_OPENAPI_SPEC` to an explicit OpenAPI JSON file. The SDK never
75
75
  depends on another checkout or an absolute workspace path.
76
76
 
77
- ## Migration to 1.0.0
77
+ ## Migration to 2.0.0
78
78
 
79
- Version `1.0.0` targets the current monitoring and issue-investigation API. The
80
- former ledger, wallet, setup, search, alert, and reconciliation methods are
81
- removed because they are not part of the public contract. See
79
+ Version `2.0.0` targets the v2 monitoring and issue-investigation API at `/v2`.
80
+ Generated operation IDs use stable `resource_action` identifiers while the
81
+ Python resource methods retain their snake_case names. See
82
82
  [UPGRADING.md](UPGRADING.md).
83
83
 
84
84
  ## Build and release
@@ -1,18 +1,18 @@
1
1
  reconify/__init__.py,sha256=JN3srG4copTiM5yf6o8npvUSMYSgWysmzAPc75XBloQ,878
2
- reconify/client.py,sha256=9O-TJmzDiym4TD2fYy1JfoAXbQg2KpPZ8Cr6osQr17Y,4781
2
+ reconify/client.py,sha256=HAqFxIbDSWHu5GNOJHENlI-gV28lNjwwOO6lrMzKrFI,4781
3
3
  reconify/errors.py,sha256=Dt9UVBSt34jL09AnYWRDKk0UEu70UpmDhQI_MyOzrkM,4185
4
4
  reconify/models.py,sha256=XInYd-wUbdW2eyXnRpqLuEKKeu57ZS_bm3_bphAf9T4,5965
5
5
  reconify/pagination.py,sha256=pub9BQojyGVCfn5jIGJsP2JjCtONZF2LtmWnFg-Tpfw,3487
6
6
  reconify/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  reconify/transport.py,sha256=lU0nTvDqBhQw2YS1Y9Zusxxpagfdz87zOfaTrRrxcS4,10668
8
- reconify/resources/__init__.py,sha256=MTe5E0TjDFsYpA4P-_5ljSqb2YSK059L64ksUT_dAHE,1756
8
+ reconify/resources/__init__.py,sha256=HXq7cpK7z074xpaBq_a63gQpCKN8OYQ8Sy45b2rYK7s,2324
9
9
  reconify/resources/base.py,sha256=qHZm6LuIPJmLTKAjj221QaWuUi0aorIa8GWeWB4qtDs,3279
10
10
  reconify/resources/events.py,sha256=Xf-udDFMHF2wPYUkK4HZcq10OTpEb5i831sG5RcP9VY,1858
11
11
  reconify/resources/ingestion.py,sha256=Azbfhq2yUb_CsCuedDRfs5U_0MSyzfrmrB1n3U2NJ6U,968
12
12
  reconify/resources/issues.py,sha256=xljattrDPojWac8MGhk7fF3JAJoitwqAo6-OLABvNBo,3774
13
13
  reconify/resources/metadata.py,sha256=lhCcERUaGtCbKc6d9I3U3iClNu9oHEhxnDeqUSkRri4,904
14
14
  reconify/resources/organization.py,sha256=dQy8Ekd51ldep6IDP1_suz64GE1WX_7dhmQUhsvgsJ0,1295
15
- reconify_python-1.0.0.dist-info/METADATA,sha256=5pbWZniFeq9zN8SVEAnmTViKGY1LZHfSgGgiPAtC-Yk,3039
16
- reconify_python-1.0.0.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
17
- reconify_python-1.0.0.dist-info/licenses/LICENSE,sha256=q4Eqlx9sTPEY6DaOMuTjXAtVA7uEjxZkcvaJzcuYaIw,1065
18
- reconify_python-1.0.0.dist-info/RECORD,,
15
+ reconify_python-2.0.0.dist-info/METADATA,sha256=kNn2bPH4L9esnRKuhXslDQyrBHjwUP2mVDw3ifLmqWw,3035
16
+ reconify_python-2.0.0.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
17
+ reconify_python-2.0.0.dist-info/licenses/LICENSE,sha256=q4Eqlx9sTPEY6DaOMuTjXAtVA7uEjxZkcvaJzcuYaIw,1065
18
+ reconify_python-2.0.0.dist-info/RECORD,,