evermemos 0.3.7__py3-none-any.whl → 0.3.9__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 -28
- evermemos/resources/v1/memories/conversation_meta.py +0 -86
- evermemos/resources/v1/memories/memories.py +8 -76
- evermemos/resources/v1/v1.py +0 -64
- evermemos/types/v1/global_user_profile/__init__.py +0 -3
- evermemos/types/v1/memories/conversation_meta_create_params.py +0 -35
- evermemos/types/v1/memories/conversation_meta_create_response.py +0 -25
- evermemos/types/v1/memories/conversation_meta_get_response.py +0 -25
- evermemos/types/v1/memories/conversation_meta_update_params.py +0 -24
- evermemos/types/v1/memories/conversation_meta_update_response.py +0 -16
- evermemos/types/v1/memory_create_params.py +1 -22
- evermemos/types/v1/memory_create_response.py +4 -30
- evermemos/types/v1/memory_delete_params.py +2 -5
- evermemos/types/v1/memory_delete_response.py +0 -12
- evermemos/types/v1/memory_get_response.py +4 -12
- evermemos/types/v1/memory_load_params.py +0 -27
- evermemos/types/v1/memory_load_response.py +0 -7
- evermemos/types/v1/memory_search_response.py +5 -23
- evermemos/types/v1/stats/__init__.py +0 -3
- {evermemos-0.3.7.dist-info → evermemos-0.3.9.dist-info}/METADATA +6 -7
- {evermemos-0.3.7.dist-info → evermemos-0.3.9.dist-info}/RECORD +24 -34
- 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/resources/v1/stats/__init__.py +0 -33
- evermemos/resources/v1/stats/request.py +0 -175
- evermemos/resources/v1/stats/stats.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/types/v1/stats/request_get_params.py +0 -13
- evermemos/types/v1/stats/request_get_response.py +0 -26
- {evermemos-0.3.7.dist-info → evermemos-0.3.9.dist-info}/WHEEL +0 -0
- {evermemos-0.3.7.dist-info → evermemos-0.3.9.dist-info}/licenses/LICENSE +0 -0
|
@@ -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,33 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from .stats import (
|
|
4
|
-
StatsResource,
|
|
5
|
-
AsyncStatsResource,
|
|
6
|
-
StatsResourceWithRawResponse,
|
|
7
|
-
AsyncStatsResourceWithRawResponse,
|
|
8
|
-
StatsResourceWithStreamingResponse,
|
|
9
|
-
AsyncStatsResourceWithStreamingResponse,
|
|
10
|
-
)
|
|
11
|
-
from .request import (
|
|
12
|
-
RequestResource,
|
|
13
|
-
AsyncRequestResource,
|
|
14
|
-
RequestResourceWithRawResponse,
|
|
15
|
-
AsyncRequestResourceWithRawResponse,
|
|
16
|
-
RequestResourceWithStreamingResponse,
|
|
17
|
-
AsyncRequestResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
__all__ = [
|
|
21
|
-
"RequestResource",
|
|
22
|
-
"AsyncRequestResource",
|
|
23
|
-
"RequestResourceWithRawResponse",
|
|
24
|
-
"AsyncRequestResourceWithRawResponse",
|
|
25
|
-
"RequestResourceWithStreamingResponse",
|
|
26
|
-
"AsyncRequestResourceWithStreamingResponse",
|
|
27
|
-
"StatsResource",
|
|
28
|
-
"AsyncStatsResource",
|
|
29
|
-
"StatsResourceWithRawResponse",
|
|
30
|
-
"AsyncStatsResourceWithRawResponse",
|
|
31
|
-
"StatsResourceWithStreamingResponse",
|
|
32
|
-
"AsyncStatsResourceWithStreamingResponse",
|
|
33
|
-
]
|
|
@@ -1,175 +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 import Optional
|
|
6
|
-
|
|
7
|
-
import httpx
|
|
8
|
-
|
|
9
|
-
from ...._types import Body, Query, Headers, NotGiven, not_given
|
|
10
|
-
from ...._utils import maybe_transform, async_maybe_transform
|
|
11
|
-
from ...._compat import cached_property
|
|
12
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
13
|
-
from ...._response import (
|
|
14
|
-
to_raw_response_wrapper,
|
|
15
|
-
to_streamed_response_wrapper,
|
|
16
|
-
async_to_raw_response_wrapper,
|
|
17
|
-
async_to_streamed_response_wrapper,
|
|
18
|
-
)
|
|
19
|
-
from ...._base_client import make_request_options
|
|
20
|
-
from ....types.v1.stats import request_get_params
|
|
21
|
-
from ....types.v1.stats.request_get_response import RequestGetResponse
|
|
22
|
-
|
|
23
|
-
__all__ = ["RequestResource", "AsyncRequestResource"]
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class RequestResource(SyncAPIResource):
|
|
27
|
-
@cached_property
|
|
28
|
-
def with_raw_response(self) -> RequestResourceWithRawResponse:
|
|
29
|
-
"""
|
|
30
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
31
|
-
the raw response object instead of the parsed content.
|
|
32
|
-
|
|
33
|
-
For more information, see https://www.github.com/evermemos/evermemos-python#accessing-raw-response-data-eg-headers
|
|
34
|
-
"""
|
|
35
|
-
return RequestResourceWithRawResponse(self)
|
|
36
|
-
|
|
37
|
-
@cached_property
|
|
38
|
-
def with_streaming_response(self) -> RequestResourceWithStreamingResponse:
|
|
39
|
-
"""
|
|
40
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
41
|
-
|
|
42
|
-
For more information, see https://www.github.com/evermemos/evermemos-python#with_streaming_response
|
|
43
|
-
"""
|
|
44
|
-
return RequestResourceWithStreamingResponse(self)
|
|
45
|
-
|
|
46
|
-
def get(
|
|
47
|
-
self,
|
|
48
|
-
*,
|
|
49
|
-
request_id: Optional[str],
|
|
50
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
51
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
52
|
-
extra_headers: Headers | None = None,
|
|
53
|
-
extra_query: Query | None = None,
|
|
54
|
-
extra_body: Body | None = None,
|
|
55
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
56
|
-
) -> RequestGetResponse:
|
|
57
|
-
"""
|
|
58
|
-
Query the processing status of a specific request
|
|
59
|
-
|
|
60
|
-
Args:
|
|
61
|
-
request_id: Request ID (recommended)
|
|
62
|
-
|
|
63
|
-
extra_headers: Send extra headers
|
|
64
|
-
|
|
65
|
-
extra_query: Add additional query parameters to the request
|
|
66
|
-
|
|
67
|
-
extra_body: Add additional JSON properties to the request
|
|
68
|
-
|
|
69
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
70
|
-
"""
|
|
71
|
-
return self._get(
|
|
72
|
-
"/api/v1/stats/request",
|
|
73
|
-
options=make_request_options(
|
|
74
|
-
extra_headers=extra_headers,
|
|
75
|
-
extra_query=extra_query,
|
|
76
|
-
extra_body=extra_body,
|
|
77
|
-
timeout=timeout,
|
|
78
|
-
query=maybe_transform({"request_id": request_id}, request_get_params.RequestGetParams),
|
|
79
|
-
),
|
|
80
|
-
cast_to=RequestGetResponse,
|
|
81
|
-
)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
class AsyncRequestResource(AsyncAPIResource):
|
|
85
|
-
@cached_property
|
|
86
|
-
def with_raw_response(self) -> AsyncRequestResourceWithRawResponse:
|
|
87
|
-
"""
|
|
88
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
89
|
-
the raw response object instead of the parsed content.
|
|
90
|
-
|
|
91
|
-
For more information, see https://www.github.com/evermemos/evermemos-python#accessing-raw-response-data-eg-headers
|
|
92
|
-
"""
|
|
93
|
-
return AsyncRequestResourceWithRawResponse(self)
|
|
94
|
-
|
|
95
|
-
@cached_property
|
|
96
|
-
def with_streaming_response(self) -> AsyncRequestResourceWithStreamingResponse:
|
|
97
|
-
"""
|
|
98
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
99
|
-
|
|
100
|
-
For more information, see https://www.github.com/evermemos/evermemos-python#with_streaming_response
|
|
101
|
-
"""
|
|
102
|
-
return AsyncRequestResourceWithStreamingResponse(self)
|
|
103
|
-
|
|
104
|
-
async def get(
|
|
105
|
-
self,
|
|
106
|
-
*,
|
|
107
|
-
request_id: Optional[str],
|
|
108
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
109
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
110
|
-
extra_headers: Headers | None = None,
|
|
111
|
-
extra_query: Query | None = None,
|
|
112
|
-
extra_body: Body | None = None,
|
|
113
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
114
|
-
) -> RequestGetResponse:
|
|
115
|
-
"""
|
|
116
|
-
Query the processing status of a specific request
|
|
117
|
-
|
|
118
|
-
Args:
|
|
119
|
-
request_id: Request ID (recommended)
|
|
120
|
-
|
|
121
|
-
extra_headers: Send extra headers
|
|
122
|
-
|
|
123
|
-
extra_query: Add additional query parameters to the request
|
|
124
|
-
|
|
125
|
-
extra_body: Add additional JSON properties to the request
|
|
126
|
-
|
|
127
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
128
|
-
"""
|
|
129
|
-
return await self._get(
|
|
130
|
-
"/api/v1/stats/request",
|
|
131
|
-
options=make_request_options(
|
|
132
|
-
extra_headers=extra_headers,
|
|
133
|
-
extra_query=extra_query,
|
|
134
|
-
extra_body=extra_body,
|
|
135
|
-
timeout=timeout,
|
|
136
|
-
query=await async_maybe_transform({"request_id": request_id}, request_get_params.RequestGetParams),
|
|
137
|
-
),
|
|
138
|
-
cast_to=RequestGetResponse,
|
|
139
|
-
)
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
class RequestResourceWithRawResponse:
|
|
143
|
-
def __init__(self, request: RequestResource) -> None:
|
|
144
|
-
self._request = request
|
|
145
|
-
|
|
146
|
-
self.get = to_raw_response_wrapper(
|
|
147
|
-
request.get,
|
|
148
|
-
)
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
class AsyncRequestResourceWithRawResponse:
|
|
152
|
-
def __init__(self, request: AsyncRequestResource) -> None:
|
|
153
|
-
self._request = request
|
|
154
|
-
|
|
155
|
-
self.get = async_to_raw_response_wrapper(
|
|
156
|
-
request.get,
|
|
157
|
-
)
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
class RequestResourceWithStreamingResponse:
|
|
161
|
-
def __init__(self, request: RequestResource) -> None:
|
|
162
|
-
self._request = request
|
|
163
|
-
|
|
164
|
-
self.get = to_streamed_response_wrapper(
|
|
165
|
-
request.get,
|
|
166
|
-
)
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
class AsyncRequestResourceWithStreamingResponse:
|
|
170
|
-
def __init__(self, request: AsyncRequestResource) -> None:
|
|
171
|
-
self._request = request
|
|
172
|
-
|
|
173
|
-
self.get = async_to_streamed_response_wrapper(
|
|
174
|
-
request.get,
|
|
175
|
-
)
|
|
@@ -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 .request import (
|
|
6
|
-
RequestResource,
|
|
7
|
-
AsyncRequestResource,
|
|
8
|
-
RequestResourceWithRawResponse,
|
|
9
|
-
AsyncRequestResourceWithRawResponse,
|
|
10
|
-
RequestResourceWithStreamingResponse,
|
|
11
|
-
AsyncRequestResourceWithStreamingResponse,
|
|
12
|
-
)
|
|
13
|
-
from ...._compat import cached_property
|
|
14
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
15
|
-
|
|
16
|
-
__all__ = ["StatsResource", "AsyncStatsResource"]
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class StatsResource(SyncAPIResource):
|
|
20
|
-
@cached_property
|
|
21
|
-
def request(self) -> RequestResource:
|
|
22
|
-
return RequestResource(self._client)
|
|
23
|
-
|
|
24
|
-
@cached_property
|
|
25
|
-
def with_raw_response(self) -> StatsResourceWithRawResponse:
|
|
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 StatsResourceWithRawResponse(self)
|
|
33
|
-
|
|
34
|
-
@cached_property
|
|
35
|
-
def with_streaming_response(self) -> StatsResourceWithStreamingResponse:
|
|
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 StatsResourceWithStreamingResponse(self)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
class AsyncStatsResource(AsyncAPIResource):
|
|
45
|
-
@cached_property
|
|
46
|
-
def request(self) -> AsyncRequestResource:
|
|
47
|
-
return AsyncRequestResource(self._client)
|
|
48
|
-
|
|
49
|
-
@cached_property
|
|
50
|
-
def with_raw_response(self) -> AsyncStatsResourceWithRawResponse:
|
|
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 AsyncStatsResourceWithRawResponse(self)
|
|
58
|
-
|
|
59
|
-
@cached_property
|
|
60
|
-
def with_streaming_response(self) -> AsyncStatsResourceWithStreamingResponse:
|
|
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 AsyncStatsResourceWithStreamingResponse(self)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
class StatsResourceWithRawResponse:
|
|
70
|
-
def __init__(self, stats: StatsResource) -> None:
|
|
71
|
-
self._stats = stats
|
|
72
|
-
|
|
73
|
-
@cached_property
|
|
74
|
-
def request(self) -> RequestResourceWithRawResponse:
|
|
75
|
-
return RequestResourceWithRawResponse(self._stats.request)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
class AsyncStatsResourceWithRawResponse:
|
|
79
|
-
def __init__(self, stats: AsyncStatsResource) -> None:
|
|
80
|
-
self._stats = stats
|
|
81
|
-
|
|
82
|
-
@cached_property
|
|
83
|
-
def request(self) -> AsyncRequestResourceWithRawResponse:
|
|
84
|
-
return AsyncRequestResourceWithRawResponse(self._stats.request)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
class StatsResourceWithStreamingResponse:
|
|
88
|
-
def __init__(self, stats: StatsResource) -> None:
|
|
89
|
-
self._stats = stats
|
|
90
|
-
|
|
91
|
-
@cached_property
|
|
92
|
-
def request(self) -> RequestResourceWithStreamingResponse:
|
|
93
|
-
return RequestResourceWithStreamingResponse(self._stats.request)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
class AsyncStatsResourceWithStreamingResponse:
|
|
97
|
-
def __init__(self, stats: AsyncStatsResource) -> None:
|
|
98
|
-
self._stats = stats
|
|
99
|
-
|
|
100
|
-
@cached_property
|
|
101
|
-
def request(self) -> AsyncRequestResourceWithStreamingResponse:
|
|
102
|
-
return AsyncRequestResourceWithStreamingResponse(self._stats.request)
|
|
@@ -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"""
|
|
@@ -1,13 +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 import Optional
|
|
6
|
-
from typing_extensions import Required, TypedDict
|
|
7
|
-
|
|
8
|
-
__all__ = ["RequestGetParams"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class RequestGetParams(TypedDict, total=False):
|
|
12
|
-
request_id: Required[Optional[str]]
|
|
13
|
-
"""Request ID (recommended)"""
|
|
@@ -1,26 +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__ = ["RequestGetResponse"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class RequestGetResponse(BaseModel):
|
|
11
|
-
"""Request status response
|
|
12
|
-
|
|
13
|
-
Contains detailed status information of the request.
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
success: bool
|
|
17
|
-
"""Whether the query was successful"""
|
|
18
|
-
|
|
19
|
-
data: Optional[Dict[str, object]] = None
|
|
20
|
-
"""Request status data"""
|
|
21
|
-
|
|
22
|
-
found: Optional[bool] = None
|
|
23
|
-
"""Whether the request status was found"""
|
|
24
|
-
|
|
25
|
-
message: Optional[str] = None
|
|
26
|
-
"""Message"""
|
|
File without changes
|
|
File without changes
|