@@ -387,6 +387,8 @@ def create_api_key(
387387 project_id : str ,
388388 * ,
389389 note : typing .Optional [str ] = OMIT ,
390+ public_key : typing .Optional [str ] = OMIT ,
391+ secret_key : typing .Optional [str ] = OMIT ,
390392 request_options : typing .Optional [RequestOptions ] = None ,
391393 ) -> ApiKeyResponse :
392394 """
@@ -399,6 +401,12 @@ def create_api_key(
399401 note : typing.Optional[str]
400402 Optional note for the API key
401403
404+ public_key : typing.Optional[str]
405+ Optional predefined public key. Must start with 'pk-lf-'. If provided, secretKey must also be provided.
406+
407+ secret_key : typing.Optional[str]
408+ Optional predefined secret key. Must start with 'sk-lf-'. If provided, publicKey must also be provided.
409+
402410 request_options : typing.Optional[RequestOptions]
403411 Request-specific configuration.
404412
@@ -425,7 +433,7 @@ def create_api_key(
425433 _response = self ._client_wrapper .httpx_client .request (
426434 f"api/public/projects/{ jsonable_encoder (project_id )} /apiKeys" ,
427435 method = "POST" ,
428- json = {"note" : note },
436+ json = {"note" : note , "publicKey" : public_key , "secretKey" : secret_key },
429437 request_options = request_options ,
430438 omit = OMIT ,
431439 )
@@ -932,6 +940,8 @@ async def create_api_key(
932940 project_id : str ,
933941 * ,
934942 note : typing .Optional [str ] = OMIT ,
943+ public_key : typing .Optional [str ] = OMIT ,
944+ secret_key : typing .Optional [str ] = OMIT ,
935945 request_options : typing .Optional [RequestOptions ] = None ,
936946 ) -> ApiKeyResponse :
937947 """
@@ -944,6 +954,12 @@ async def create_api_key(
944954 note : typing.Optional[str]
945955 Optional note for the API key
946956
957+ public_key : typing.Optional[str]
958+ Optional predefined public key. Must start with 'pk-lf-'. If provided, secretKey must also be provided.
959+
960+ secret_key : typing.Optional[str]
961+ Optional predefined secret key. Must start with 'sk-lf-'. If provided, publicKey must also be provided.
962+
947963 request_options : typing.Optional[RequestOptions]
948964 Request-specific configuration.
949965
@@ -978,7 +994,7 @@ async def main() -> None:
978994 _response = await self ._client_wrapper .httpx_client .request (
979995 f"api/public/projects/{ jsonable_encoder (project_id )} /apiKeys" ,
980996 method = "POST" ,
981- json = {"note" : note },
997+ json = {"note" : note , "publicKey" : public_key , "secretKey" : secret_key },
982998 request_options = request_options ,
983999 omit = OMIT ,
9841000 )
0 commit comments