h2ogpte 1.6.38rc3__py3-none-any.whl → 1.6.40rc1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. h2ogpte/__init__.py +1 -1
  2. h2ogpte/h2ogpte.py +122 -0
  3. h2ogpte/h2ogpte_async.py +123 -0
  4. h2ogpte/rest_async/__init__.py +8 -1
  5. h2ogpte/rest_async/api/agents_api.py +1181 -22
  6. h2ogpte/rest_async/api/permissions_api.py +550 -2
  7. h2ogpte/rest_async/api_client.py +1 -1
  8. h2ogpte/rest_async/configuration.py +1 -1
  9. h2ogpte/rest_async/models/__init__.py +7 -0
  10. h2ogpte/rest_async/models/add_custom_agent_tool201_response_inner.py +87 -0
  11. h2ogpte/rest_async/models/confirm_user_deletion_request.py +87 -0
  12. h2ogpte/rest_async/models/create_agent_tool_request.py +103 -0
  13. h2ogpte/rest_async/models/list_custom_agent_tools200_response_inner.py +95 -0
  14. h2ogpte/rest_async/models/prompt_template.py +3 -1
  15. h2ogpte/rest_async/models/update_custom_agent_tool200_response.py +87 -0
  16. h2ogpte/rest_async/models/update_custom_agent_tool_request.py +87 -0
  17. h2ogpte/rest_async/models/user_deletion_request.py +87 -0
  18. h2ogpte/rest_sync/__init__.py +8 -1
  19. h2ogpte/rest_sync/api/agents_api.py +1181 -22
  20. h2ogpte/rest_sync/api/permissions_api.py +550 -2
  21. h2ogpte/rest_sync/api_client.py +1 -1
  22. h2ogpte/rest_sync/configuration.py +1 -1
  23. h2ogpte/rest_sync/models/__init__.py +7 -0
  24. h2ogpte/rest_sync/models/add_custom_agent_tool201_response_inner.py +87 -0
  25. h2ogpte/rest_sync/models/confirm_user_deletion_request.py +87 -0
  26. h2ogpte/rest_sync/models/create_agent_tool_request.py +103 -0
  27. h2ogpte/rest_sync/models/list_custom_agent_tools200_response_inner.py +95 -0
  28. h2ogpte/rest_sync/models/prompt_template.py +3 -1
  29. h2ogpte/rest_sync/models/update_custom_agent_tool200_response.py +87 -0
  30. h2ogpte/rest_sync/models/update_custom_agent_tool_request.py +87 -0
  31. h2ogpte/rest_sync/models/user_deletion_request.py +87 -0
  32. {h2ogpte-1.6.38rc3.dist-info → h2ogpte-1.6.40rc1.dist-info}/METADATA +1 -1
  33. {h2ogpte-1.6.38rc3.dist-info → h2ogpte-1.6.40rc1.dist-info}/RECORD +35 -21
  34. {h2ogpte-1.6.38rc3.dist-info → h2ogpte-1.6.40rc1.dist-info}/WHEEL +0 -0
  35. {h2ogpte-1.6.38rc3.dist-info → h2ogpte-1.6.40rc1.dist-info}/top_level.txt +0 -0
@@ -16,9 +16,10 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictBool, StrictInt, StrictStr
20
- from typing import List, Optional
19
+ from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
20
+ from typing import List, Optional, Union
21
21
  from typing_extensions import Annotated
22
+ from h2ogpte.rest_sync.models.confirm_user_deletion_request import ConfirmUserDeletionRequest
22
23
  from h2ogpte.rest_sync.models.group_create_request import GroupCreateRequest
23
24
  from h2ogpte.rest_sync.models.group_info import GroupInfo
24
25
  from h2ogpte.rest_sync.models.permission_check_request import PermissionCheckRequest
@@ -27,6 +28,7 @@ from h2ogpte.rest_sync.models.role_create_request import RoleCreateRequest
27
28
  from h2ogpte.rest_sync.models.role_info import RoleInfo
28
29
  from h2ogpte.rest_sync.models.roles_reset_request import RolesResetRequest
