supermemory 3.0.0a1__py3-none-any.whl → 3.0.0a19__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.
Files changed (32) hide show
  1. supermemory/__init__.py +2 -1
  2. supermemory/_base_client.py +44 -2
  3. supermemory/_client.py +1 -9
  4. supermemory/_models.py +2 -0
  5. supermemory/_types.py +2 -0
  6. supermemory/_version.py +1 -1
  7. supermemory/resources/__init__.py +0 -14
  8. supermemory/resources/connections.py +30 -117
  9. supermemory/resources/memories.py +100 -137
  10. supermemory/resources/settings.py +47 -11
  11. supermemory/types/__init__.py +0 -7
  12. supermemory/types/connection_create_params.py +5 -3
  13. supermemory/types/connection_get_response.py +4 -0
  14. supermemory/types/memory_add_params.py +28 -0
  15. supermemory/types/memory_get_response.py +87 -1
  16. supermemory/types/memory_update_params.py +28 -0
  17. supermemory/types/setting_get_response.py +36 -2
  18. supermemory/types/setting_update_params.py +30 -6
  19. supermemory/types/setting_update_response.py +34 -8
  20. {supermemory-3.0.0a1.dist-info → supermemory-3.0.0a19.dist-info}/METADATA +46 -9
  21. supermemory-3.0.0a19.dist-info/RECORD +48 -0
  22. supermemory/resources/search.py +0 -296
  23. supermemory/types/connection_list_params.py +0 -13
  24. supermemory/types/connection_list_response.py +0 -25
  25. supermemory/types/memory_delete_response.py +0 -9
  26. supermemory/types/memory_list_params.py +0 -24
  27. supermemory/types/memory_list_response.py +0 -95
  28. supermemory/types/search_execute_params.py +0 -86
  29. supermemory/types/search_execute_response.py +0 -52
  30. supermemory-3.0.0a1.dist-info/RECORD +0 -56
  31. {supermemory-3.0.0a1.dist-info → supermemory-3.0.0a19.dist-info}/WHEEL +0 -0
  32. {supermemory-3.0.0a1.dist-info → supermemory-3.0.0a19.dist-info}/licenses/LICENSE +0 -0
@@ -3,12 +3,11 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from typing import Dict, List, Union, Mapping, cast
6
- from typing_extensions import Literal
7
6
 
8
7
  import httpx
9
8
 
10
- from ..types import memory_add_params, memory_list_params, memory_update_params, memory_upload_file_params
11
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
9
+ from ..types import memory_add_params, memory_update_params, memory_upload_file_params
10
+ from .._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, FileTypes
12
11
  from .._utils import extract_files, maybe_transform, deepcopy_minimal, async_maybe_transform
13
12
  from .._compat import cached_property
14
13
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -21,8 +20,6 @@ from .._response import (
21
20
  from .._base_client import make_request_options
22
21
  from ..types.memory_add_response import MemoryAddResponse
23
22
  from ..types.memory_get_response import MemoryGetResponse
24
- from ..types.memory_list_response import MemoryListResponse
25
- from ..types.memory_delete_response import MemoryDeleteResponse
26
23
  from ..types.memory_update_response import MemoryUpdateResponse
27
24
  from ..types.memory_upload_file_response import MemoryUploadFileResponse
28
25
 
@@ -55,6 +52,7 @@ class MemoriesResource(SyncAPIResource):
55
52
  *,
56
53
  content: str,
57
54
  container_tags: List[str] | NotGiven = NOT_GIVEN,
55
+ custom_id: str | NotGiven = NOT_GIVEN,
58
56
  metadata: Dict[str, Union[str, float, bool]] | NotGiven = NOT_GIVEN,
59
57
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
60
58
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -67,6 +65,27 @@ class MemoriesResource(SyncAPIResource):
67
65
  Update a memory with any content type (text, url, file, etc.) and metadata
68
66
 
69
67
  Args:
68
+ content: The content to extract and process into a memory. This can be a URL to a
69
+ website, a PDF, an image, or a video.
70
+
71
+ Plaintext: Any plaintext format
72
+
73
+ URL: A URL to a website, PDF, image, or video
74
+
75
+ We automatically detect the content type from the url's response format.
76
+
77
+ container_tags: Optional tags this memory should be containerized by. This can be an ID for your
78
+ user, a project ID, or any other identifier you wish to use to group memories.
79
+
80
+ custom_id: Optional custom ID of the memory. This could be an ID from your database that
81
+ will uniquely identify this memory.
82
+
83
+ metadata: Optional metadata for the memory. This is used to store additional information
84
+ about the memory. You can use this to store any additional information you need
85
+ about the memory. Metadata can be filtered through. Keys must be strings and are
86
+ case sensitive. Values can be strings, numbers, or booleans. You cannot nest
87
+ objects.
88
+
70
89
  extra_headers: Send extra headers
71
90
 
72
91
  extra_query: Add additional query parameters to the request
@@ -83,6 +102,7 @@ class MemoriesResource(SyncAPIResource):
83
102
  {
84
103
  "content": content,
85
104
  "container_tags": container_tags,
105
+ "custom_id": custom_id,
86
106
  "metadata": metadata,
87
107
  },
88
108
  memory_update_params.MemoryUpdateParams,
@@ -93,64 +113,6 @@ class MemoriesResource(SyncAPIResource):
93
113
  cast_to=MemoryUpdateResponse,
94
114
  )
95
115
 
96
- def list(
97
- self,
98
- *,
99
- filters: str | NotGiven = NOT_GIVEN,
100
- limit: str | NotGiven = NOT_GIVEN,
101
- order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
102
- page: str | NotGiven = NOT_GIVEN,
103
- sort: Literal["createdAt", "updatedAt"] | NotGiven = NOT_GIVEN,
104
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
105
- # The extra values given here take precedence over values defined on the client or passed to this method.
106
- extra_headers: Headers | None = None,
107
- extra_query: Query | None = None,
108
- extra_body: Body | None = None,
109
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
110
- ) -> MemoryListResponse:
111
- """
112
- Retrieves a paginated list of memories with their metadata and workflow status
113
-
114
- Args:
115
- filters: Optional filters to apply to the search
116
-
117
- limit: Number of items per page
118
-
119
- order: Sort order
120
-
121
- page: Page number to fetch
122
-
123
- sort: Field to sort by
124
-
125
- extra_headers: Send extra headers
126
-
127
- extra_query: Add additional query parameters to the request
128
-
129
- extra_body: Add additional JSON properties to the request
130
-
131
- timeout: Override the client-level default timeout for this request, in seconds
132
- """
133
- return self._get(
134
- "/v3/memories",
135
- options=make_request_options(
136
- extra_headers=extra_headers,
137
- extra_query=extra_query,
138
- extra_body=extra_body,
139
- timeout=timeout,
140
- query=maybe_transform(
141
- {
142
- "filters": filters,
143
- "limit": limit,
144
- "order": order,
145
- "page": page,
146
- "sort": sort,
147
- },
148
- memory_list_params.MemoryListParams,
149
- ),
150
- ),
151
- cast_to=MemoryListResponse,
152
- )
153
-
154
116
  def delete(
155
117
  self,
156
118
  id: str,
@@ -161,7 +123,7 @@ class MemoriesResource(SyncAPIResource):
161
123
  extra_query: Query | None = None,
162
124
  extra_body: Body | None = None,
163
125
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
164
- ) -> MemoryDeleteResponse:
126
+ ) -> None:
165
127
  """
166
128
  Delete a memory
167
129
 
@@ -176,12 +138,13 @@ class MemoriesResource(SyncAPIResource):
176
138
  """
177
139
  if not id:
178
140
  raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
141
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
179
142
  return self._delete(
180
143
  f"/v3/memories/{id}",
181
144
  options=make_request_options(
182
145
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
183
146
  ),
184
- cast_to=MemoryDeleteResponse,
147
+ cast_to=NoneType,
185
148
  )
186
149
 
187
150
  def add(
@@ -189,6 +152,7 @@ class MemoriesResource(SyncAPIResource):
189
152
  *,
190
153
  content: str,
191
154
  container_tags: List[str] | NotGiven = NOT_GIVEN,
155
+ custom_id: str | NotGiven = NOT_GIVEN,
192
156
  metadata: Dict[str, Union[str, float, bool]] | NotGiven = NOT_GIVEN,
193
157
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
194
158
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -201,6 +165,27 @@ class MemoriesResource(SyncAPIResource):
201
165
  Add a memory with any content type (text, url, file, etc.) and metadata
202
166
 
203
167
  Args:
168
+ content: The content to extract and process into a memory. This can be a URL to a
169
+ website, a PDF, an image, or a video.
170
+
171
+ Plaintext: Any plaintext format
172
+
173
+ URL: A URL to a website, PDF, image, or video
174
+
175
+ We automatically detect the content type from the url's response format.
176
+
177
+ container_tags: Optional tags this memory should be containerized by. This can be an ID for your
178
+ user, a project ID, or any other identifier you wish to use to group memories.
179
+
180
+ custom_id: Optional custom ID of the memory. This could be an ID from your database that
181
+ will uniquely identify this memory.
182
+
183
+ metadata: Optional metadata for the memory. This is used to store additional information
184
+ about the memory. You can use this to store any additional information you need
185
+ about the memory. Metadata can be filtered through. Keys must be strings and are
186
+ case sensitive. Values can be strings, numbers, or booleans. You cannot nest
187
+ objects.
188
+
204
189
  extra_headers: Send extra headers
205
190
 
206
191
  extra_query: Add additional query parameters to the request
@@ -215,6 +200,7 @@ class MemoriesResource(SyncAPIResource):
215
200
  {
216
201
  "content": content,
217
202
  "container_tags": container_tags,
203
+ "custom_id": custom_id,
218
204
  "metadata": metadata,
219
205
  },
220
206
  memory_add_params.MemoryAddParams,
@@ -324,6 +310,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
324
310
  *,
325
311
  content: str,
326
312
  container_tags: List[str] | NotGiven = NOT_GIVEN,
313
+ custom_id: str | NotGiven = NOT_GIVEN,
327
314
  metadata: Dict[str, Union[str, float, bool]] | NotGiven = NOT_GIVEN,
328
315
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
329
316
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -336,6 +323,27 @@ class AsyncMemoriesResource(AsyncAPIResource):
336
323
  Update a memory with any content type (text, url, file, etc.) and metadata
337
324
 
338
325
  Args:
326
+ content: The content to extract and process into a memory. This can be a URL to a
327
+ website, a PDF, an image, or a video.
328
+
329
+ Plaintext: Any plaintext format
330
+
331
+ URL: A URL to a website, PDF, image, or video
332
+
333
+ We automatically detect the content type from the url's response format.
334
+
335
+ container_tags: Optional tags this memory should be containerized by. This can be an ID for your
336
+ user, a project ID, or any other identifier you wish to use to group memories.
337
+
338
+ custom_id: Optional custom ID of the memory. This could be an ID from your database that
339
+ will uniquely identify this memory.
340
+
341
+ metadata: Optional metadata for the memory. This is used to store additional information
342
+ about the memory. You can use this to store any additional information you need
343
+ about the memory. Metadata can be filtered through. Keys must be strings and are
344
+ case sensitive. Values can be strings, numbers, or booleans. You cannot nest
345
+ objects.
346
+
339
347
  extra_headers: Send extra headers
340
348
 
341
349
  extra_query: Add additional query parameters to the request
@@ -352,6 +360,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
352
360
  {
353
361
  "content": content,
354
362
  "container_tags": container_tags,
363
+ "custom_id": custom_id,
355
364
  "metadata": metadata,
356
365
  },
357
366
  memory_update_params.MemoryUpdateParams,
@@ -362,64 +371,6 @@ class AsyncMemoriesResource(AsyncAPIResource):
362
371
  cast_to=MemoryUpdateResponse,
363
372
  )
364
373
 
365
- async def list(
366
- self,
367
- *,
368
- filters: str | NotGiven = NOT_GIVEN,
369
- limit: str | NotGiven = NOT_GIVEN,
370
- order: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
371
- page: str | NotGiven = NOT_GIVEN,
372
- sort: Literal["createdAt", "updatedAt"] | NotGiven = NOT_GIVEN,
373
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
374
- # The extra values given here take precedence over values defined on the client or passed to this method.
375
- extra_headers: Headers | None = None,
376
- extra_query: Query | None = None,
377
- extra_body: Body | None = None,
378
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
379
- ) -> MemoryListResponse:
380
- """
381
- Retrieves a paginated list of memories with their metadata and workflow status
382
-
383
- Args:
384
- filters: Optional filters to apply to the search
385
-
386
- limit: Number of items per page
387
-
388
- order: Sort order
389
-
390
- page: Page number to fetch
391
-
392
- sort: Field to sort by
393
-
394
- extra_headers: Send extra headers
395
-
396
- extra_query: Add additional query parameters to the request
397
-
398
- extra_body: Add additional JSON properties to the request
399
-
400
- timeout: Override the client-level default timeout for this request, in seconds
401
- """
402
- return await self._get(
403
- "/v3/memories",
404
- options=make_request_options(
405
- extra_headers=extra_headers,
406
- extra_query=extra_query,
407
- extra_body=extra_body,
408
- timeout=timeout,
409
- query=await async_maybe_transform(
410
- {
411
- "filters": filters,
412
- "limit": limit,
413
- "order": order,
414
- "page": page,
415
- "sort": sort,
416
- },
417
- memory_list_params.MemoryListParams,
418
- ),
419
- ),
420
- cast_to=MemoryListResponse,
421
- )
422
-
423
374
  async def delete(
424
375
  self,
425
376
  id: str,
@@ -430,7 +381,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
430
381
  extra_query: Query | None = None,
431
382
  extra_body: Body | None = None,
432
383
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
433
- ) -> MemoryDeleteResponse:
384
+ ) -> None:
434
385
  """
435
386
  Delete a memory
436
387
 
@@ -445,12 +396,13 @@ class AsyncMemoriesResource(AsyncAPIResource):
445
396
  """
446
397
  if not id:
447
398
  raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
399
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
448
400
  return await self._delete(
449
401
  f"/v3/memories/{id}",
450
402
  options=make_request_options(
451
403
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
452
404
  ),
453
- cast_to=MemoryDeleteResponse,
405
+ cast_to=NoneType,
454
406
  )
455
407
 
