neurograph-core 1.202509160244__py3-none-any.whl → 1.202509201943__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.
- neurograph/v1/__init__.py +15 -9
- neurograph/v1/api/authentication_api.py +12 -20
- neurograph/v1/api/lookup_api.py +268 -0
- neurograph/v1/api/persona_api.py +133 -137
- neurograph/v1/models/__init__.py +10 -6
- neurograph/v1/models/{personas_persona_seeds_delete_request.py → auth_service_token_response.py} +13 -7
- neurograph/v1/models/knowledge_entity.py +3 -1
- neurograph/v1/models/knowledge_entity_in_db.py +5 -1
- neurograph/v1/models/lookup_uid.py +101 -0
- neurograph/v1/models/lookup_uids_response.py +97 -0
- neurograph/v1/models/{personas_persona_seed_create_response.py → personas_persona_seed.py} +4 -4
- neurograph/v1/models/personas_persona_seed_get_many_response.py +3 -3
- neurograph/v1/models/{personas_persona_seed_create_request.py → personas_persona_seed_update_request.py} +4 -4
- neurograph/v1/models/personas_persona_seeds_delete_response.py +5 -5
- {neurograph_core-1.202509160244.dist-info → neurograph_core-1.202509201943.dist-info}/METADATA +1 -1
- {neurograph_core-1.202509160244.dist-info → neurograph_core-1.202509201943.dist-info}/RECORD +18 -16
- {neurograph_core-1.202509160244.dist-info → neurograph_core-1.202509201943.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202509160244.dist-info → neurograph_core-1.202509201943.dist-info}/top_level.txt +0 -0
neurograph/v1/__init__.py
CHANGED
|
@@ -40,6 +40,7 @@ __all__ = [
|
|
|
40
40
|
"ApiAttributeError",
|
|
41
41
|
"ApiException",
|
|
42
42
|
"AuthServiceTokenRequest",
|
|
43
|
+
"AuthServiceTokenResponse",
|
|
43
44
|
"AuthTestServiceTokenRequest",
|
|
44
45
|
"AuthTestServiceTokenResponse",
|
|
45
46
|
"AuthTestTokenResponse",
|
|
@@ -129,6 +130,8 @@ __all__ = [
|
|
|
129
130
|
"LookupLookupStateResponse",
|
|
130
131
|
"LookupState",
|
|
131
132
|
"LookupStateResponse",
|
|
133
|
+
"LookupUid",
|
|
134
|
+
"LookupUidsResponse",
|
|
132
135
|
"OrganizationsBrandDetailResponse",
|
|
133
136
|
"OrganizationsBrandUpsertRequest",
|
|
134
137
|
"OrganizationsDeleteMetadataRequest",
|
|
@@ -168,10 +171,9 @@ __all__ = [
|
|
|
168
171
|
"PersonasPersonaMatchCriteriaRequest",
|
|
169
172
|
"PersonasPersonaMatchCriteriaResponse",
|
|
170
173
|
"PersonasPersonaPersonalityTrait",
|
|
171
|
-
"
|
|
172
|
-
"PersonasPersonaSeedCreateResponse",
|
|
174
|
+
"PersonasPersonaSeed",
|
|
173
175
|
"PersonasPersonaSeedGetManyResponse",
|
|
174
|
-
"
|
|
176
|
+
"PersonasPersonaSeedUpdateRequest",
|
|
175
177
|
"PersonasPersonaSeedsDeleteResponse",
|
|
176
178
|
"PersonasPersonaTraitCreateRequest",
|
|
177
179
|
"PersonasPersonaTraitCreateResponse",
|
|
@@ -217,6 +219,7 @@ if __import__("typing").TYPE_CHECKING:
|
|
|
217
219
|
|
|
218
220
|
# import models into sdk package
|
|
219
221
|
from neurograph.v1.models.auth_service_token_request import AuthServiceTokenRequest as AuthServiceTokenRequest
|
|
222
|
+
from neurograph.v1.models.auth_service_token_response import AuthServiceTokenResponse as AuthServiceTokenResponse
|
|
220
223
|
from neurograph.v1.models.auth_test_service_token_request import AuthTestServiceTokenRequest as AuthTestServiceTokenRequest
|
|
221
224
|
from neurograph.v1.models.auth_test_service_token_response import AuthTestServiceTokenResponse as AuthTestServiceTokenResponse
|
|
222
225
|
from neurograph.v1.models.auth_test_token_response import AuthTestTokenResponse as AuthTestTokenResponse
|
|
@@ -306,6 +309,8 @@ if __import__("typing").TYPE_CHECKING:
|
|
|
306
309
|
from neurograph.v1.models.lookup_lookup_state_response import LookupLookupStateResponse as LookupLookupStateResponse
|
|
307
310
|
from neurograph.v1.models.lookup_state import LookupState as LookupState
|
|
308
311
|
from neurograph.v1.models.lookup_state_response import LookupStateResponse as LookupStateResponse
|
|
312
|
+
from neurograph.v1.models.lookup_uid import LookupUid as LookupUid
|
|
313
|
+
from neurograph.v1.models.lookup_uids_response import LookupUidsResponse as LookupUidsResponse
|
|
309
314
|
from neurograph.v1.models.organizations_brand_detail_response import OrganizationsBrandDetailResponse as OrganizationsBrandDetailResponse
|
|
310
315
|
from neurograph.v1.models.organizations_brand_upsert_request import OrganizationsBrandUpsertRequest as OrganizationsBrandUpsertRequest
|
|
311
316
|
from neurograph.v1.models.organizations_delete_metadata_request import OrganizationsDeleteMetadataRequest as OrganizationsDeleteMetadataRequest
|
|
@@ -345,10 +350,9 @@ if __import__("typing").TYPE_CHECKING:
|
|
|
345
350
|
from neurograph.v1.models.personas_persona_match_criteria_request import PersonasPersonaMatchCriteriaRequest as PersonasPersonaMatchCriteriaRequest
|
|
346
351
|
from neurograph.v1.models.personas_persona_match_criteria_response import PersonasPersonaMatchCriteriaResponse as PersonasPersonaMatchCriteriaResponse
|
|
347
352
|
from neurograph.v1.models.personas_persona_personality_trait import PersonasPersonaPersonalityTrait as PersonasPersonaPersonalityTrait
|
|
348
|
-
from neurograph.v1.models.
|
|
349
|
-
from neurograph.v1.models.personas_persona_seed_create_response import PersonasPersonaSeedCreateResponse as PersonasPersonaSeedCreateResponse
|
|
353
|
+
from neurograph.v1.models.personas_persona_seed import PersonasPersonaSeed as PersonasPersonaSeed
|
|
350
354
|
from neurograph.v1.models.personas_persona_seed_get_many_response import PersonasPersonaSeedGetManyResponse as PersonasPersonaSeedGetManyResponse
|
|
351
|
-
from neurograph.v1.models.
|
|
355
|
+
from neurograph.v1.models.personas_persona_seed_update_request import PersonasPersonaSeedUpdateRequest as PersonasPersonaSeedUpdateRequest
|
|
352
356
|
from neurograph.v1.models.personas_persona_seeds_delete_response import PersonasPersonaSeedsDeleteResponse as PersonasPersonaSeedsDeleteResponse
|
|
353
357
|
from neurograph.v1.models.personas_persona_trait_create_request import PersonasPersonaTraitCreateRequest as PersonasPersonaTraitCreateRequest
|
|
354
358
|
from neurograph.v1.models.personas_persona_trait_create_response import PersonasPersonaTraitCreateResponse as PersonasPersonaTraitCreateResponse
|
|
@@ -400,6 +404,7 @@ from neurograph.v1.exceptions import ApiException as ApiException
|
|
|
400
404
|
|
|
401
405
|
# import models into sdk package
|
|
402
406
|
from neurograph.v1.models.auth_service_token_request import AuthServiceTokenRequest as AuthServiceTokenRequest
|
|
407
|
+
from neurograph.v1.models.auth_service_token_response import AuthServiceTokenResponse as AuthServiceTokenResponse
|
|
403
408
|
from neurograph.v1.models.auth_test_service_token_request import AuthTestServiceTokenRequest as AuthTestServiceTokenRequest
|
|
404
409
|
from neurograph.v1.models.auth_test_service_token_response import AuthTestServiceTokenResponse as AuthTestServiceTokenResponse
|
|
405
410
|
from neurograph.v1.models.auth_test_token_response import AuthTestTokenResponse as AuthTestTokenResponse
|
|
@@ -489,6 +494,8 @@ from neurograph.v1.models.lookup_lookup_language_response import LookupLookupLan
|
|
|
489
494
|
from neurograph.v1.models.lookup_lookup_state_response import LookupLookupStateResponse as LookupLookupStateResponse
|
|
490
495
|
from neurograph.v1.models.lookup_state import LookupState as LookupState
|
|
491
496
|
from neurograph.v1.models.lookup_state_response import LookupStateResponse as LookupStateResponse
|
|
497
|
+
from neurograph.v1.models.lookup_uid import LookupUid as LookupUid
|
|
498
|
+
from neurograph.v1.models.lookup_uids_response import LookupUidsResponse as LookupUidsResponse
|
|
492
499
|
from neurograph.v1.models.organizations_brand_detail_response import OrganizationsBrandDetailResponse as OrganizationsBrandDetailResponse
|
|
493
500
|
from neurograph.v1.models.organizations_brand_upsert_request import OrganizationsBrandUpsertRequest as OrganizationsBrandUpsertRequest
|
|
494
501
|
from neurograph.v1.models.organizations_delete_metadata_request import OrganizationsDeleteMetadataRequest as OrganizationsDeleteMetadataRequest
|
|
@@ -528,10 +535,9 @@ from neurograph.v1.models.personas_persona_kpi_resp import PersonasPersonaKpiRes
|
|
|
528
535
|
from neurograph.v1.models.personas_persona_match_criteria_request import PersonasPersonaMatchCriteriaRequest as PersonasPersonaMatchCriteriaRequest
|
|
529
536
|
from neurograph.v1.models.personas_persona_match_criteria_response import PersonasPersonaMatchCriteriaResponse as PersonasPersonaMatchCriteriaResponse
|
|
530
537
|
from neurograph.v1.models.personas_persona_personality_trait import PersonasPersonaPersonalityTrait as PersonasPersonaPersonalityTrait
|
|
531
|
-
from neurograph.v1.models.
|
|
532
|
-
from neurograph.v1.models.personas_persona_seed_create_response import PersonasPersonaSeedCreateResponse as PersonasPersonaSeedCreateResponse
|
|
538
|
+
from neurograph.v1.models.personas_persona_seed import PersonasPersonaSeed as PersonasPersonaSeed
|
|
533
539
|
from neurograph.v1.models.personas_persona_seed_get_many_response import PersonasPersonaSeedGetManyResponse as PersonasPersonaSeedGetManyResponse
|
|
534
|
-
from neurograph.v1.models.
|
|
540
|
+
from neurograph.v1.models.personas_persona_seed_update_request import PersonasPersonaSeedUpdateRequest as PersonasPersonaSeedUpdateRequest
|
|
535
541
|
from neurograph.v1.models.personas_persona_seeds_delete_response import PersonasPersonaSeedsDeleteResponse as PersonasPersonaSeedsDeleteResponse
|
|
536
542
|
from neurograph.v1.models.personas_persona_trait_create_request import PersonasPersonaTraitCreateRequest as PersonasPersonaTraitCreateRequest
|
|
537
543
|
from neurograph.v1.models.personas_persona_trait_create_response import PersonasPersonaTraitCreateResponse as PersonasPersonaTraitCreateResponse
|
|
@@ -19,6 +19,7 @@ from typing_extensions import Annotated
|
|
|
19
19
|
from pydantic import Field
|
|
20
20
|
from typing_extensions import Annotated
|
|
21
21
|
from neurograph.v1.models.auth_service_token_request import AuthServiceTokenRequest
|
|
22
|
+
from neurograph.v1.models.auth_service_token_response import AuthServiceTokenResponse
|
|
22
23
|
from neurograph.v1.models.auth_test_service_token_request import AuthTestServiceTokenRequest
|
|
23
24
|
from neurograph.v1.models.auth_test_service_token_response import AuthTestServiceTokenResponse
|
|
24
25
|
from neurograph.v1.models.auth_test_token_response import AuthTestTokenResponse
|
|
@@ -96,9 +97,6 @@ class AuthenticationApi:
|
|
|
96
97
|
|
|
97
98
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
98
99
|
'200': "AuthTestServiceTokenResponse",
|
|
99
|
-
'400': "AuthTestServiceTokenResponse",
|
|
100
|
-
'403': "AuthTestServiceTokenResponse",
|
|
101
|
-
'500': "AuthTestServiceTokenResponse",
|
|
102
100
|
}
|
|
103
101
|
response_data = self.api_client.call_api(
|
|
104
102
|
*_param,
|
|
@@ -166,9 +164,6 @@ class AuthenticationApi:
|
|
|
166
164
|
|
|
167
165
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
168
166
|
'200': "AuthTestServiceTokenResponse",
|
|
169
|
-
'400': "AuthTestServiceTokenResponse",
|
|
170
|
-
'403': "AuthTestServiceTokenResponse",
|
|
171
|
-
'500': "AuthTestServiceTokenResponse",
|
|
172
167
|
}
|
|
173
168
|
response_data = self.api_client.call_api(
|
|
174
169
|
*_param,
|
|
@@ -236,9 +231,6 @@ class AuthenticationApi:
|
|
|
236
231
|
|
|
237
232
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
238
233
|
'200': "AuthTestServiceTokenResponse",
|
|
239
|
-
'400': "AuthTestServiceTokenResponse",
|
|
240
|
-
'403': "AuthTestServiceTokenResponse",
|
|
241
|
-
'500': "AuthTestServiceTokenResponse",
|
|
242
234
|
}
|
|
243
235
|
response_data = self.api_client.call_api(
|
|
244
236
|
*_param,
|
|
@@ -339,7 +331,7 @@ class AuthenticationApi:
|
|
|
339
331
|
_content_type: Optional[StrictStr] = None,
|
|
340
332
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
341
333
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
342
|
-
) ->
|
|
334
|
+
) -> AuthServiceTokenResponse:
|
|
343
335
|
"""Create a service token for the requesting user
|
|
344
336
|
|
|
345
337
|
A service token can be used on the `Authorization` header. eg., `Bearer <token>`.
|
|
@@ -377,9 +369,9 @@ class AuthenticationApi:
|
|
|
377
369
|
)
|
|
378
370
|
|
|
379
371
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
380
|
-
'200': "
|
|
381
|
-
'400': "
|
|
382
|
-
'500': "
|
|
372
|
+
'200': "AuthServiceTokenResponse",
|
|
373
|
+
'400': "AuthServiceTokenResponse",
|
|
374
|
+
'500': "AuthServiceTokenResponse",
|
|
383
375
|
}
|
|
384
376
|
response_data = self.api_client.call_api(
|
|
385
377
|
*_param,
|
|
@@ -408,7 +400,7 @@ class AuthenticationApi:
|
|
|
408
400
|
_content_type: Optional[StrictStr] = None,
|
|
409
401
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
410
402
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
411
|
-
) -> ApiResponse[
|
|
403
|
+
) -> ApiResponse[AuthServiceTokenResponse]:
|
|
412
404
|
"""Create a service token for the requesting user
|
|
413
405
|
|
|
414
406
|
A service token can be used on the `Authorization` header. eg., `Bearer <token>`.
|
|
@@ -446,9 +438,9 @@ class AuthenticationApi:
|
|
|
446
438
|
)
|
|
447
439
|
|
|
448
440
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
449
|
-
'200': "
|
|
450
|
-
'400': "
|
|
451
|
-
'500': "
|
|
441
|
+
'200': "AuthServiceTokenResponse",
|
|
442
|
+
'400': "AuthServiceTokenResponse",
|
|
443
|
+
'500': "AuthServiceTokenResponse",
|
|
452
444
|
}
|
|
453
445
|
response_data = self.api_client.call_api(
|
|
454
446
|
*_param,
|
|
@@ -515,9 +507,9 @@ class AuthenticationApi:
|
|
|
515
507
|
)
|
|
516
508
|
|
|
517
509
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
518
|
-
'200': "
|
|
519
|
-
'400': "
|
|
520
|
-
'500': "
|
|
510
|
+
'200': "AuthServiceTokenResponse",
|
|
511
|
+
'400': "AuthServiceTokenResponse",
|
|
512
|
+
'500': "AuthServiceTokenResponse",
|
|
521
513
|
}
|
|
522
514
|
response_data = self.api_client.call_api(
|
|
523
515
|
*_param,
|
neurograph/v1/api/lookup_api.py
CHANGED
|
@@ -17,10 +17,12 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
19
|
from pydantic import Field, StrictStr
|
|
20
|
+
from typing import Optional
|
|
20
21
|
from typing_extensions import Annotated
|
|
21
22
|
from neurograph.v1.models.lookup_lookup_language_response import LookupLookupLanguageResponse
|
|
22
23
|
from neurograph.v1.models.lookup_lookup_state_response import LookupLookupStateResponse
|
|
23
24
|
from neurograph.v1.models.lookup_state_response import LookupStateResponse
|
|
25
|
+
from neurograph.v1.models.lookup_uids_response import LookupUidsResponse
|
|
24
26
|
|
|
25
27
|
from neurograph.v1.api_client import ApiClient, RequestSerialized
|
|
26
28
|
from neurograph.v1.api_response import ApiResponse
|
|
@@ -1049,3 +1051,269 @@ class LookupApi:
|
|
|
1049
1051
|
)
|
|
1050
1052
|
|
|
1051
1053
|
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
@validate_call
|
|
1057
|
+
def api_v1_lookup_uids_get(
|
|
1058
|
+
self,
|
|
1059
|
+
only_active: Annotated[Optional[StrictStr], Field(description="Filter to return only activ orgs and clients")] = None,
|
|
1060
|
+
_request_timeout: Union[
|
|
1061
|
+
None,
|
|
1062
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1063
|
+
Tuple[
|
|
1064
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1065
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1066
|
+
]
|
|
1067
|
+
] = None,
|
|
1068
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1069
|
+
_content_type: Optional[StrictStr] = None,
|
|
1070
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1071
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1072
|
+
) -> LookupUidsResponse:
|
|
1073
|
+
"""Get legacy uids for matching knowledge data
|
|
1074
|
+
|
|
1075
|
+
Get an array of uids for matching Clients and Orgs with legacy data
|
|
1076
|
+
|
|
1077
|
+
:param only_active: Filter to return only activ orgs and clients
|
|
1078
|
+
:type only_active: str
|
|
1079
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1080
|
+
number provided, it will be total request
|
|
1081
|
+
timeout. It can also be a pair (tuple) of
|
|
1082
|
+
(connection, read) timeouts.
|
|
1083
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1084
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1085
|
+
request; this effectively ignores the
|
|
1086
|
+
authentication in the spec for a single request.
|
|
1087
|
+
:type _request_auth: dict, optional
|
|
1088
|
+
:param _content_type: force content-type for the request.
|
|
1089
|
+
:type _content_type: str, Optional
|
|
1090
|
+
:param _headers: set to override the headers for a single
|
|
1091
|
+
request; this effectively ignores the headers
|
|
1092
|
+
in the spec for a single request.
|
|
1093
|
+
:type _headers: dict, optional
|
|
1094
|
+
:param _host_index: set to override the host_index for a single
|
|
1095
|
+
request; this effectively ignores the host_index
|
|
1096
|
+
in the spec for a single request.
|
|
1097
|
+
:type _host_index: int, optional
|
|
1098
|
+
:return: Returns the result object.
|
|
1099
|
+
""" # noqa: E501
|
|
1100
|
+
|
|
1101
|
+
_param = self._api_v1_lookup_uids_get_serialize(
|
|
1102
|
+
only_active=only_active,
|
|
1103
|
+
_request_auth=_request_auth,
|
|
1104
|
+
_content_type=_content_type,
|
|
1105
|
+
_headers=_headers,
|
|
1106
|
+
_host_index=_host_index
|
|
1107
|
+
)
|
|
1108
|
+
|
|
1109
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1110
|
+
'200': "LookupUidsResponse",
|
|
1111
|
+
'400': "LookupUidsResponse",
|
|
1112
|
+
}
|
|
1113
|
+
response_data = self.api_client.call_api(
|
|
1114
|
+
*_param,
|
|
1115
|
+
_request_timeout=_request_timeout
|
|
1116
|
+
)
|
|
1117
|
+
response_data.read()
|
|
1118
|
+
return self.api_client.response_deserialize(
|
|
1119
|
+
response_data=response_data,
|
|
1120
|
+
response_types_map=_response_types_map,
|
|
1121
|
+
).data
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
@validate_call
|
|
1125
|
+
def api_v1_lookup_uids_get_with_http_info(
|
|
1126
|
+
self,
|
|
1127
|
+
only_active: Annotated[Optional[StrictStr], Field(description="Filter to return only activ orgs and clients")] = None,
|
|
1128
|
+
_request_timeout: Union[
|
|
1129
|
+
None,
|
|
1130
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1131
|
+
Tuple[
|
|
1132
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1133
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1134
|
+
]
|
|
1135
|
+
] = None,
|
|
1136
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1137
|
+
_content_type: Optional[StrictStr] = None,
|
|
1138
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1139
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1140
|
+
) -> ApiResponse[LookupUidsResponse]:
|
|
1141
|
+
"""Get legacy uids for matching knowledge data
|
|
1142
|
+
|
|
1143
|
+
Get an array of uids for matching Clients and Orgs with legacy data
|
|
1144
|
+
|
|
1145
|
+
:param only_active: Filter to return only activ orgs and clients
|
|
1146
|
+
:type only_active: str
|
|
1147
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1148
|
+
number provided, it will be total request
|
|
1149
|
+
timeout. It can also be a pair (tuple) of
|
|
1150
|
+
(connection, read) timeouts.
|
|
1151
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1152
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1153
|
+
request; this effectively ignores the
|
|
1154
|
+
authentication in the spec for a single request.
|
|
1155
|
+
:type _request_auth: dict, optional
|
|
1156
|
+
:param _content_type: force content-type for the request.
|
|
1157
|
+
:type _content_type: str, Optional
|
|
1158
|
+
:param _headers: set to override the headers for a single
|
|
1159
|
+
request; this effectively ignores the headers
|
|
1160
|
+
in the spec for a single request.
|
|
1161
|
+
:type _headers: dict, optional
|
|
1162
|
+
:param _host_index: set to override the host_index for a single
|
|
1163
|
+
request; this effectively ignores the host_index
|
|
1164
|
+
in the spec for a single request.
|
|
1165
|
+
:type _host_index: int, optional
|
|
1166
|
+
:return: Returns the result object.
|
|
1167
|
+
""" # noqa: E501
|
|
1168
|
+
|
|
1169
|
+
_param = self._api_v1_lookup_uids_get_serialize(
|
|
1170
|
+
only_active=only_active,
|
|
1171
|
+
_request_auth=_request_auth,
|
|
1172
|
+
_content_type=_content_type,
|
|
1173
|
+
_headers=_headers,
|
|
1174
|
+
_host_index=_host_index
|
|
1175
|
+
)
|
|
1176
|
+
|
|
1177
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1178
|
+
'200': "LookupUidsResponse",
|
|
1179
|
+
'400': "LookupUidsResponse",
|
|
1180
|
+
}
|
|
1181
|
+
response_data = self.api_client.call_api(
|
|
1182
|
+
*_param,
|
|
1183
|
+
_request_timeout=_request_timeout
|
|
1184
|
+
)
|
|
1185
|
+
response_data.read()
|
|
1186
|
+
return self.api_client.response_deserialize(
|
|
1187
|
+
response_data=response_data,
|
|
1188
|
+
response_types_map=_response_types_map,
|
|
1189
|
+
)
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
@validate_call
|
|
1193
|
+
def api_v1_lookup_uids_get_without_preload_content(
|
|
1194
|
+
self,
|
|
1195
|
+
only_active: Annotated[Optional[StrictStr], Field(description="Filter to return only activ orgs and clients")] = None,
|
|
1196
|
+
_request_timeout: Union[
|
|
1197
|
+
None,
|
|
1198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1199
|
+
Tuple[
|
|
1200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1201
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1202
|
+
]
|
|
1203
|
+
] = None,
|
|
1204
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1205
|
+
_content_type: Optional[StrictStr] = None,
|
|
1206
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1207
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1208
|
+
) -> RESTResponseType:
|
|
1209
|
+
"""Get legacy uids for matching knowledge data
|
|
1210
|
+
|
|
1211
|
+
Get an array of uids for matching Clients and Orgs with legacy data
|
|
1212
|
+
|
|
1213
|
+
:param only_active: Filter to return only activ orgs and clients
|
|
1214
|
+
:type only_active: str
|
|
1215
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1216
|
+
number provided, it will be total request
|
|
1217
|
+
timeout. It can also be a pair (tuple) of
|
|
1218
|
+
(connection, read) timeouts.
|
|
1219
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1220
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1221
|
+
request; this effectively ignores the
|
|
1222
|
+
authentication in the spec for a single request.
|
|
1223
|
+
:type _request_auth: dict, optional
|
|
1224
|
+
:param _content_type: force content-type for the request.
|
|
1225
|
+
:type _content_type: str, Optional
|
|
1226
|
+
:param _headers: set to override the headers for a single
|
|
1227
|
+
request; this effectively ignores the headers
|
|
1228
|
+
in the spec for a single request.
|
|
1229
|
+
:type _headers: dict, optional
|
|
1230
|
+
:param _host_index: set to override the host_index for a single
|
|
1231
|
+
request; this effectively ignores the host_index
|
|
1232
|
+
in the spec for a single request.
|
|
1233
|
+
:type _host_index: int, optional
|
|
1234
|
+
:return: Returns the result object.
|
|
1235
|
+
""" # noqa: E501
|
|
1236
|
+
|
|
1237
|
+
_param = self._api_v1_lookup_uids_get_serialize(
|
|
1238
|
+
only_active=only_active,
|
|
1239
|
+
_request_auth=_request_auth,
|
|
1240
|
+
_content_type=_content_type,
|
|
1241
|
+
_headers=_headers,
|
|
1242
|
+
_host_index=_host_index
|
|
1243
|
+
)
|
|
1244
|
+
|
|
1245
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1246
|
+
'200': "LookupUidsResponse",
|
|
1247
|
+
'400': "LookupUidsResponse",
|
|
1248
|
+
}
|
|
1249
|
+
response_data = self.api_client.call_api(
|
|
1250
|
+
*_param,
|
|
1251
|
+
_request_timeout=_request_timeout
|
|
1252
|
+
)
|
|
1253
|
+
return response_data.response
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
def _api_v1_lookup_uids_get_serialize(
|
|
1257
|
+
self,
|
|
1258
|
+
only_active,
|
|
1259
|
+
_request_auth,
|
|
1260
|
+
_content_type,
|
|
1261
|
+
_headers,
|
|
1262
|
+
_host_index,
|
|
1263
|
+
) -> RequestSerialized:
|
|
1264
|
+
|
|
1265
|
+
_host = None
|
|
1266
|
+
|
|
1267
|
+
_collection_formats: Dict[str, str] = {
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
_path_params: Dict[str, str] = {}
|
|
1271
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1272
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1273
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1274
|
+
_files: Dict[
|
|
1275
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1276
|
+
] = {}
|
|
1277
|
+
_body_params: Optional[bytes] = None
|
|
1278
|
+
|
|
1279
|
+
# process the path parameters
|
|
1280
|
+
# process the query parameters
|
|
1281
|
+
if only_active is not None:
|
|
1282
|
+
|
|
1283
|
+
_query_params.append(('onlyActive', only_active))
|
|
1284
|
+
|
|
1285
|
+
# process the header parameters
|
|
1286
|
+
# process the form parameters
|
|
1287
|
+
# process the body parameter
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
# set the HTTP header `Accept`
|
|
1291
|
+
if 'Accept' not in _header_params:
|
|
1292
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1293
|
+
[
|
|
1294
|
+
'application/json'
|
|
1295
|
+
]
|
|
1296
|
+
)
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
# authentication setting
|
|
1300
|
+
_auth_settings: List[str] = [
|
|
1301
|
+
'TokenAuth'
|
|
1302
|
+
]
|
|
1303
|
+
|
|
1304
|
+
return self.api_client.param_serialize(
|
|
1305
|
+
method='GET',
|
|
1306
|
+
resource_path='/api/v1/lookup/uids',
|
|
1307
|
+
path_params=_path_params,
|
|
1308
|
+
query_params=_query_params,
|
|
1309
|
+
header_params=_header_params,
|
|
1310
|
+
body=_body_params,
|
|
1311
|
+
post_params=_form_params,
|
|
1312
|
+
files=_files,
|
|
1313
|
+
auth_settings=_auth_settings,
|
|
1314
|
+
collection_formats=_collection_formats,
|
|
1315
|
+
_host=_host,
|
|
1316
|
+
_request_auth=_request_auth
|
|
1317
|
+
)
|
|
1318
|
+
|
|
1319
|
+
|