29
30
  from h2ogpte.rest_sync.models.set_role_priority_request import SetRolePriorityRequest
31
+ from h2ogpte.rest_sync.models.user_deletion_request import UserDeletionRequest
30
32
  from h2ogpte.rest_sync.models.user_info import UserInfo
31
33
  from h2ogpte.rest_sync.models.user_permission import UserPermission
32
34
 
@@ -1169,6 +1171,303 @@ class PermissionsApi:
1169
1171
 
1170
1172
 
1171
1173
 
1174
+ @validate_call
1175
+ def confirm_current_user_deletion(
1176
+ self,
1177
+ confirm_user_deletion_request: ConfirmUserDeletionRequest,
1178
+ timeout: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Timeout in seconds")] = None,
1179
+ _request_timeout: Union[
1180
+ None,
1181
+ Annotated[StrictFloat, Field(gt=0)],
1182
+ Tuple[
1183
+ Annotated[StrictFloat, Field(gt=0)],
1184
+ Annotated[StrictFloat, Field(gt=0)]
1185
+ ]
1186
+ ] = None,
1187
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1188
+ _content_type: Optional[StrictStr] = None,
1189
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1190
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1191
+ ) -> None:
1192
+ """Confirm deletion of the current user.
1193
+
1194
+ Confirms and executes the deletion of the currently authenticated user and all associated data using the delete ID from the initial request.
1195
+
1196
+ :param confirm_user_deletion_request: (required)
1197
+ :type confirm_user_deletion_request: ConfirmUserDeletionRequest
1198
+ :param timeout: Timeout in seconds
1199
+ :type timeout: float
1200
+ :param _request_timeout: timeout setting for this request. If one
1201
+ number provided, it will be total request
1202
+ timeout. It can also be a pair (tuple) of
1203
+ (connection, read) timeouts.
1204
+ :type _request_timeout: int, tuple(int, int), optional
1205
+ :param _request_auth: set to override the auth_settings for an a single
1206
+ request; this effectively ignores the
1207
+ authentication in the spec for a single request.
1208
+ :type _request_auth: dict, optional
1209
+ :param _content_type: force content-type for the request.
1210
+ :type _content_type: str, Optional
1211
+ :param _headers: set to override the headers for a single
1212
+ request; this effectively ignores the headers
1213
+ in the spec for a single request.
1214
+ :type _headers: dict, optional
1215
+ :param _host_index: set to override the host_index for a single
1216
+ request; this effectively ignores the host_index
1217
+ in the spec for a single request.
1218
+ :type _host_index: int, optional
1219
+ :return: Returns the result object.
1220
+ """ # noqa: E501
1221
+
1222
+ _param = self._confirm_current_user_deletion_serialize(
1223
+ confirm_user_deletion_request=confirm_user_deletion_request,
1224
+ timeout=timeout,
1225
+ _request_auth=_request_auth,
1226
+ _content_type=_content_type,
1227
+ _headers=_headers,
1228
+ _host_index=_host_index
1229
+ )
1230
+
1231
+ _response_types_map: Dict[str, Optional[str]] = {
1232
+ '204': None,
1233
+ '400': None,
1234
+ '401': "EndpointError",
1235
+ }
1236
+ response_data = self.api_client.call_api(
1237
+ *_param,
1238
+ _request_timeout=_request_timeout
1239
+ )
1240
+ response_data.read()
1241
+ return self.api_client.response_deserialize(
1242
+ response_data=response_data,
1243
+ response_types_map=_response_types_map,
1244
+ ).data
1245
+
1246
+
1247
+ @validate_call
1248
+ def confirm_current_user_deletion_with_http_info(
1249
+ self,
1250
+ confirm_user_deletion_request: ConfirmUserDeletionRequest,
1251
+ timeout: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Timeout in seconds")] = None,
1252
+ _request_timeout: Union[
1253
+ None,
1254
+ Annotated[StrictFloat, Field(gt=0)],
1255
+ Tuple[
1256
+ Annotated[StrictFloat, Field(gt=0)],
1257
+ Annotated[StrictFloat, Field(gt=0)]
1258
+ ]
1259
+ ] = None,
1260
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1261
+ _content_type: Optional[StrictStr] = None,
1262
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1263
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1264
+ ) -> ApiResponse[None]:
1265
+ """Confirm deletion of the current user.
1266
+
1267
+ Confirms and executes the deletion of the currently authenticated user and all associated data using the delete ID from the initial request.
1268
+
1269
+ :param confirm_user_deletion_request: (required)
1270
+ :type confirm_user_deletion_request: ConfirmUserDeletionRequest
1271
+ :param timeout: Timeout in seconds
1272
+ :type timeout: float
1273
+ :param _request_timeout: timeout setting for this request. If one
1274
+ number provided, it will be total request
1275
+ timeout. It can also be a pair (tuple) of
1276
+ (connection, read) timeouts.
1277
+ :type _request_timeout: int, tuple(int, int), optional
1278
+ :param _request_auth: set to override the auth_settings for an a single
1279
+ request; this effectively ignores the
1280
+ authentication in the spec for a single request.
1281
+ :type _request_auth: dict, optional
1282
+ :param _content_type: force content-type for the request.
1283
+ :type _content_type: str, Optional
1284
+ :param _headers: set to override the headers for a single
1285
+ request; this effectively ignores the headers
1286
+ in the spec for a single request.
1287
+ :type _headers: dict, optional
1288
+ :param _host_index: set to override the host_index for a single
1289
+ request; this effectively ignores the host_index
1290
+ in the spec for a single request.
1291
+ :type _host_index: int, optional
1292
+ :return: Returns the result object.
1293
+ """ # noqa: E501
1294
+
1295
+ _param = self._confirm_current_user_deletion_serialize(
1296
+ confirm_user_deletion_request=confirm_user_deletion_request,
1297
+ timeout=timeout,
1298
+ _request_auth=_request_auth,
1299
+ _content_type=_content_type,
1300
+ _headers=_headers,
1301
+ _host_index=_host_index
1302
+ )
1303
+
1304
+ _response_types_map: Dict[str, Optional[str]] = {
1305
+ '204': None,
1306
+ '400': None,
1307
+ '401': "EndpointError",
1308
+ }
1309
+ response_data = self.api_client.call_api(
1310
+ *_param,
1311
+ _request_timeout=_request_timeout
1312
+ )
1313
+ response_data.read()
1314
+ return self.api_client.response_deserialize(
1315
+ response_data=response_data,
1316
+ response_types_map=_response_types_map,
1317
+ )
1318
+
1319
+
1320
+ @validate_call
1321
+ def confirm_current_user_deletion_without_preload_content(
1322
+ self,
1323
+ confirm_user_deletion_request: ConfirmUserDeletionRequest,
1324
+ timeout: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Timeout in seconds")] = None,
1325
+ _request_timeout: Union[
1326
+ None,
1327
+ Annotated[StrictFloat, Field(gt=0)],
1328
+ Tuple[
1329
+ Annotated[StrictFloat, Field(gt=0)],
1330
+ Annotated[StrictFloat, Field(gt=0)]
1331
+ ]
1332
+ ] = None,
1333
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1334
+ _content_type: Optional[StrictStr] = None,
1335
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1336
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1337
+ ) -> RESTResponseType:
1338
+ """Confirm deletion of the current user.
1339
+
1340
+ Confirms and executes the deletion of the currently authenticated user and all associated data using the delete ID from the initial request.
1341
+
1342
+ :param confirm_user_deletion_request: (required)
1343
+ :type confirm_user_deletion_request: ConfirmUserDeletionRequest
1344
+ :param timeout: Timeout in seconds
1345
+ :type timeout: float
1346
+ :param _request_timeout: timeout setting for this request. If one
1347
+ number provided, it will be total request
1348
+ timeout. It can also be a pair (tuple) of
1349
+ (connection, read) timeouts.
1350
+ :type _request_timeout: int, tuple(int, int), optional
1351
+ :param _request_auth: set to override the auth_settings for an a single
1352
+ request; this effectively ignores the
1353
+ authentication in the spec for a single request.
1354
+ :type _request_auth: dict, optional
1355
+ :param _content_type: force content-type for the request.
1356
+ :type _content_type: str, Optional
1357
+ :param _headers: set to override the headers for a single
1358
+ request; this effectively ignores the headers
1359
+ in the spec for a single request.
1360
+ :type _headers: dict, optional
1361
+ :param _host_index: set to override the host_index for a single
1362
+ request; this effectively ignores the host_index
1363
+ in the spec for a single request.
1364
+ :type _host_index: int, optional
1365
+ :return: Returns the result object.
1366
+ """ # noqa: E501
1367
+
1368
+ _param = self._confirm_current_user_deletion_serialize(
1369
+ confirm_user_deletion_request=confirm_user_deletion_request,
1370
+ timeout=timeout,
1371
+ _request_auth=_request_auth,
1372
+ _content_type=_content_type,
1373
+ _headers=_headers,
1374
+ _host_index=_host_index
1375
+ )
1376
+
1377
+ _response_types_map: Dict[str, Optional[str]] = {
1378
+ '204': None,
1379
+ '400': None,
1380
+ '401': "EndpointError",
1381
+ }
1382
+ response_data = self.api_client.call_api(
1383
+ *_param,
1384
+ _request_timeout=_request_timeout
1385
+ )
1386
+ return response_data.response
1387
+
1388
+
1389
+ def _confirm_current_user_deletion_serialize(
1390
+ self,
1391
+ confirm_user_deletion_request,
1392
+ timeout,
1393
+ _request_auth,
1394
+ _content_type,
1395
+ _headers,
1396
+ _host_index,
1397
+ ) -> RequestSerialized:
1398
+
1399
+ _host = None
1400
+
1401
+ _collection_formats: Dict[str, str] = {
1402
+ }
1403
+
1404
+ _path_params: Dict[str, str] = {}
1405
+ _query_params: List[Tuple[str, str]] = []
1406
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1407
+ _form_params: List[Tuple[str, str]] = []
1408
+ _files: Dict[
1409
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1410
+ ] = {}
1411
+ _body_params: Optional[bytes] = None
1412
+
1413
+ # process the path parameters
1414
+ # process the query parameters
1415
+ if timeout is not None:
1416
+
1417
+ _query_params.append(('timeout', timeout))
1418
+
1419
+ # process the header parameters
1420
+ # process the form parameters
1421
+ # process the body parameter
1422
+ if confirm_user_deletion_request is not None:
1423
+ _body_params = confirm_user_deletion_request
1424
+
1425
+
1426
+ # set the HTTP header `Accept`
1427
+ if 'Accept' not in _header_params:
1428
+ _header_params['Accept'] = self.api_client.select_header_accept(
1429
+ [
1430
+ 'application/json'
1431
+ ]
1432
+ )
1433
+
1434
+ # set the HTTP header `Content-Type`
1435
+ if _content_type:
1436
+ _header_params['Content-Type'] = _content_type
1437
+ else:
1438
+ _default_content_type = (
1439
+ self.api_client.select_header_content_type(
1440
+ [
1441
+ 'application/json'
1442
+ ]
1443
+ )
1444
+ )
1445
+ if _default_content_type is not None:
1446
+ _header_params['Content-Type'] = _default_content_type
1447
+
1448
+ # authentication setting
1449
+ _auth_settings: List[str] = [
1450
+ 'bearerAuth'
1451
+ ]
1452
+
1453
+ return self.api_client.param_serialize(
1454
+ method='POST',
1455
+ resource_path='/users/current/confirm-delete',
1456
+ path_params=_path_params,
1457
+ query_params=_query_params,
1458
+ header_params=_header_params,
1459
+ body=_body_params,
1460
+ post_params=_form_params,
1461
+ files=_files,
1462
+ auth_settings=_auth_settings,
1463
+ collection_formats=_collection_formats,
1464
+ _host=_host,
1465
+ _request_auth=_request_auth
1466
+ )
1467
+
1468
+
1469
+
1470
+
1172
1471
  @validate_call
