better-notion 1.8.9__py3-none-any.whl → 1.9.1__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.
@@ -13,7 +13,7 @@ import typer
13
13
 
14
14
  from better_notion._cli.response import format_error, format_success
15
15
  from better_notion._sdk.client import NotionClient
16
- from better_notion.utils.agents import ProjectContext, get_or_create_agent_id
16
+ from better_notion.utils.agents import get_or_create_agent_id
17
17
 
18
18
 
19
19
  def get_client() -> NotionClient:
@@ -1034,10 +1034,13 @@ def ideas_create(
1034
1034
  "rich_text": [{"text": {"content": context}}]
1035
1035
  }
1036
1036
 
1037
- response = await client._api.request(
1038
- method="POST",
1039
- path=f"databases/{database_id}",
1040
- json={"properties": properties},
1037
+ response = await client._api._request(
1038
+ "POST",
1039
+ "/pages",
1040
+ json={
1041
+ "parent": {"database_id": database_id},
1042
+ "properties": properties
1043
+ },
1041
1044
  )
1042
1045
 
1043
1046
  return format_success({
@@ -1329,10 +1332,13 @@ def work_issues_create(
1329
1332
  if task_id:
1330
1333
  properties["task_id"] = {"relation": [{"id": task_id}]}
1331
1334
 
1332
- response = await client._api.request(
1333
- method="POST",
1334
- path=f"databases/{database_id}",
1335
- json={"properties": properties},
1335
+ response = await client._api._request(
1336
+ "POST",
1337
+ "/pages",
1338
+ json={
1339
+ "parent": {"database_id": database_id},
1340
+ "properties": properties
1341
+ },
1336
1342
  )
1337
1343
 
1338
1344
  return format_success({
@@ -1580,10 +1586,13 @@ def incidents_create(
1580
1586
  "rich_text": [{"text": {"content": root_cause}}]
1581
1587
  }
1582
1588
 
1583
- response = await client._api.request(
1584
- method="POST",
1585
- path=f"databases/{database_id}",
1586
- json={"properties": properties},
1589
+ response = await client._api._request(
1590
+ "POST",
1591
+ "/pages",
1592
+ json={
1593
+ "parent": {"database_id": database_id},
1594
+ "properties": properties
1595
+ },
1587
1596
  )
1588
1597
 
1589
1598
  return format_success({
@@ -604,7 +604,7 @@ class IdeaManager:
604
604
  "and": filters
605
605
  }
606
606
 
607
- response = await self._client._api.request(
607
+ response = await self._client._api._request(
608
608
  method="POST",
609
609
  path=f"databases/{database_id}/query",
610
610
  json=query,
@@ -733,7 +733,7 @@ class WorkIssueManager:
733
733
  "and": filters
734
734
  }
735
735
 
736
- response = await self._client._api.request(
736
+ response = await self._client._api._request(
737
737
  method="POST",
738
738
  path=f"databases/{database_id}/query",
739
739
  json=query,
@@ -815,7 +815,7 @@ class WorkIssueManager:
815
815
  "rich_text": [{"text": {"content": context}}]
816
816
  }
817
817
 
818
- response = await self._client._api.request(
818
+ response = await self._client._api._request(
819
819
  method="POST",
820
820
  path=f"databases/{database_id}",
821
821
  json={"properties": properties},
@@ -909,7 +909,7 @@ class IncidentManager:
909
909
  "and": filters
910
910
  }
911
911
 
912
- response = await self._client._api.request(
912
+ response = await self._client._api._request(
913
913
  method="POST",
914
914
  path=f"databases/{database_id}/query",
915
915
  json=query,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: better-notion
3
- Version: 1.8.9
3
+ Version: 1.9.1
4
4
  Summary: A high-level Python SDK for the Notion API with developer experience in mind.
5
5
  Project-URL: Homepage, https://github.com/nesalia-inc/better-notion
6
6
  Project-URL: Documentation, https://github.com/nesalia-inc/better-notion#readme
@@ -113,11 +113,11 @@ better_notion/plugins/loader.py,sha256=zCWsMdJyvZs1IHFm0zjEiqm_l_5jB1Uw4x30Kq8rL
113
113
  better_notion/plugins/state.py,sha256=jH_tZWvC35hqLO4qwl2Kwq9ziWVavwCEUcCqy3s5wMY,3780
114
114
  better_notion/plugins/official/__init__.py,sha256=rPg5vdk1cEANVstMPzxcWmImtsOpdSR40JSml7h1uUk,426
115
115
  better_notion/plugins/official/agents.py,sha256=3ibh88XPu3ykNuq1FTfXP_yECaz7pzIXqLngX0MW5-I,51627
116
- better_notion/plugins/official/agents_cli.py,sha256=PwkPBv2l0GHdRmkMM8dkb1i_Q60FrvZZcil_p6ZaA6U,52193
116
+ better_notion/plugins/official/agents_cli.py,sha256=JVQmYQ9zwCLe1QLqRq0LJSA8xoNOOE8MWhC-ZtuX0v0,52393
117
117
  better_notion/plugins/official/agents_schema.py,sha256=NQRAJFoBAXRuxB9_9Eaf-4tVth-1OZh7GjmN56Yp9lA,39867
118
118
  better_notion/plugins/official/productivity.py,sha256=_-whP4pYA4HufE1aUFbIdhrjU-O9njI7xUO_Id2M1J8,8726
119
119
  better_notion/plugins/official/agents_sdk/__init__.py,sha256=luQBzZLsJ7fC5U0jFu8dfzMviiXj2SBZXcTohM53wkQ,725
120
- better_notion/plugins/official/agents_sdk/managers.py,sha256=0zMZPu63zhdyqiudO2gKsmM3YOJh0nFAR9FrMlwkV2A,31186
120
+ better_notion/plugins/official/agents_sdk/managers.py,sha256=DyoGSnXjLLJVmAkMCyaHK33cvzksRuxrj3-3hNz4s2M,31190
121
121
  better_notion/plugins/official/agents_sdk/models.py,sha256=Qsh02QpwNtezxEBdFF--W_TCfeouhXDInjfewApu1yI,83151
122
122
  better_notion/plugins/official/agents_sdk/plugin.py,sha256=bs9O8Unv6SARGj4lBU5Gj9HGbLTUNqTacJ3RLUhdbI4,4479
123
123
  better_notion/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -133,8 +133,8 @@ better_notion/utils/agents/rbac.py,sha256=8ZA8Y7wbOiVZDbpjpH7iC35SZrZ0jl4fcJ3xWC
133
133
  better_notion/utils/agents/schemas.py,sha256=eHfGhY90FAPXA3E8qE6gP75dgNzn-9z5Ju1FMwBKnQQ,22120
134
134
  better_notion/utils/agents/state_machine.py,sha256=xUBEeDTbU1Xq-rsRo2sbr6AUYpYrV9DTHOtZT2cWES8,6699
135
135
  better_notion/utils/agents/workspace.py,sha256=Uy8bqLsT_VFGYAPoiQJNuCvGdjMceaSiVGbR9saMpoU,16558
136
- better_notion-1.8.9.dist-info/METADATA,sha256=8R9xMeceQgNrlp-z-emUyVLZVdPm8prDXhsaimT_DVo,11096
137
- better_notion-1.8.9.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
138
- better_notion-1.8.9.dist-info/entry_points.txt,sha256=D0bUcP7Z00Zyjxw7r2p29T95UrwioDO0aGDoHe9I6fo,55
139
- better_notion-1.8.9.dist-info/licenses/LICENSE,sha256=BAdN3JpgMY_y_fWqZSCFSvSbC2mTHP-BKDAzF5FXQAI,1069
140
- better_notion-1.8.9.dist-info/RECORD,,
136
+ better_notion-1.9.1.dist-info/METADATA,sha256=XajCrN5zk-6THUfMStgrI46WoVpTXG5Tgnagsdr1URg,11096
137
+ better_notion-1.9.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
138
+ better_notion-1.9.1.dist-info/entry_points.txt,sha256=D0bUcP7Z00Zyjxw7r2p29T95UrwioDO0aGDoHe9I6fo,55
139
+ better_notion-1.9.1.dist-info/licenses/LICENSE,sha256=BAdN3JpgMY_y_fWqZSCFSvSbC2mTHP-BKDAzF5FXQAI,1069
140
+ better_notion-1.9.1.dist-info/RECORD,,