@@ -26,7 +26,6 @@ def create(
2626 self ,
2727 * ,
2828 external_user_id : str ,
29- project_id : str ,
3029 allowed_origins : typing .Optional [typing .Sequence [str ]] = OMIT ,
3130 error_redirect_uri : typing .Optional [str ] = OMIT ,
3231 success_redirect_uri : typing .Optional [str ] = OMIT ,
@@ -39,9 +38,6 @@ def create(
3938 external_user_id : str
4039 Your end user ID, for whom you're creating the token
4140
42- project_id : str
43- The ID of the project
44-
4541 allowed_origins : typing.Optional[typing.Sequence[str]]
4642 List of allowed origins for CORS
4743
@@ -63,13 +59,12 @@ def create(
6359 connect token created
6460 """
6561 _response = self ._client_wrapper .httpx_client .request (
66- "v1/connect/tokens" ,
62+ f "v1/connect/ { jsonable_encoder ( self . _client_wrapper . _project_id ) } /tokens" ,
6763 method = "POST" ,
6864 json = {
6965 "allowed_origins" : allowed_origins ,
7066 "error_redirect_uri" : error_redirect_uri ,
7167 "external_user_id" : external_user_id ,
72- "project_id" : project_id ,
7368 "success_redirect_uri" : success_redirect_uri ,
7469 "webhook_uri" : webhook_uri ,
7570 },
@@ -117,7 +112,7 @@ def validate(
117112 connect token validated
118113 """
119114 _response = self ._client_wrapper .httpx_client .request (
120- f"v1/connect/tokens/{ jsonable_encoder (ctok )} /validate" ,
115+ f"v1/connect/{ jsonable_encoder ( self . _client_wrapper . _project_id ) } / tokens/{ jsonable_encoder (ctok )} /validate" ,
121116 method = "GET" ,
122117 params = {
123118 "params" : convert_and_respect_annotation_metadata (
@@ -150,7 +145,6 @@ async def create(
150145 self ,
151146 * ,
152147 external_user_id : str ,
153- project_id : str ,
154148 allowed_origins : typing .Optional [typing .Sequence [str ]] = OMIT ,
155149 error_redirect_uri : typing .Optional [str ] = OMIT ,
156150 success_redirect_uri : typing .Optional [str ] = OMIT ,
@@ -163,9 +157,6 @@ async def create(
163157 external_user_id : str
164158 Your end user ID, for whom you're creating the token
165159
166- project_id : str
167- The ID of the project
168-
169160 allowed_origins : typing.Optional[typing.Sequence[str]]
170161 List of allowed origins for CORS
171162
@@ -187,13 +178,12 @@ async def create(
187178 connect token created
188179 """
189180 _response = await self ._client_wrapper .httpx_client .request (
190- "v1/connect/tokens" ,
181+ f "v1/connect/ { jsonable_encoder ( self . _client_wrapper . _project_id ) } /tokens" ,
191182 method = "POST" ,
192183 json = {
193184 "allowed_origins" : allowed_origins ,
194185 "error_redirect_uri" : error_redirect_uri ,
195186 "external_user_id" : external_user_id ,
196- "project_id" : project_id ,
197187 "success_redirect_uri" : success_redirect_uri ,
198188 "webhook_uri" : webhook_uri ,
199189 },
@@ -241,7 +231,7 @@ async def validate(
241231 connect token validated
242232 """
243233 _response = await self ._client_wrapper .httpx_client .request (
244- f"v1/connect/tokens/{ jsonable_encoder (ctok )} /validate" ,
234+ f"v1/connect/{ jsonable_encoder ( self . _client_wrapper . _project_id ) } / tokens/{ jsonable_encoder (ctok )} /validate" ,
245235 method = "GET" ,
246236 params = {
247237 "params" : convert_and_respect_annotation_metadata (
0 commit comments