22
33from __future__ import annotations
44
5- from typing import Optional
6-
75import httpx
86
97from ..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