egain-api-python 0.1.3__py3-none-any.whl → 0.1.4__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 (38) hide show
  1. egain_api_python/_version.py +3 -3
  2. egain_api_python/answers.py +8 -20
  3. egain_api_python/articlelists.py +4 -4
  4. egain_api_python/connectorssearchevents.py +4 -4
  5. egain_api_python/escalation.py +8 -8
  6. egain_api_python/export.py +4 -4
  7. egain_api_python/federatedsearchevent.py +2 -2
  8. egain_api_python/general.py +8 -8
  9. egain_api_python/guidedhelp.py +26 -26
  10. egain_api_python/health.py +2 -8
  11. egain_api_python/import_.py +56 -74
  12. egain_api_python/models/__init__.py +41 -53
  13. egain_api_python/models/answersrequest.py +0 -31
  14. egain_api_python/models/answersresponse.py +9 -11
  15. egain_api_python/models/articleaisearchresult.py +2 -24
  16. egain_api_python/models/{getimportcontentop.py → cancelimportop.py} +3 -3
  17. egain_api_python/models/{createimportop.py → createimportjobop.py} +3 -3
  18. egain_api_python/models/{createimportvalidationop.py → createimportvalidationjobop.py} +3 -3
  19. egain_api_python/models/{patchimportcontentvalidationop.py → getimportstatusop.py} +3 -3
  20. egain_api_python/models/retrieveresponse.py +10 -12
  21. egain_api_python/populararticles.py +2 -2
  22. egain_api_python/portal_article.py +40 -40
  23. egain_api_python/portal_attachment.py +4 -4
  24. egain_api_python/portal_bookmark.py +6 -6
  25. egain_api_python/portal_suggestion.py +18 -18
  26. egain_api_python/portal_topic.py +8 -8
  27. egain_api_python/portal_userdetails.py +2 -2
  28. egain_api_python/portal_userprofile.py +4 -4
  29. egain_api_python/retrieve.py +4 -10
  30. egain_api_python/sdk.py +24 -24
  31. egain_api_python/sdkconfiguration.py +3 -4
  32. egain_api_python/search.py +6 -4
  33. egain_api_python/usermilestones.py +2 -2
  34. {egain_api_python-0.1.3.dist-info → egain_api_python-0.1.4.dist-info}/METADATA +32 -71
  35. {egain_api_python-0.1.3.dist-info → egain_api_python-0.1.4.dist-info}/RECORD +38 -38
  36. {egain_api_python-0.1.3.dist-info → egain_api_python-0.1.4.dist-info}/WHEEL +0 -0
  37. {egain_api_python-0.1.3.dist-info → egain_api_python-0.1.4.dist-info}/licenses/LICENSE +0 -0
  38. {egain_api_python-0.1.3.dist-info → egain_api_python-0.1.4.dist-info}/top_level.txt +0 -0
@@ -10,7 +10,7 @@ from typing import Any, Mapping, Optional, Union
10
10
 
11
11
 
12
12
  class Import(BaseSDK):
