egain-api-python 0.1.1__py3-none-any.whl → 0.1.3__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.
- egain_api_python/_version.py +3 -3
- egain_api_python/answers.py +26 -26
- egain_api_python/articlelists.py +6 -6
- egain_api_python/errors/gethealthop.py +33 -19
- egain_api_python/export.py +2 -2
- egain_api_python/models/__init__.py +87 -64
- egain_api_python/models/aisearchop.py +6 -34
- egain_api_python/models/aisearchresponse.py +0 -4
- egain_api_python/models/articleaisearchresult.py +14 -21
- egain_api_python/models/articletype.py +3 -5
- egain_api_python/models/exportstatus.py +15 -8
- egain_api_python/models/getannouncementarticlesop.py +2 -2
- egain_api_python/models/getarticlelistdetailsop.py +2 -2
- egain_api_python/models/getarticlesintopicop.py +4 -4
- egain_api_python/models/{post_portalid_answersop.py → getbestanswerop.py} +9 -9
- egain_api_python/models/gethealthop.py +134 -7
- egain_api_python/models/getpopulararticlesop.py +4 -4
- egain_api_python/models/getrelatedarticlesop.py +2 -2
- egain_api_python/models/importstatus.py +116 -0
- egain_api_python/models/knowledgeexport.py +3 -5
- egain_api_python/models/referenceresponse.py +7 -23
- egain_api_python/models/{post_portalid_retrieveop.py → retrievechunksop.py} +9 -9
- egain_api_python/models/searchresult.py +7 -23
- egain_api_python/populararticles.py +12 -12
- egain_api_python/portal_article.py +24 -24
- egain_api_python/retrieve.py +26 -26
- egain_api_python/sdk.py +1 -0
- egain_api_python/search.py +18 -36
- {egain_api_python-0.1.1.dist-info → egain_api_python-0.1.3.dist-info}/METADATA +16 -11
- {egain_api_python-0.1.1.dist-info → egain_api_python-0.1.3.dist-info}/RECORD +33 -35
- egain_api_python/models/resourcetype_parameter.py +0 -10
- egain_api_python/models/topicaisearchresult.py +0 -67
- {egain_api_python-0.1.1.dist-info → egain_api_python-0.1.3.dist-info}/WHEEL +0 -0
- {egain_api_python-0.1.1.dist-info → egain_api_python-0.1.3.dist-info}/licenses/LICENSE +0 -0
- {egain_api_python-0.1.1.dist-info → egain_api_python-0.1.3.dist-info}/top_level.txt +0 -0
@@ -82,7 +82,6 @@ if TYPE_CHECKING:
|
|
82
82
|
ArticleAISearchResultLinkTypedDict,
|
83
83
|
ArticleAISearchResultSource,
|
84
84
|
ArticleAISearchResultType,
|
85
|
-
ArticleAISearchResultTypeName,
|
86
85
|
ArticleAISearchResultTypedDict,
|
87
86
|
ArticleTypeAttributes,
|
88
87
|
ArticleTypeAttributesTypedDict,
|
@@ -122,7 +121,7 @@ if TYPE_CHECKING:
|
|
122
121
|
)
|
123
122
|
from .articlesort import ArticleSort
|
124
123
|
from .articlesortorder import ArticleSortOrder
|
125
|
-
from .articletype import ArticleType,
|
124
|
+
from .articletype import ArticleType, ArticleTypeTypedDict, TypeName
|
126
125
|
from .articlewitheditions import ArticleWithEditions, ArticleWithEditionsTypedDict
|
127
126
|
from .attachment import Attachment, AttachmentTypedDict
|
128
127
|
from .attachmentadditionalattributes import AttachmentAdditionalAttributes
|
@@ -302,12 +301,12 @@ if TYPE_CHECKING:
|
|
302
301
|
from .exportcontentop import ExportContentResponse, ExportContentResponseTypedDict
|
303
302
|
from .exportstatus import (
|
304
303
|
ExportStatus,
|
304
|
+
ExportStatusProgress,
|
305
|
+
ExportStatusProgressTypedDict,
|
306
|
+
ExportStatusResults,
|
307
|
+
ExportStatusResultsTypedDict,
|
305
308
|
ExportStatusStatus,
|
306
309
|
ExportStatusTypedDict,
|
307
|
-
Progress,
|
308
|
-
ProgressTypedDict,
|
309
|
-
Results,
|
310
|
-
ResultsTypedDict,
|
311
310
|
)
|
312
311
|
from .exportstatusop import ExportStatusRequest, ExportStatusRequestTypedDict
|
313
312
|
from .feedbackarticleforsuggestion import (
|
@@ -393,6 +392,11 @@ if TYPE_CHECKING:
|
|
393
392
|
GetAttachmentByIDInPortalRequest,
|
394
393
|
GetAttachmentByIDInPortalRequestTypedDict,
|
395
394
|
)
|
395
|
+
from .getbestanswerop import (
|
396
|
+
GET_BEST_ANSWER_OP_SERVERS,
|
397
|
+
GetBestAnswerRequest,
|
398
|
+
GetBestAnswerRequestTypedDict,
|
399
|
+
)
|
396
400
|
from .getbookmarkop import GetbookmarkRequest, GetbookmarkRequestTypedDict
|
397
401
|
from .getcasebasereleasebyidop import (
|
398
402
|
GetCasebaseReleaseByIDRequest,
|
@@ -405,9 +409,18 @@ if TYPE_CHECKING:
|
|
405
409
|
GetClusterByCasebaseReleaseIDRequestTypedDict,
|
406
410
|
)
|
407
411
|
from .gethealthop import (
|
412
|
+
Components,
|
413
|
+
ComponentsTypedDict,
|
414
|
+
Database,
|
415
|
+
ExternalServices,
|
416
|
+
FileSystem,
|
408
417
|
GET_HEALTH_OP_SERVERS,
|
409
418
|
GetHealthResponse,
|
410
419
|
GetHealthResponseTypedDict,
|
420
|
+
GetHealthStatus,
|
421
|
+
ProcessingEngine,
|
422
|
+
ServiceUnavailableStatus,
|
423
|
+
Storage,
|
411
424
|
)
|
412
425
|
from .getimportcontentop import (
|
413
426
|
GET_IMPORT_CONTENT_OP_SERVERS,
|
@@ -481,7 +494,16 @@ if TYPE_CHECKING:
|
|
481
494
|
ScheduleTime,
|
482
495
|
ScheduleTimeTypedDict,
|
483
496
|
)
|
484
|
-
from .importstatus import
|
497
|
+
from .importstatus import (
|
498
|
+
ImportStatus,
|
499
|
+
ImportStatusProgress,
|
500
|
+
ImportStatusProgressTypedDict,
|
501
|
+
ImportStatusResults,
|
502
|
+
ImportStatusResultsTypedDict,
|
503
|
+
ImportStatusStatus,
|
504
|
+
ImportStatusTypedDict,
|
505
|
+
JobType,
|
506
|
+
)
|
485
507
|
from .kblanguage import KbLanguage, KbLanguageCode1, KbLanguageTypedDict, Name
|
486
508
|
from .kblanguagecode import KbLanguageCode
|
487
509
|
from .kblanguages import KbLanguages, KbLanguagesTypedDict
|
@@ -496,8 +518,8 @@ if TYPE_CHECKING:
|
|
496
518
|
KnowledgeExportCredentialsTypedDict,
|
497
519
|
KnowledgeExportLanguage,
|
498
520
|
KnowledgeExportLanguageTypedDict,
|
499
|
-
KnowledgeExportResourceType,
|
500
521
|
KnowledgeExportTypedDict,
|
522
|
+
ResourceType,
|
501
523
|
)
|
502
524
|
from .l10nstring import L10NString, L10NStringTypedDict
|
503
525
|
from .languagecode import LanguageCode
|
@@ -548,16 +570,6 @@ if TYPE_CHECKING:
|
|
548
570
|
PortalSettingsTypedDict,
|
549
571
|
SearchLearningLevel,
|
550
572
|
)
|
551
|
-
from .post_portalid_answersop import (
|
552
|
-
POST_PORTAL_ID_ANSWERS_OP_SERVERS,
|
553
|
-
PostPortalIDAnswersRequest,
|
554
|
-
PostPortalIDAnswersRequestTypedDict,
|
555
|
-
)
|
556
|
-
from .post_portalid_retrieveop import (
|
557
|
-
POST_PORTAL_ID_RETRIEVE_OP_SERVERS,
|
558
|
-
PostPortalIDRetrieveRequest,
|
559
|
-
PostPortalIDRetrieveRequestTypedDict,
|
560
|
-
)
|
561
573
|
from .profile import Profile, ProfileTypedDict
|
562
574
|
from .profileresult import ProfileResult, ProfileResultTypedDict
|
563
575
|
from .publishprofile import PublishProfile, PublishProfileTypedDict
|
@@ -576,8 +588,6 @@ if TYPE_CHECKING:
|
|
576
588
|
from .referenceresponse import (
|
577
589
|
ReferenceResponse,
|
578
590
|
ReferenceResponseDocType,
|
579
|
-
ReferenceResponseLink,
|
580
|
-
ReferenceResponseLinkTypedDict,
|
581
591
|
ReferenceResponseSource,
|
582
592
|
ReferenceResponseTypedDict,
|
583
593
|
)
|
@@ -586,11 +596,15 @@ if TYPE_CHECKING:
|
|
586
596
|
RejectGHSolutionRequestTypedDict,
|
587
597
|
)
|
588
598
|
from .relatedquestions import RelatedQuestions, RelatedQuestionsTypedDict
|
589
|
-
from .resourcetype_parameter import ResourceTypeParameter
|
590
599
|
from .restorequickpickop import (
|
591
600
|
RestoreQuickpickRequest,
|
592
601
|
RestoreQuickpickRequestTypedDict,
|
593
602
|
)
|
603
|
+
from .retrievechunksop import (
|
604
|
+
RETRIEVE_CHUNKS_OP_SERVERS,
|
605
|
+
RetrieveChunksRequest,
|
606
|
+
RetrieveChunksRequestTypedDict,
|
607
|
+
)
|
594
608
|
from .retrieverequest import (
|
595
609
|
RetrieveRequest,
|
596
610
|
RetrieveRequestChannel,
|
@@ -644,8 +658,6 @@ if TYPE_CHECKING:
|
|
644
658
|
from .searchresult import (
|
645
659
|
SearchResult,
|
646
660
|
SearchResultDocType,
|
647
|
-
SearchResultLink,
|
648
|
-
SearchResultLinkTypedDict,
|
649
661
|
SearchResultSource,
|
650
662
|
SearchResultTypedDict,
|
651
663
|
SnippetType,
|
@@ -733,7 +745,6 @@ if TYPE_CHECKING:
|
|
733
745
|
from .tags import Tags, TagsTypedDict
|
734
746
|
from .topic import Topic, TopicTypedDict
|
735
747
|
from .topicadditionalattributes import TopicAdditionalAttributes
|
736
|
-
from .topicaisearchresult import TopicAISearchResult, TopicAISearchResultTypedDict
|
737
748
|
from .topicbreadcrumb import TopicBreadcrumb, TopicBreadcrumbTypedDict
|
738
749
|
from .topicresult import TopicResult, TopicResultTypedDict
|
739
750
|
from .topicsummary import TopicSummary, TopicSummaryTypedDict
|
@@ -826,7 +837,6 @@ __all__ = [
|
|
826
837
|
"ArticleAISearchResultLinkTypedDict",
|
827
838
|
"ArticleAISearchResultSource",
|
828
839
|
"ArticleAISearchResultType",
|
829
|
-
"ArticleAISearchResultTypeName",
|
830
840
|
"ArticleAISearchResultTypedDict",
|
831
841
|
"ArticleActivityLink",
|
832
842
|
"ArticleActivityLinkCode",
|
@@ -866,7 +876,6 @@ __all__ = [
|
|
866
876
|
"ArticleType",
|
867
877
|
"ArticleTypeAttributes",
|
868
878
|
"ArticleTypeAttributesTypedDict",
|
869
|
-
"ArticleTypeTypeName",
|
870
879
|
"ArticleTypeTypedDict",
|
871
880
|
"ArticleTypedDict",
|
872
881
|
"ArticleWithEditions",
|
@@ -945,12 +954,14 @@ __all__ = [
|
|
945
954
|
"ComplianceForArticleTypedDict",
|
946
955
|
"ComplyArticleRequest",
|
947
956
|
"ComplyArticleRequestTypedDict",
|
957
|
+
"Components",
|
948
958
|
"ComponentsSchemasTag",
|
949
959
|
"ComponentsSchemasTagCategory",
|
950
960
|
"ComponentsSchemasTagCategoryTypedDict",
|
951
961
|
"ComponentsSchemasTagGroup",
|
952
962
|
"ComponentsSchemasTagGroupTypedDict",
|
953
963
|
"ComponentsSchemasTagTypedDict",
|
964
|
+
"ComponentsTypedDict",
|
954
965
|
"ConfigurableAttribute",
|
955
966
|
"ConfigurableAttributeTypedDict",
|
956
967
|
"ConfigurableAttributes",
|
@@ -1003,6 +1014,7 @@ __all__ = [
|
|
1003
1014
|
"CustomerTypedDict",
|
1004
1015
|
"DataDestination",
|
1005
1016
|
"DataDestinationTypedDict",
|
1017
|
+
"Database",
|
1006
1018
|
"DeleteSuggestionRequest",
|
1007
1019
|
"DeleteSuggestionRequestTypedDict",
|
1008
1020
|
"DeletebookmarkRequest",
|
@@ -1033,12 +1045,18 @@ __all__ = [
|
|
1033
1045
|
"ExportContentResponse",
|
1034
1046
|
"ExportContentResponseTypedDict",
|
1035
1047
|
"ExportStatus",
|
1048
|
+
"ExportStatusProgress",
|
1049
|
+
"ExportStatusProgressTypedDict",
|
1036
1050
|
"ExportStatusRequest",
|
1037
1051
|
"ExportStatusRequestTypedDict",
|
1052
|
+
"ExportStatusResults",
|
1053
|
+
"ExportStatusResultsTypedDict",
|
1038
1054
|
"ExportStatusStatus",
|
1039
1055
|
"ExportStatusTypedDict",
|
1056
|
+
"ExternalServices",
|
1040
1057
|
"FeedbackArticleForSuggestion",
|
1041
1058
|
"FeedbackArticleForSuggestionTypedDict",
|
1059
|
+
"FileSystem",
|
1042
1060
|
"FilterStatus",
|
1043
1061
|
"Filters",
|
1044
1062
|
"FiltersTypedDict",
|
@@ -1046,6 +1064,7 @@ __all__ = [
|
|
1046
1064
|
"FolderBreadcrumbTypedDict",
|
1047
1065
|
"FolderSummary",
|
1048
1066
|
"FolderSummaryTypedDict",
|
1067
|
+
"GET_BEST_ANSWER_OP_SERVERS",
|
1049
1068
|
"GET_HEALTH_OP_SERVERS",
|
1050
1069
|
"GET_IMPORT_CONTENT_OP_SERVERS",
|
1051
1070
|
"GHSearchRequest",
|
@@ -1093,6 +1112,8 @@ __all__ = [
|
|
1093
1112
|
"GetArticlesInTopicRequestTypedDict",
|
1094
1113
|
"GetAttachmentByIDInPortalRequest",
|
1095
1114
|
"GetAttachmentByIDInPortalRequestTypedDict",
|
1115
|
+
"GetBestAnswerRequest",
|
1116
|
+
"GetBestAnswerRequestTypedDict",
|
1096
1117
|
"GetCaseByIDRequest",
|
1097
1118
|
"GetCaseByIDRequestTypedDict",
|
1098
1119
|
"GetCasebaseReleaseByIDRequest",
|
@@ -1101,6 +1122,7 @@ __all__ = [
|
|
1101
1122
|
"GetClusterByCasebaseReleaseIDRequestTypedDict",
|
1102
1123
|
"GetHealthResponse",
|
1103
1124
|
"GetHealthResponseTypedDict",
|
1125
|
+
"GetHealthStatus",
|
1104
1126
|
"GetImportContentRequest",
|
1105
1127
|
"GetImportContentRequestTypedDict",
|
1106
1128
|
"GetMyPortalsRequest",
|
@@ -1151,8 +1173,13 @@ __all__ = [
|
|
1151
1173
|
"ImportContentType",
|
1152
1174
|
"ImportContentTypedDict",
|
1153
1175
|
"ImportStatus",
|
1176
|
+
"ImportStatusProgress",
|
1177
|
+
"ImportStatusProgressTypedDict",
|
1178
|
+
"ImportStatusResults",
|
1179
|
+
"ImportStatusResultsTypedDict",
|
1154
1180
|
"ImportStatusStatus",
|
1155
1181
|
"ImportStatusTypedDict",
|
1182
|
+
"JobType",
|
1156
1183
|
"KbLanguage",
|
1157
1184
|
"KbLanguageCode",
|
1158
1185
|
"KbLanguageCode1",
|
@@ -1165,7 +1192,6 @@ __all__ = [
|
|
1165
1192
|
"KnowledgeExportCredentialsTypedDict",
|
1166
1193
|
"KnowledgeExportLanguage",
|
1167
1194
|
"KnowledgeExportLanguageTypedDict",
|
1168
|
-
"KnowledgeExportResourceType",
|
1169
1195
|
"KnowledgeExportTypedDict",
|
1170
1196
|
"L10NString",
|
1171
1197
|
"L10NStringTypedDict",
|
@@ -1205,8 +1231,6 @@ __all__ = [
|
|
1205
1231
|
"OwnedBy",
|
1206
1232
|
"OwnedByTypedDict",
|
1207
1233
|
"PATCH_IMPORT_CONTENT_VALIDATION_OP_SERVERS",
|
1208
|
-
"POST_PORTAL_ID_ANSWERS_OP_SERVERS",
|
1209
|
-
"POST_PORTAL_ID_RETRIEVE_OP_SERVERS",
|
1210
1234
|
"PaginationInfo",
|
1211
1235
|
"PaginationInfoTypedDict",
|
1212
1236
|
"PatchImportContentValidationRequest",
|
@@ -1223,16 +1247,11 @@ __all__ = [
|
|
1223
1247
|
"PortalSettings",
|
1224
1248
|
"PortalSettingsTypedDict",
|
1225
1249
|
"PortalTypedDict",
|
1226
|
-
"
|
1227
|
-
"PostPortalIDAnswersRequestTypedDict",
|
1228
|
-
"PostPortalIDRetrieveRequest",
|
1229
|
-
"PostPortalIDRetrieveRequestTypedDict",
|
1250
|
+
"ProcessingEngine",
|
1230
1251
|
"Profile",
|
1231
1252
|
"ProfileResult",
|
1232
1253
|
"ProfileResultTypedDict",
|
1233
1254
|
"ProfileTypedDict",
|
1234
|
-
"Progress",
|
1235
|
-
"ProgressTypedDict",
|
1236
1255
|
"PublishProfile",
|
1237
1256
|
"PublishProfileTypedDict",
|
1238
1257
|
"PublishView",
|
@@ -1253,12 +1272,11 @@ __all__ = [
|
|
1253
1272
|
"QuickpickResultTypedDict",
|
1254
1273
|
"QuickpickResults",
|
1255
1274
|
"QuickpickResultsTypedDict",
|
1275
|
+
"RETRIEVE_CHUNKS_OP_SERVERS",
|
1256
1276
|
"RateArticleRequest",
|
1257
1277
|
"RateArticleRequestTypedDict",
|
1258
1278
|
"ReferenceResponse",
|
1259
1279
|
"ReferenceResponseDocType",
|
1260
|
-
"ReferenceResponseLink",
|
1261
|
-
"ReferenceResponseLinkTypedDict",
|
1262
1280
|
"ReferenceResponseSource",
|
1263
1281
|
"ReferenceResponseTypedDict",
|
1264
1282
|
"RejectGHSolutionRequest",
|
@@ -1267,12 +1285,12 @@ __all__ = [
|
|
1267
1285
|
"RelatedArticleForCreateUpdateDeleteSuggestionTypedDict",
|
1268
1286
|
"RelatedQuestions",
|
1269
1287
|
"RelatedQuestionsTypedDict",
|
1270
|
-
"
|
1288
|
+
"ResourceType",
|
1271
1289
|
"RestoreQuickpickRequest",
|
1272
1290
|
"RestoreQuickpickRequestTypedDict",
|
1273
1291
|
"ResultType",
|
1274
|
-
"
|
1275
|
-
"
|
1292
|
+
"RetrieveChunksRequest",
|
1293
|
+
"RetrieveChunksRequestTypedDict",
|
1276
1294
|
"RetrieveRequest",
|
1277
1295
|
"RetrieveRequestChannel",
|
1278
1296
|
"RetrieveRequestChannelTypedDict",
|
@@ -1316,8 +1334,6 @@ __all__ = [
|
|
1316
1334
|
"SearchPriorToEscalationRequestTypedDict",
|
1317
1335
|
"SearchResult",
|
1318
1336
|
"SearchResultDocType",
|
1319
|
-
"SearchResultLink",
|
1320
|
-
"SearchResultLinkTypedDict",
|
1321
1337
|
"SearchResultSource",
|
1322
1338
|
"SearchResultTypedDict",
|
1323
1339
|
"SearchResults",
|
@@ -1328,6 +1344,7 @@ __all__ = [
|
|
1328
1344
|
"SecurityTypedDict",
|
1329
1345
|
"SelectUserProfileRequest",
|
1330
1346
|
"SelectUserProfileRequestTypedDict",
|
1347
|
+
"ServiceUnavailableStatus",
|
1331
1348
|
"SessionContextVariable",
|
1332
1349
|
"SessionContextVariableTypedDict",
|
1333
1350
|
"ShortURL",
|
@@ -1355,6 +1372,7 @@ __all__ = [
|
|
1355
1372
|
"StartQuestionAndAnswerTypedDict",
|
1356
1373
|
"StepGHSearchRequest",
|
1357
1374
|
"StepGHSearchRequestTypedDict",
|
1375
|
+
"Storage",
|
1358
1376
|
"StringAttributeValue",
|
1359
1377
|
"StringAttributeValueTypedDict",
|
1360
1378
|
"StructuredAuthoringFields",
|
@@ -1387,8 +1405,6 @@ __all__ = [
|
|
1387
1405
|
"TagsTypedDict",
|
1388
1406
|
"ThresholdType",
|
1389
1407
|
"Topic",
|
1390
|
-
"TopicAISearchResult",
|
1391
|
-
"TopicAISearchResultTypedDict",
|
1392
1408
|
"TopicAdditionalAttributes",
|
1393
1409
|
"TopicBreadcrumb",
|
1394
1410
|
"TopicBreadcrumbTypedDict",
|
@@ -1401,6 +1417,7 @@ __all__ = [
|
|
1401
1417
|
"TopicTreeResult",
|
1402
1418
|
"TopicTreeResultTypedDict",
|
1403
1419
|
"TopicTypedDict",
|
1420
|
+
"TypeName",
|
1404
1421
|
"UnsubscribeArticleRequest",
|
1405
1422
|
"UnsubscribeArticleRequestTypedDict",
|
1406
1423
|
"UploadAttachmentRequest",
|
@@ -1502,7 +1519,6 @@ _dynamic_imports: dict[str, str] = {
|
|
1502
1519
|
"ArticleAISearchResultLinkTypedDict": ".articleaisearchresult",
|
1503
1520
|
"ArticleAISearchResultSource": ".articleaisearchresult",
|
1504
1521
|
"ArticleAISearchResultType": ".articleaisearchresult",
|
1505
|
-
"ArticleAISearchResultTypeName": ".articleaisearchresult",
|
1506
1522
|
"ArticleAISearchResultTypedDict": ".articleaisearchresult",
|
1507
1523
|
"ArticleTypeAttributes": ".articleaisearchresult",
|
1508
1524
|
"ArticleTypeAttributesTypedDict": ".articleaisearchresult",
|
@@ -1539,8 +1555,8 @@ _dynamic_imports: dict[str, str] = {
|
|
1539
1555
|
"ArticleSort": ".articlesort",
|
1540
1556
|
"ArticleSortOrder": ".articlesortorder",
|
1541
1557
|
"ArticleType": ".articletype",
|
1542
|
-
"ArticleTypeTypeName": ".articletype",
|
1543
1558
|
"ArticleTypeTypedDict": ".articletype",
|
1559
|
+
"TypeName": ".articletype",
|
1544
1560
|
"ArticleWithEditions": ".articlewitheditions",
|
1545
1561
|
"ArticleWithEditionsTypedDict": ".articlewitheditions",
|
1546
1562
|
"Attachment": ".attachment",
|
@@ -1700,12 +1716,12 @@ _dynamic_imports: dict[str, str] = {
|
|
1700
1716
|
"ExportContentResponse": ".exportcontentop",
|
1701
1717
|
"ExportContentResponseTypedDict": ".exportcontentop",
|
1702
1718
|
"ExportStatus": ".exportstatus",
|
1719
|
+
"ExportStatusProgress": ".exportstatus",
|
1720
|
+
"ExportStatusProgressTypedDict": ".exportstatus",
|
1721
|
+
"ExportStatusResults": ".exportstatus",
|
1722
|
+
"ExportStatusResultsTypedDict": ".exportstatus",
|
1703
1723
|
"ExportStatusStatus": ".exportstatus",
|
1704
1724
|
"ExportStatusTypedDict": ".exportstatus",
|
1705
|
-
"Progress": ".exportstatus",
|
1706
|
-
"ProgressTypedDict": ".exportstatus",
|
1707
|
-
"Results": ".exportstatus",
|
1708
|
-
"ResultsTypedDict": ".exportstatus",
|
1709
1725
|
"ExportStatusRequest": ".exportstatusop",
|
1710
1726
|
"ExportStatusRequestTypedDict": ".exportstatusop",
|
1711
1727
|
"FeedbackArticleForSuggestion": ".feedbackarticleforsuggestion",
|
@@ -1758,6 +1774,9 @@ _dynamic_imports: dict[str, str] = {
|
|
1758
1774
|
"GetArticlesInTopicRequestTypedDict": ".getarticlesintopicop",
|
1759
1775
|
"GetAttachmentByIDInPortalRequest": ".getattachmentbyidinportalop",
|
1760
1776
|
"GetAttachmentByIDInPortalRequestTypedDict": ".getattachmentbyidinportalop",
|
1777
|
+
"GET_BEST_ANSWER_OP_SERVERS": ".getbestanswerop",
|
1778
|
+
"GetBestAnswerRequest": ".getbestanswerop",
|
1779
|
+
"GetBestAnswerRequestTypedDict": ".getbestanswerop",
|
1761
1780
|
"GetbookmarkRequest": ".getbookmarkop",
|
1762
1781
|
"GetbookmarkRequestTypedDict": ".getbookmarkop",
|
1763
1782
|
"GetCasebaseReleaseByIDRequest": ".getcasebasereleasebyidop",
|
@@ -1768,9 +1787,18 @@ _dynamic_imports: dict[str, str] = {
|
|
1768
1787
|
"GetchildtopicsRequestTypedDict": ".getchildtopicsop",
|
1769
1788
|
"GetClusterByCasebaseReleaseIDRequest": ".getclusterbycasebasereleaseidop",
|
1770
1789
|
"GetClusterByCasebaseReleaseIDRequestTypedDict": ".getclusterbycasebasereleaseidop",
|
1790
|
+
"Components": ".gethealthop",
|
1791
|
+
"ComponentsTypedDict": ".gethealthop",
|
1792
|
+
"Database": ".gethealthop",
|
1793
|
+
"ExternalServices": ".gethealthop",
|
1794
|
+
"FileSystem": ".gethealthop",
|
1771
1795
|
"GET_HEALTH_OP_SERVERS": ".gethealthop",
|
1772
1796
|
"GetHealthResponse": ".gethealthop",
|
1773
1797
|
"GetHealthResponseTypedDict": ".gethealthop",
|
1798
|
+
"GetHealthStatus": ".gethealthop",
|
1799
|
+
"ProcessingEngine": ".gethealthop",
|
1800
|
+
"ServiceUnavailableStatus": ".gethealthop",
|
1801
|
+
"Storage": ".gethealthop",
|
1774
1802
|
"GET_IMPORT_CONTENT_OP_SERVERS": ".getimportcontentop",
|
1775
1803
|
"GetImportContentRequest": ".getimportcontentop",
|
1776
1804
|
"GetImportContentRequestTypedDict": ".getimportcontentop",
|
@@ -1823,8 +1851,13 @@ _dynamic_imports: dict[str, str] = {
|
|
1823
1851
|
"ScheduleTime": ".importcontent",
|
1824
1852
|
"ScheduleTimeTypedDict": ".importcontent",
|
1825
1853
|
"ImportStatus": ".importstatus",
|
1854
|
+
"ImportStatusProgress": ".importstatus",
|
1855
|
+
"ImportStatusProgressTypedDict": ".importstatus",
|
1856
|
+
"ImportStatusResults": ".importstatus",
|
1857
|
+
"ImportStatusResultsTypedDict": ".importstatus",
|
1826
1858
|
"ImportStatusStatus": ".importstatus",
|
1827
1859
|
"ImportStatusTypedDict": ".importstatus",
|
1860
|
+
"JobType": ".importstatus",
|
1828
1861
|
"KbLanguage": ".kblanguage",
|
1829
1862
|
"KbLanguageCode1": ".kblanguage",
|
1830
1863
|
"KbLanguageTypedDict": ".kblanguage",
|
@@ -1842,8 +1875,8 @@ _dynamic_imports: dict[str, str] = {
|
|
1842
1875
|
"KnowledgeExportCredentialsTypedDict": ".knowledgeexport",
|
1843
1876
|
"KnowledgeExportLanguage": ".knowledgeexport",
|
1844
1877
|
"KnowledgeExportLanguageTypedDict": ".knowledgeexport",
|
1845
|
-
"KnowledgeExportResourceType": ".knowledgeexport",
|
1846
1878
|
"KnowledgeExportTypedDict": ".knowledgeexport",
|
1879
|
+
"ResourceType": ".knowledgeexport",
|
1847
1880
|
"L10NString": ".l10nstring",
|
1848
1881
|
"L10NStringTypedDict": ".l10nstring",
|
1849
1882
|
"LanguageCode": ".languagecode",
|
@@ -1896,12 +1929,6 @@ _dynamic_imports: dict[str, str] = {
|
|
1896
1929
|
"PortalSettings": ".portalsettings",
|
1897
1930
|
"PortalSettingsTypedDict": ".portalsettings",
|
1898
1931
|
"SearchLearningLevel": ".portalsettings",
|
1899
|
-
"POST_PORTAL_ID_ANSWERS_OP_SERVERS": ".post_portalid_answersop",
|
1900
|
-
"PostPortalIDAnswersRequest": ".post_portalid_answersop",
|
1901
|
-
"PostPortalIDAnswersRequestTypedDict": ".post_portalid_answersop",
|
1902
|
-
"POST_PORTAL_ID_RETRIEVE_OP_SERVERS": ".post_portalid_retrieveop",
|
1903
|
-
"PostPortalIDRetrieveRequest": ".post_portalid_retrieveop",
|
1904
|
-
"PostPortalIDRetrieveRequestTypedDict": ".post_portalid_retrieveop",
|
1905
1932
|
"Profile": ".profile",
|
1906
1933
|
"ProfileTypedDict": ".profile",
|
1907
1934
|
"ProfileResult": ".profileresult",
|
@@ -1928,17 +1955,17 @@ _dynamic_imports: dict[str, str] = {
|
|
1928
1955
|
"RateArticleRequestTypedDict": ".ratearticleop",
|
1929
1956
|
"ReferenceResponse": ".referenceresponse",
|
1930
1957
|
"ReferenceResponseDocType": ".referenceresponse",
|
1931
|
-
"ReferenceResponseLink": ".referenceresponse",
|
1932
|
-
"ReferenceResponseLinkTypedDict": ".referenceresponse",
|
1933
1958
|
"ReferenceResponseSource": ".referenceresponse",
|
1934
1959
|
"ReferenceResponseTypedDict": ".referenceresponse",
|
1935
1960
|
"RejectGHSolutionRequest": ".rejectghsolutionop",
|
1936
1961
|
"RejectGHSolutionRequestTypedDict": ".rejectghsolutionop",
|
1937
1962
|
"RelatedQuestions": ".relatedquestions",
|
1938
1963
|
"RelatedQuestionsTypedDict": ".relatedquestions",
|
1939
|
-
"ResourceTypeParameter": ".resourcetype_parameter",
|
1940
1964
|
"RestoreQuickpickRequest": ".restorequickpickop",
|
1941
1965
|
"RestoreQuickpickRequestTypedDict": ".restorequickpickop",
|
1966
|
+
"RETRIEVE_CHUNKS_OP_SERVERS": ".retrievechunksop",
|
1967
|
+
"RetrieveChunksRequest": ".retrievechunksop",
|
1968
|
+
"RetrieveChunksRequestTypedDict": ".retrievechunksop",
|
1942
1969
|
"RetrieveRequest": ".retrieverequest",
|
1943
1970
|
"RetrieveRequestChannel": ".retrieverequest",
|
1944
1971
|
"RetrieveRequestChannelTypedDict": ".retrieverequest",
|
@@ -1984,8 +2011,6 @@ _dynamic_imports: dict[str, str] = {
|
|
1984
2011
|
"SearchPriorToEscalationRequestTypedDict": ".searchpriortoescalationop",
|
1985
2012
|
"SearchResult": ".searchresult",
|
1986
2013
|
"SearchResultDocType": ".searchresult",
|
1987
|
-
"SearchResultLink": ".searchresult",
|
1988
|
-
"SearchResultLinkTypedDict": ".searchresult",
|
1989
2014
|
"SearchResultSource": ".searchresult",
|
1990
2015
|
"SearchResultTypedDict": ".searchresult",
|
1991
2016
|
"SnippetType": ".searchresult",
|
@@ -2057,8 +2082,6 @@ _dynamic_imports: dict[str, str] = {
|
|
2057
2082
|
"Topic": ".topic",
|
2058
2083
|
"TopicTypedDict": ".topic",
|
2059
2084
|
"TopicAdditionalAttributes": ".topicadditionalattributes",
|
2060
|
-
"TopicAISearchResult": ".topicaisearchresult",
|
2061
|
-
"TopicAISearchResultTypedDict": ".topicaisearchresult",
|
2062
2085
|
"TopicBreadcrumb": ".topicbreadcrumb",
|
2063
2086
|
"TopicBreadcrumbTypedDict": ".topicbreadcrumb",
|
2064
2087
|
"TopicResult": ".topicresult",
|
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
from __future__ import annotations
|
4
4
|
from .languagecode_parameter import LanguageCodeParameter
|
5
|
-
from .resourcetype_parameter import ResourceTypeParameter
|
6
5
|
from egain_api_python.types import BaseModel
|
7
6
|
from egain_api_python.utils import FieldMetadata, PathParamMetadata, QueryParamMetadata
|
8
7
|
import pydantic
|
@@ -15,27 +14,21 @@ class AiSearchRequestTypedDict(TypedDict):
|
|
15
14
|
r"""The search query string. The string must be escaped as required by the URL syntax rules."""
|
16
15
|
portal_id: str
|
17
16
|
r"""The ID of the portal being accessed.<br><br>A portal ID is composed of a 2-4 letter prefix, followed by a dash and 4-15 digits."""
|
18
|
-
|
17
|
+
filter_user_profile_id: NotRequired[str]
|
19
18
|
r"""The ID of the user profile.
|
20
19
|
|
21
20
|
"""
|
22
21
|
language: NotRequired[LanguageCodeParameter]
|
23
22
|
r"""The language that describes the details of a resource. Resources available in different languages may differ from each other. <br><br> If lang is not passed, then the portal's default language is used."""
|
24
|
-
|
23
|
+
filter_tags: NotRequired[Dict[str, List[str]]]
|
25
24
|
r"""An object where each key is a **Category Tag ID** (numeric string),
|
26
25
|
and each value is an array of **Tag IDs** for that category.
|
27
26
|
|
28
27
|
"""
|
29
|
-
|
28
|
+
filter_topic_ids: NotRequired[List[str]]
|
30
29
|
r"""An array of topic IDs. It is used to restrict search results to specific topics."""
|
31
|
-
dollar_filter_exclude_topic_ids: NotRequired[List[str]]
|
32
|
-
r"""An array of topic IDs that will be excluded from the search. It includes articles that belong to the topic."""
|
33
|
-
resource_type: NotRequired[ResourceTypeParameter]
|
34
|
-
r"""Type of resource to be fetched."""
|
35
30
|
article_custom_additional_attributes: NotRequired[str]
|
36
31
|
r"""One or more comma-separated names for article custom attributes defined by the user to be returned."""
|
37
|
-
topic_custom_additional_attributes: NotRequired[str]
|
38
|
-
r"""One or more comma-separated names for topic custom attributes defined by the user to be returned."""
|
39
32
|
pagenum: NotRequired[int]
|
40
33
|
r"""Pagination parameter that specifies the page number of results to be returned. Used in conjunction with $pagesize."""
|
41
34
|
pagesize: NotRequired[int]
|
@@ -55,7 +48,7 @@ class AiSearchRequest(BaseModel):
|
|
55
48
|
]
|
56
49
|
r"""The ID of the portal being accessed.<br><br>A portal ID is composed of a 2-4 letter prefix, followed by a dash and 4-15 digits."""
|
57
50
|
|
58
|
-
|
51
|
+
filter_user_profile_id: Annotated[
|
59
52
|
Optional[str],
|
60
53
|
pydantic.Field(alias="$filter[userProfileID]"),
|
61
54
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
@@ -71,7 +64,7 @@ class AiSearchRequest(BaseModel):
|
|
71
64
|
] = None
|
72
65
|
r"""The language that describes the details of a resource. Resources available in different languages may differ from each other. <br><br> If lang is not passed, then the portal's default language is used."""
|
73
66
|
|
74
|
-
|
67
|
+
filter_tags: Annotated[
|
75
68
|
Optional[Dict[str, List[str]]],
|
76
69
|
pydantic.Field(alias="$filter[tags]"),
|
77
70
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
@@ -81,27 +74,13 @@ class AiSearchRequest(BaseModel):
|
|
81
74
|
|
82
75
|
"""
|
83
76
|
|
84
|
-
|
77
|
+
filter_topic_ids: Annotated[
|
85
78
|
Optional[List[str]],
|
86
79
|
pydantic.Field(alias="$filter[topicIds]"),
|
87
80
|
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
88
81
|
] = None
|
89
82
|
r"""An array of topic IDs. It is used to restrict search results to specific topics."""
|
90
83
|
|
91
|
-
dollar_filter_exclude_topic_ids: Annotated[
|
92
|
-
Optional[List[str]],
|
93
|
-
pydantic.Field(alias="$filter[excludeTopicIds]"),
|
94
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
95
|
-
] = None
|
96
|
-
r"""An array of topic IDs that will be excluded from the search. It includes articles that belong to the topic."""
|
97
|
-
|
98
|
-
resource_type: Annotated[
|
99
|
-
Optional[ResourceTypeParameter],
|
100
|
-
pydantic.Field(alias="resourceType"),
|
101
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
102
|
-
] = None
|
103
|
-
r"""Type of resource to be fetched."""
|
104
|
-
|
105
84
|
article_custom_additional_attributes: Annotated[
|
106
85
|
Optional[str],
|
107
86
|
pydantic.Field(alias="articleCustomAdditionalAttributes"),
|
@@ -109,13 +88,6 @@ class AiSearchRequest(BaseModel):
|
|
109
88
|
] = None
|
110
89
|
r"""One or more comma-separated names for article custom attributes defined by the user to be returned."""
|
111
90
|
|
112
|
-
topic_custom_additional_attributes: Annotated[
|
113
|
-
Optional[str],
|
114
|
-
pydantic.Field(alias="topicCustomAdditionalAttributes"),
|
115
|
-
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
116
|
-
] = None
|
117
|
-
r"""One or more comma-separated names for topic custom attributes defined by the user to be returned."""
|
118
|
-
|
119
91
|
pagenum: Annotated[
|
120
92
|
Optional[int],
|
121
93
|
pydantic.Field(alias="$pagenum"),
|
@@ -3,7 +3,6 @@
|
|
3
3
|
from __future__ import annotations
|
4
4
|
from .articleaisearchresult import ArticleAISearchResult, ArticleAISearchResultTypedDict
|
5
5
|
from .paginationinfo import PaginationInfo, PaginationInfoTypedDict
|
6
|
-
from .topicaisearchresult import TopicAISearchResult, TopicAISearchResultTypedDict
|
7
6
|
from egain_api_python.types import BaseModel
|
8
7
|
import pydantic
|
9
8
|
from typing import List, Literal, Optional
|
@@ -36,7 +35,6 @@ class SearchResultsTypedDict(TypedDict):
|
|
36
35
|
r"""Top search results with relevance scores"""
|
37
36
|
|
38
37
|
article: NotRequired[List[ArticleAISearchResultTypedDict]]
|
39
|
-
topic: NotRequired[List[TopicAISearchResultTypedDict]]
|
40
38
|
|
41
39
|
|
42
40
|
class SearchResults(BaseModel):
|
@@ -44,8 +42,6 @@ class SearchResults(BaseModel):
|
|
44
42
|
|
45
43
|
article: Optional[List[ArticleAISearchResult]] = None
|
46
44
|
|
47
|
-
topic: Optional[List[TopicAISearchResult]] = None
|
48
|
-
|
49
45
|
|
50
46
|
class AISearchResponseTypedDict(TypedDict):
|
51
47
|
channel: NotRequired[AISearchResponseChannelTypedDict]
|
@@ -6,7 +6,7 @@ from .schemas_tags import SchemasTags, SchemasTagsTypedDict
|
|
6
6
|
from .topicbreadcrumb import TopicBreadcrumb, TopicBreadcrumbTypedDict
|
7
7
|
from egain_api_python.types import BaseModel
|
8
8
|
import pydantic
|
9
|
-
from typing import List, Literal, Optional
|
9
|
+
from typing import Any, List, Literal, Optional
|
10
10
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
11
11
|
|
12
12
|
|
@@ -68,33 +68,26 @@ class OpensearchHighlightingRaw(BaseModel):
|
|
68
68
|
] = None
|
69
69
|
|
70
70
|
|
71
|
-
ArticleAISearchResultTypeName = Literal[
|
72
|
-
"General",
|
73
|
-
"Guided Help",
|
74
|
-
"Data Link",
|
75
|
-
"Topic Home",
|
76
|
-
"Suggestion",
|
77
|
-
"Virtaul Assistant Action",
|
78
|
-
"Rich Message",
|
79
|
-
]
|
80
|
-
r"""Indicates the article category name."""
|
81
|
-
|
82
|
-
|
83
71
|
class ArticleTypeAttributesTypedDict(TypedDict):
|
84
|
-
r"""The type of the Article."""
|
72
|
+
r"""The type of the Article and its attributes."""
|
85
73
|
|
86
|
-
type_name: NotRequired[
|
74
|
+
type_name: NotRequired[str]
|
87
75
|
r"""Indicates the article category name."""
|
76
|
+
article_type_id: NotRequired[Any]
|
77
|
+
r"""The ID of the Article Type."""
|
88
78
|
|
89
79
|
|
90
80
|
class ArticleTypeAttributes(BaseModel):
|
91
|
-
r"""The type of the Article."""
|
81
|
+
r"""The type of the Article and its attributes."""
|
92
82
|
|
93
|
-
type_name: Annotated[
|
94
|
-
Optional[ArticleAISearchResultTypeName], pydantic.Field(alias="typeName")
|
95
|
-
] = None
|
83
|
+
type_name: Annotated[Optional[str], pydantic.Field(alias="typeName")] = None
|
96
84
|
r"""Indicates the article category name."""
|
97
85
|
|
86
|
+
article_type_id: Annotated[Optional[Any], pydantic.Field(alias="articleTypeId")] = (
|
87
|
+
None
|
88
|
+
)
|
89
|
+
r"""The ID of the Article Type."""
|
90
|
+
|
98
91
|
|
99
92
|
class ArticleAISearchResultLinkTypedDict(TypedDict):
|
100
93
|
r"""Defines the relationship between this resource and another object."""
|
@@ -158,7 +151,7 @@ class ArticleAISearchResultTypedDict(TypedDict):
|
|
158
151
|
r"""An array of tag categories. Note that the total number of tag categories cannot exceed 20."""
|
159
152
|
keywords: NotRequired[str]
|
160
153
|
article_type_attributes: NotRequired[ArticleTypeAttributesTypedDict]
|
161
|
-
r"""The type of the Article."""
|
154
|
+
r"""The type of the Article and its attributes."""
|
162
155
|
link: NotRequired[ArticleAISearchResultLinkTypedDict]
|
163
156
|
r"""Defines the relationship between this resource and another object."""
|
164
157
|
|
@@ -248,7 +241,7 @@ class ArticleAISearchResult(BaseModel):
|
|
248
241
|
article_type_attributes: Annotated[
|
249
242
|
Optional[ArticleTypeAttributes], pydantic.Field(alias="articleTypeAttributes")
|
250
243
|
] = None
|
251
|
-
r"""The type of the Article."""
|
244
|
+
r"""The type of the Article and its attributes."""
|
252
245
|
|
253
246
|
link: Optional[ArticleAISearchResultLink] = None
|
254
247
|
r"""Defines the relationship between this resource and another object."""
|