supermemory 3.47.0__tar.gz → 3.48.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 (131) hide show
  1. supermemory-3.48.0/.release-please-manifest.json +3 -0
  2. {supermemory-3.47.0 → supermemory-3.48.0}/CHANGELOG.md +8 -0
  3. {supermemory-3.47.0 → supermemory-3.48.0}/PKG-INFO +1 -1
  4. {supermemory-3.47.0 → supermemory-3.48.0}/pyproject.toml +1 -1
  5. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_client.py +21 -1
  6. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_version.py +1 -1
  7. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/resources/settings.py +8 -0
  8. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/client_profile_params.py +15 -1
  9. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/profile_response.py +6 -3
  10. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/setting_get_response.py +14 -1
  11. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/setting_update_params.py +15 -2
  12. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/setting_update_response.py +14 -1
  13. {supermemory-3.47.0 → supermemory-3.48.0}/tests/api_resources/test_client.py +4 -0
  14. {supermemory-3.47.0 → supermemory-3.48.0}/tests/api_resources/test_settings.py +12 -0
  15. supermemory-3.47.0/.release-please-manifest.json +0 -3
  16. {supermemory-3.47.0 → supermemory-3.48.0}/.gitignore +0 -0
  17. {supermemory-3.47.0 → supermemory-3.48.0}/CONTRIBUTING.md +0 -0
  18. {supermemory-3.47.0 → supermemory-3.48.0}/LICENSE +0 -0
  19. {supermemory-3.47.0 → supermemory-3.48.0}/README.md +0 -0
  20. {supermemory-3.47.0 → supermemory-3.48.0}/SECURITY.md +0 -0
  21. {supermemory-3.47.0 → supermemory-3.48.0}/api.md +0 -0
  22. {supermemory-3.47.0 → supermemory-3.48.0}/bin/check-release-environment +0 -0
  23. {supermemory-3.47.0 → supermemory-3.48.0}/bin/publish-pypi +0 -0
  24. {supermemory-3.47.0 → supermemory-3.48.0}/examples/.keep +0 -0
  25. {supermemory-3.47.0 → supermemory-3.48.0}/noxfile.py +0 -0
  26. {supermemory-3.47.0 → supermemory-3.48.0}/release-please-config.json +0 -0
  27. {supermemory-3.47.0 → supermemory-3.48.0}/requirements-dev.lock +0 -0
  28. {supermemory-3.47.0 → supermemory-3.48.0}/requirements.lock +0 -0
  29. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/__init__.py +0 -0
  30. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_base_client.py +0 -0
  31. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_compat.py +0 -0
  32. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_constants.py +0 -0
  33. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_exceptions.py +0 -0
  34. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_files.py +0 -0
  35. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_models.py +0 -0
  36. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_qs.py +0 -0
  37. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_resource.py +0 -0
  38. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_response.py +0 -0
  39. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_streaming.py +0 -0
  40. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_types.py +0 -0
  41. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_utils/__init__.py +0 -0
  42. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_utils/_compat.py +0 -0
  43. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_utils/_datetime_parse.py +0 -0
  44. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_utils/_json.py +0 -0
  45. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_utils/_logs.py +0 -0
  46. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_utils/_path.py +0 -0
  47. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_utils/_proxy.py +0 -0
  48. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_utils/_reflection.py +0 -0
  49. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_utils/_resources_proxy.py +0 -0
  50. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_utils/_streams.py +0 -0
  51. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_utils/_sync.py +0 -0
  52. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_utils/_transform.py +0 -0
  53. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_utils/_typing.py +0 -0
  54. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/_utils/_utils.py +0 -0
  55. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/lib/.keep +0 -0
  56. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/py.typed +0 -0
  57. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/resources/__init__.py +0 -0
  58. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/resources/connections.py +0 -0
  59. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/resources/documents.py +0 -0
  60. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/resources/memories.py +0 -0
  61. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/resources/search.py +0 -0
  62. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/__init__.py +0 -0
  63. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/add_response.py +0 -0
  64. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/client_add_params.py +0 -0
  65. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_configure_params.py +0 -0
  66. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_configure_response.py +0 -0
  67. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_create_params.py +0 -0
  68. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_create_response.py +0 -0
  69. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_delete_by_id_params.py +0 -0
  70. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_delete_by_id_response.py +0 -0
  71. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_delete_by_provider_params.py +0 -0
  72. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_delete_by_provider_response.py +0 -0
  73. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_get_by_id_response.py +0 -0
  74. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_get_by_tag_params.py +0 -0
  75. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_get_by_tag_response.py +0 -0
  76. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_import_params.py +0 -0
  77. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_import_response.py +0 -0
  78. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_list_documents_params.py +0 -0
  79. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_list_documents_response.py +0 -0
  80. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_list_params.py +0 -0
  81. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_list_response.py +0 -0
  82. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_resources_params.py +0 -0
  83. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/connection_resources_response.py +0 -0
  84. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/document_add_params.py +0 -0
  85. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/document_add_response.py +0 -0
  86. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/document_batch_add_params.py +0 -0
  87. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/document_batch_add_response.py +0 -0
  88. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/document_delete_bulk_params.py +0 -0
  89. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/document_delete_bulk_response.py +0 -0
  90. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/document_get_response.py +0 -0
  91. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/document_list_params.py +0 -0
  92. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/document_list_processing_response.py +0 -0
  93. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/document_list_response.py +0 -0
  94. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/document_update_params.py +0 -0
  95. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/document_update_response.py +0 -0
  96. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/document_upload_file_params.py +0 -0
  97. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/document_upload_file_response.py +0 -0
  98. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/memory_forget_params.py +0 -0
  99. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/memory_forget_response.py +0 -0
  100. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/memory_update_memory_params.py +0 -0
  101. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/memory_update_memory_response.py +0 -0
  102. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/search_documents_params.py +0 -0
  103. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/search_documents_response.py +0 -0
  104. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/search_execute_params.py +0 -0
  105. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/search_execute_response.py +0 -0
  106. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/search_memories_params.py +0 -0
  107. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory/types/search_memories_response.py +0 -0
  108. {supermemory-3.47.0 → supermemory-3.48.0}/src/supermemory_new/lib/.keep +0 -0
  109. {supermemory-3.47.0 → supermemory-3.48.0}/tests/__init__.py +0 -0
  110. {supermemory-3.47.0 → supermemory-3.48.0}/tests/api_resources/__init__.py +0 -0
  111. {supermemory-3.47.0 → supermemory-3.48.0}/tests/api_resources/test_connections.py +0 -0
  112. {supermemory-3.47.0 → supermemory-3.48.0}/tests/api_resources/test_documents.py +0 -0
  113. {supermemory-3.47.0 → supermemory-3.48.0}/tests/api_resources/test_memories.py +0 -0
  114. {supermemory-3.47.0 → supermemory-3.48.0}/tests/api_resources/test_search.py +0 -0
  115. {supermemory-3.47.0 → supermemory-3.48.0}/tests/conftest.py +0 -0
  116. {supermemory-3.47.0 → supermemory-3.48.0}/tests/sample_file.txt +0 -0
  117. {supermemory-3.47.0 → supermemory-3.48.0}/tests/test_client.py +0 -0
  118. {supermemory-3.47.0 → supermemory-3.48.0}/tests/test_extract_files.py +0 -0
  119. {supermemory-3.47.0 → supermemory-3.48.0}/tests/test_files.py +0 -0
  120. {supermemory-3.47.0 → supermemory-3.48.0}/tests/test_models.py +0 -0
  121. {supermemory-3.47.0 → supermemory-3.48.0}/tests/test_qs.py +0 -0
  122. {supermemory-3.47.0 → supermemory-3.48.0}/tests/test_required_args.py +0 -0
  123. {supermemory-3.47.0 → supermemory-3.48.0}/tests/test_response.py +0 -0
  124. {supermemory-3.47.0 → supermemory-3.48.0}/tests/test_streaming.py +0 -0
  125. {supermemory-3.47.0 → supermemory-3.48.0}/tests/test_transform.py +0 -0
  126. {supermemory-3.47.0 → supermemory-3.48.0}/tests/test_utils/test_datetime_parse.py +0 -0
  127. {supermemory-3.47.0 → supermemory-3.48.0}/tests/test_utils/test_json.py +0 -0
  128. {supermemory-3.47.0 → supermemory-3.48.0}/tests/test_utils/test_path.py +0 -0
  129. {supermemory-3.47.0 → supermemory-3.48.0}/tests/test_utils/test_proxy.py +0 -0
  130. {supermemory-3.47.0 → supermemory-3.48.0}/tests/test_utils/test_typing.py +0 -0
  131. {supermemory-3.47.0 → supermemory-3.48.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "3.48.0"
3
+ }
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.48.0 (2026-06-20)
4
+
5
+ Full Changelog: [v3.47.0...v3.48.0](https://github.com/supermemoryai/python-sdk/compare/v3.47.0...v3.48.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([9ed1cba](https://github.com/supermemoryai/python-sdk/commit/9ed1cba81d04a41687621bc6ce66217527b06a31))
10
+
3
11
  ## 3.47.0 (2026-06-18)
4
12
 
5
13
  Full Changelog: [v3.46.0...v3.47.0](https://github.com/supermemoryai/python-sdk/compare/v3.46.0...v3.47.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: supermemory
3
- Version: 3.47.0
3
+ Version: 3.48.0
4
4
  Summary: The official Python library for the supermemory API
5
5
  Project-URL: Homepage, https://github.com/supermemoryai/python-sdk
6
6
  Project-URL: Repository, https://github.com/supermemoryai/python-sdk
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "supermemory"
3
- version = "3.47.0"
3
+ version = "3.48.0"
4
4
  description = "The official Python library for the supermemory API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import os
6
- from typing import TYPE_CHECKING, Any, Dict, Union, Mapping
6
+ from typing import TYPE_CHECKING, Any, Dict, List, Union, Mapping
7
7
  from typing_extensions import Self, Literal, override
8
8
 
9
9
  import httpx
@@ -334,7 +334,9 @@ class Supermemory(SyncAPIClient):
334
334
  self,
335
335
  *,
336
336
  container_tag: str,
337
+ buckets: SequenceNotStr[str] | Omit = omit,
337
338
  filters: client_profile_params.Filters | Omit = omit,
339
+ include: List[Literal["static", "dynamic", "buckets"]] | Omit = omit,
338
340
  q: str | Omit = omit,
339
341
  threshold: float | Omit = omit,
340
342
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -351,9 +353,15 @@ class Supermemory(SyncAPIClient):
351
353
  container_tag: Tag to filter the profile by. This can be an ID for your user, a project ID, or
352
354
  any other identifier you wish to use to filter memories.
353
355
 
356
+ buckets: Specific bucket keys to return. Omit to return all configured buckets. Only
357
+ relevant when "buckets" is included.
358
+
354
359
  filters: Optional metadata filters to apply to profile results and search results.
355
360
  Supports complex AND/OR queries with multiple conditions.
356
361
 
362
+ include: Profile sections to return. Omit to return all sections. Pass a subset to reduce
363
+ payload — e.g. ["buckets"] skips static and dynamic entirely.
364
+
357
365
  q: Optional search query to include search results in the response
358
366
 
359
367
  threshold: Threshold for search results. Only results with a score above this threshold
@@ -372,7 +380,9 @@ class Supermemory(SyncAPIClient):
372
380
  body=maybe_transform(
373
381
  {
374
382
  "container_tag": container_tag,
383
+ "buckets": buckets,
375
384
  "filters": filters,
385
+ "include": include,
376
386
  "q": q,
377
387
  "threshold": threshold,
378
388
  },
@@ -681,7 +691,9 @@ class AsyncSupermemory(AsyncAPIClient):
681
691
  self,
682
692
  *,
683
693
  container_tag: str,
694
+ buckets: SequenceNotStr[str] | Omit = omit,
684
695
  filters: client_profile_params.Filters | Omit = omit,
696
+ include: List[Literal["static", "dynamic", "buckets"]] | Omit = omit,
685
697
  q: str | Omit = omit,
686
698
  threshold: float | Omit = omit,
687
699
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -698,9 +710,15 @@ class AsyncSupermemory(AsyncAPIClient):
698
710
  container_tag: Tag to filter the profile by. This can be an ID for your user, a project ID, or
699
711
  any other identifier you wish to use to filter memories.
700
712
 
713
+ buckets: Specific bucket keys to return. Omit to return all configured buckets. Only
714
+ relevant when "buckets" is included.
715
+
701
716
  filters: Optional metadata filters to apply to profile results and search results.
702
717
  Supports complex AND/OR queries with multiple conditions.
703
718
 
719
+ include: Profile sections to return. Omit to return all sections. Pass a subset to reduce
720
+ payload — e.g. ["buckets"] skips static and dynamic entirely.
721
+
704
722
  q: Optional search query to include search results in the response
705
723
 
706
724
  threshold: Threshold for search results. Only results with a score above this threshold
@@ -719,7 +737,9 @@ class AsyncSupermemory(AsyncAPIClient):
719
737
  body=await async_maybe_transform(
720
738
  {
721
739
  "container_tag": container_tag,
740
+ "buckets": buckets,
722
741
  "filters": filters,
742
+ "include": include,
723
743
  "q": q,
724
744
  "threshold": threshold,
725
745
  },
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "supermemory"
4
- __version__ = "3.47.0" # x-release-please-version
4
+ __version__ = "3.48.0" # x-release-please-version
@@ -65,6 +65,7 @@ class SettingsResource(SyncAPIResource):
65
65
  onedrive_client_id: Optional[str] | Omit = omit,
66
66
  onedrive_client_secret: Optional[str] | Omit = omit,
67
67
  onedrive_custom_key_enabled: Optional[bool] | Omit = omit,
68
+ profile_buckets: Iterable[setting_update_params.ProfileBucket] | Omit = omit,
68
69
  should_llm_filter: Optional[bool] | Omit = omit,
69
70
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
70
71
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -77,6 +78,8 @@ class SettingsResource(SyncAPIResource):
77
78
  Update settings for an organization
78
79
 
79
80
  Args:
81
+ profile_buckets: Profile bucket definitions
82
+
80
83
  extra_headers: Send extra headers
81
84
 
82
85
  extra_query: Add additional query parameters to the request
@@ -105,6 +108,7 @@ class SettingsResource(SyncAPIResource):
105
108
  "onedrive_client_id": onedrive_client_id,
106
109
  "onedrive_client_secret": onedrive_client_secret,
107
110
  "onedrive_custom_key_enabled": onedrive_custom_key_enabled,
111
+ "profile_buckets": profile_buckets,
108
112
  "should_llm_filter": should_llm_filter,
109
113
  },
110
114
  setting_update_params.SettingUpdateParams,
@@ -176,6 +180,7 @@ class AsyncSettingsResource(AsyncAPIResource):
176
180
  onedrive_client_id: Optional[str] | Omit = omit,
177
181
  onedrive_client_secret: Optional[str] | Omit = omit,
178
182
  onedrive_custom_key_enabled: Optional[bool] | Omit = omit,
183
+ profile_buckets: Iterable[setting_update_params.ProfileBucket] | Omit = omit,
179
184
  should_llm_filter: Optional[bool] | Omit = omit,
180
185
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
181
186
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -188,6 +193,8 @@ class AsyncSettingsResource(AsyncAPIResource):
188
193
  Update settings for an organization
189
194
 
190
195
  Args:
196
+ profile_buckets: Profile bucket definitions
197
+
191
198
  extra_headers: Send extra headers
192
199
 
193
200
  extra_query: Add additional query parameters to the request
@@ -216,6 +223,7 @@ class AsyncSettingsResource(AsyncAPIResource):
216
223
  "onedrive_client_id": onedrive_client_id,
217
224
  "onedrive_client_secret": onedrive_client_secret,
218
225
  "onedrive_custom_key_enabled": onedrive_custom_key_enabled,
226
+ "profile_buckets": profile_buckets,
219
227
  "should_llm_filter": should_llm_filter,
220
228
  },
221
229
  setting_update_params.SettingUpdateParams,
@@ -2,9 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Union, Iterable
5
+ from typing import List, Union, Iterable
6
6
  from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
7
7
 
8
+ from .._types import SequenceNotStr
8
9
  from .._utils import PropertyInfo
9
10
 
10
11
  __all__ = [
@@ -335,12 +336,25 @@ class ClientProfileParams(TypedDict, total=False):
335
336
  to use to filter memories.
336
337
  """
337
338
 
339
+ buckets: SequenceNotStr[str]
340
+ """Specific bucket keys to return.
341
+
342
+ Omit to return all configured buckets. Only relevant when "buckets" is included.
343
+ """
344
+
338
345
  filters: Filters
339
346
  """Optional metadata filters to apply to profile results and search results.
340
347
 
341
348
  Supports complex AND/OR queries with multiple conditions.
342
349
  """
343
350
 
351
+ include: List[Literal["static", "dynamic", "buckets"]]
352
+ """Profile sections to return.
353
+
354
+ Omit to return all sections. Pass a subset to reduce payload — e.g. ["buckets"]
355
+ skips static and dynamic entirely.
356
+ """
357
+
344
358
  q: str
345
359
  """Optional search query to include search results in the response"""
346
360
 
@@ -1,6 +1,6 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- from typing import List, Optional
3
+ from typing import Dict, List, Optional
4
4
 
5
5
  from pydantic import Field as FieldInfo
6
6
 
@@ -10,10 +10,13 @@ __all__ = ["ProfileResponse", "Profile", "SearchResults"]
10
10
 
11
11
 
12
12
  class Profile(BaseModel):
13
- dynamic: List[str]
13
+ buckets: Optional[Dict[str, List[str]]] = None
14
+ """Per-bucket memory lists, keyed by bucket key"""
15
+
16
+ dynamic: Optional[List[str]] = None
14
17
  """Dynamic profile information (recent memories)"""
15
18
 
16
- static: List[str]
19
+ static: Optional[List[str]] = None
17
20
  """Static profile information that remains relevant long-term"""
18
21
 
19
22
 
@@ -6,7 +6,17 @@ from pydantic import Field as FieldInfo
6
6
 
7
7
  from .._models import BaseModel
8
8
 
9
- __all__ = ["SettingGetResponse"]
9
+ __all__ = ["SettingGetResponse", "ProfileBucket"]
10
+
11
+
12
+ class ProfileBucket(BaseModel):
13
+ """Definition of a single profile bucket"""
14
+
15
+ key: str
16
+ """Stable slug for the bucket, stored on each memory"""
17
+
18
+ description: Optional[str] = None
19
+ """What belongs in this bucket — used to guide the ingestion classifier."""
10
20
 
11
21
 
12
22
  class SettingGetResponse(BaseModel):
@@ -46,4 +56,7 @@ class SettingGetResponse(BaseModel):
46
56
 
47
57
  onedrive_custom_key_enabled: Optional[bool] = FieldInfo(alias="onedriveCustomKeyEnabled", default=None)
48
58
 
59
+ profile_buckets: Optional[List[ProfileBucket]] = FieldInfo(alias="profileBuckets", default=None)
60
+ """Profile bucket definitions"""
61
+
49
62
  should_llm_filter: Optional[bool] = FieldInfo(alias="shouldLLMFilter", default=None)
@@ -3,11 +3,11 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from typing import Dict, Union, Iterable, Optional
6
- from typing_extensions import Annotated, TypedDict
6
+ from typing_extensions import Required, Annotated, TypedDict
7
7
 
8
8
  from .._utils import PropertyInfo
9
9
 
10
- __all__ = ["SettingUpdateParams"]
10
+ __all__ = ["SettingUpdateParams", "ProfileBucket"]
11
11
 
12
12
 
13
13
  class SettingUpdateParams(TypedDict, total=False):
@@ -47,4 +47,17 @@ class SettingUpdateParams(TypedDict, total=False):
47
47
 
48
48
  onedrive_custom_key_enabled: Annotated[Optional[bool], PropertyInfo(alias="onedriveCustomKeyEnabled")]
49
49
 
50
+ profile_buckets: Annotated[Iterable[ProfileBucket], PropertyInfo(alias="profileBuckets")]
51
+ """Profile bucket definitions"""
52
+
50
53
  should_llm_filter: Annotated[Optional[bool], PropertyInfo(alias="shouldLLMFilter")]
54
+
55
+
56
+ class ProfileBucket(TypedDict, total=False):
57
+ """Definition of a single profile bucket"""
58
+
59
+ key: Required[str]
60
+ """Stable slug for the bucket, stored on each memory"""
61
+
62
+ description: str
63
+ """What belongs in this bucket — used to guide the ingestion classifier."""
@@ -6,7 +6,17 @@ from pydantic import Field as FieldInfo
6
6
 
7
7
  from .._models import BaseModel
8
8
 
9
- __all__ = ["SettingUpdateResponse", "Updated"]
9
+ __all__ = ["SettingUpdateResponse", "Updated", "UpdatedProfileBucket"]
10
+
11
+
12
+ class UpdatedProfileBucket(BaseModel):
13
+ """Definition of a single profile bucket"""
14
+
15
+ key: str
16
+ """Stable slug for the bucket, stored on each memory"""
17
+
18
+ description: Optional[str] = None
19
+ """What belongs in this bucket — used to guide the ingestion classifier."""
10
20
 
11
21
 
12
22
  class Updated(BaseModel):
@@ -46,6 +56,9 @@ class Updated(BaseModel):
46
56
 
47
57
  onedrive_custom_key_enabled: Optional[bool] = FieldInfo(alias="onedriveCustomKeyEnabled", default=None)
48
58
 
59
+ profile_buckets: Optional[List[UpdatedProfileBucket]] = FieldInfo(alias="profileBuckets", default=None)
60
+ """Profile bucket definitions"""
61
+
49
62
  should_llm_filter: Optional[bool] = FieldInfo(alias="shouldLLMFilter", default=None)
50
63
 
51
64
 
@@ -81,6 +81,7 @@ class TestClient:
81
81
  def test_method_profile_with_all_params(self, client: Supermemory) -> None:
82
82
  client_ = client.profile(
83
83
  container_tag="containerTag",
84
+ buckets=["string"],
84
85
  filters={
85
86
  "or_": [
86
87
  {
@@ -93,6 +94,7 @@ class TestClient:
93
94
  }
94
95
  ]
95
96
  },
97
+ include=["static"],
96
98
  q="q",
97
99
  threshold=0,
98
100
  )
@@ -194,6 +196,7 @@ class TestAsyncClient:
194
196
  async def test_method_profile_with_all_params(self, async_client: AsyncSupermemory) -> None:
195
197
  client = await async_client.profile(
196
198
  container_tag="containerTag",
199
+ buckets=["string"],
197
200
  filters={
198
201
  "or_": [
199
202
  {
@@ -206,6 +209,7 @@ class TestAsyncClient:
206
209
  }
207
210
  ]
208
211
  },
212
+ include=["static"],
209
213
  q="q",
210
214
  threshold=0,
211
215
  )
@@ -43,6 +43,12 @@ class TestSettings:
43
43
  onedrive_client_id="onedriveClientId",
44
44
  onedrive_client_secret="onedriveClientSecret",
45
45
  onedrive_custom_key_enabled=True,
46
+ profile_buckets=[
47
+ {
48
+ "key": "key",
49
+ "description": "description",
50
+ }
51
+ ],
46
52
  should_llm_filter=True,
47
53
  )
48
54
  assert_matches_type(SettingUpdateResponse, setting, path=["response"])
@@ -129,6 +135,12 @@ class TestAsyncSettings:
129
135
  onedrive_client_id="onedriveClientId",
130
136
  onedrive_client_secret="onedriveClientSecret",
131
137
  onedrive_custom_key_enabled=True,
138
+ profile_buckets=[
139
+ {
140
+ "key": "key",
141
+ "description": "description",
142
+ }
143
+ ],
132
144
  should_llm_filter=True,
133
145
  )
134
146
  assert_matches_type(SettingUpdateResponse, setting, path=["response"])
@@ -1,3 +0,0 @@
1
- {
2
- ".": "3.47.0"
3
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes