evermemos 0.3.7__py3-none-any.whl → 0.3.8__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.
- evermemos/_version.py +1 -1
- evermemos/resources/v1/__init__.py +0 -14
- evermemos/resources/v1/memories/memories.py +18 -8
- evermemos/resources/v1/stats/request.py +2 -2
- evermemos/resources/v1/v1.py +0 -32
- evermemos/types/v1/global_user_profile/__init__.py +0 -3
- evermemos/types/v1/memory_create_params.py +7 -0
- evermemos/types/v1/memory_create_response.py +4 -30
- evermemos/types/v1/memory_delete_params.py +3 -3
- evermemos/types/v1/memory_get_response.py +4 -2
- evermemos/types/v1/stats/request_get_params.py +1 -1
- {evermemos-0.3.7.dist-info → evermemos-0.3.8.dist-info}/METADATA +5 -5
- {evermemos-0.3.7.dist-info → evermemos-0.3.8.dist-info}/RECORD +15 -20
- evermemos/resources/v1/global_user_profile/__init__.py +0 -33
- evermemos/resources/v1/global_user_profile/custom.py +0 -185
- evermemos/resources/v1/global_user_profile/global_user_profile.py +0 -102
- evermemos/types/v1/global_user_profile/custom_upsert_params.py +0 -24
- evermemos/types/v1/global_user_profile/custom_upsert_response.py +0 -23
- {evermemos-0.3.7.dist-info → evermemos-0.3.8.dist-info}/WHEEL +0 -0
- {evermemos-0.3.7.dist-info → evermemos-0.3.8.dist-info}/licenses/LICENSE +0 -0
evermemos/_version.py
CHANGED
|
@@ -24,14 +24,6 @@ from .memories import (
|
|
|
24
24
|
MemoriesResourceWithStreamingResponse,
|
|
25
25
|
AsyncMemoriesResourceWithStreamingResponse,
|
|
26
26
|
)
|
|
27
|
-
from .global_user_profile import (
|
|
28
|
-
GlobalUserProfileResource,
|
|
29
|
-
AsyncGlobalUserProfileResource,
|
|
30
|
-
GlobalUserProfileResourceWithRawResponse,
|
|
31
|
-
AsyncGlobalUserProfileResourceWithRawResponse,
|
|
32
|
-
GlobalUserProfileResourceWithStreamingResponse,
|
|
33
|
-
AsyncGlobalUserProfileResourceWithStreamingResponse,
|
|
34
|
-
)
|
|
35
27
|
|
|
36
28
|
__all__ = [
|
|
37
29
|
"MemoriesResource",
|
|
@@ -40,12 +32,6 @@ __all__ = [
|
|
|
40
32
|
"AsyncMemoriesResourceWithRawResponse",
|
|
41
33
|
"MemoriesResourceWithStreamingResponse",
|
|
42
34
|
"AsyncMemoriesResourceWithStreamingResponse",
|
|
43
|
-
"GlobalUserProfileResource",
|
|
44
|
-
"AsyncGlobalUserProfileResource",
|
|
45
|
-
"GlobalUserProfileResourceWithRawResponse",
|
|
46
|
-
"AsyncGlobalUserProfileResourceWithRawResponse",
|
|
47
|
-
"GlobalUserProfileResourceWithStreamingResponse",
|
|
48
|
-
"AsyncGlobalUserProfileResourceWithStreamingResponse",
|
|
49
35
|
"StatsResource",
|
|
50
36
|
"AsyncStatsResource",
|
|
51
37
|
"StatsResourceWithRawResponse",
|
|
@@ -66,6 +66,7 @@ class MemoriesResource(SyncAPIResource):
|
|
|
66
66
|
create_time: str,
|
|
67
67
|
message_id: str,
|
|
68
68
|
sender: str,
|
|
69
|
+
flush: bool | Omit = omit,
|
|
69
70
|
group_id: Optional[str] | Omit = omit,
|
|
70
71
|
group_name: Optional[str] | Omit = omit,
|
|
71
72
|
refer_list: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
@@ -90,6 +91,9 @@ class MemoriesResource(SyncAPIResource):
|
|
|
90
91
|
|
|
91
92
|
sender: Sender user ID (required). Also used as user_id internally for memory ownership.
|
|
92
93
|
|
|
94
|
+
flush: Force boundary trigger. When True, immediately triggers memory extraction
|
|
95
|
+
instead of waiting for natural boundary detection.
|
|
96
|
+
|
|
93
97
|
group_id: Group ID. If not provided, will automatically generate based on hash(sender) +
|
|
94
98
|
'\\__group' suffix, representing single-user mode where each user's messages are
|
|
95
99
|
extracted into separate memory spaces.
|
|
@@ -122,6 +126,7 @@ class MemoriesResource(SyncAPIResource):
|
|
|
122
126
|
"create_time": create_time,
|
|
123
127
|
"message_id": message_id,
|
|
124
128
|
"sender": sender,
|
|
129
|
+
"flush": flush,
|
|
125
130
|
"group_id": group_id,
|
|
126
131
|
"group_name": group_name,
|
|
127
132
|
"refer_list": refer_list,
|
|
@@ -139,8 +144,8 @@ class MemoriesResource(SyncAPIResource):
|
|
|
139
144
|
def delete(
|
|
140
145
|
self,
|
|
141
146
|
*,
|
|
142
|
-
event_id: Optional[str] | Omit = omit,
|
|
143
147
|
group_id: Optional[str] | Omit = omit,
|
|
148
|
+
memory_id: Optional[str] | Omit = omit,
|
|
144
149
|
user_id: Optional[str] | Omit = omit,
|
|
145
150
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
146
151
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -153,10 +158,10 @@ class MemoriesResource(SyncAPIResource):
|
|
|
153
158
|
Delete memory records based on combined filter criteria
|
|
154
159
|
|
|
155
160
|
Args:
|
|
156
|
-
event_id: Memory event_id (filter condition)
|
|
157
|
-
|
|
158
161
|
group_id: Group ID (filter condition)
|
|
159
162
|
|
|
163
|
+
memory_id: Memory id (filter condition)
|
|
164
|
+
|
|
160
165
|
user_id: User ID (filter condition)
|
|
161
166
|
|
|
162
167
|
extra_headers: Send extra headers
|
|
@@ -171,8 +176,8 @@ class MemoriesResource(SyncAPIResource):
|
|
|
171
176
|
"/api/v1/memories",
|
|
172
177
|
body=maybe_transform(
|
|
173
178
|
{
|
|
174
|
-
"event_id": event_id,
|
|
175
179
|
"group_id": group_id,
|
|
180
|
+
"memory_id": memory_id,
|
|
176
181
|
"user_id": user_id,
|
|
177
182
|
},
|
|
178
183
|
memory_delete_params.MemoryDeleteParams,
|
|
@@ -305,6 +310,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
305
310
|
create_time: str,
|
|
306
311
|
message_id: str,
|
|
307
312
|
sender: str,
|
|
313
|
+
flush: bool | Omit = omit,
|
|
308
314
|
group_id: Optional[str] | Omit = omit,
|
|
309
315
|
group_name: Optional[str] | Omit = omit,
|
|
310
316
|
refer_list: Optional[SequenceNotStr[str]] | Omit = omit,
|
|
@@ -329,6 +335,9 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
329
335
|
|
|
330
336
|
sender: Sender user ID (required). Also used as user_id internally for memory ownership.
|
|
331
337
|
|
|
338
|
+
flush: Force boundary trigger. When True, immediately triggers memory extraction
|
|
339
|
+
instead of waiting for natural boundary detection.
|
|
340
|
+
|
|
332
341
|
group_id: Group ID. If not provided, will automatically generate based on hash(sender) +
|
|
333
342
|
'\\__group' suffix, representing single-user mode where each user's messages are
|
|
334
343
|
extracted into separate memory spaces.
|
|
@@ -361,6 +370,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
361
370
|
"create_time": create_time,
|
|
362
371
|
"message_id": message_id,
|
|
363
372
|
"sender": sender,
|
|
373
|
+
"flush": flush,
|
|
364
374
|
"group_id": group_id,
|
|
365
375
|
"group_name": group_name,
|
|
366
376
|
"refer_list": refer_list,
|
|
@@ -378,8 +388,8 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
378
388
|
async def delete(
|
|
379
389
|
self,
|
|
380
390
|
*,
|
|
381
|
-
event_id: Optional[str] | Omit = omit,
|
|
382
391
|
group_id: Optional[str] | Omit = omit,
|
|
392
|
+
memory_id: Optional[str] | Omit = omit,
|
|
383
393
|
user_id: Optional[str] | Omit = omit,
|
|
384
394
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
385
395
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -392,10 +402,10 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
392
402
|
Delete memory records based on combined filter criteria
|
|
393
403
|
|
|
394
404
|
Args:
|
|
395
|
-
event_id: Memory event_id (filter condition)
|
|
396
|
-
|
|
397
405
|
group_id: Group ID (filter condition)
|
|
398
406
|
|
|
407
|
+
memory_id: Memory id (filter condition)
|
|
408
|
+
|
|
399
409
|
user_id: User ID (filter condition)
|
|
400
410
|
|
|
401
411
|
extra_headers: Send extra headers
|
|
@@ -410,8 +420,8 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
410
420
|
"/api/v1/memories",
|
|
411
421
|
body=await async_maybe_transform(
|
|
412
422
|
{
|
|
413
|
-
"event_id": event_id,
|
|
414
423
|
"group_id": group_id,
|
|
424
|
+
"memory_id": memory_id,
|
|
415
425
|
"user_id": user_id,
|
|
416
426
|
},
|
|
417
427
|
memory_delete_params.MemoryDeleteParams,
|
|
@@ -58,7 +58,7 @@ class RequestResource(SyncAPIResource):
|
|
|
58
58
|
Query the processing status of a specific request
|
|
59
59
|
|
|
60
60
|
Args:
|
|
61
|
-
request_id:
|
|
61
|
+
request_id: this id is returned by add_memories api
|
|
62
62
|
|
|
63
63
|
extra_headers: Send extra headers
|
|
64
64
|
|
|
@@ -116,7 +116,7 @@ class AsyncRequestResource(AsyncAPIResource):
|
|
|
116
116
|
Query the processing status of a specific request
|
|
117
117
|
|
|
118
118
|
Args:
|
|
119
|
-
request_id:
|
|
119
|
+
request_id: this id is returned by add_memories api
|
|
120
120
|
|
|
121
121
|
extra_headers: Send extra headers
|
|
122
122
|
|
evermemos/resources/v1/v1.py
CHANGED
|
@@ -20,14 +20,6 @@ from .memories.memories import (
|
|
|
20
20
|
MemoriesResourceWithStreamingResponse,
|
|
21
21
|
AsyncMemoriesResourceWithStreamingResponse,
|
|
22
22
|
)
|
|
23
|
-
from .global_user_profile.global_user_profile import (
|
|
24
|
-
GlobalUserProfileResource,
|
|
25
|
-
AsyncGlobalUserProfileResource,
|
|
26
|
-
GlobalUserProfileResourceWithRawResponse,
|
|
27
|
-
AsyncGlobalUserProfileResourceWithRawResponse,
|
|
28
|
-
GlobalUserProfileResourceWithStreamingResponse,
|
|
29
|
-
AsyncGlobalUserProfileResourceWithStreamingResponse,
|
|
30
|
-
)
|
|
31
23
|
|
|
32
24
|
__all__ = ["V1Resource", "AsyncV1Resource"]
|
|
33
25
|
|
|
@@ -37,10 +29,6 @@ class V1Resource(SyncAPIResource):
|
|
|
37
29
|
def memories(self) -> MemoriesResource:
|
|
38
30
|
return MemoriesResource(self._client)
|
|
39
31
|
|
|
40
|
-
@cached_property
|
|
41
|
-
def global_user_profile(self) -> GlobalUserProfileResource:
|
|
42
|
-
return GlobalUserProfileResource(self._client)
|
|
43
|
-
|
|
44
32
|
@cached_property
|
|
45
33
|
def stats(self) -> StatsResource:
|
|
46
34
|
return StatsResource(self._client)
|
|
@@ -70,10 +58,6 @@ class AsyncV1Resource(AsyncAPIResource):
|
|
|
70
58
|
def memories(self) -> AsyncMemoriesResource:
|
|
71
59
|
return AsyncMemoriesResource(self._client)
|
|
72
60
|
|
|
73
|
-
@cached_property
|
|
74
|
-
def global_user_profile(self) -> AsyncGlobalUserProfileResource:
|
|
75
|
-
return AsyncGlobalUserProfileResource(self._client)
|
|
76
|
-
|
|
77
61
|
@cached_property
|
|
78
62
|
def stats(self) -> AsyncStatsResource:
|
|
79
63
|
return AsyncStatsResource(self._client)
|
|
@@ -106,10 +90,6 @@ class V1ResourceWithRawResponse:
|
|
|
106
90
|
def memories(self) -> MemoriesResourceWithRawResponse:
|
|
107
91
|
return MemoriesResourceWithRawResponse(self._v1.memories)
|
|
108
92
|
|
|
109
|
-
@cached_property
|
|
110
|
-
def global_user_profile(self) -> GlobalUserProfileResourceWithRawResponse:
|
|
111
|
-
return GlobalUserProfileResourceWithRawResponse(self._v1.global_user_profile)
|
|
112
|
-
|
|
113
93
|
@cached_property
|
|
114
94
|
def stats(self) -> StatsResourceWithRawResponse:
|
|
115
95
|
return StatsResourceWithRawResponse(self._v1.stats)
|
|
@@ -123,10 +103,6 @@ class AsyncV1ResourceWithRawResponse:
|
|
|
123
103
|
def memories(self) -> AsyncMemoriesResourceWithRawResponse:
|
|
124
104
|
return AsyncMemoriesResourceWithRawResponse(self._v1.memories)
|
|
125
105
|
|
|
126
|
-
@cached_property
|
|
127
|
-
def global_user_profile(self) -> AsyncGlobalUserProfileResourceWithRawResponse:
|
|
128
|
-
return AsyncGlobalUserProfileResourceWithRawResponse(self._v1.global_user_profile)
|
|
129
|
-
|
|
130
106
|
@cached_property
|
|
131
107
|
def stats(self) -> AsyncStatsResourceWithRawResponse:
|
|
132
108
|
return AsyncStatsResourceWithRawResponse(self._v1.stats)
|
|
@@ -140,10 +116,6 @@ class V1ResourceWithStreamingResponse:
|
|
|
140
116
|
def memories(self) -> MemoriesResourceWithStreamingResponse:
|
|
141
117
|
return MemoriesResourceWithStreamingResponse(self._v1.memories)
|
|
142
118
|
|
|
143
|
-
@cached_property
|
|
144
|
-
def global_user_profile(self) -> GlobalUserProfileResourceWithStreamingResponse:
|
|
145
|
-
return GlobalUserProfileResourceWithStreamingResponse(self._v1.global_user_profile)
|
|
146
|
-
|
|
147
119
|
@cached_property
|
|
148
120
|
def stats(self) -> StatsResourceWithStreamingResponse:
|
|
149
121
|
return StatsResourceWithStreamingResponse(self._v1.stats)
|
|
@@ -157,10 +129,6 @@ class AsyncV1ResourceWithStreamingResponse:
|
|
|
157
129
|
def memories(self) -> AsyncMemoriesResourceWithStreamingResponse:
|
|
158
130
|
return AsyncMemoriesResourceWithStreamingResponse(self._v1.memories)
|
|
159
131
|
|
|
160
|
-
@cached_property
|
|
161
|
-
def global_user_profile(self) -> AsyncGlobalUserProfileResourceWithStreamingResponse:
|
|
162
|
-
return AsyncGlobalUserProfileResourceWithStreamingResponse(self._v1.global_user_profile)
|
|
163
|
-
|
|
164
132
|
@cached_property
|
|
165
133
|
def stats(self) -> AsyncStatsResourceWithStreamingResponse:
|
|
166
134
|
return AsyncStatsResourceWithStreamingResponse(self._v1.stats)
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from .custom_upsert_params import CustomUpsertParams as CustomUpsertParams
|
|
6
|
-
from .custom_upsert_response import CustomUpsertResponse as CustomUpsertResponse
|
|
@@ -26,6 +26,13 @@ class MemoryCreateParams(TypedDict, total=False):
|
|
|
26
26
|
Also used as user_id internally for memory ownership.
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
|
+
flush: bool
|
|
30
|
+
"""Force boundary trigger.
|
|
31
|
+
|
|
32
|
+
When True, immediately triggers memory extraction instead of waiting for natural
|
|
33
|
+
boundary detection.
|
|
34
|
+
"""
|
|
35
|
+
|
|
29
36
|
group_id: Optional[str]
|
|
30
37
|
"""Group ID.
|
|
31
38
|
|
|
@@ -1,39 +1,13 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import List, Optional
|
|
4
|
-
|
|
5
3
|
from ..._models import BaseModel
|
|
6
4
|
|
|
7
|
-
__all__ = ["MemoryCreateResponse"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class Result(BaseModel):
|
|
11
|
-
"""Memory storage result"""
|
|
12
|
-
|
|
13
|
-
count: Optional[int] = None
|
|
14
|
-
"""Number of memories extracted"""
|
|
15
|
-
|
|
16
|
-
saved_memories: Optional[List[object]] = None
|
|
17
|
-
"""List of saved memories (fetch via API for details)"""
|
|
18
|
-
|
|
19
|
-
status_info: Optional[str] = None
|
|
20
|
-
"""
|
|
21
|
-
Processing status: 'extracted' (memories created) or 'accumulated' (waiting for
|
|
22
|
-
boundary)
|
|
23
|
-
"""
|
|
5
|
+
__all__ = ["MemoryCreateResponse"]
|
|
24
6
|
|
|
25
7
|
|
|
26
8
|
class MemoryCreateResponse(BaseModel):
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Response for POST /api/v1/memories endpoint.
|
|
30
|
-
"""
|
|
31
|
-
|
|
32
|
-
message: Optional[str] = None
|
|
33
|
-
"""Response message"""
|
|
9
|
+
message: str
|
|
34
10
|
|
|
35
|
-
|
|
36
|
-
"""Memory storage result"""
|
|
11
|
+
request_id: str
|
|
37
12
|
|
|
38
|
-
status:
|
|
39
|
-
"""Response status"""
|
|
13
|
+
status: str
|
|
@@ -9,11 +9,11 @@ __all__ = ["MemoryDeleteParams"]
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class MemoryDeleteParams(TypedDict, total=False):
|
|
12
|
-
event_id: Optional[str]
|
|
13
|
-
"""Memory event_id (filter condition)"""
|
|
14
|
-
|
|
15
12
|
group_id: Optional[str]
|
|
16
13
|
"""Group ID (filter condition)"""
|
|
17
14
|
|
|
15
|
+
memory_id: Optional[str]
|
|
16
|
+
"""Memory id (filter condition)"""
|
|
17
|
+
|
|
18
18
|
user_id: Optional[str]
|
|
19
19
|
"""User ID (filter condition)"""
|
|
@@ -145,10 +145,12 @@ class ResultMemoryEpisodicMemoryModel(BaseModel):
|
|
|
145
145
|
|
|
146
146
|
location: Optional[str] = None
|
|
147
147
|
|
|
148
|
-
memcell_event_id_list: Optional[List[str]] = None
|
|
149
|
-
|
|
150
148
|
metadata: Optional[Metadata] = None
|
|
151
149
|
|
|
150
|
+
parent_id: Optional[str] = None
|
|
151
|
+
|
|
152
|
+
parent_type: Optional[str] = None
|
|
153
|
+
|
|
152
154
|
participants: Optional[List[str]] = None
|
|
153
155
|
|
|
154
156
|
start_time: Optional[datetime] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: evermemos
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.8
|
|
4
4
|
Summary: The official Python library for the EverMemOS API
|
|
5
5
|
Project-URL: Homepage, https://github.com/evermemos/evermemos-python
|
|
6
6
|
Project-URL: Repository, https://github.com/evermemos/evermemos-python
|
|
@@ -73,7 +73,7 @@ memory = client.v1.memories.create(
|
|
|
73
73
|
message_id="msg_001",
|
|
74
74
|
sender="user_001",
|
|
75
75
|
)
|
|
76
|
-
print(memory.
|
|
76
|
+
print(memory.request_id)
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
While you can provide an `api_key` keyword argument,
|
|
@@ -102,7 +102,7 @@ async def main() -> None:
|
|
|
102
102
|
message_id="msg_001",
|
|
103
103
|
sender="user_001",
|
|
104
104
|
)
|
|
105
|
-
print(memory.
|
|
105
|
+
print(memory.request_id)
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
asyncio.run(main())
|
|
@@ -141,7 +141,7 @@ async def main() -> None:
|
|
|
141
141
|
message_id="msg_001",
|
|
142
142
|
sender="user_001",
|
|
143
143
|
)
|
|
144
|
-
print(memory.
|
|
144
|
+
print(memory.request_id)
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
asyncio.run(main())
|
|
@@ -331,7 +331,7 @@ response = client.v1.memories.with_raw_response.create(
|
|
|
331
331
|
print(response.headers.get('X-My-Header'))
|
|
332
332
|
|
|
333
333
|
memory = response.parse() # get the object that `v1.memories.create()` would have returned
|
|
334
|
-
print(memory.
|
|
334
|
+
print(memory.request_id)
|
|
335
335
|
```
|
|
336
336
|
|
|
337
337
|
These methods return an [`APIResponse`](https://github.com/evermemos/evermemos-python/tree/main/src/evermemos/_response.py) object.
|
|
@@ -11,7 +11,7 @@ evermemos/_resource.py,sha256=4q9tJ95WlH41fbOaDBFQk9arvUwP1aLFqGk4SAujrR8,1118
|
|
|
11
11
|
evermemos/_response.py,sha256=MLm_f8qKFHHe8UR0gdvp_alnLS61OqNrt3McWdBJIJA,28806
|
|
12
12
|
evermemos/_streaming.py,sha256=guEiLN0kAodVFFETj4gPE8fgof4fYFoIZRxzYDL-81Y,10233
|
|
13
13
|
evermemos/_types.py,sha256=Ue_eCWn1Lxlih_CAV4Mkx_pUiD3j29VPhHPF39l43Sg,7597
|
|
14
|
-
evermemos/_version.py,sha256=
|
|
14
|
+
evermemos/_version.py,sha256=VJFPsgXUTmIVmzyWvIUCAYQL6bPyVgYiz3IbAk_Dleo,161
|
|
15
15
|
evermemos/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
evermemos/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
17
17
|
evermemos/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
|
|
@@ -27,32 +27,27 @@ evermemos/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4
|
|
|
27
27
|
evermemos/_utils/_utils.py,sha256=ugfUaneOK7I8h9b3656flwf5u_kthY0gvNuqvgOLoSU,12252
|
|
28
28
|
evermemos/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
29
29
|
evermemos/resources/__init__.py,sha256=TSJ6b8GNHShyK5w7efHV93u1bY2jYVySQRa2zKc1dKM,500
|
|
30
|
-
evermemos/resources/v1/__init__.py,sha256=
|
|
31
|
-
evermemos/resources/v1/v1.py,sha256=
|
|
32
|
-
evermemos/resources/v1/global_user_profile/__init__.py,sha256=OB72m3A9revG9HmDXWpFUJVVlb2KPLg3m6dqrAYt1sc,1147
|
|
33
|
-
evermemos/resources/v1/global_user_profile/custom.py,sha256=vjquUQBy7OT0WvQZSwmP306zI_QPKf5k0buYCbFIiOc,6626
|
|
34
|
-
evermemos/resources/v1/global_user_profile/global_user_profile.py,sha256=YTD6eE6nY4p-6y1r3VNulNDLoLEoX64OWvbUDoCeVsg,4037
|
|
30
|
+
evermemos/resources/v1/__init__.py,sha256=jLjptffGJh-4ED6_Njl0K5TV9sVw6BR6A_sqZ9m5_VM,1413
|
|
31
|
+
evermemos/resources/v1/v1.py,sha256=2QYjwNjpINJQmVk5lR6m4h-f5L3B-IxoPlqdk4MqBzI,4560
|
|
35
32
|
evermemos/resources/v1/memories/__init__.py,sha256=8oz2uuhvRKyX7LSyLyfjrvBCjuP3LrVmKmfn_U_WdqM,1159
|
|
36
33
|
evermemos/resources/v1/memories/conversation_meta.py,sha256=zBCdcetkS6lYqPPLiUxykW-jzMzhSTzsUnZx1yrgDJA,17930
|
|
37
|
-
evermemos/resources/v1/memories/memories.py,sha256=
|
|
34
|
+
evermemos/resources/v1/memories/memories.py,sha256=X1pXiKrNqxBhI-kiyRy9fiE3WuzTBx--gKz6QE7Zqe0,23731
|
|
38
35
|
evermemos/resources/v1/stats/__init__.py,sha256=f7q_Y1qF5OsCrrOqPm2f-im0bY7H_TgOwIhsYGN344U,1002
|
|
39
|
-
evermemos/resources/v1/stats/request.py,sha256=
|
|
36
|
+
evermemos/resources/v1/stats/request.py,sha256=aOclnKpTCrJpP1zO8oFUfu_JMAe-18rFokmrr6e69Ao,6261
|
|
40
37
|
evermemos/resources/v1/stats/stats.py,sha256=HFKLE3PiPTCxafHwjsIWLi8lU1-lw87VJhsg40iMMLU,3602
|
|
41
38
|
evermemos/types/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
42
39
|
evermemos/types/v1/__init__.py,sha256=DGZd1R0ToVFVuIHcDBvw91cDsgaZgg7zgD-UUFDo4hk,825
|
|
43
|
-
evermemos/types/v1/memory_create_params.py,sha256=
|
|
44
|
-
evermemos/types/v1/memory_create_response.py,sha256=
|
|
45
|
-
evermemos/types/v1/memory_delete_params.py,sha256=
|
|
40
|
+
evermemos/types/v1/memory_create_params.py,sha256=h3xQEqp1LjHt3s81qYHowOJMInLFg0BVdcPW3QDbjAE,1536
|
|
41
|
+
evermemos/types/v1/memory_create_response.py,sha256=ISNGdbDcc9gyyRHGUSTm8Xc-m-lLDSKR-6ArioRNe1E,252
|
|
42
|
+
evermemos/types/v1/memory_delete_params.py,sha256=lFcScEuPCenJLnWnoO0WXhLuf0PBfLwLvSATuxAoLmY,477
|
|
46
43
|
evermemos/types/v1/memory_delete_response.py,sha256=bgYSTaziftqYbHxr8U9BnRdMjeoNd2scfrUWDZ20lY0,735
|
|
47
|
-
evermemos/types/v1/memory_get_response.py,sha256=
|
|
44
|
+
evermemos/types/v1/memory_get_response.py,sha256=wB2xoOUogneDNNquyWkP3o9byEuCZcIqOAtw6qUvUxE,5504
|
|
48
45
|
evermemos/types/v1/memory_load_params.py,sha256=PiBeFtBGUZ8LVuFm_rSE4VSX30xzw4OUKN4fivkVmEM,2068
|
|
49
46
|
evermemos/types/v1/memory_load_response.py,sha256=-H3TTXxB9eZ2568qwuRHn_dR8zphdY28bkmm6XWaA8I,634
|
|
50
47
|
evermemos/types/v1/memory_search_response.py,sha256=88K6Ft2ohFuHf0M5UQ6T-k1l3g0-Bat-mRLc6T5mXMw,2651
|
|
51
48
|
evermemos/types/v1/memory_type.py,sha256=J6Ojgl45dHWxTyR668QyAt6somaquvbjjl7ooqlK0Fw,251
|
|
52
49
|
evermemos/types/v1/metadata.py,sha256=Hu-gdrsH5EZ0mfNKaJjum7xZK0tMtosgXO3X98EdRTo,430
|
|
53
|
-
evermemos/types/v1/global_user_profile/__init__.py,sha256=
|
|
54
|
-
evermemos/types/v1/global_user_profile/custom_upsert_params.py,sha256=zVsQmWOeahfKl9Yg8iqAoKMWq6RJxOXG0rOt4dAEYfc,657
|
|
55
|
-
evermemos/types/v1/global_user_profile/custom_upsert_response.py,sha256=U2SeayuiUWXg9lHFQN6LXJt7SHsu2GCRIRPQRfgYDiU,528
|
|
50
|
+
evermemos/types/v1/global_user_profile/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
56
51
|
evermemos/types/v1/memories/__init__.py,sha256=WAXGVPS8gSSay4bXYizkjs14kDnDNKxD-ShtVdqnEFA,662
|
|
57
52
|
evermemos/types/v1/memories/conversation_meta_create_params.py,sha256=CoMv542jpA4CfUacswj0VSfhp-jWlyhsMDnD0wQ93Ho,1989
|
|
58
53
|
evermemos/types/v1/memories/conversation_meta_create_response.py,sha256=hefvN92wHDoTcReMTsnGIenZxQ-H1IRuNWys6sPxDIQ,1496
|
|
@@ -60,9 +55,9 @@ evermemos/types/v1/memories/conversation_meta_get_response.py,sha256=_4Nd7eiS-QZ
|
|
|
60
55
|
evermemos/types/v1/memories/conversation_meta_update_params.py,sha256=VNKMVsooBN8NHbBo9DoSRJJL4g6fSdtEnIvKpjrZnX4,1498
|
|
61
56
|
evermemos/types/v1/memories/conversation_meta_update_response.py,sha256=xLWnaeGCU35ts8ZswYbbvqjODNnPcbXhp9TXZ18Ogvo,1032
|
|
62
57
|
evermemos/types/v1/stats/__init__.py,sha256=qLacNLO9z56iP5d5zh32BOG1ot-9ebbny5jNBBrblhc,267
|
|
63
|
-
evermemos/types/v1/stats/request_get_params.py,sha256
|
|
58
|
+
evermemos/types/v1/stats/request_get_params.py,sha256=kZpEke7tQW2RSc3iyQhR3qQKSH5Gm0VNeGYbdQdpItw,373
|
|
64
59
|
evermemos/types/v1/stats/request_get_response.py,sha256=jUBHpcM3hIO_5iiWwtHGF1Wibr9DMjRrHZ3jGrbaaeo,598
|
|
65
|
-
evermemos-0.3.
|
|
66
|
-
evermemos-0.3.
|
|
67
|
-
evermemos-0.3.
|
|
68
|
-
evermemos-0.3.
|
|
60
|
+
evermemos-0.3.8.dist-info/METADATA,sha256=Nd9Wmbn8msdNfEL0QYiDdCg9JGsq6ggiDT8AppGiaOk,15718
|
|
61
|
+
evermemos-0.3.8.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
62
|
+
evermemos-0.3.8.dist-info/licenses/LICENSE,sha256=lTNFvvgo69z4I15AG8OiYYFHk0_wF3bMvN8eH3o7lh4,11339
|
|
63
|
+
evermemos-0.3.8.dist-info/RECORD,,
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from .custom import (
|
|
4
|
-
CustomResource,
|
|
5
|
-
AsyncCustomResource,
|
|
6
|
-
CustomResourceWithRawResponse,
|
|
7
|
-
AsyncCustomResourceWithRawResponse,
|
|
8
|
-
CustomResourceWithStreamingResponse,
|
|
9
|
-
AsyncCustomResourceWithStreamingResponse,
|
|
10
|
-
)
|
|
11
|
-
from .global_user_profile import (
|
|
12
|
-
GlobalUserProfileResource,
|
|
13
|
-
AsyncGlobalUserProfileResource,
|
|
14
|
-
GlobalUserProfileResourceWithRawResponse,
|
|
15
|
-
AsyncGlobalUserProfileResourceWithRawResponse,
|
|
16
|
-
GlobalUserProfileResourceWithStreamingResponse,
|
|
17
|
-
AsyncGlobalUserProfileResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
__all__ = [
|
|
21
|
-
"CustomResource",
|
|
22
|
-
"AsyncCustomResource",
|
|
23
|
-
"CustomResourceWithRawResponse",
|
|
24
|
-
"AsyncCustomResourceWithRawResponse",
|
|
25
|
-
"CustomResourceWithStreamingResponse",
|
|
26
|
-
"AsyncCustomResourceWithStreamingResponse",
|
|
27
|
-
"GlobalUserProfileResource",
|
|
28
|
-
"AsyncGlobalUserProfileResource",
|
|
29
|
-
"GlobalUserProfileResourceWithRawResponse",
|
|
30
|
-
"AsyncGlobalUserProfileResourceWithRawResponse",
|
|
31
|
-
"GlobalUserProfileResourceWithStreamingResponse",
|
|
32
|
-
"AsyncGlobalUserProfileResourceWithStreamingResponse",
|
|
33
|
-
]
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import httpx
|
|
6
|
-
|
|
7
|
-
from ...._types import Body, Query, Headers, NotGiven, not_given
|
|
8
|
-
from ...._utils import maybe_transform, async_maybe_transform
|
|
9
|
-
from ...._compat import cached_property
|
|
10
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
11
|
-
from ...._response import (
|
|
12
|
-
to_raw_response_wrapper,
|
|
13
|
-
to_streamed_response_wrapper,
|
|
14
|
-
async_to_raw_response_wrapper,
|
|
15
|
-
async_to_streamed_response_wrapper,
|
|
16
|
-
)
|
|
17
|
-
from ...._base_client import make_request_options
|
|
18
|
-
from ....types.v1.global_user_profile import custom_upsert_params
|
|
19
|
-
from ....types.v1.global_user_profile.custom_upsert_response import CustomUpsertResponse
|
|
20
|
-
|
|
21
|
-
__all__ = ["CustomResource", "AsyncCustomResource"]
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class CustomResource(SyncAPIResource):
|
|
25
|
-
@cached_property
|
|
26
|
-
def with_raw_response(self) -> CustomResourceWithRawResponse:
|
|
27
|
-
"""
|
|
28
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
29
|
-
the raw response object instead of the parsed content.
|
|
30
|
-
|
|
31
|
-
For more information, see https://www.github.com/evermemos/evermemos-python#accessing-raw-response-data-eg-headers
|
|
32
|
-
"""
|
|
33
|
-
return CustomResourceWithRawResponse(self)
|
|
34
|
-
|
|
35
|
-
@cached_property
|
|
36
|
-
def with_streaming_response(self) -> CustomResourceWithStreamingResponse:
|
|
37
|
-
"""
|
|
38
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
39
|
-
|
|
40
|
-
For more information, see https://www.github.com/evermemos/evermemos-python#with_streaming_response
|
|
41
|
-
"""
|
|
42
|
-
return CustomResourceWithStreamingResponse(self)
|
|
43
|
-
|
|
44
|
-
def upsert(
|
|
45
|
-
self,
|
|
46
|
-
*,
|
|
47
|
-
custom_profile_data: custom_upsert_params.CustomProfileData,
|
|
48
|
-
user_id: str,
|
|
49
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
50
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
51
|
-
extra_headers: Headers | None = None,
|
|
52
|
-
extra_query: Query | None = None,
|
|
53
|
-
extra_body: Body | None = None,
|
|
54
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
55
|
-
) -> CustomUpsertResponse:
|
|
56
|
-
"""
|
|
57
|
-
Upsert custom profile data for a user
|
|
58
|
-
|
|
59
|
-
Args:
|
|
60
|
-
custom_profile_data: Custom profile data to upsert
|
|
61
|
-
|
|
62
|
-
user_id: User ID
|
|
63
|
-
|
|
64
|
-
extra_headers: Send extra headers
|
|
65
|
-
|
|
66
|
-
extra_query: Add additional query parameters to the request
|
|
67
|
-
|
|
68
|
-
extra_body: Add additional JSON properties to the request
|
|
69
|
-
|
|
70
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
71
|
-
"""
|
|
72
|
-
return self._post(
|
|
73
|
-
"/api/v1/global-user-profile/custom",
|
|
74
|
-
body=maybe_transform(
|
|
75
|
-
{
|
|
76
|
-
"custom_profile_data": custom_profile_data,
|
|
77
|
-
"user_id": user_id,
|
|
78
|
-
},
|
|
79
|
-
custom_upsert_params.CustomUpsertParams,
|
|
80
|
-
),
|
|
81
|
-
options=make_request_options(
|
|
82
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
83
|
-
),
|
|
84
|
-
cast_to=CustomUpsertResponse,
|
|
85
|
-
)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
class AsyncCustomResource(AsyncAPIResource):
|
|
89
|
-
@cached_property
|
|
90
|
-
def with_raw_response(self) -> AsyncCustomResourceWithRawResponse:
|
|
91
|
-
"""
|
|
92
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
93
|
-
the raw response object instead of the parsed content.
|
|
94
|
-
|
|
95
|
-
For more information, see https://www.github.com/evermemos/evermemos-python#accessing-raw-response-data-eg-headers
|
|
96
|
-
"""
|
|
97
|
-
return AsyncCustomResourceWithRawResponse(self)
|
|
98
|
-
|
|
99
|
-
@cached_property
|
|
100
|
-
def with_streaming_response(self) -> AsyncCustomResourceWithStreamingResponse:
|
|
101
|
-
"""
|
|
102
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
103
|
-
|
|
104
|
-
For more information, see https://www.github.com/evermemos/evermemos-python#with_streaming_response
|
|
105
|
-
"""
|
|
106
|
-
return AsyncCustomResourceWithStreamingResponse(self)
|
|
107
|
-
|
|
108
|
-
async def upsert(
|
|
109
|
-
self,
|
|
110
|
-
*,
|
|
111
|
-
custom_profile_data: custom_upsert_params.CustomProfileData,
|
|
112
|
-
user_id: str,
|
|
113
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
114
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
115
|
-
extra_headers: Headers | None = None,
|
|
116
|
-
extra_query: Query | None = None,
|
|
117
|
-
extra_body: Body | None = None,
|
|
118
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
119
|
-
) -> CustomUpsertResponse:
|
|
120
|
-
"""
|
|
121
|
-
Upsert custom profile data for a user
|
|
122
|
-
|
|
123
|
-
Args:
|
|
124
|
-
custom_profile_data: Custom profile data to upsert
|
|
125
|
-
|
|
126
|
-
user_id: User ID
|
|
127
|
-
|
|
128
|
-
extra_headers: Send extra headers
|
|
129
|
-
|
|
130
|
-
extra_query: Add additional query parameters to the request
|
|
131
|
-
|
|
132
|
-
extra_body: Add additional JSON properties to the request
|
|
133
|
-
|
|
134
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
135
|
-
"""
|
|
136
|
-
return await self._post(
|
|
137
|
-
"/api/v1/global-user-profile/custom",
|
|
138
|
-
body=await async_maybe_transform(
|
|
139
|
-
{
|
|
140
|
-
"custom_profile_data": custom_profile_data,
|
|
141
|
-
"user_id": user_id,
|
|
142
|
-
},
|
|
143
|
-
custom_upsert_params.CustomUpsertParams,
|
|
144
|
-
),
|
|
145
|
-
options=make_request_options(
|
|
146
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
147
|
-
),
|
|
148
|
-
cast_to=CustomUpsertResponse,
|
|
149
|
-
)
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
class CustomResourceWithRawResponse:
|
|
153
|
-
def __init__(self, custom: CustomResource) -> None:
|
|
154
|
-
self._custom = custom
|
|
155
|
-
|
|
156
|
-
self.upsert = to_raw_response_wrapper(
|
|
157
|
-
custom.upsert,
|
|
158
|
-
)
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
class AsyncCustomResourceWithRawResponse:
|
|
162
|
-
def __init__(self, custom: AsyncCustomResource) -> None:
|
|
163
|
-
self._custom = custom
|
|
164
|
-
|
|
165
|
-
self.upsert = async_to_raw_response_wrapper(
|
|
166
|
-
custom.upsert,
|
|
167
|
-
)
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
class CustomResourceWithStreamingResponse:
|
|
171
|
-
def __init__(self, custom: CustomResource) -> None:
|
|
172
|
-
self._custom = custom
|
|
173
|
-
|
|
174
|
-
self.upsert = to_streamed_response_wrapper(
|
|
175
|
-
custom.upsert,
|
|
176
|
-
)
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
class AsyncCustomResourceWithStreamingResponse:
|
|
180
|
-
def __init__(self, custom: AsyncCustomResource) -> None:
|
|
181
|
-
self._custom = custom
|
|
182
|
-
|
|
183
|
-
self.upsert = async_to_streamed_response_wrapper(
|
|
184
|
-
custom.upsert,
|
|
185
|
-
)
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from .custom import (
|
|
6
|
-
CustomResource,
|
|
7
|
-
AsyncCustomResource,
|
|
8
|
-
CustomResourceWithRawResponse,
|
|
9
|
-
AsyncCustomResourceWithRawResponse,
|
|
10
|
-
CustomResourceWithStreamingResponse,
|
|
11
|
-
AsyncCustomResourceWithStreamingResponse,
|
|
12
|
-
)
|
|
13
|
-
from ...._compat import cached_property
|
|
14
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
15
|
-
|
|
16
|
-
__all__ = ["GlobalUserProfileResource", "AsyncGlobalUserProfileResource"]
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class GlobalUserProfileResource(SyncAPIResource):
|
|
20
|
-
@cached_property
|
|
21
|
-
def custom(self) -> CustomResource:
|
|
22
|
-
return CustomResource(self._client)
|
|
23
|
-
|
|
24
|
-
@cached_property
|
|
25
|
-
def with_raw_response(self) -> GlobalUserProfileResourceWithRawResponse:
|
|
26
|
-
"""
|
|
27
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
28
|
-
the raw response object instead of the parsed content.
|
|
29
|
-
|
|
30
|
-
For more information, see https://www.github.com/evermemos/evermemos-python#accessing-raw-response-data-eg-headers
|
|
31
|
-
"""
|
|
32
|
-
return GlobalUserProfileResourceWithRawResponse(self)
|
|
33
|
-
|
|
34
|
-
@cached_property
|
|
35
|
-
def with_streaming_response(self) -> GlobalUserProfileResourceWithStreamingResponse:
|
|
36
|
-
"""
|
|
37
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
38
|
-
|
|
39
|
-
For more information, see https://www.github.com/evermemos/evermemos-python#with_streaming_response
|
|
40
|
-
"""
|
|
41
|
-
return GlobalUserProfileResourceWithStreamingResponse(self)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
class AsyncGlobalUserProfileResource(AsyncAPIResource):
|
|
45
|
-
@cached_property
|
|
46
|
-
def custom(self) -> AsyncCustomResource:
|
|
47
|
-
return AsyncCustomResource(self._client)
|
|
48
|
-
|
|
49
|
-
@cached_property
|
|
50
|
-
def with_raw_response(self) -> AsyncGlobalUserProfileResourceWithRawResponse:
|
|
51
|
-
"""
|
|
52
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
53
|
-
the raw response object instead of the parsed content.
|
|
54
|
-
|
|
55
|
-
For more information, see https://www.github.com/evermemos/evermemos-python#accessing-raw-response-data-eg-headers
|
|
56
|
-
"""
|
|
57
|
-
return AsyncGlobalUserProfileResourceWithRawResponse(self)
|
|
58
|
-
|
|
59
|
-
@cached_property
|
|
60
|
-
def with_streaming_response(self) -> AsyncGlobalUserProfileResourceWithStreamingResponse:
|
|
61
|
-
"""
|
|
62
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
63
|
-
|
|
64
|
-
For more information, see https://www.github.com/evermemos/evermemos-python#with_streaming_response
|
|
65
|
-
"""
|
|
66
|
-
return AsyncGlobalUserProfileResourceWithStreamingResponse(self)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
class GlobalUserProfileResourceWithRawResponse:
|
|
70
|
-
def __init__(self, global_user_profile: GlobalUserProfileResource) -> None:
|
|
71
|
-
self._global_user_profile = global_user_profile
|
|
72
|
-
|
|
73
|
-
@cached_property
|
|
74
|
-
def custom(self) -> CustomResourceWithRawResponse:
|
|
75
|
-
return CustomResourceWithRawResponse(self._global_user_profile.custom)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
class AsyncGlobalUserProfileResourceWithRawResponse:
|
|
79
|
-
def __init__(self, global_user_profile: AsyncGlobalUserProfileResource) -> None:
|
|
80
|
-
self._global_user_profile = global_user_profile
|
|
81
|
-
|
|
82
|
-
@cached_property
|
|
83
|
-
def custom(self) -> AsyncCustomResourceWithRawResponse:
|
|
84
|
-
return AsyncCustomResourceWithRawResponse(self._global_user_profile.custom)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
class GlobalUserProfileResourceWithStreamingResponse:
|
|
88
|
-
def __init__(self, global_user_profile: GlobalUserProfileResource) -> None:
|
|
89
|
-
self._global_user_profile = global_user_profile
|
|
90
|
-
|
|
91
|
-
@cached_property
|
|
92
|
-
def custom(self) -> CustomResourceWithStreamingResponse:
|
|
93
|
-
return CustomResourceWithStreamingResponse(self._global_user_profile.custom)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
class AsyncGlobalUserProfileResourceWithStreamingResponse:
|
|
97
|
-
def __init__(self, global_user_profile: AsyncGlobalUserProfileResource) -> None:
|
|
98
|
-
self._global_user_profile = global_user_profile
|
|
99
|
-
|
|
100
|
-
@cached_property
|
|
101
|
-
def custom(self) -> AsyncCustomResourceWithStreamingResponse:
|
|
102
|
-
return AsyncCustomResourceWithStreamingResponse(self._global_user_profile.custom)
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import Required, TypedDict
|
|
6
|
-
|
|
7
|
-
from ...._types import SequenceNotStr
|
|
8
|
-
|
|
9
|
-
__all__ = ["CustomUpsertParams", "CustomProfileData"]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class CustomUpsertParams(TypedDict, total=False):
|
|
13
|
-
custom_profile_data: Required[CustomProfileData]
|
|
14
|
-
"""Custom profile data to upsert"""
|
|
15
|
-
|
|
16
|
-
user_id: Required[str]
|
|
17
|
-
"""User ID"""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class CustomProfileData(TypedDict, total=False):
|
|
21
|
-
"""Custom profile data to upsert"""
|
|
22
|
-
|
|
23
|
-
initial_profile: Required[SequenceNotStr[str]]
|
|
24
|
-
"""List of profile sentences describing the user"""
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Dict, Optional
|
|
4
|
-
|
|
5
|
-
from ...._models import BaseModel
|
|
6
|
-
|
|
7
|
-
__all__ = ["CustomUpsertResponse"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class CustomUpsertResponse(BaseModel):
|
|
11
|
-
"""Upsert custom profile response
|
|
12
|
-
|
|
13
|
-
Response for upsert custom profile API.
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
success: bool
|
|
17
|
-
"""Whether the operation was successful"""
|
|
18
|
-
|
|
19
|
-
data: Optional[Dict[str, object]] = None
|
|
20
|
-
"""Created/updated profile data"""
|
|
21
|
-
|
|
22
|
-
message: Optional[str] = None
|
|
23
|
-
"""Message"""
|
|
File without changes
|
|
File without changes
|