| 60 | |
| 61 | |
| 62 | class AsyncConfigResource(AsyncAPIResource): |
| 63 | @cached_property |
| 64 | def with_raw_response(self) -> AsyncConfigResourceWithRawResponse: |
| 65 | """ |
| 66 | This property can be used as a prefix for any HTTP method call to return |
| 67 | the raw response object instead of the parsed content. |
| 68 | |
| 69 | For more information, see https://www.github.com/sst/opencode-sdk-python#accessing-raw-response-data-eg-headers |
| 70 | """ |
| 71 | return AsyncConfigResourceWithRawResponse(self) |
| 72 | |
| 73 | @cached_property |
| 74 | def with_streaming_response(self) -> AsyncConfigResourceWithStreamingResponse: |
| 75 | """ |
| 76 | An alternative to `.with_raw_response` that doesn't eagerly read the response body. |
| 77 | |
| 78 | For more information, see https://www.github.com/sst/opencode-sdk-python#with_streaming_response |
| 79 | """ |
| 80 | return AsyncConfigResourceWithStreamingResponse(self) |
| 81 | |
| 82 | async def get( |
| 83 | self, |
| 84 | *, |
| 85 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
| 86 | # The extra values given here take precedence over values defined on the client or passed to this method. |
| 87 | extra_headers: Headers | None = None, |
| 88 | extra_query: Query | None = None, |
| 89 | extra_body: Body | None = None, |
| 90 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
| 91 | ) -> Config: |
| 92 | """Get config info""" |
| 93 | return await self._get( |
| 94 | "/config", |
| 95 | options=make_request_options( |
| 96 | extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout |
| 97 | ), |
| 98 | cast_to=Config, |
| 99 | ) |
| 100 | |
| 101 | |
| 102 | class ConfigResourceWithRawResponse: |
nothing calls this directly
no outgoing calls
no test coverage detected