13
- def create_import(
13
+ def create_import_job(
14
14
  self,
15
15
  *,
16
16
  data_source: Union[
@@ -24,13 +24,16 @@ class Import(BaseSDK):
24
24
  server_url: Optional[str] = None,
25
25
  timeout_ms: Optional[int] = None,
26
26
  http_headers: Optional[Mapping[str, str]] = None,
27
- ) -> models.CreateImportResponse:
28
- r"""Import content from external sources
27
+ ) -> models.CreateImportJobResponse:
28
+ r"""Import content from external sources by creating an import job
29
29
 
30
30
  # Import Content
31
31
 
32
32
  ## Overview
33
- This API initiates a bulk content import operation from Amazon S3 buckets. It creates an asynchronous import job that processes content in the background, allowing you to import large volumes of content without blocking your application.
33
+ This API initiates a bulk content import operation from Data Sources. It creates an asynchronous import job that processes content in the background, allowing you to import large volumes of content without blocking your application.
34
+
35
+ ## Pre-requisties
36
+ 1. Content in Data Source needs to be in this format: [Guide to Data Import Format](../../../../../developer-portal/guides/ingestion/data-import-format-guide.md)
34
37
 
35
38
  ## How It Works
36
39
  1. **Job Creation**: The API creates an import job and returns a unique job ID
@@ -73,10 +76,7 @@ class Import(BaseSDK):
73
76
  if server_url is not None:
74
77
  base_url = server_url
75
78
  else:
76
- base_url = models.CREATE_IMPORT_OP_SERVERS[0]
77
- url_variables = {
78
- "API_DOMAIN": "api.egain.cloud",
79
- }
79
+ base_url = models.CREATE_IMPORT_JOB_OP_SERVERS[0]
80
80
 
81
81
  request = models.ImportContent(
82
82
  data_source=utils.get_pydantic_model(
@@ -119,8 +119,8 @@ class Import(BaseSDK):
119
119
  hook_ctx=HookContext(
120
120
  config=self.sdk_configuration,
121
121
  base_url=base_url or "",
122
- operation_id="createImport",
123
- oauth2_scopes=[],
122
+ operation_id="createImportJob",
123
+ oauth2_scopes=None,
124
124
  security_source=get_security_from_env(
125
125
  self.sdk_configuration.security, models.Security
126
126
  ),
@@ -132,7 +132,7 @@ class Import(BaseSDK):
132
132
 
133
133
  response_data: Any = None
134
134
  if utils.match_response(http_res, "202", "*"):
135
- return models.CreateImportResponse(
135
+ return models.CreateImportJobResponse(
136
136
  headers=utils.get_response_headers(http_res.headers)
137
137
  )
138
138
  if utils.match_response(
@@ -161,7 +161,7 @@ class Import(BaseSDK):
161
161
 
162
162
  raise errors.EgainDefaultError("Unexpected response received", http_res)
163
163
 
164
- async def create_import_async(
164
+ async def create_import_job_async(
165
165
  self,
166
166
  *,
167
167
  data_source: Union[
@@ -175,13 +175,16 @@ class Import(BaseSDK):
175
175
  server_url: Optional[str] = None,
176
176
  timeout_ms: Optional[int] = None,
177
177
  http_headers: Optional[Mapping[str, str]] = None,
178
- ) -> models.CreateImportResponse:
179
- r"""Import content from external sources
178
+ ) -> models.CreateImportJobResponse:
179
+ r"""Import content from external sources by creating an import job
180
180
 
181
181
  # Import Content
182
182
 
183
183
  ## Overview
184
- This API initiates a bulk content import operation from Amazon S3 buckets. It creates an asynchronous import job that processes content in the background, allowing you to import large volumes of content without blocking your application.
184
+ This API initiates a bulk content import operation from Data Sources. It creates an asynchronous import job that processes content in the background, allowing you to import large volumes of content without blocking your application.
185
+
186
+ ## Pre-requisties
187
+ 1. Content in Data Source needs to be in this format: [Guide to Data Import Format](../../../../../developer-portal/guides/ingestion/data-import-format-guide.md)
185
188
 
186
189
  ## How It Works
187
190
  1. **Job Creation**: The API creates an import job and returns a unique job ID
@@ -224,10 +227,7 @@ class Import(BaseSDK):
224
227
  if server_url is not None:
225
228
  base_url = server_url
226
229
  else:
227
- base_url = models.CREATE_IMPORT_OP_SERVERS[0]
228
- url_variables = {
229
- "API_DOMAIN": "api.egain.cloud",
230
- }
230
+ base_url = models.CREATE_IMPORT_JOB_OP_SERVERS[0]
231
231
 
232
232
  request = models.ImportContent(
233
233
  data_source=utils.get_pydantic_model(
@@ -270,8 +270,8 @@ class Import(BaseSDK):
270
270
  hook_ctx=HookContext(
271
271
  config=self.sdk_configuration,
272
272
  base_url=base_url or "",
273
- operation_id="createImport",
274
- oauth2_scopes=[],
273
+ operation_id="createImportJob",
274
+ oauth2_scopes=None,
275
275
  security_source=get_security_from_env(
276
276
  self.sdk_configuration.security, models.Security
277
277
  ),
@@ -283,7 +283,7 @@ class Import(BaseSDK):
283
283
 
284
284
  response_data: Any = None
285
285
  if utils.match_response(http_res, "202", "*"):
286
- return models.CreateImportResponse(
286
+ return models.CreateImportJobResponse(
287
287
  headers=utils.get_response_headers(http_res.headers)
288
288
  )
289
289
  if utils.match_response(
@@ -312,7 +312,7 @@ class Import(BaseSDK):
312
312
 
313
313
  raise errors.EgainDefaultError("Unexpected response received", http_res)
314
314
 
315
- def get_import_content(
315
+ def get_import_status(
316
316
  self,
317
317
  *,
318
318
  job_id: str,
@@ -369,12 +369,9 @@ class Import(BaseSDK):
369
369
  if server_url is not None:
370
370
  base_url = server_url
371
371
  else:
372
- base_url = models.GET_IMPORT_CONTENT_OP_SERVERS[0]
373
- url_variables = {
374
- "API_DOMAIN": "api.egain.cloud",
375
- }
372
+ base_url = models.GET_IMPORT_STATUS_OP_SERVERS[0]
376
373
 
377
- request = models.GetImportContentRequest(
374
+ request = models.GetImportStatusRequest(
378
375
  job_id=job_id,
379
376
  )
380
377
 
@@ -406,8 +403,8 @@ class Import(BaseSDK):
406
403
  hook_ctx=HookContext(
407
404
  config=self.sdk_configuration,
408
405
  base_url=base_url or "",
409
- operation_id="getImportContent",
410
- oauth2_scopes=[],
406
+ operation_id="getImportStatus",
407
+ oauth2_scopes=None,
411
408
  security_source=get_security_from_env(
412
409
  self.sdk_configuration.security, models.Security
413
410
  ),
@@ -441,7 +438,7 @@ class Import(BaseSDK):
441
438
 
442
439
  raise errors.EgainDefaultError("Unexpected response received", http_res)
443
440
 
444
- async def get_import_content_async(
441
+ async def get_import_status_async(
445
442
  self,
446
443
  *,
447
444
  job_id: str,
@@ -498,12 +495,9 @@ class Import(BaseSDK):
498
495
  if server_url is not None:
499
496
  base_url = server_url
500
497
  else:
501
- base_url = models.GET_IMPORT_CONTENT_OP_SERVERS[0]
502
- url_variables = {
503
- "API_DOMAIN": "api.egain.cloud",
504
- }
498
+ base_url = models.GET_IMPORT_STATUS_OP_SERVERS[0]
505
499
 
506
- request = models.GetImportContentRequest(
500
+ request = models.GetImportStatusRequest(
507
501
  job_id=job_id,
508
502
  )
509
503
 
@@ -535,8 +529,8 @@ class Import(BaseSDK):
535
529
  hook_ctx=HookContext(
536
530
  config=self.sdk_configuration,
537
531
  base_url=base_url or "",
538
- operation_id="getImportContent",
539
- oauth2_scopes=[],
532
+ operation_id="getImportStatus",
533
+ oauth2_scopes=None,
540
534
  security_source=get_security_from_env(
541
535
  self.sdk_configuration.security, models.Security
542
536
  ),
@@ -570,7 +564,7 @@ class Import(BaseSDK):
570
564
 
571
565
  raise errors.EgainDefaultError("Unexpected response received", http_res)
572
566
 
573
- def create_import_validation(
567
+ def create_import_validation_job(
574
568
  self,
575
569
  *,
576
570
  data_source: Union[
@@ -581,8 +575,8 @@ class Import(BaseSDK):
581
575
  server_url: Optional[str] = None,
582
576
  timeout_ms: Optional[int] = None,
583
577
  http_headers: Optional[Mapping[str, str]] = None,
584
- ) -> models.CreateImportValidationResponse:
585
- r"""Validate content structure and format before import
578
+ ) -> models.CreateImportValidationJobResponse:
579
+ r"""Validate content structure and format before import by creating an import validation job
586
580
 
587
581
  # Validate Import Content
588
582
 
@@ -641,10 +635,7 @@ class Import(BaseSDK):
641
635
  if server_url is not None:
642
636
  base_url = server_url
643
637
  else:
644
- base_url = models.CREATE_IMPORT_VALIDATION_OP_SERVERS[0]
645
- url_variables = {
646
- "API_DOMAIN": "api.egain.cloud",
647
- }
638
+ base_url = models.CREATE_IMPORT_VALIDATION_JOB_OP_SERVERS[0]
648
639
 
649
640
  request = models.ValidateImportContent(
650
641
  data_source=utils.get_pydantic_model(
@@ -683,8 +674,8 @@ class Import(BaseSDK):
683
674
  hook_ctx=HookContext(
684
675
  config=self.sdk_configuration,
685
676
  base_url=base_url or "",
686
- operation_id="createImportValidation",
687
- oauth2_scopes=[],
677
+ operation_id="createImportValidationJob",
678
+ oauth2_scopes=None,
688
679
  security_source=get_security_from_env(
689
680
  self.sdk_configuration.security, models.Security
690
681
  ),
@@ -696,7 +687,7 @@ class Import(BaseSDK):
696
687
 
697
688
  response_data: Any = None
698
689
  if utils.match_response(http_res, "202", "*"):
699
- return models.CreateImportValidationResponse(
690
+ return models.CreateImportValidationJobResponse(
700
691
  headers=utils.get_response_headers(http_res.headers)
701
692
  )
702
693
  if utils.match_response(
@@ -725,7 +716,7 @@ class Import(BaseSDK):
725
716
 
726
717
  raise errors.EgainDefaultError("Unexpected response received", http_res)
727
718
 
728
- async def create_import_validation_async(
719
+ async def create_import_validation_job_async(
729
720
  self,
730
721
  *,
731
722
  data_source: Union[
@@ -736,8 +727,8 @@ class Import(BaseSDK):
736
727
  server_url: Optional[str] = None,
737
728
  timeout_ms: Optional[int] = None,
738
729
  http_headers: Optional[Mapping[str, str]] = None,
739
- ) -> models.CreateImportValidationResponse:
740
- r"""Validate content structure and format before import
730
+ ) -> models.CreateImportValidationJobResponse:
731
+ r"""Validate content structure and format before import by creating an import validation job
741
732
 
742
733
  # Validate Import Content
743
734
 
@@ -796,10 +787,7 @@ class Import(BaseSDK):
796
787
  if server_url is not None:
797
788
  base_url = server_url
798
789
  else:
799
- base_url = models.CREATE_IMPORT_VALIDATION_OP_SERVERS[0]
800
- url_variables = {
801
- "API_DOMAIN": "api.egain.cloud",
802
- }
790
+ base_url = models.CREATE_IMPORT_VALIDATION_JOB_OP_SERVERS[0]
803
791
 
804
792
  request = models.ValidateImportContent(
805
793
  data_source=utils.get_pydantic_model(
@@ -838,8 +826,8 @@ class Import(BaseSDK):
838
826
  hook_ctx=HookContext(
839
827
  config=self.sdk_configuration,
840
828
  base_url=base_url or "",
841
- operation_id="createImportValidation",
842
- oauth2_scopes=[],
829
+ operation_id="createImportValidationJob",
830
+ oauth2_scopes=None,
843
831
  security_source=get_security_from_env(
844
832
  self.sdk_configuration.security, models.Security
845
833
  ),
@@ -851,7 +839,7 @@ class Import(BaseSDK):
851
839
 
852
840
  response_data: Any = None
853
841
  if utils.match_response(http_res, "202", "*"):
854
- return models.CreateImportValidationResponse(
842
+ return models.CreateImportValidationJobResponse(
855
843
  headers=utils.get_response_headers(http_res.headers)
856
844
  )
857
845
  if utils.match_response(
@@ -880,7 +868,7 @@ class Import(BaseSDK):
880
868
 
881
869
  raise errors.EgainDefaultError("Unexpected response received", http_res)
882
870
 
883
- def patch_import_content_validation(
871
+ def cancel_import(
884
872
  self,
885
873
  *,
886
874
  job_id: str,
@@ -948,12 +936,9 @@ class Import(BaseSDK):
948
936
  if server_url is not None:
949
937
  base_url = server_url
950
938
  else:
951
- base_url = models.PATCH_IMPORT_CONTENT_VALIDATION_OP_SERVERS[0]
952
- url_variables = {
953
- "API_DOMAIN": "api.egain.cloud",
954
- }
939
+ base_url = models.CANCEL_IMPORT_OP_SERVERS[0]
955
940
 
956
- request = models.PatchImportContentValidationRequest(
941
+ request = models.CancelImportRequest(
957
942
  job_id=job_id,
958
943
  )
959
944
 
@@ -985,8 +970,8 @@ class Import(BaseSDK):
985
970
  hook_ctx=HookContext(
986
971
  config=self.sdk_configuration,
987
972
  base_url=base_url or "",
988
- operation_id="patchImportContentValidation",
989
- oauth2_scopes=[],
973
+ operation_id="cancelImport",
974
+ oauth2_scopes=None,
990
975
  security_source=get_security_from_env(
991
976
  self.sdk_configuration.security, models.Security
992
977
  ),
@@ -1020,7 +1005,7 @@ class Import(BaseSDK):
1020
1005
 
1021
1006
  raise errors.EgainDefaultError("Unexpected response received", http_res)
1022
1007
 
1023
- async def patch_import_content_validation_async(
1008
+ async def cancel_import_async(
1024
1009
  self,
1025
1010
  *,
1026
1011
  job_id: str,
@@ -1088,12 +1073,9 @@ class Import(BaseSDK):
1088
1073
  if server_url is not None:
1089
1074
  base_url = server_url
1090
1075
  else:
1091
- base_url = models.PATCH_IMPORT_CONTENT_VALIDATION_OP_SERVERS[0]
1092
- url_variables = {
1093
- "API_DOMAIN": "api.egain.cloud",
1094
- }
1076
+ base_url = models.CANCEL_IMPORT_OP_SERVERS[0]
1095
1077
 
1096
- request = models.PatchImportContentValidationRequest(
1078
+ request = models.CancelImportRequest(
1097
1079
  job_id=job_id,
1098
1080
  )
1099
1081
 
@@ -1125,8 +1107,8 @@ class Import(BaseSDK):
1125
1107
  hook_ctx=HookContext(
1126
1108
  config=self.sdk_configuration,
1127
1109
  base_url=base_url or "",
1128
- operation_id="patchImportContentValidation",
1129
- oauth2_scopes=[],
1110
+ operation_id="cancelImport",
1111
+ oauth2_scopes=None,
1130
1112
  security_source=get_security_from_env(
1131
1113
  self.sdk_configuration.security, models.Security
1132
1114
  ),
@@ -51,8 +51,6 @@ if TYPE_CHECKING:
51
51
  AnswersRequestChannelTypedDict,
52
52
  AnswersRequestType,
53
53
  AnswersRequestTypedDict,
54
- Context,
55
- ContextTypedDict,
56
54
  )
57
55
  from .answersresponse import (
58
56
  AnswersResponse,
@@ -85,8 +83,6 @@ if TYPE_CHECKING:
85
83
  ArticleAISearchResultTypedDict,
86
84
  ArticleTypeAttributes,
87
85
  ArticleTypeAttributesTypedDict,
88
- OpensearchHighlightingRaw,
89
- OpensearchHighlightingRawTypedDict,
90
86
  )
91
87
  from .articleattachment import (
92
88
  ArticleAttachment,
@@ -148,6 +144,11 @@ if TYPE_CHECKING:
148
144
  from .bookmark import Bookmark, BookmarkTypedDict
149
145
  from .bookmarkresult import BookmarkResult, BookmarkResultTypedDict
150
146
  from .bookmarkstatus import BookmarkStatus, BookmarkStatusTypedDict
147
+ from .cancelimportop import (
148
+ CANCEL_IMPORT_OP_SERVERS,
149
+ CancelImportRequest,
150
+ CancelImportRequestTypedDict,
151
+ )
151
152
  from .case import Case, CaseType, CaseTypedDict, ThresholdType
152
153
  from .caseadditionalattributes import CaseAdditionalAttributes
153
154
  from .caseanswer import CaseAnswer, CaseAnswerTypedDict
@@ -224,15 +225,15 @@ if TYPE_CHECKING:
224
225
  CreateFederatedSearchResultEventRequest,
225
226
  CreateFederatedSearchResultEventRequestTypedDict,
226
227
  )
227
- from .createimportop import (
228
- CREATE_IMPORT_OP_SERVERS,
229
- CreateImportResponse,
230
- CreateImportResponseTypedDict,
228
+ from .createimportjobop import (
229
+ CREATE_IMPORT_JOB_OP_SERVERS,
230
+ CreateImportJobResponse,
231
+ CreateImportJobResponseTypedDict,
231
232
  )
232
- from .createimportvalidationop import (
233
- CREATE_IMPORT_VALIDATION_OP_SERVERS,
234
- CreateImportValidationResponse,
235
- CreateImportValidationResponseTypedDict,
233
+ from .createimportvalidationjobop import (
234
+ CREATE_IMPORT_VALIDATION_JOB_OP_SERVERS,
235
+ CreateImportValidationJobResponse,
236
+ CreateImportValidationJobResponseTypedDict,
236
237
  )
237
238
  from .createquickpick import CreateQuickpick, CreateQuickpickTypedDict
238
239
  from .createquickpickop import (
@@ -422,10 +423,10 @@ if TYPE_CHECKING:
422
423
  ServiceUnavailableStatus,
423
424
  Storage,
424
425
  )
425
- from .getimportcontentop import (
426
- GET_IMPORT_CONTENT_OP_SERVERS,
427
- GetImportContentRequest,
428
- GetImportContentRequestTypedDict,
426
+ from .getimportstatusop import (
427
+ GET_IMPORT_STATUS_OP_SERVERS,
428
+ GetImportStatusRequest,
429
+ GetImportStatusRequestTypedDict,
429
430
  )
430
431
  from .getmyportalsop import GetMyPortalsRequest, GetMyPortalsRequestTypedDict
431
432
  from .getmysubscriptionop import (
@@ -547,11 +548,6 @@ if TYPE_CHECKING:
547
548
  from .order import Order
548
549
  from .ownedby import OwnedBy, OwnedByTypedDict
549
550
  from .paginationinfo import PaginationInfo, PaginationInfoTypedDict
550
- from .patchimportcontentvalidationop import (
551
- PATCH_IMPORT_CONTENT_VALIDATION_OP_SERVERS,
552
- PatchImportContentValidationRequest,
553
- PatchImportContentValidationRequestTypedDict,
554
- )
555
551
  from .personalization import (
556
552
  Filters,
557
553
  FiltersTypedDict,
@@ -904,8 +900,11 @@ __all__ = [
904
900
  "BookmarkStatus",
905
901
  "BookmarkStatusTypedDict",
906
902
  "BookmarkTypedDict",
907
- "CREATE_IMPORT_OP_SERVERS",
908
- "CREATE_IMPORT_VALIDATION_OP_SERVERS",
903
+ "CANCEL_IMPORT_OP_SERVERS",
904
+ "CREATE_IMPORT_JOB_OP_SERVERS",
905
+ "CREATE_IMPORT_VALIDATION_JOB_OP_SERVERS",
906
+ "CancelImportRequest",
907
+ "CancelImportRequestTypedDict",
909
908
  "Captcha",
910
909
  "CaptchaTypedDict",
911
910
  "Case",
@@ -970,18 +969,16 @@ __all__ = [
970
969
  "ContactPersonTypedDict",
971
970
  "Contacts",
972
971
  "ContactsTypedDict",
973
- "Context",
974
- "ContextTypedDict",
975
972
  "CreateBookmark",
976
973
  "CreateBookmarkTypedDict",
977
974
  "CreateFederatedSearchEvent",
978
975
  "CreateFederatedSearchEventTypedDict",
979
976
  "CreateFederatedSearchResultEventRequest",
980
977
  "CreateFederatedSearchResultEventRequestTypedDict",
981
- "CreateImportResponse",
982
- "CreateImportResponseTypedDict",
983
- "CreateImportValidationResponse",
984
- "CreateImportValidationResponseTypedDict",
978
+ "CreateImportJobResponse",
979
+ "CreateImportJobResponseTypedDict",
980
+ "CreateImportValidationJobResponse",
981
+ "CreateImportValidationJobResponseTypedDict",
985
982
  "CreateQuickpick",
986
983
  "CreateQuickpickRequest",
987
984
  "CreateQuickpickRequestTypedDict",
@@ -1066,7 +1063,7 @@ __all__ = [
1066
1063
  "FolderSummaryTypedDict",
1067
1064
  "GET_BEST_ANSWER_OP_SERVERS",
1068
1065
  "GET_HEALTH_OP_SERVERS",
1069
- "GET_IMPORT_CONTENT_OP_SERVERS",
1066
+ "GET_IMPORT_STATUS_OP_SERVERS",
1070
1067
  "GHSearchRequest",
1071
1068
  "GHSearchRequestTypedDict",
1072
1069
  "GHSearchResult",
@@ -1123,8 +1120,8 @@ __all__ = [
1123
1120
  "GetHealthResponse",
1124
1121
  "GetHealthResponseTypedDict",
1125
1122
  "GetHealthStatus",
1126
- "GetImportContentRequest",
1127
- "GetImportContentRequestTypedDict",
1123
+ "GetImportStatusRequest",
1124
+ "GetImportStatusRequestTypedDict",
1128
1125
  "GetMyPortalsRequest",
1129
1126
  "GetMyPortalsRequestTypedDict",
1130
1127
  "GetMySubscriptionRequest",
@@ -1223,18 +1220,13 @@ __all__ = [
1223
1220
  "ModifySuggestionsRequest",
1224
1221
  "ModifySuggestionsRequestTypedDict",
1225
1222
  "Name",
1226
- "OpensearchHighlightingRaw",
1227
- "OpensearchHighlightingRawTypedDict",
1228
1223
  "Operation",
1229
1224
  "OptionalArticleAttributes",
1230
1225
  "Order",
1231
1226
  "OwnedBy",
1232
1227
  "OwnedByTypedDict",
1233
- "PATCH_IMPORT_CONTENT_VALIDATION_OP_SERVERS",
1234
1228
  "PaginationInfo",
1235
1229
  "PaginationInfoTypedDict",
1236
- "PatchImportContentValidationRequest",
1237
- "PatchImportContentValidationRequestTypedDict",
1238
1230
  "Personalization",
1239
1231
  "PersonalizationAccessTags",
1240
1232
  "PersonalizationAccessTagsTypedDict",
@@ -1493,8 +1485,6 @@ _dynamic_imports: dict[str, str] = {
1493
1485
  "AnswersRequestChannelTypedDict": ".answersrequest",
1494
1486
  "AnswersRequestType": ".answersrequest",
1495
1487
  "AnswersRequestTypedDict": ".answersrequest",
1496
- "Context": ".answersrequest",
1497
- "ContextTypedDict": ".answersrequest",
1498
1488
  "AnswersResponse": ".answersresponse",
1499
1489
  "AnswersResponseAnswer": ".answersresponse",
1500
1490
  "AnswersResponseAnswerType": ".answersresponse",
@@ -1522,8 +1512,6 @@ _dynamic_imports: dict[str, str] = {
1522
1512
  "ArticleAISearchResultTypedDict": ".articleaisearchresult",
1523
1513
  "ArticleTypeAttributes": ".articleaisearchresult",
1524
1514
  "ArticleTypeAttributesTypedDict": ".articleaisearchresult",
1525
- "OpensearchHighlightingRaw": ".articleaisearchresult",
1526
- "OpensearchHighlightingRawTypedDict": ".articleaisearchresult",
1527
1515
  "ArticleAttachment": ".articleattachment",
1528
1516
  "ArticleAttachmentType": ".articleattachment",
1529
1517
  "ArticleAttachmentTypedDict": ".articleattachment",
@@ -1583,6 +1571,9 @@ _dynamic_imports: dict[str, str] = {
1583
1571
  "BookmarkResultTypedDict": ".bookmarkresult",
1584
1572
  "BookmarkStatus": ".bookmarkstatus",
1585
1573
  "BookmarkStatusTypedDict": ".bookmarkstatus",
1574
+ "CANCEL_IMPORT_OP_SERVERS": ".cancelimportop",
1575
+ "CancelImportRequest": ".cancelimportop",
1576
+ "CancelImportRequestTypedDict": ".cancelimportop",
1586
1577
  "Case": ".case",
1587
1578
  "CaseType": ".case",
1588
1579
  "CaseTypedDict": ".case",
@@ -1657,12 +1648,12 @@ _dynamic_imports: dict[str, str] = {
1657
1648
  "ResultType": ".createfederatedsearchevent",
1658
1649
  "CreateFederatedSearchResultEventRequest": ".createfederatedsearchresulteventop",
1659
1650
  "CreateFederatedSearchResultEventRequestTypedDict": ".createfederatedsearchresulteventop",
1660
- "CREATE_IMPORT_OP_SERVERS": ".createimportop",
1661
- "CreateImportResponse": ".createimportop",
1662
- "CreateImportResponseTypedDict": ".createimportop",
1663
- "CREATE_IMPORT_VALIDATION_OP_SERVERS": ".createimportvalidationop",
1664
- "CreateImportValidationResponse": ".createimportvalidationop",
1665
- "CreateImportValidationResponseTypedDict": ".createimportvalidationop",
1651
+ "CREATE_IMPORT_JOB_OP_SERVERS": ".createimportjobop",
1652
+ "CreateImportJobResponse": ".createimportjobop",
1653
+ "CreateImportJobResponseTypedDict": ".createimportjobop",
1654
+ "CREATE_IMPORT_VALIDATION_JOB_OP_SERVERS": ".createimportvalidationjobop",
1655
+ "CreateImportValidationJobResponse": ".createimportvalidationjobop",
1656
+ "CreateImportValidationJobResponseTypedDict": ".createimportvalidationjobop",
1666
1657
  "CreateQuickpick": ".createquickpick",
1667
1658
  "CreateQuickpickTypedDict": ".createquickpick",
1668
1659
  "CreateQuickpickRequest": ".createquickpickop",
@@ -1799,9 +1790,9 @@ _dynamic_imports: dict[str, str] = {
1799
1790
  "ProcessingEngine": ".gethealthop",
1800
1791
  "ServiceUnavailableStatus": ".gethealthop",
1801
1792
  "Storage": ".gethealthop",
1802
- "GET_IMPORT_CONTENT_OP_SERVERS": ".getimportcontentop",
1803
- "GetImportContentRequest": ".getimportcontentop",
1804
- "GetImportContentRequestTypedDict": ".getimportcontentop",
1793
+ "GET_IMPORT_STATUS_OP_SERVERS": ".getimportstatusop",
1794
+ "GetImportStatusRequest": ".getimportstatusop",
1795
+ "GetImportStatusRequestTypedDict": ".getimportstatusop",
1805
1796
  "GetMyPortalsRequest": ".getmyportalsop",
1806
1797
  "GetMyPortalsRequestTypedDict": ".getmyportalsop",
1807
1798
  "GetMySubscriptionRequest": ".getmysubscriptionop",
@@ -1909,9 +1900,6 @@ _dynamic_imports: dict[str, str] = {
1909
1900
  "OwnedByTypedDict": ".ownedby",
1910
1901
  "PaginationInfo": ".paginationinfo",
1911
1902
  "PaginationInfoTypedDict": ".paginationinfo",
1912
- "PATCH_IMPORT_CONTENT_VALIDATION_OP_SERVERS": ".patchimportcontentvalidationop",
1913
- "PatchImportContentValidationRequest": ".patchimportcontentvalidationop",
1914
- "PatchImportContentValidationRequestTypedDict": ".patchimportcontentvalidationop",
1915
1903
  "Filters": ".personalization",
1916
1904
  "FiltersTypedDict": ".personalization",
1917
1905
  "Personalization": ".personalization",
@@ -29,36 +29,8 @@ class AnswersRequestChannel(BaseModel):
29
29
  r"""A descriptive name for the channel (e.g., \"web\", \"mobile app\", \"agent console\")."""
30
30
 
31
31
 
32
- class ContextTypedDict(TypedDict):
33
- r"""Additional contextual metadata that enriches the query, providing the LLM with relevant details for tailoring the response."""
34
-
35
- user_context: NotRequired[str]
36
- r"""Information about the end user (e.g., preferences, profile data, or behavioral signals)."""
37
- page_context: NotRequired[str]
38
- r"""Details about the UI or page where the query was initiated (e.g., page URL, section, or component)."""
39
- company_context: NotRequired[str]
40
- r"""Information about the organization associated with the user, used for tailoring responses in enterprise environments."""
41
-
42
-
43
- class Context(BaseModel):
44
- r"""Additional contextual metadata that enriches the query, providing the LLM with relevant details for tailoring the response."""
45
-
46
- user_context: Annotated[Optional[str], pydantic.Field(alias="userContext")] = None
47
- r"""Information about the end user (e.g., preferences, profile data, or behavioral signals)."""
48
-
49
- page_context: Annotated[Optional[str], pydantic.Field(alias="pageContext")] = None
50
- r"""Details about the UI or page where the query was initiated (e.g., page URL, section, or component)."""
51
-
52
- company_context: Annotated[
53
- Optional[str], pydantic.Field(alias="companyContext")
54
- ] = None
55
- r"""Information about the organization associated with the user, used for tailoring responses in enterprise environments."""
56
-
57
-
58
32
  class AnswersRequestTypedDict(TypedDict):
59
33
  channel: NotRequired[AnswersRequestChannelTypedDict]
60
- context: NotRequired[ContextTypedDict]
61
- r"""Additional contextual metadata that enriches the query, providing the LLM with relevant details for tailoring the response."""
62
34
  event_id: NotRequired[str]
63
35
  r"""Unique ID for this specific API call or event."""
64
36
  session_id: NotRequired[str]
@@ -68,9 +40,6 @@ class AnswersRequestTypedDict(TypedDict):
68
40
  class AnswersRequest(BaseModel):
69
41
  channel: Optional[AnswersRequestChannel] = None
70
42
 
71
- context: Optional[Context] = None
72
- r"""Additional contextual metadata that enriches the query, providing the LLM with relevant details for tailoring the response."""
73
-
74
43
  event_id: Annotated[Optional[str], pydantic.Field(alias="eventId")] = None
75
44
  r"""Unique ID for this specific API call or event."""
76
45
 
@@ -66,28 +66,26 @@ class AnswersResponseChannel(BaseModel):
66
66
 
67
67
 
68
68
  class AnswersResponseTypedDict(TypedDict):
69
- answer: NotRequired[AnswersResponseAnswerTypedDict]
70
- search_results: NotRequired[List[SearchResultTypedDict]]
69
+ answer: AnswersResponseAnswerTypedDict
70
+ search_results: List[SearchResultTypedDict]
71
71
  r"""List of top search results used to support the answer. Includes snippets, metadata, and relevance scores."""
72
- channel: NotRequired[AnswersResponseChannelTypedDict]
73
- session_id: NotRequired[str]
72
+ session_id: str
74
73
  r"""ID that ties multiple API calls to the same user session. Will be used as part of to tie events back to a session."""
74
+ channel: NotRequired[AnswersResponseChannelTypedDict]
75
75
  event_id: NotRequired[str]
76
76
  r"""Unique ID for this specific API call or event."""
77
77
 
78
78
 
79
79
  class AnswersResponse(BaseModel):
80
- answer: Optional[AnswersResponseAnswer] = None
80
+ answer: AnswersResponseAnswer
81
81
 
82
- search_results: Annotated[
83
- Optional[List[SearchResult]], pydantic.Field(alias="searchResults")
84
- ] = None
82
+ search_results: Annotated[List[SearchResult], pydantic.Field(alias="searchResults")]
85
83
  r"""List of top search results used to support the answer. Includes snippets, metadata, and relevance scores."""
86
84
 
87
- channel: Optional[AnswersResponseChannel] = None
88
-
89
- session_id: Annotated[Optional[str], pydantic.Field(alias="sessionId")] = None
85
+ session_id: Annotated[str, pydantic.Field(alias="sessionId")]
90
86
  r"""ID that ties multiple API calls to the same user session. Will be used as part of to tie events back to a session."""
91
87
 
88
+ channel: Optional[AnswersResponseChannel] = None
89
+
92
90
  event_id: Annotated[Optional[str], pydantic.Field(alias="eventId")] = None
93
91
  r"""Unique ID for this specific API call or event."""