1173
1472
  def create_group(
1174
1473
  self,
@@ -7622,6 +7921,255 @@ class PermissionsApi:
7622
7921
 
7623
7922
 
7624
7923
 
7924
+ @validate_call
7925
+ def request_current_user_deletion(
7926
+ self,
7927
+ _request_timeout: Union[
7928
+ None,
7929
+ Annotated[StrictFloat, Field(gt=0)],
7930
+ Tuple[
7931
+ Annotated[StrictFloat, Field(gt=0)],
7932
+ Annotated[StrictFloat, Field(gt=0)]
7933
+ ]
7934
+ ] = None,
7935
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
7936
+ _content_type: Optional[StrictStr] = None,
7937
+ _headers: Optional[Dict[StrictStr, Any]] = None,
7938
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
7939
+ ) -> UserDeletionRequest:
7940
+ """Request deletion of the current user.
7941
+
7942
+ Creates a deletion request for the currently authenticated user. Returns a delete ID that must be used to confirm the deletion within 5 minutes.
7943
+
7944
+ :param _request_timeout: timeout setting for this request. If one
7945
+ number provided, it will be total request
7946
+ timeout. It can also be a pair (tuple) of
7947
+ (connection, read) timeouts.
7948
+ :type _request_timeout: int, tuple(int, int), optional
7949
+ :param _request_auth: set to override the auth_settings for an a single
7950
+ request; this effectively ignores the
7951
+ authentication in the spec for a single request.
7952
+ :type _request_auth: dict, optional
7953
+ :param _content_type: force content-type for the request.
7954
+ :type _content_type: str, Optional
7955
+ :param _headers: set to override the headers for a single
7956
+ request; this effectively ignores the headers
7957
+ in the spec for a single request.
7958
+ :type _headers: dict, optional
7959
+ :param _host_index: set to override the host_index for a single
7960
+ request; this effectively ignores the host_index
7961
+ in the spec for a single request.
7962
+ :type _host_index: int, optional
7963
+ :return: Returns the result object.
7964
+ """ # noqa: E501
7965
+
7966
+ _param = self._request_current_user_deletion_serialize(
7967
+ _request_auth=_request_auth,
7968
+ _content_type=_content_type,
7969
+ _headers=_headers,
7970
+ _host_index=_host_index
7971
+ )
7972
+
7973
+ _response_types_map: Dict[str, Optional[str]] = {
7974
+ '200': "UserDeletionRequest",
7975
+ '401': "EndpointError",
7976
+ }
7977
+ response_data = self.api_client.call_api(
7978
+ *_param,
7979
+ _request_timeout=_request_timeout
7980
+ )
7981
+ response_data.read()
7982
+ return self.api_client.response_deserialize(
7983
+ response_data=response_data,
7984
+ response_types_map=_response_types_map,
7985
+ ).data
7986
+
7987
+
7988
+ @validate_call
7989
+ def request_current_user_deletion_with_http_info(
7990
+ self,
7991
+ _request_timeout: Union[
7992
+ None,
7993
+ Annotated[StrictFloat, Field(gt=0)],
7994
+ Tuple[
7995
+ Annotated[StrictFloat, Field(gt=0)],
7996
+ Annotated[StrictFloat, Field(gt=0)]
7997
+ ]
7998
+ ] = None,
7999
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
8000
+ _content_type: Optional[StrictStr] = None,
8001
+ _headers: Optional[Dict[StrictStr, Any]] = None,
8002
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
8003
+ ) -> ApiResponse[UserDeletionRequest]:
8004
+ """Request deletion of the current user.
8005
+
8006
+ Creates a deletion request for the currently authenticated user. Returns a delete ID that must be used to confirm the deletion within 5 minutes.
8007
+
8008
+ :param _request_timeout: timeout setting for this request. If one
8009
+ number provided, it will be total request
8010
+ timeout. It can also be a pair (tuple) of
8011
+ (connection, read) timeouts.
8012
+ :type _request_timeout: int, tuple(int, int), optional
8013
+ :param _request_auth: set to override the auth_settings for an a single
8014
+ request; this effectively ignores the
8015
+ authentication in the spec for a single request.
8016
+ :type _request_auth: dict, optional
8017
+ :param _content_type: force content-type for the request.
8018
+ :type _content_type: str, Optional
8019
+ :param _headers: set to override the headers for a single
8020
+ request; this effectively ignores the headers
8021
+ in the spec for a single request.
8022
+ :type _headers: dict, optional
8023
+ :param _host_index: set to override the host_index for a single
8024
+ request; this effectively ignores the host_index
8025
+ in the spec for a single request.
8026
+ :type _host_index: int, optional
8027
+ :return: Returns the result object.
8028
+ """ # noqa: E501
8029
+
8030
+ _param = self._request_current_user_deletion_serialize(
8031
+ _request_auth=_request_auth,
8032
+ _content_type=_content_type,
8033
+ _headers=_headers,
8034
+ _host_index=_host_index
8035
+ )
8036
+
8037
+ _response_types_map: Dict[str, Optional[str]] = {
8038
+ '200': "UserDeletionRequest",
8039
+ '401': "EndpointError",
8040
+ }
8041
+ response_data = self.api_client.call_api(
8042
+ *_param,
8043
+ _request_timeout=_request_timeout
8044
+ )
8045
+ response_data.read()
8046
+ return self.api_client.response_deserialize(
8047
+ response_data=response_data,
8048
+ response_types_map=_response_types_map,
8049
+ )
8050
+
8051
+
8052
+ @validate_call
8053
+ def request_current_user_deletion_without_preload_content(
8054
+ self,
8055
+ _request_timeout: Union[
8056
+ None,
8057
+ Annotated[StrictFloat, Field(gt=0)],
8058
+ Tuple[
8059
+ Annotated[StrictFloat, Field(gt=0)],
8060
+ Annotated[StrictFloat, Field(gt=0)]
8061
+ ]
8062
+ ] = None,
8063
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
8064
+ _content_type: Optional[StrictStr] = None,
8065
+ _headers: Optional[Dict[StrictStr, Any]] = None,
8066
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
8067
+ ) -> RESTResponseType:
8068
+ """Request deletion of the current user.
8069
+
8070
+ Creates a deletion request for the currently authenticated user. Returns a delete ID that must be used to confirm the deletion within 5 minutes.
8071
+
8072
+ :param _request_timeout: timeout setting for this request. If one
8073
+ number provided, it will be total request
8074
+ timeout. It can also be a pair (tuple) of
8075
+ (connection, read) timeouts.
8076
+ :type _request_timeout: int, tuple(int, int), optional
8077
+ :param _request_auth: set to override the auth_settings for an a single
8078
+ request; this effectively ignores the
8079
+ authentication in the spec for a single request.
8080
+ :type _request_auth: dict, optional
8081
+ :param _content_type: force content-type for the request.
8082
+ :type _content_type: str, Optional
8083
+ :param _headers: set to override the headers for a single
8084
+ request; this effectively ignores the headers
8085
+ in the spec for a single request.
8086
+ :type _headers: dict, optional
8087
+ :param _host_index: set to override the host_index for a single
8088
+ request; this effectively ignores the host_index
8089
+ in the spec for a single request.
8090
+ :type _host_index: int, optional
8091
+ :return: Returns the result object.
8092
+ """ # noqa: E501
8093
+
8094
+ _param = self._request_current_user_deletion_serialize(
8095
+ _request_auth=_request_auth,
8096
+ _content_type=_content_type,
8097
+ _headers=_headers,
8098
+ _host_index=_host_index
8099
+ )
8100
+
8101
+ _response_types_map: Dict[str, Optional[str]] = {
8102
+ '200': "UserDeletionRequest",
8103
+ '401': "EndpointError",
8104
+ }
8105
+ response_data = self.api_client.call_api(
8106
+ *_param,
8107
+ _request_timeout=_request_timeout
8108
+ )
8109
+ return response_data.response
8110
+
8111
+
8112
+ def _request_current_user_deletion_serialize(
8113
+ self,
8114
+ _request_auth,
8115
+ _content_type,
8116
+ _headers,
8117
+ _host_index,
8118
+ ) -> RequestSerialized:
8119
+
8120
+ _host = None
8121
+
8122
+ _collection_formats: Dict[str, str] = {
8123
+ }
8124
+
8125
+ _path_params: Dict[str, str] = {}
8126
+ _query_params: List[Tuple[str, str]] = []
8127
+ _header_params: Dict[str, Optional[str]] = _headers or {}
8128
+ _form_params: List[Tuple[str, str]] = []
8129
+ _files: Dict[
8130
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
8131
+ ] = {}
8132
+ _body_params: Optional[bytes] = None
8133
+
8134
+ # process the path parameters
8135
+ # process the query parameters
8136
+ # process the header parameters
8137
+ # process the form parameters
8138
+ # process the body parameter
8139
+
8140
+
8141
+ # set the HTTP header `Accept`
8142
+ if 'Accept' not in _header_params:
8143
+ _header_params['Accept'] = self.api_client.select_header_accept(
8144
+ [
8145
+ 'application/json'
8146
+ ]
8147
+ )
8148
+
8149
+
8150
+ # authentication setting
8151
+ _auth_settings: List[str] = [
8152
+ 'bearerAuth'
8153
+ ]
8154
+
8155
+ return self.api_client.param_serialize(
8156
+ method='DELETE',
8157
+ resource_path='/users/current',
8158
+ path_params=_path_params,
8159
+ query_params=_query_params,
8160
+ header_params=_header_params,
8161
+ body=_body_params,
8162
+ post_params=_form_params,
8163
+ files=_files,
8164
+ auth_settings=_auth_settings,
8165
+ collection_formats=_collection_formats,
8166
+ _host=_host,
8167
+ _request_auth=_request_auth
8168
+ )
8169
+
8170
+
8171
+
8172
+
7625
8173
  @validate_call
7626
8174
  def reset_group_roles(
7627
8175
  self,
@@ -90,7 +90,7 @@ class ApiClient:
90
90
  self.default_headers[header_name] = header_value
91
91
  self.cookie = cookie
92
92
  # Set default User-Agent.
93
- self.user_agent = 'OpenAPI-Generator/1.6.38-dev3/python'
93
+ self.user_agent = 'OpenAPI-Generator/1.6.40-dev1/python'
94
94
  self.client_side_validation = configuration.client_side_validation
95
95
 
96
96
  def __enter__(self):
@@ -503,7 +503,7 @@ class Configuration:
503
503
  "OS: {env}\n"\
504
504
  "Python Version: {pyversion}\n"\
505
505
  "Version of the API: v1.0.0\n"\
506
- "SDK Package Version: 1.6.38-dev3".\
506
+ "SDK Package Version: 1.6.40-dev1".\
507
507
  format(env=sys.platform, pyversion=sys.version)
508
508
 
509
509
  def get_host_settings(self) -> List[HostSetting]:
@@ -18,6 +18,7 @@ from h2ogpte.rest_sync.models.api_key_create_request import APIKeyCreateRequest
18
18
  from h2ogpte.rest_sync.models.api_key_info import APIKeyInfo
19
19
  from h2ogpte.rest_sync.models.api_key_result import APIKeyResult
20
20
  from h2ogpte.rest_sync.models.api_key_update_expiry_request import APIKeyUpdateExpiryRequest
21
+ from h2ogpte.rest_sync.models.add_custom_agent_tool201_response_inner import AddCustomAgentTool201ResponseInner
21
22
  from h2ogpte.rest_sync.models.agent_key import AgentKey
22
23
  from h2ogpte.rest_sync.models.agent_server_directory_file_stats import AgentServerDirectoryFileStats
23
24
  from h2ogpte.rest_sync.models.agent_server_directory_stats import AgentServerDirectoryStats
@@ -44,10 +45,12 @@ from h2ogpte.rest_sync.models.collection_change_request import CollectionChangeR
44
45
  from h2ogpte.rest_sync.models.collection_create_request import CollectionCreateRequest
45
46
  from h2ogpte.rest_sync.models.collection_settings import CollectionSettings
46
47
  from h2ogpte.rest_sync.models.collection_update_request import CollectionUpdateRequest
48
+ from h2ogpte.rest_sync.models.confirm_user_deletion_request import ConfirmUserDeletionRequest
47
49
  from h2ogpte.rest_sync.models.count import Count
48
50
  from h2ogpte.rest_sync.models.count_with_queue_details import CountWithQueueDetails
49
51
  from h2ogpte.rest_sync.models.create_agent_key_request import CreateAgentKeyRequest
50
52
  from h2ogpte.rest_sync.models.create_agent_tool_key_associations_request import CreateAgentToolKeyAssociationsRequest
53
+ from h2ogpte.rest_sync.models.create_agent_tool_request import CreateAgentToolRequest
51
54
  from h2ogpte.rest_sync.models.create_import_collection_to_collection_job_request import CreateImportCollectionToCollectionJobRequest
52
55
  from h2ogpte.rest_sync.models.create_insert_document_to_collection_job_request import CreateInsertDocumentToCollectionJobRequest
53
56
  from h2ogpte.rest_sync.models.create_secret201_response import CreateSecret201Response
@@ -82,6 +85,7 @@ from h2ogpte.rest_sync.models.ingest_upload_body import IngestUploadBody
82
85
  from h2ogpte.rest_sync.models.job_details import JobDetails
83
86
  from h2ogpte.rest_sync.models.job_details_status import JobDetailsStatus
84
87
  from h2ogpte.rest_sync.models.key_association import KeyAssociation
88
+ from h2ogpte.rest_sync.models.list_custom_agent_tools200_response_inner import ListCustomAgentTools200ResponseInner
85
89
  from h2ogpte.rest_sync.models.match_collection_chunks_request import MatchCollectionChunksRequest
86
90
  from h2ogpte.rest_sync.models.message_vote_update_request import MessageVoteUpdateRequest
87
91
  from h2ogpte.rest_sync.models.model import Model
@@ -124,6 +128,8 @@ from h2ogpte.rest_sync.models.update_agent_tool_preference_request import Update
124
128
  from h2ogpte.rest_sync.models.update_collection_expiry_date_request import UpdateCollectionExpiryDateRequest
125
129
  from h2ogpte.rest_sync.models.update_collection_inactivity_interval_request import UpdateCollectionInactivityIntervalRequest
126
130
  from h2ogpte.rest_sync.models.update_collection_privacy_request import UpdateCollectionPrivacyRequest
131
+ from h2ogpte.rest_sync.models.update_custom_agent_tool200_response import UpdateCustomAgentTool200Response
132
+ from h2ogpte.rest_sync.models.update_custom_agent_tool_request import UpdateCustomAgentToolRequest
127
133
  from h2ogpte.rest_sync.models.update_default_prompt_template_visibility_request import UpdateDefaultPromptTemplateVisibilityRequest
128
134
  from h2ogpte.rest_sync.models.update_prompt_template_privacy_request import UpdatePromptTemplatePrivacyRequest
129
135
  from h2ogpte.rest_sync.models.update_qa_feedback_request import UpdateQAFeedbackRequest
@@ -134,6 +140,7 @@ from h2ogpte.rest_sync.models.usage_stats_per_model import UsageStatsPerModel
134
140
  from h2ogpte.rest_sync.models.usage_stats_per_model_and_user import UsageStatsPerModelAndUser
135
141
  from h2ogpte.rest_sync.models.usage_stats_per_user import UsageStatsPerUser
136
142
  from h2ogpte.rest_sync.models.user_configuration_item import UserConfigurationItem
143
+ from h2ogpte.rest_sync.models.user_deletion_request import UserDeletionRequest
137
144
  from h2ogpte.rest_sync.models.user_info import UserInfo
138
145
  from h2ogpte.rest_sync.models.user_job_details import UserJobDetails
139
146
  from h2ogpte.rest_sync.models.user_permission import UserPermission