Skip to content

Commit 6090b1f

Browse files
feat(api): api update
1 parent cf111c0 commit 6090b1f

File tree

4 files changed

+26
-1377
lines changed

4 files changed

+26
-1377
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 35
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nen-labs%2Fsteel-a4d7cab569c60bb539773dadce1d82735e20460d6f2ca5157a048f3f6e7f4a44.yml
3-
openapi_spec_hash: 20afeba7a5d264daec29e36609b1ff92
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/nen-labs%2Fsteel-8a3a53ec907a9f9e455b5a8b325a7610c6cb35f8f8db5dc68e4084c06bcc9a0a.yml
3+
openapi_spec_hash: 99be697ec1379e4a6066a53424b27096
44
config_hash: 82777254c5d47bd0cf18d4e17a2e9964

src/steel/resources/profiles.py

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from __future__ import annotations
44

5-
from typing import Optional
6-
75
import httpx
86

97
from ..types import profile_create_params
@@ -47,10 +45,9 @@ def with_streaming_response(self) -> ProfilesResourceWithStreamingResponse:
4745
def create(
4846
self,
4947
*,
50-
fingerprint: Optional[profile_create_params.Fingerprint],
51-
proxy_url: Optional[str],
52-
user_agent: Optional[str],
5348
dimensions: profile_create_params.Dimensions | Omit = omit,
49+
proxy_url: str | Omit = omit,
50+
user_agent: str | Omit = omit,
5451
user_data_dir: object | Omit = omit,
5552
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5653
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -63,14 +60,12 @@ def create(
6360
Create a new profile
6461
6562
Args:
66-
fingerprint: The fingerprint associated with the profile
63+
dimensions: The dimensions associated with the profile
6764
6865
proxy_url: The proxy associated with the profile
6966
7067
user_agent: The user agent associated with the profile
7168
72-
dimensions: The dimensions associated with the profile
73-
7469
user_data_dir: The user data directory associated with the profile
7570
7671
extra_headers: Send extra headers
@@ -89,10 +84,9 @@ def create(
8984
"/v1/profiles",
9085
body=maybe_transform(
9186
{
92-
"fingerprint": fingerprint,
87+
"dimensions": dimensions,
9388
"proxy_url": proxy_url,
9489
"user_agent": user_agent,
95-
"dimensions": dimensions,
9690
"user_data_dir": user_data_dir,
9791
},
9892
profile_create_params.ProfileCreateParams,
@@ -146,10 +140,9 @@ def with_streaming_response(self) -> AsyncProfilesResourceWithStreamingResponse:
146140
async def create(
147141
self,
148142
*,
149-
fingerprint: Optional[profile_create_params.Fingerprint],
150-
proxy_url: Optional[str],
151-
user_agent: Optional[str],
152143
dimensions: profile_create_params.Dimensions | Omit = omit,
144+
proxy_url: str | Omit = omit,
145+
user_agent: str | Omit = omit,
153146
user_data_dir: object | Omit = omit,
154147
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
155148
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -162,14 +155,12 @@ async def create(
162155
Create a new profile
163156
164157
Args:
165-
fingerprint: The fingerprint associated with the profile
158+
dimensions: The dimensions associated with the profile
166159
167160
proxy_url: The proxy associated with the profile
168161
169162
user_agent: The user agent associated with the profile
170163
171-
dimensions: The dimensions associated with the profile
172-
173164
user_data_dir: The user data directory associated with the profile
174165
175166
extra_headers: Send extra headers
@@ -188,10 +179,9 @@ async def create(
188179
"/v1/profiles",
189180
body=await async_maybe_transform(
190181
{
191-
"fingerprint": fingerprint,
182+
"dimensions": dimensions,
192183
"proxy_url": proxy_url,
193184
"user_agent": user_agent,
194-
"dimensions": dimensions,
195185
"user_data_dir": user_data_dir,
196186
},
197187
profile_create_params.ProfileCreateParams,

0 commit comments

Comments
 (0)