456
408
  async def add(
@@ -458,6 +410,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
458
410
  *,
459
411
  content: str,
460
412
  container_tags: List[str] | NotGiven = NOT_GIVEN,
413
+ custom_id: str | NotGiven = NOT_GIVEN,
461
414
  metadata: Dict[str, Union[str, float, bool]] | NotGiven = NOT_GIVEN,
462
415
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
463
416
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -470,6 +423,27 @@ class AsyncMemoriesResource(AsyncAPIResource):
470
423
  Add a memory with any content type (text, url, file, etc.) and metadata
471
424
 
472
425
  Args:
426
+ content: The content to extract and process into a memory. This can be a URL to a
427
+ website, a PDF, an image, or a video.
428
+
429
+ Plaintext: Any plaintext format
430
+
431
+ URL: A URL to a website, PDF, image, or video
432
+
433
+ We automatically detect the content type from the url's response format.
434
+
435
+ container_tags: Optional tags this memory should be containerized by. This can be an ID for your
436
+ user, a project ID, or any other identifier you wish to use to group memories.
437
+
438
+ custom_id: Optional custom ID of the memory. This could be an ID from your database that
439
+ will uniquely identify this memory.
440
+
441
+ metadata: Optional metadata for the memory. This is used to store additional information
442
+ about the memory. You can use this to store any additional information you need
443
+ about the memory. Metadata can be filtered through. Keys must be strings and are
444
+ case sensitive. Values can be strings, numbers, or booleans. You cannot nest
445
+ objects.
446
+
473
447
  extra_headers: Send extra headers
474
448
 
475
449
  extra_query: Add additional query parameters to the request
@@ -484,6 +458,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
484
458
  {
485
459
  "content": content,
486
460
  "container_tags": container_tags,
461
+ "custom_id": custom_id,
487
462
  "metadata": metadata,
488
463
  },
489
464
  memory_add_params.MemoryAddParams,
@@ -574,9 +549,6 @@ class MemoriesResourceWithRawResponse:
574
549
  self.update = to_raw_response_wrapper(
575
550
  memories.update,
576
551
  )
577
- self.list = to_raw_response_wrapper(
578
- memories.list,
579
- )
580
552
  self.delete = to_raw_response_wrapper(
581
553
  memories.delete,
582
554
  )
@@ -598,9 +570,6 @@ class AsyncMemoriesResourceWithRawResponse:
598
570
  self.update = async_to_raw_response_wrapper(
599
571
  memories.update,
600
572
  )
601
- self.list = async_to_raw_response_wrapper(
602
- memories.list,
603
- )
604
573
  self.delete = async_to_raw_response_wrapper(
605
574
  memories.delete,
606
575
  )
@@ -622,9 +591,6 @@ class MemoriesResourceWithStreamingResponse:
622
591
  self.update = to_streamed_response_wrapper(
623
592
  memories.update,
624
593
  )
625
- self.list = to_streamed_response_wrapper(
626
- memories.list,
627
- )
628
594
  self.delete = to_streamed_response_wrapper(
629
595
  memories.delete,
630
596
  )
@@ -646,9 +612,6 @@ class AsyncMemoriesResourceWithStreamingResponse:
646
612
  self.update = async_to_streamed_response_wrapper(
647
613
  memories.update,
648
614
  )
649
- self.list = async_to_streamed_response_wrapper(
650
- memories.list,
651
- )
652
615
  self.delete = async_to_streamed_response_wrapper(
653
616
  memories.delete,
654
617
  )
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, List
5
+ from typing import Dict, Union, Iterable, Optional
6
6
 
7
7
  import httpx
8
8
 
@@ -47,11 +47,20 @@ class SettingsResource(SyncAPIResource):
47
47
  def update(
48
48
  self,
49
49
  *,
50
- exclude_items: List[str] | NotGiven = NOT_GIVEN,
51
- filter_prompt: str | NotGiven = NOT_GIVEN,
52
- filter_tags: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
53
- include_items: List[str] | NotGiven = NOT_GIVEN,
54
- should_llm_filter: bool | NotGiven = NOT_GIVEN,
50
+ exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
51
+ filter_prompt: Optional[str] | NotGiven = NOT_GIVEN,
52
+ filter_tags: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
53
+ google_drive_client_id: Optional[str] | NotGiven = NOT_GIVEN,
54
+ google_drive_client_secret: Optional[str] | NotGiven = NOT_GIVEN,
55
+ google_drive_custom_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
56
+ include_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
57
+ notion_client_id: Optional[str] | NotGiven = NOT_GIVEN,
58
+ notion_client_secret: Optional[str] | NotGiven = NOT_GIVEN,
59
+ notion_custom_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
60
+ onedrive_client_id: Optional[str] | NotGiven = NOT_GIVEN,
61
+ onedrive_client_secret: Optional[str] | NotGiven = NOT_GIVEN,
62
+ onedrive_custom_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
63
+ should_llm_filter: Optional[bool] | NotGiven = NOT_GIVEN,
55
64
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
56
65
  # The extra values given here take precedence over values defined on the client or passed to this method.
57
66
  extra_headers: Headers | None = None,
@@ -78,7 +87,16 @@ class SettingsResource(SyncAPIResource):
78
87
  "exclude_items": exclude_items,
79
88
  "filter_prompt": filter_prompt,
80
89
  "filter_tags": filter_tags,
90
+ "google_drive_client_id": google_drive_client_id,
91
+ "google_drive_client_secret": google_drive_client_secret,
92
+ "google_drive_custom_key_enabled": google_drive_custom_key_enabled,
81
93
  "include_items": include_items,
94
+ "notion_client_id": notion_client_id,
95
+ "notion_client_secret": notion_client_secret,
96
+ "notion_custom_key_enabled": notion_custom_key_enabled,
97
+ "onedrive_client_id": onedrive_client_id,
98
+ "onedrive_client_secret": onedrive_client_secret,
99
+ "onedrive_custom_key_enabled": onedrive_custom_key_enabled,
82
100
  "should_llm_filter": should_llm_filter,
83
101
  },
84
102
  setting_update_params.SettingUpdateParams,
@@ -132,11 +150,20 @@ class AsyncSettingsResource(AsyncAPIResource):
132
150
  async def update(
133
151
  self,
134
152
  *,
135
- exclude_items: List[str] | NotGiven = NOT_GIVEN,
136
- filter_prompt: str | NotGiven = NOT_GIVEN,
137
- filter_tags: Dict[str, List[str]] | NotGiven = NOT_GIVEN,
138
- include_items: List[str] | NotGiven = NOT_GIVEN,
139
- should_llm_filter: bool | NotGiven = NOT_GIVEN,
153
+ exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
154
+ filter_prompt: Optional[str] | NotGiven = NOT_GIVEN,
155
+ filter_tags: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
156
+ google_drive_client_id: Optional[str] | NotGiven = NOT_GIVEN,
157
+ google_drive_client_secret: Optional[str] | NotGiven = NOT_GIVEN,
158
+ google_drive_custom_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
159
+ include_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | NotGiven = NOT_GIVEN,
160
+ notion_client_id: Optional[str] | NotGiven = NOT_GIVEN,
161
+ notion_client_secret: Optional[str] | NotGiven = NOT_GIVEN,
162
+ notion_custom_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
163
+ onedrive_client_id: Optional[str] | NotGiven = NOT_GIVEN,
164
+ onedrive_client_secret: Optional[str] | NotGiven = NOT_GIVEN,
165
+ onedrive_custom_key_enabled: Optional[bool] | NotGiven = NOT_GIVEN,
166
+ should_llm_filter: Optional[bool] | NotGiven = NOT_GIVEN,
140
167
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
141
168
  # The extra values given here take precedence over values defined on the client or passed to this method.
142
169
  extra_headers: Headers | None = None,
@@ -163,7 +190,16 @@ class AsyncSettingsResource(AsyncAPIResource):
163
190
  "exclude_items": exclude_items,
164
191
  "filter_prompt": filter_prompt,
165
192
  "filter_tags": filter_tags,
193
+ "google_drive_client_id": google_drive_client_id,
194
+ "google_drive_client_secret": google_drive_client_secret,
195
+ "google_drive_custom_key_enabled": google_drive_custom_key_enabled,
166
196
  "include_items": include_items,
197
+ "notion_client_id": notion_client_id,
198
+ "notion_client_secret": notion_client_secret,
199
+ "notion_custom_key_enabled": notion_custom_key_enabled,
200
+ "onedrive_client_id": onedrive_client_id,
201
+ "onedrive_client_secret": onedrive_client_secret,
202
+ "onedrive_custom_key_enabled": onedrive_custom_key_enabled,
167
203
  "should_llm_filter": should_llm_filter,
168
204
  },
169
205
  setting_update_params.SettingUpdateParams,
@@ -3,22 +3,15 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from .memory_add_params import MemoryAddParams as MemoryAddParams
6
- from .memory_list_params import MemoryListParams as MemoryListParams
7
6
  from .memory_add_response import MemoryAddResponse as MemoryAddResponse
8
7
  from .memory_get_response import MemoryGetResponse as MemoryGetResponse
9
- from .memory_list_response import MemoryListResponse as MemoryListResponse
10
8
  from .memory_update_params import MemoryUpdateParams as MemoryUpdateParams
11
9
  from .setting_get_response import SettingGetResponse as SettingGetResponse
12
- from .search_execute_params import SearchExecuteParams as SearchExecuteParams
13
10
  from .setting_update_params import SettingUpdateParams as SettingUpdateParams
14
- from .connection_list_params import ConnectionListParams as ConnectionListParams
15
- from .memory_delete_response import MemoryDeleteResponse as MemoryDeleteResponse
16
11
  from .memory_update_response import MemoryUpdateResponse as MemoryUpdateResponse
17
12
  from .connection_get_response import ConnectionGetResponse as ConnectionGetResponse
18
- from .search_execute_response import SearchExecuteResponse as SearchExecuteResponse
19
13
  from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse
20
14
  from .connection_create_params import ConnectionCreateParams as ConnectionCreateParams
21
- from .connection_list_response import ConnectionListResponse as ConnectionListResponse
22
15
  from .memory_upload_file_params import MemoryUploadFileParams as MemoryUploadFileParams
23
16
  from .connection_create_response import ConnectionCreateResponse as ConnectionCreateResponse
24
17
  from .memory_upload_file_response import MemoryUploadFileResponse as MemoryUploadFileResponse
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, Union, Optional
5
+ from typing import Dict, List, Union, Optional
6
6
  from typing_extensions import Annotated, TypedDict
7
7
 
8
8
  from .._utils import PropertyInfo
@@ -11,8 +11,10 @@ __all__ = ["ConnectionCreateParams"]
11
11
 
12
12
 
13
13
  class ConnectionCreateParams(TypedDict, total=False):
14
- end_user_id: Annotated[str, PropertyInfo(alias="endUserId")]
14
+ container_tags: Annotated[List[str], PropertyInfo(alias="containerTags")]
15
15
 
16
- redirect_url: Annotated[str, PropertyInfo(alias="redirectUrl")]
16
+ document_limit: Annotated[int, PropertyInfo(alias="documentLimit")]
17
17
 
18
18
  metadata: Optional[Dict[str, Union[str, float, bool]]]
19
+
20
+ redirect_url: Annotated[str, PropertyInfo(alias="redirectUrl")]
@@ -16,6 +16,10 @@ class ConnectionGetResponse(BaseModel):
16
16
 
17
17
  provider: str
18
18
 
19
+ document_limit: Optional[float] = FieldInfo(alias="documentLimit", default=None)
20
+
21
+ email: Optional[str] = None
22
+
19
23
  expires_at: Optional[float] = FieldInfo(alias="expiresAt", default=None)
20
24
 
21
25
  metadata: Optional[Dict[str, object]] = None
@@ -12,7 +12,35 @@ __all__ = ["MemoryAddParams"]
12
12
 
13
13
  class MemoryAddParams(TypedDict, total=False):
14
14
  content: Required[str]
15
+ """The content to extract and process into a memory.
16
+
17
+ This can be a URL to a website, a PDF, an image, or a video.
18
+
19
+ Plaintext: Any plaintext format
20
+
21
+ URL: A URL to a website, PDF, image, or video
22
+
23
+ We automatically detect the content type from the url's response format.
24
+ """
15
25
 
16
26
  container_tags: Annotated[List[str], PropertyInfo(alias="containerTags")]
27
+ """Optional tags this memory should be containerized by.
28
+
29
+ This can be an ID for your user, a project ID, or any other identifier you wish
30
+ to use to group memories.
31
+ """
32
+
33
+ custom_id: Annotated[str, PropertyInfo(alias="customId")]
34
+ """Optional custom ID of the memory.
35
+
36
+ This could be an ID from your database that will uniquely identify this memory.
37
+ """
17
38
 
18
39
  metadata: Dict[str, Union[str, float, bool]]
40
+ """Optional metadata for the memory.
41
+
42
+ This is used to store additional information about the memory. You can use this
43
+ to store any additional information you need about the memory. Metadata can be
44
+ filtered through. Keys must be strings and are case sensitive. Values can be
45
+ strings, numbers, or booleans. You cannot nest objects.
46
+ """