studyfetch-sdk 0.1.0a1__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 (165) hide show
  1. studyfetch_sdk/__init__.py +100 -0
  2. studyfetch_sdk/_base_client.py +1992 -0
  3. studyfetch_sdk/_client.py +403 -0
  4. studyfetch_sdk/_compat.py +219 -0
  5. studyfetch_sdk/_constants.py +14 -0
  6. studyfetch_sdk/_exceptions.py +108 -0
  7. studyfetch_sdk/_files.py +123 -0
  8. studyfetch_sdk/_models.py +808 -0
  9. studyfetch_sdk/_qs.py +150 -0
  10. studyfetch_sdk/_resource.py +43 -0
  11. studyfetch_sdk/_response.py +832 -0
  12. studyfetch_sdk/_streaming.py +333 -0
  13. studyfetch_sdk/_types.py +219 -0
  14. studyfetch_sdk/_utils/__init__.py +57 -0
  15. studyfetch_sdk/_utils/_logs.py +25 -0
  16. studyfetch_sdk/_utils/_proxy.py +65 -0
  17. studyfetch_sdk/_utils/_reflection.py +42 -0
  18. studyfetch_sdk/_utils/_resources_proxy.py +24 -0
  19. studyfetch_sdk/_utils/_streams.py +12 -0
  20. studyfetch_sdk/_utils/_sync.py +86 -0
  21. studyfetch_sdk/_utils/_transform.py +447 -0
  22. studyfetch_sdk/_utils/_typing.py +151 -0
  23. studyfetch_sdk/_utils/_utils.py +422 -0
  24. studyfetch_sdk/_version.py +4 -0
  25. studyfetch_sdk/lib/.keep +4 -0
  26. studyfetch_sdk/py.typed +0 -0
  27. studyfetch_sdk/resources/__init__.py +19 -0
  28. studyfetch_sdk/resources/v1/__init__.py +215 -0
  29. studyfetch_sdk/resources/v1/audio_recaps/__init__.py +33 -0
  30. studyfetch_sdk/resources/v1/audio_recaps/audio_recaps.py +328 -0
  31. studyfetch_sdk/resources/v1/audio_recaps/sections.py +250 -0
  32. studyfetch_sdk/resources/v1/auth/__init__.py +61 -0
  33. studyfetch_sdk/resources/v1/auth/auth.py +620 -0
  34. studyfetch_sdk/resources/v1/auth/login.py +374 -0
  35. studyfetch_sdk/resources/v1/auth/number_2fa.py +457 -0
  36. studyfetch_sdk/resources/v1/auth/organization_invites.py +160 -0
  37. studyfetch_sdk/resources/v1/chat/__init__.py +47 -0
  38. studyfetch_sdk/resources/v1/chat/chat.py +576 -0
  39. studyfetch_sdk/resources/v1/chat/sessions.py +222 -0
  40. studyfetch_sdk/resources/v1/chat/test.py +190 -0
  41. studyfetch_sdk/resources/v1/components.py +943 -0
  42. studyfetch_sdk/resources/v1/embed/__init__.py +33 -0
  43. studyfetch_sdk/resources/v1/embed/component.py +278 -0
  44. studyfetch_sdk/resources/v1/embed/embed.py +346 -0
  45. studyfetch_sdk/resources/v1/explainers.py +216 -0
  46. studyfetch_sdk/resources/v1/flashcards.py +783 -0
  47. studyfetch_sdk/resources/v1/folders.py +744 -0
  48. studyfetch_sdk/resources/v1/materials/__init__.py +61 -0
  49. studyfetch_sdk/resources/v1/materials/bulk.py +134 -0
  50. studyfetch_sdk/resources/v1/materials/materials.py +1029 -0
  51. studyfetch_sdk/resources/v1/materials/test.py +290 -0
  52. studyfetch_sdk/resources/v1/materials/upload.py +410 -0
  53. studyfetch_sdk/resources/v1/organizations/__init__.py +103 -0
  54. studyfetch_sdk/resources/v1/organizations/api_keys.py +260 -0
  55. studyfetch_sdk/resources/v1/organizations/logo/__init__.py +33 -0
  56. studyfetch_sdk/resources/v1/organizations/logo/logo.py +166 -0
  57. studyfetch_sdk/resources/v1/organizations/logo/upload.py +184 -0
  58. studyfetch_sdk/resources/v1/organizations/organizations.py +428 -0
  59. studyfetch_sdk/resources/v1/organizations/profile/__init__.py +47 -0
  60. studyfetch_sdk/resources/v1/organizations/profile/models.py +134 -0
  61. studyfetch_sdk/resources/v1/organizations/profile/profile.py +248 -0
  62. studyfetch_sdk/resources/v1/organizations/profile/team.py +462 -0
  63. studyfetch_sdk/resources/v1/organizations/team/__init__.py +33 -0
  64. studyfetch_sdk/resources/v1/organizations/team/invite.py +236 -0
  65. studyfetch_sdk/resources/v1/organizations/team/team.py +564 -0
  66. studyfetch_sdk/resources/v1/organizations/theme.py +184 -0
  67. studyfetch_sdk/resources/v1/organizations/usage.py +160 -0
  68. studyfetch_sdk/resources/v1/scenarios/__init__.py +61 -0
  69. studyfetch_sdk/resources/v1/scenarios/component.py +330 -0
  70. studyfetch_sdk/resources/v1/scenarios/scenarios.py +708 -0
  71. studyfetch_sdk/resources/v1/scenarios/sessions.py +236 -0
  72. studyfetch_sdk/resources/v1/scenarios/submissions/__init__.py +33 -0
  73. studyfetch_sdk/resources/v1/scenarios/submissions/submissions.py +102 -0
  74. studyfetch_sdk/resources/v1/scenarios/submissions/user.py +210 -0
  75. studyfetch_sdk/resources/v1/tests/__init__.py +33 -0
  76. studyfetch_sdk/resources/v1/tests/component.py +160 -0
  77. studyfetch_sdk/resources/v1/tests/tests.py +682 -0
  78. studyfetch_sdk/resources/v1/upload/__init__.py +33 -0
  79. studyfetch_sdk/resources/v1/upload/component.py +388 -0
  80. studyfetch_sdk/resources/v1/upload/upload.py +102 -0
  81. studyfetch_sdk/resources/v1/usage.py +1126 -0
  82. studyfetch_sdk/resources/v1/v1.py +518 -0
  83. studyfetch_sdk/types/__init__.py +3 -0
  84. studyfetch_sdk/types/v1/__init__.py +52 -0
  85. studyfetch_sdk/types/v1/admin/__init__.py +3 -0
  86. studyfetch_sdk/types/v1/admin/organizations/__init__.py +3 -0
  87. studyfetch_sdk/types/v1/admin/organizations/models/__init__.py +3 -0
  88. studyfetch_sdk/types/v1/audio_recaps/__init__.py +3 -0
  89. studyfetch_sdk/types/v1/auth/__init__.py +13 -0
  90. studyfetch_sdk/types/v1/auth/login_authenticate_params.py +15 -0
  91. studyfetch_sdk/types/v1/auth/login_verify_2fa_params.py +15 -0
  92. studyfetch_sdk/types/v1/auth/login_verify_backup_code_params.py +17 -0
  93. studyfetch_sdk/types/v1/auth/number_2fa_disable_params.py +12 -0
  94. studyfetch_sdk/types/v1/auth/number_2fa_enable_params.py +12 -0
  95. studyfetch_sdk/types/v1/auth/number_2fa_regenerate_backup_codes_params.py +12 -0
  96. studyfetch_sdk/types/v1/auth/number_2fa_send_code_params.py +12 -0
  97. studyfetch_sdk/types/v1/auth_register_new_user_params.py +23 -0
  98. studyfetch_sdk/types/v1/auth_request_password_reset_params.py +12 -0
  99. studyfetch_sdk/types/v1/auth_reset_password_params.py +17 -0
  100. studyfetch_sdk/types/v1/chat/__init__.py +5 -0
  101. studyfetch_sdk/types/v1/chat/session_retrieve_params.py +11 -0
  102. studyfetch_sdk/types/v1/chat_retrieve_session_params.py +13 -0
  103. studyfetch_sdk/types/v1/chat_send_message_params.py +54 -0
  104. studyfetch_sdk/types/v1/chat_stream_params.py +28 -0
  105. studyfetch_sdk/types/v1/component_create_params.py +29 -0
  106. studyfetch_sdk/types/v1/component_create_response.py +46 -0
  107. studyfetch_sdk/types/v1/component_embed_params.py +99 -0
  108. studyfetch_sdk/types/v1/component_embed_response.py +38 -0
  109. studyfetch_sdk/types/v1/component_list_params.py +14 -0
  110. studyfetch_sdk/types/v1/component_list_response.py +49 -0
  111. studyfetch_sdk/types/v1/component_retrieve_response.py +46 -0
  112. studyfetch_sdk/types/v1/component_update_params.py +12 -0
  113. studyfetch_sdk/types/v1/component_update_response.py +46 -0
  114. studyfetch_sdk/types/v1/embed/__init__.py +6 -0
  115. studyfetch_sdk/types/v1/embed/component_interact_params.py +14 -0
  116. studyfetch_sdk/types/v1/embed/component_retrieve_params.py +12 -0
  117. studyfetch_sdk/types/v1/embed_get_theme_params.py +12 -0
  118. studyfetch_sdk/types/v1/embed_verify_params.py +12 -0
  119. studyfetch_sdk/types/v1/explainer_handle_webhook_params.py +11 -0
  120. studyfetch_sdk/types/v1/flashcard_batch_process_params.py +36 -0
  121. studyfetch_sdk/types/v1/flashcard_batch_process_response.py +39 -0
  122. studyfetch_sdk/types/v1/flashcard_get_algorithm_info_response.py +37 -0
  123. studyfetch_sdk/types/v1/flashcard_get_all_params.py +23 -0
  124. studyfetch_sdk/types/v1/flashcard_get_due_params.py +19 -0
  125. studyfetch_sdk/types/v1/flashcard_get_stats_params.py +17 -0
  126. studyfetch_sdk/types/v1/flashcard_get_types_response.py +14 -0
  127. studyfetch_sdk/types/v1/flashcard_rate_params.py +23 -0
  128. studyfetch_sdk/types/v1/folder_create_params.py +17 -0
  129. studyfetch_sdk/types/v1/folder_list_params.py +14 -0
  130. studyfetch_sdk/types/v1/folder_update_params.py +17 -0
  131. studyfetch_sdk/types/v1/material_create_params.py +34 -0
  132. studyfetch_sdk/types/v1/material_create_response.py +62 -0
  133. studyfetch_sdk/types/v1/material_get_download_url_params.py +13 -0
  134. studyfetch_sdk/types/v1/material_list_params.py +14 -0
  135. studyfetch_sdk/types/v1/material_list_response.py +65 -0
  136. studyfetch_sdk/types/v1/material_retrieve_response.py +62 -0
  137. studyfetch_sdk/types/v1/materials/__init__.py +8 -0
  138. studyfetch_sdk/types/v1/materials/upload_upload_file_params.py +20 -0
  139. studyfetch_sdk/types/v1/materials/upload_upload_file_response.py +62 -0
  140. studyfetch_sdk/types/v1/materials/upload_upload_from_url_params.py +20 -0
  141. studyfetch_sdk/types/v1/materials/upload_upload_from_url_response.py +62 -0
  142. studyfetch_sdk/types/v1/organizations/__init__.py +3 -0
  143. studyfetch_sdk/types/v1/organizations/logo/__init__.py +3 -0
  144. studyfetch_sdk/types/v1/organizations/profile/__init__.py +3 -0
  145. studyfetch_sdk/types/v1/organizations/team/__init__.py +3 -0
  146. studyfetch_sdk/types/v1/scenario_create_params.py +11 -0
  147. studyfetch_sdk/types/v1/scenario_update_params.py +11 -0
  148. studyfetch_sdk/types/v1/scenarios/__init__.py +5 -0
  149. studyfetch_sdk/types/v1/scenarios/component_update_params.py +11 -0
  150. studyfetch_sdk/types/v1/scenarios/submissions/__init__.py +3 -0
  151. studyfetch_sdk/types/v1/test_create_params.py +20 -0
  152. studyfetch_sdk/types/v1/test_retake_params.py +14 -0
  153. studyfetch_sdk/types/v1/test_submit_answer_params.py +20 -0
  154. studyfetch_sdk/types/v1/test_submit_params.py +14 -0
  155. studyfetch_sdk/types/v1/tests/__init__.py +3 -0
  156. studyfetch_sdk/types/v1/upload/__init__.py +3 -0
  157. studyfetch_sdk/types/v1/usage_get_stats_params.py +23 -0
  158. studyfetch_sdk/types/v1/usage_get_summary_params.py +23 -0
  159. studyfetch_sdk/types/v1/usage_list_events_params.py +61 -0
  160. studyfetch_sdk/types/v1/usage_track_chat_params.py +54 -0
  161. studyfetch_sdk/types/v1/usage_track_event_params.py +128 -0
  162. studyfetch_sdk-0.1.0a1.dist-info/METADATA +453 -0
  163. studyfetch_sdk-0.1.0a1.dist-info/RECORD +165 -0
  164. studyfetch_sdk-0.1.0a1.dist-info/WHEEL +4 -0
  165. studyfetch_sdk-0.1.0a1.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,134 @@
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 NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
8
+ from ....._compat import cached_property
9
+ from ....._resource import SyncAPIResource, AsyncAPIResource
10
+ from ....._response import (
11
+ to_raw_response_wrapper,
12
+ to_streamed_response_wrapper,
13
+ async_to_raw_response_wrapper,
14
+ async_to_streamed_response_wrapper,
15
+ )
16
+ from ....._base_client import make_request_options
17
+
18
+ __all__ = ["ModelsResource", "AsyncModelsResource"]
19
+
20
+
21
+ class ModelsResource(SyncAPIResource):
22
+ @cached_property
23
+ def with_raw_response(self) -> ModelsResourceWithRawResponse:
24
+ """
25
+ This property can be used as a prefix for any HTTP method call to return
26
+ the raw response object instead of the parsed content.
27
+
28
+ For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
29
+ """
30
+ return ModelsResourceWithRawResponse(self)
31
+
32
+ @cached_property
33
+ def with_streaming_response(self) -> ModelsResourceWithStreamingResponse:
34
+ """
35
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
36
+
37
+ For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
38
+ """
39
+ return ModelsResourceWithStreamingResponse(self)
40
+
41
+ def retrieve_available(
42
+ self,
43
+ *,
44
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
45
+ # The extra values given here take precedence over values defined on the client or passed to this method.
46
+ extra_headers: Headers | None = None,
47
+ extra_query: Query | None = None,
48
+ extra_body: Body | None = None,
49
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
50
+ ) -> None:
51
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
52
+ return self._get(
53
+ "/api/v1/organizations/profile/models/available",
54
+ options=make_request_options(
55
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
56
+ ),
57
+ cast_to=NoneType,
58
+ )
59
+
60
+
61
+ class AsyncModelsResource(AsyncAPIResource):
62
+ @cached_property
63
+ def with_raw_response(self) -> AsyncModelsResourceWithRawResponse:
64
+ """
65
+ This property can be used as a prefix for any HTTP method call to return
66
+ the raw response object instead of the parsed content.
67
+
68
+ For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
69
+ """
70
+ return AsyncModelsResourceWithRawResponse(self)
71
+
72
+ @cached_property
73
+ def with_streaming_response(self) -> AsyncModelsResourceWithStreamingResponse:
74
+ """
75
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
76
+
77
+ For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
78
+ """
79
+ return AsyncModelsResourceWithStreamingResponse(self)
80
+
81
+ async def retrieve_available(
82
+ self,
83
+ *,
84
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
85
+ # The extra values given here take precedence over values defined on the client or passed to this method.
86
+ extra_headers: Headers | None = None,
87
+ extra_query: Query | None = None,
88
+ extra_body: Body | None = None,
89
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
90
+ ) -> None:
91
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
92
+ return await self._get(
93
+ "/api/v1/organizations/profile/models/available",
94
+ options=make_request_options(
95
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
96
+ ),
97
+ cast_to=NoneType,
98
+ )
99
+
100
+
101
+ class ModelsResourceWithRawResponse:
102
+ def __init__(self, models: ModelsResource) -> None:
103
+ self._models = models
104
+
105
+ self.retrieve_available = to_raw_response_wrapper(
106
+ models.retrieve_available,
107
+ )
108
+
109
+
110
+ class AsyncModelsResourceWithRawResponse:
111
+ def __init__(self, models: AsyncModelsResource) -> None:
112
+ self._models = models
113
+
114
+ self.retrieve_available = async_to_raw_response_wrapper(
115
+ models.retrieve_available,
116
+ )
117
+
118
+
119
+ class ModelsResourceWithStreamingResponse:
120
+ def __init__(self, models: ModelsResource) -> None:
121
+ self._models = models
122
+
123
+ self.retrieve_available = to_streamed_response_wrapper(
124
+ models.retrieve_available,
125
+ )
126
+
127
+
128
+ class AsyncModelsResourceWithStreamingResponse:
129
+ def __init__(self, models: AsyncModelsResource) -> None:
130
+ self._models = models
131
+
132
+ self.retrieve_available = async_to_streamed_response_wrapper(
133
+ models.retrieve_available,
134
+ )
@@ -0,0 +1,248 @@
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 .team import (
8
+ TeamResource,
9
+ AsyncTeamResource,
10
+ TeamResourceWithRawResponse,
11
+ AsyncTeamResourceWithRawResponse,
12
+ TeamResourceWithStreamingResponse,
13
+ AsyncTeamResourceWithStreamingResponse,
14
+ )
15
+ from .models import (
16
+ ModelsResource,
17
+ AsyncModelsResource,
18
+ ModelsResourceWithRawResponse,
19
+ AsyncModelsResourceWithRawResponse,
20
+ ModelsResourceWithStreamingResponse,
21
+ AsyncModelsResourceWithStreamingResponse,
22
+ )
23
+ from ....._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven
24
+ from ....._compat import cached_property
25
+ from ....._resource import SyncAPIResource, AsyncAPIResource
26
+ from ....._response import (
27
+ to_raw_response_wrapper,
28
+ to_streamed_response_wrapper,
29
+ async_to_raw_response_wrapper,
30
+ async_to_streamed_response_wrapper,
31
+ )
32
+ from ....._base_client import make_request_options
33
+
34
+ __all__ = ["ProfileResource", "AsyncProfileResource"]
35
+
36
+
37
+ class ProfileResource(SyncAPIResource):
38
+ @cached_property
39
+ def models(self) -> ModelsResource:
40
+ return ModelsResource(self._client)
41
+
42
+ @cached_property
43
+ def team(self) -> TeamResource:
44
+ return TeamResource(self._client)
45
+
46
+ @cached_property
47
+ def with_raw_response(self) -> ProfileResourceWithRawResponse:
48
+ """
49
+ This property can be used as a prefix for any HTTP method call to return
50
+ the raw response object instead of the parsed content.
51
+
52
+ For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
53
+ """
54
+ return ProfileResourceWithRawResponse(self)
55
+
56
+ @cached_property
57
+ def with_streaming_response(self) -> ProfileResourceWithStreamingResponse:
58
+ """
59
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
60
+
61
+ For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
62
+ """
63
+ return ProfileResourceWithStreamingResponse(self)
64
+
65
+ def list(
66
+ self,
67
+ *,
68
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
69
+ # The extra values given here take precedence over values defined on the client or passed to this method.
70
+ extra_headers: Headers | None = None,
71
+ extra_query: Query | None = None,
72
+ extra_body: Body | None = None,
73
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
74
+ ) -> None:
75
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
76
+ return self._get(
77
+ "/api/v1/organizations/profile",
78
+ options=make_request_options(
79
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
80
+ ),
81
+ cast_to=NoneType,
82
+ )
83
+
84
+ def patch_all(
85
+ self,
86
+ *,
87
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
88
+ # The extra values given here take precedence over values defined on the client or passed to this method.
89
+ extra_headers: Headers | None = None,
90
+ extra_query: Query | None = None,
91
+ extra_body: Body | None = None,
92
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
93
+ ) -> None:
94
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
95
+ return self._patch(
96
+ "/api/v1/organizations/profile",
97
+ options=make_request_options(
98
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
99
+ ),
100
+ cast_to=NoneType,
101
+ )
102
+
103
+
104
+ class AsyncProfileResource(AsyncAPIResource):
105
+ @cached_property
106
+ def models(self) -> AsyncModelsResource:
107
+ return AsyncModelsResource(self._client)
108
+
109
+ @cached_property
110
+ def team(self) -> AsyncTeamResource:
111
+ return AsyncTeamResource(self._client)
112
+
113
+ @cached_property
114
+ def with_raw_response(self) -> AsyncProfileResourceWithRawResponse:
115
+ """
116
+ This property can be used as a prefix for any HTTP method call to return
117
+ the raw response object instead of the parsed content.
118
+
119
+ For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#accessing-raw-response-data-eg-headers
120
+ """
121
+ return AsyncProfileResourceWithRawResponse(self)
122
+
123
+ @cached_property
124
+ def with_streaming_response(self) -> AsyncProfileResourceWithStreamingResponse:
125
+ """
126
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
127
+
128
+ For more information, see https://www.github.com/GoStudyFetchGo/studyfetch-sdk-python#with_streaming_response
129
+ """
130
+ return AsyncProfileResourceWithStreamingResponse(self)
131
+
132
+ async def list(
133
+ self,
134
+ *,
135
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
136
+ # The extra values given here take precedence over values defined on the client or passed to this method.
137
+ extra_headers: Headers | None = None,
138
+ extra_query: Query | None = None,
139
+ extra_body: Body | None = None,
140
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
141
+ ) -> None:
142
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
143
+ return await self._get(
144
+ "/api/v1/organizations/profile",
145
+ options=make_request_options(
146
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
147
+ ),
148
+ cast_to=NoneType,
149
+ )
150
+
151
+ async def patch_all(
152
+ self,
153
+ *,
154
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
155
+ # The extra values given here take precedence over values defined on the client or passed to this method.
156
+ extra_headers: Headers | None = None,
157
+ extra_query: Query | None = None,
158
+ extra_body: Body | None = None,
159
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
160
+ ) -> None:
161
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
162
+ return await self._patch(
163
+ "/api/v1/organizations/profile",
164
+ options=make_request_options(
165
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
166
+ ),
167
+ cast_to=NoneType,
168
+ )
169
+
170
+
171
+ class ProfileResourceWithRawResponse:
172
+ def __init__(self, profile: ProfileResource) -> None:
173
+ self._profile = profile
174
+
175
+ self.list = to_raw_response_wrapper(
176
+ profile.list,
177
+ )
178
+ self.patch_all = to_raw_response_wrapper(
179
+ profile.patch_all,
180
+ )
181
+
182
+ @cached_property
183
+ def models(self) -> ModelsResourceWithRawResponse:
184
+ return ModelsResourceWithRawResponse(self._profile.models)
185
+
186
+ @cached_property
187
+ def team(self) -> TeamResourceWithRawResponse:
188
+ return TeamResourceWithRawResponse(self._profile.team)
189
+
190
+
191
+ class AsyncProfileResourceWithRawResponse:
192
+ def __init__(self, profile: AsyncProfileResource) -> None:
193
+ self._profile = profile
194
+
195
+ self.list = async_to_raw_response_wrapper(
196
+ profile.list,
197
+ )
198
+ self.patch_all = async_to_raw_response_wrapper(
199
+ profile.patch_all,
200
+ )
201
+
202
+ @cached_property
203
+ def models(self) -> AsyncModelsResourceWithRawResponse:
204
+ return AsyncModelsResourceWithRawResponse(self._profile.models)
205
+
206
+ @cached_property
207
+ def team(self) -> AsyncTeamResourceWithRawResponse:
208
+ return AsyncTeamResourceWithRawResponse(self._profile.team)
209
+
210
+
211
+ class ProfileResourceWithStreamingResponse:
212
+ def __init__(self, profile: ProfileResource) -> None:
213
+ self._profile = profile
214
+
215
+ self.list = to_streamed_response_wrapper(
216
+ profile.list,
217
+ )
218
+ self.patch_all = to_streamed_response_wrapper(
219
+ profile.patch_all,
220
+ )
221
+
222
+ @cached_property
223
+ def models(self) -> ModelsResourceWithStreamingResponse:
224
+ return ModelsResourceWithStreamingResponse(self._profile.models)
225
+
226
+ @cached_property
227
+ def team(self) -> TeamResourceWithStreamingResponse:
228
+ return TeamResourceWithStreamingResponse(self._profile.team)
229
+
230
+
231
+ class AsyncProfileResourceWithStreamingResponse:
232
+ def __init__(self, profile: AsyncProfileResource) -> None:
233
+ self._profile = profile
234
+
235
+ self.list = async_to_streamed_response_wrapper(
236
+ profile.list,
237
+ )
238
+ self.patch_all = async_to_streamed_response_wrapper(
239
+ profile.patch_all,
240
+ )
241
+
242
+ @cached_property
243
+ def models(self) -> AsyncModelsResourceWithStreamingResponse:
244
+ return AsyncModelsResourceWithStreamingResponse(self._profile.models)
245
+
246
+ @cached_property
247
+ def team(self) -> AsyncTeamResourceWithStreamingResponse:
248
+ return AsyncTeamResourceWithStreamingResponse(self._profile.team)