egain-api-python 0.1.1__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/__init__.py +17 -0
- egain_api_python/_hooks/__init__.py +5 -0
- egain_api_python/_hooks/registration.py +13 -0
- egain_api_python/_hooks/sdkhooks.py +76 -0
- egain_api_python/_hooks/types.py +112 -0
- egain_api_python/_version.py +15 -0
- egain_api_python/aiservices.py +23 -0
- egain_api_python/answers.py +281 -0
- egain_api_python/articlelists.py +469 -0
- egain_api_python/basesdk.py +368 -0
- egain_api_python/connectorssearchevents.py +537 -0
- egain_api_python/content.py +23 -0
- egain_api_python/errors/__init__.py +78 -0
- egain_api_python/errors/egaindefaulterror.py +40 -0
- egain_api_python/errors/egainerror.py +30 -0
- egain_api_python/errors/gethealthop.py +74 -0
- egain_api_python/errors/no_response_error.py +17 -0
- egain_api_python/errors/responsevalidationerror.py +27 -0
- egain_api_python/errors/schemas_wserrorcommon.py +51 -0
- egain_api_python/errors/wserrorcommon.py +49 -0
- egain_api_python/escalation.py +955 -0
- egain_api_python/export.py +487 -0
- egain_api_python/federatedsearchevent.py +287 -0
- egain_api_python/general.py +925 -0
- egain_api_python/guidedhelp.py +3373 -0
- egain_api_python/health.py +253 -0
- egain_api_python/httpclient.py +125 -0
- egain_api_python/import_.py +1161 -0
- egain_api_python/models/__init__.py +2136 -0
- egain_api_python/models/acceptghsolutionop.py +52 -0
- egain_api_python/models/acceptlanguage.py +23 -0
- egain_api_python/models/accessibleportal.py +37 -0
- egain_api_python/models/action.py +56 -0
- egain_api_python/models/actionsearch.py +92 -0
- egain_api_python/models/addasreferenceop.py +52 -0
- egain_api_python/models/addbookmarkop.py +43 -0
- egain_api_python/models/additionalsnippets.py +57 -0
- egain_api_python/models/addtoreplyop.py +52 -0
- egain_api_python/models/aisearchop.py +131 -0
- egain_api_python/models/aisearchresponse.py +67 -0
- egain_api_python/models/allaccessibleportals.py +28 -0
- egain_api_python/models/answer.py +21 -0
- egain_api_python/models/answeredquestion.py +125 -0
- egain_api_python/models/answerrange.py +41 -0
- egain_api_python/models/answersrequest.py +78 -0
- egain_api_python/models/answersresponse.py +93 -0
- egain_api_python/models/article.py +241 -0
- egain_api_python/models/articleactivitylink.py +62 -0
- egain_api_python/models/articleadditionalattributes.py +23 -0
- egain_api_python/models/articleaisearchresult.py +254 -0
- egain_api_python/models/articleattachment.py +44 -0
- egain_api_python/models/articlelist.py +48 -0
- egain_api_python/models/articlelistresult.py +38 -0
- egain_api_python/models/articlelistsresult.py +22 -0
- egain_api_python/models/articlepermissions.py +25 -0
- egain_api_python/models/articlepermissionsresult.py +27 -0
- egain_api_python/models/articlerating.py +51 -0
- egain_api_python/models/articleratingsresponse.py +28 -0
- egain_api_python/models/articleresult.py +159 -0
- egain_api_python/models/articleresultadditionalattributes.py +22 -0
- egain_api_python/models/articleresults.py +32 -0
- egain_api_python/models/articlesearchresult.py +243 -0
- egain_api_python/models/articlesearchresults.py +32 -0
- egain_api_python/models/articlesort.py +11 -0
- egain_api_python/models/articlesortorder.py +11 -0
- egain_api_python/models/articletype.py +56 -0
- egain_api_python/models/articlewitheditions.py +227 -0
- egain_api_python/models/attachment.py +31 -0
- egain_api_python/models/attachmentadditionalattributes.py +10 -0
- egain_api_python/models/attachmentcontent.py +57 -0
- egain_api_python/models/attachmentcontentresult.py +22 -0
- egain_api_python/models/attachmentforcreatesuggestion.py +25 -0
- egain_api_python/models/attachments.py +35 -0
- egain_api_python/models/attachmentsummary.py +37 -0
- egain_api_python/models/attachmentupload.py +20 -0
- egain_api_python/models/avertcustomerescalationop.py +44 -0
- egain_api_python/models/bookmark.py +57 -0
- egain_api_python/models/bookmarkresult.py +26 -0
- egain_api_python/models/bookmarkstatus.py +34 -0
- egain_api_python/models/case.py +158 -0
- egain_api_python/models/caseadditionalattributes.py +11 -0
- egain_api_python/models/caseanswer.py +21 -0
- egain_api_python/models/casebase.py +67 -0
- egain_api_python/models/casebaseresult.py +28 -0
- egain_api_python/models/casebasesearchsettings.py +26 -0
- egain_api_python/models/caselistresult.py +74 -0
- egain_api_python/models/caselistresults.py +28 -0
- egain_api_python/models/casequestion.py +16 -0
- egain_api_python/models/casequestiondetail.py +29 -0
- egain_api_python/models/casesearch.py +80 -0
- egain_api_python/models/clusterid.py +16 -0
- egain_api_python/models/clusterresult.py +37 -0
- egain_api_python/models/clusterresults.py +28 -0
- egain_api_python/models/comment.py +33 -0
- egain_api_python/models/comments.py +26 -0
- egain_api_python/models/completecustomerescalationop.py +44 -0
- egain_api_python/models/compliancearticleresult.py +166 -0
- egain_api_python/models/compliancearticleresultadditionalattributes.py +22 -0
- egain_api_python/models/compliancearticleresults.py +35 -0
- egain_api_python/models/complianceforarticle.py +59 -0
- egain_api_python/models/complyarticleop.py +40 -0
- egain_api_python/models/components_schemas_tag.py +25 -0
- egain_api_python/models/components_schemas_tagcategory.py +39 -0
- egain_api_python/models/components_schemas_taggroup.py +25 -0
- egain_api_python/models/configurableattribute.py +25 -0
- egain_api_python/models/configurableattributes.py +15 -0
- egain_api_python/models/contactperson.py +43 -0
- egain_api_python/models/contacts.py +21 -0
- egain_api_python/models/createbookmark.py +64 -0
- egain_api_python/models/createdby.py +37 -0
- egain_api_python/models/createfederatedsearchevent.py +85 -0
- egain_api_python/models/createfederatedsearchresulteventop.py +46 -0
- egain_api_python/models/createimportop.py +20 -0
- egain_api_python/models/createimportvalidationop.py +20 -0
- egain_api_python/models/createquickpick.py +34 -0
- egain_api_python/models/createquickpickop.py +55 -0
- egain_api_python/models/createsearchresulteventforconnectors.py +71 -0
- egain_api_python/models/createsearchresulteventforconnectorsop.py +48 -0
- egain_api_python/models/createsignedurlop.py +29 -0
- egain_api_python/models/createsuggestion.py +126 -0
- egain_api_python/models/createviewedsearchresulteventforconnectors.py +76 -0
- egain_api_python/models/createviewedsearchresultseventforconnectorsop.py +48 -0
- egain_api_python/models/customattribute.py +35 -0
- egain_api_python/models/deletebookmarkop.py +40 -0
- egain_api_python/models/deletesuggestionop.py +40 -0
- egain_api_python/models/department.py +21 -0
- egain_api_python/models/detailfield.py +32 -0
- egain_api_python/models/displayfield.py +27 -0
- egain_api_python/models/dynamiccluster.py +21 -0
- egain_api_python/models/dynamicsearch.py +40 -0
- egain_api_python/models/edition.py +79 -0
- egain_api_python/models/editionwithcontent.py +68 -0
- egain_api_python/models/email.py +21 -0
- egain_api_python/models/exportcontentop.py +14 -0
- egain_api_python/models/exportstatus.py +106 -0
- egain_api_python/models/exportstatusop.py +31 -0
- egain_api_python/models/feedbackarticleforsuggestion.py +34 -0
- egain_api_python/models/folderbreadcrumb.py +24 -0
- egain_api_python/models/foldersummary.py +29 -0
- egain_api_python/models/getacknowledgedcompliancearticlesop.py +119 -0
- egain_api_python/models/getallarticlelistsop.py +47 -0
- egain_api_python/models/getallcasebasesreleasesop.py +65 -0
- egain_api_python/models/getallcasesop.py +83 -0
- egain_api_python/models/getallportalsop.py +60 -0
- egain_api_python/models/getallprofilesinportalop.py +64 -0
- egain_api_python/models/getallquickpicksop.py +83 -0
- egain_api_python/models/getalltopicsop.py +132 -0
- egain_api_python/models/getalluserprofilesop.py +47 -0
- egain_api_python/models/getancestortopicsop.py +133 -0
- egain_api_python/models/getannouncementarticlesop.py +134 -0
- egain_api_python/models/getarticleattachmentbyidop.py +31 -0
- egain_api_python/models/getarticlebyidop.py +257 -0
- egain_api_python/models/getarticlebyidwitheditionsop.py +46 -0
- egain_api_python/models/getarticleeditiondetailsop.py +55 -0
- egain_api_python/models/getarticlelistdetailsop.py +115 -0
- egain_api_python/models/getarticlepermissionsbyidop.py +40 -0
- egain_api_python/models/getarticlepersonalizationop.py +73 -0
- egain_api_python/models/getarticleratingsop.py +74 -0
- egain_api_python/models/getarticlesintopicop.py +172 -0
- egain_api_python/models/getattachmentbyidinportalop.py +56 -0
- egain_api_python/models/getbookmarkop.py +31 -0
- egain_api_python/models/getcasebasereleasebyidop.py +64 -0
- egain_api_python/models/getcasebyidop.py +75 -0
- egain_api_python/models/getchildtopicsop.py +150 -0
- egain_api_python/models/getclusterbycasebasereleaseidop.py +74 -0
- egain_api_python/models/gethealthop.py +130 -0
- egain_api_python/models/getimportcontentop.py +46 -0
- egain_api_python/models/getmyportalsop.py +97 -0
- egain_api_python/models/getmysubscriptionop.py +115 -0
- egain_api_python/models/getpendingcompliancearticlesop.py +119 -0
- egain_api_python/models/getpopulararticlesop.py +133 -0
- egain_api_python/models/getportaldetailsbyidop.py +47 -0
- egain_api_python/models/getrelatedarticlesforsuggestionop.py +96 -0
- egain_api_python/models/getrelatedarticlesop.py +143 -0
- egain_api_python/models/getsuggestionattachmentbyidop.py +76 -0
- egain_api_python/models/getsuggestionattachmentsop.py +40 -0
- egain_api_python/models/getsuggestioncommentsop.py +40 -0
- egain_api_python/models/getsuggestionop.py +107 -0
- egain_api_python/models/gettagcategoriesforinterestforportalop.py +46 -0
- egain_api_python/models/gettopicbreadcrumbforarticleop.py +55 -0
- egain_api_python/models/getuserdetailsop.py +22 -0
- egain_api_python/models/getusermilestonesop.py +22 -0
- egain_api_python/models/ghsearchrequest.py +67 -0
- egain_api_python/models/ghsearchresult.py +75 -0
- egain_api_python/models/ghstepsearchrequest.py +64 -0
- egain_api_python/models/image.py +17 -0
- egain_api_python/models/importcontent.py +79 -0
- egain_api_python/models/importstatus.py +29 -0
- egain_api_python/models/kblanguage.py +63 -0
- egain_api_python/models/kblanguagecode.py +48 -0
- egain_api_python/models/kblanguages.py +22 -0
- egain_api_python/models/knowledgeexport.py +237 -0
- egain_api_python/models/l10nstring.py +22 -0
- egain_api_python/models/languagecode.py +39 -0
- egain_api_python/models/languagecode_parameter.py +39 -0
- egain_api_python/models/languagequeryparameter.py +39 -0
- egain_api_python/models/link.py +25 -0
- egain_api_python/models/makesuggestionop.py +44 -0
- egain_api_python/models/mandatorylanguagequeryparameter.py +38 -0
- egain_api_python/models/metadata.py +29 -0
- egain_api_python/models/milestone.py +21 -0
- egain_api_python/models/milestonename.py +26 -0
- egain_api_python/models/milestones.py +21 -0
- egain_api_python/models/modifiedby.py +37 -0
- egain_api_python/models/modifysuggestion.py +78 -0
- egain_api_python/models/modifysuggestionsop.py +44 -0
- egain_api_python/models/optionalarticleattributes.py +20 -0
- egain_api_python/models/order.py +10 -0
- egain_api_python/models/ownedby.py +37 -0
- egain_api_python/models/paginationinfo.py +32 -0
- egain_api_python/models/patchimportcontentvalidationop.py +46 -0
- egain_api_python/models/personalization.py +67 -0
- egain_api_python/models/phone.py +21 -0
- egain_api_python/models/portal.py +102 -0
- egain_api_python/models/portalresult.py +28 -0
- egain_api_python/models/portalsettings.py +398 -0
- egain_api_python/models/post_portalid_answersop.py +88 -0
- egain_api_python/models/post_portalid_retrieveop.py +88 -0
- egain_api_python/models/profile.py +26 -0
- egain_api_python/models/profileresult.py +24 -0
- egain_api_python/models/publishprofile.py +30 -0
- egain_api_python/models/publishview.py +38 -0
- egain_api_python/models/question.py +101 -0
- egain_api_python/models/questionandanswer.py +26 -0
- egain_api_python/models/quickpickrating.py +32 -0
- egain_api_python/models/quickpickresult.py +38 -0
- egain_api_python/models/quickpickresults.py +28 -0
- egain_api_python/models/ratearticleop.py +71 -0
- egain_api_python/models/referenceresponse.py +80 -0
- egain_api_python/models/rejectghsolutionop.py +52 -0
- egain_api_python/models/relatedquestions.py +28 -0
- egain_api_python/models/resourcetype_parameter.py +10 -0
- egain_api_python/models/restorequickpickop.py +63 -0
- egain_api_python/models/retrieverequest.py +47 -0
- egain_api_python/models/retrieveresponse.py +96 -0
- egain_api_python/models/role.py +26 -0
- egain_api_python/models/roletemplate.py +25 -0
- egain_api_python/models/schemas_answer.py +94 -0
- egain_api_python/models/schemas_customattribute.py +35 -0
- egain_api_python/models/schemas_link.py +27 -0
- egain_api_python/models/schemas_tag.py +21 -0
- egain_api_python/models/schemas_tagcategory.py +75 -0
- egain_api_python/models/schemas_taggroup.py +31 -0
- egain_api_python/models/schemas_tags.py +19 -0
- egain_api_python/models/schemas_wserrorcommon.py +17 -0
- egain_api_python/models/searchfilterattribute.py +61 -0
- egain_api_python/models/searchpriortoescalationop.py +108 -0
- egain_api_python/models/searchresult.py +101 -0
- egain_api_python/models/searchsuggestionop.py +93 -0
- egain_api_python/models/security.py +25 -0
- egain_api_python/models/selectuserprofileop.py +44 -0
- egain_api_python/models/sessioncontextvariable.py +17 -0
- egain_api_python/models/shorturl.py +32 -0
- egain_api_python/models/sortidname.py +10 -0
- egain_api_python/models/sortidnamedepartment.py +11 -0
- egain_api_python/models/stage.py +26 -0
- egain_api_python/models/startcustomerescalationop.py +66 -0
- egain_api_python/models/startescalationrequest.py +94 -0
- egain_api_python/models/startghsearchop.py +74 -0
- egain_api_python/models/startquestionandanswer.py +26 -0
- egain_api_python/models/stepghsearchop.py +62 -0
- egain_api_python/models/stringattributevalue.py +30 -0
- egain_api_python/models/structuredauthoringfields.py +33 -0
- egain_api_python/models/subscribearticleop.py +40 -0
- egain_api_python/models/suggestion.py +190 -0
- egain_api_python/models/suggestionadditionalattributes.py +11 -0
- egain_api_python/models/suggestionattachment.py +46 -0
- egain_api_python/models/suggestions.py +28 -0
- egain_api_python/models/tag.py +17 -0
- egain_api_python/models/tagcategoriesforinterest.py +22 -0
- egain_api_python/models/tagcategory.py +34 -0
- egain_api_python/models/taggroup.py +17 -0
- egain_api_python/models/taggroups.py +20 -0
- egain_api_python/models/tags.py +17 -0
- egain_api_python/models/topic.py +113 -0
- egain_api_python/models/topicadditionalattributes.py +20 -0
- egain_api_python/models/topicaisearchresult.py +67 -0
- egain_api_python/models/topicbreadcrumb.py +24 -0
- egain_api_python/models/topicresult.py +26 -0
- egain_api_python/models/topicsummary.py +31 -0
- egain_api_python/models/topictreenode.py +27 -0
- egain_api_python/models/topictreeresult.py +28 -0
- egain_api_python/models/unsubscribearticleop.py +55 -0
- egain_api_python/models/uploadattachmentop.py +36 -0
- egain_api_python/models/userdetails.py +44 -0
- egain_api_python/models/userprofile.py +33 -0
- egain_api_python/models/userprofiles.py +21 -0
- egain_api_python/models/userview.py +33 -0
- egain_api_python/models/validateimportcontent.py +58 -0
- egain_api_python/models/virtualcase.py +52 -0
- egain_api_python/models/workflow.py +21 -0
- egain_api_python/models/workflowmilestone.py +11 -0
- egain_api_python/models/wserrorcommon.py +17 -0
- egain_api_python/populararticles.py +287 -0
- egain_api_python/portal_article.py +4935 -0
- egain_api_python/portal_attachment.py +494 -0
- egain_api_python/portal_bookmark.py +707 -0
- egain_api_python/portal_sdk.py +88 -0
- egain_api_python/portal_suggestion.py +2283 -0
- egain_api_python/portal_topic.py +975 -0
- egain_api_python/portal_userdetails.py +211 -0
- egain_api_python/portal_userprofile.py +431 -0
- egain_api_python/py.typed +1 -0
- egain_api_python/retrieve.py +265 -0
- egain_api_python/sdk.py +216 -0
- egain_api_python/sdkconfiguration.py +50 -0
- egain_api_python/search.py +251 -0
- egain_api_python/types/__init__.py +21 -0
- egain_api_python/types/basemodel.py +39 -0
- egain_api_python/usermilestones.py +219 -0
- egain_api_python/utils/__init__.py +200 -0
- egain_api_python/utils/annotations.py +79 -0
- egain_api_python/utils/datetimes.py +23 -0
- egain_api_python/utils/enums.py +74 -0
- egain_api_python/utils/eventstreaming.py +248 -0
- egain_api_python/utils/forms.py +223 -0
- egain_api_python/utils/headers.py +136 -0
- egain_api_python/utils/logger.py +27 -0
- egain_api_python/utils/metadata.py +118 -0
- egain_api_python/utils/queryparams.py +205 -0
- egain_api_python/utils/requestbodies.py +66 -0
- egain_api_python/utils/retries.py +217 -0
- egain_api_python/utils/security.py +192 -0
- egain_api_python/utils/serializers.py +249 -0
- egain_api_python/utils/unmarshal_json_response.py +24 -0
- egain_api_python/utils/url.py +155 -0
- egain_api_python/utils/values.py +137 -0
- egain_api_python-0.1.1.dist-info/METADATA +827 -0
- egain_api_python-0.1.1.dist-info/RECORD +332 -0
- egain_api_python-0.1.1.dist-info/WHEEL +5 -0
- egain_api_python-0.1.1.dist-info/licenses/LICENSE +21 -0
- egain_api_python-0.1.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .accessibleportal import AccessiblePortal, AccessiblePortalTypedDict
|
5
|
+
from .paginationinfo import PaginationInfo, PaginationInfoTypedDict
|
6
|
+
from egain_api_python.types import BaseModel
|
7
|
+
import pydantic
|
8
|
+
from typing import List, Optional
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
10
|
+
|
11
|
+
|
12
|
+
class AllAccessiblePortalsTypedDict(TypedDict):
|
13
|
+
r"""Success"""
|
14
|
+
|
15
|
+
portal: NotRequired[List[AccessiblePortalTypedDict]]
|
16
|
+
r"""portals"""
|
17
|
+
pagination_info: NotRequired[PaginationInfoTypedDict]
|
18
|
+
|
19
|
+
|
20
|
+
class AllAccessiblePortals(BaseModel):
|
21
|
+
r"""Success"""
|
22
|
+
|
23
|
+
portal: Optional[List[AccessiblePortal]] = None
|
24
|
+
r"""portals"""
|
25
|
+
|
26
|
+
pagination_info: Annotated[
|
27
|
+
Optional[PaginationInfo], pydantic.Field(alias="paginationInfo")
|
28
|
+
] = None
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from egain_api_python.types import BaseModel
|
5
|
+
from typing import Optional
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
7
|
+
|
8
|
+
|
9
|
+
class AnswerTypedDict(TypedDict):
|
10
|
+
id: NotRequired[str]
|
11
|
+
r"""ID of answer"""
|
12
|
+
value: NotRequired[str]
|
13
|
+
r"""Value of answer"""
|
14
|
+
|
15
|
+
|
16
|
+
class Answer(BaseModel):
|
17
|
+
id: Optional[str] = None
|
18
|
+
r"""ID of answer"""
|
19
|
+
|
20
|
+
value: Optional[str] = None
|
21
|
+
r"""Value of answer"""
|
@@ -0,0 +1,125 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .answerrange import AnswerRange, AnswerRangeTypedDict
|
5
|
+
from .metadata import Metadata, MetadataTypedDict
|
6
|
+
from .schemas_answer import SchemasAnswer, SchemasAnswerTypedDict
|
7
|
+
from .schemas_customattribute import (
|
8
|
+
SchemasCustomAttribute,
|
9
|
+
SchemasCustomAttributeTypedDict,
|
10
|
+
)
|
11
|
+
from egain_api_python.types import BaseModel
|
12
|
+
import pydantic
|
13
|
+
from typing import List, Literal, Optional
|
14
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
15
|
+
|
16
|
+
|
17
|
+
AnsweredQuestionType = Literal[
|
18
|
+
"numeric",
|
19
|
+
"enumerated",
|
20
|
+
"list",
|
21
|
+
"text",
|
22
|
+
]
|
23
|
+
r"""type of the question"""
|
24
|
+
|
25
|
+
|
26
|
+
AnsweredQuestionFormat = Literal[
|
27
|
+
"radioButton",
|
28
|
+
"dropdown",
|
29
|
+
"checkbox",
|
30
|
+
"mutliSelect",
|
31
|
+
"number",
|
32
|
+
"singleLineTextField",
|
33
|
+
"multiLineTextField",
|
34
|
+
]
|
35
|
+
r"""format of the question"""
|
36
|
+
|
37
|
+
|
38
|
+
AnswerSource = Literal[
|
39
|
+
"rule",
|
40
|
+
"data_link_article",
|
41
|
+
"user",
|
42
|
+
]
|
43
|
+
r"""source of the provided answer"""
|
44
|
+
|
45
|
+
|
46
|
+
class AnsweredQuestionTypedDict(TypedDict):
|
47
|
+
id: NotRequired[str]
|
48
|
+
r"""The numerical ID of the question"""
|
49
|
+
title: NotRequired[str]
|
50
|
+
r"""Title of the question"""
|
51
|
+
type: NotRequired[AnsweredQuestionType]
|
52
|
+
r"""type of the question"""
|
53
|
+
format_: NotRequired[AnsweredQuestionFormat]
|
54
|
+
r"""format of the question"""
|
55
|
+
short_name: NotRequired[str]
|
56
|
+
r"""short name"""
|
57
|
+
has_additional_info: NotRequired[bool]
|
58
|
+
r"""indicates if question has additional information"""
|
59
|
+
has_action: NotRequired[bool]
|
60
|
+
r"""indicates if question has action"""
|
61
|
+
valid_answer: NotRequired[List[SchemasAnswerTypedDict]]
|
62
|
+
r"""valid answers for question"""
|
63
|
+
previous_answer: NotRequired[List[SchemasAnswerTypedDict]]
|
64
|
+
r"""answers provided for question"""
|
65
|
+
valid_answer_range: NotRequired[AnswerRangeTypedDict]
|
66
|
+
metadata: NotRequired[List[MetadataTypedDict]]
|
67
|
+
r"""Metadata on question"""
|
68
|
+
custom_attributes: NotRequired[List[SchemasCustomAttributeTypedDict]]
|
69
|
+
r"""Custom attributes of question"""
|
70
|
+
answer_source: NotRequired[AnswerSource]
|
71
|
+
r"""source of the provided answer"""
|
72
|
+
|
73
|
+
|
74
|
+
class AnsweredQuestion(BaseModel):
|
75
|
+
id: Optional[str] = None
|
76
|
+
r"""The numerical ID of the question"""
|
77
|
+
|
78
|
+
title: Optional[str] = None
|
79
|
+
r"""Title of the question"""
|
80
|
+
|
81
|
+
type: Optional[AnsweredQuestionType] = None
|
82
|
+
r"""type of the question"""
|
83
|
+
|
84
|
+
format_: Annotated[
|
85
|
+
Optional[AnsweredQuestionFormat], pydantic.Field(alias="format")
|
86
|
+
] = None
|
87
|
+
r"""format of the question"""
|
88
|
+
|
89
|
+
short_name: Annotated[Optional[str], pydantic.Field(alias="shortName")] = None
|
90
|
+
r"""short name"""
|
91
|
+
|
92
|
+
has_additional_info: Annotated[
|
93
|
+
Optional[bool], pydantic.Field(alias="hasAdditionalInfo")
|
94
|
+
] = None
|
95
|
+
r"""indicates if question has additional information"""
|
96
|
+
|
97
|
+
has_action: Annotated[Optional[bool], pydantic.Field(alias="hasAction")] = None
|
98
|
+
r"""indicates if question has action"""
|
99
|
+
|
100
|
+
valid_answer: Annotated[
|
101
|
+
Optional[List[SchemasAnswer]], pydantic.Field(alias="validAnswer")
|
102
|
+
] = None
|
103
|
+
r"""valid answers for question"""
|
104
|
+
|
105
|
+
previous_answer: Annotated[
|
106
|
+
Optional[List[SchemasAnswer]], pydantic.Field(alias="previousAnswer")
|
107
|
+
] = None
|
108
|
+
r"""answers provided for question"""
|
109
|
+
|
110
|
+
valid_answer_range: Annotated[
|
111
|
+
Optional[AnswerRange], pydantic.Field(alias="validAnswerRange")
|
112
|
+
] = None
|
113
|
+
|
114
|
+
metadata: Optional[List[Metadata]] = None
|
115
|
+
r"""Metadata on question"""
|
116
|
+
|
117
|
+
custom_attributes: Annotated[
|
118
|
+
Optional[List[SchemasCustomAttribute]], pydantic.Field(alias="customAttributes")
|
119
|
+
] = None
|
120
|
+
r"""Custom attributes of question"""
|
121
|
+
|
122
|
+
answer_source: Annotated[
|
123
|
+
Optional[AnswerSource], pydantic.Field(alias="answerSource")
|
124
|
+
] = None
|
125
|
+
r"""source of the provided answer"""
|
@@ -0,0 +1,41 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from egain_api_python.types import BaseModel
|
5
|
+
import pydantic
|
6
|
+
from typing import Optional
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
8
|
+
|
9
|
+
|
10
|
+
class AnswerRangeTypedDict(TypedDict):
|
11
|
+
id: NotRequired[str]
|
12
|
+
r"""Id of the answer range"""
|
13
|
+
min: NotRequired[float]
|
14
|
+
r"""minimum value of range"""
|
15
|
+
max: NotRequired[float]
|
16
|
+
r"""maximum value of range"""
|
17
|
+
min_inclusive: NotRequired[bool]
|
18
|
+
r"""flag indicating if minimum value is included"""
|
19
|
+
max_inclusive: NotRequired[bool]
|
20
|
+
r"""flag indicating if maximim value is included"""
|
21
|
+
|
22
|
+
|
23
|
+
class AnswerRange(BaseModel):
|
24
|
+
id: Optional[str] = None
|
25
|
+
r"""Id of the answer range"""
|
26
|
+
|
27
|
+
min: Optional[float] = None
|
28
|
+
r"""minimum value of range"""
|
29
|
+
|
30
|
+
max: Optional[float] = None
|
31
|
+
r"""maximum value of range"""
|
32
|
+
|
33
|
+
min_inclusive: Annotated[Optional[bool], pydantic.Field(alias="minInclusive")] = (
|
34
|
+
None
|
35
|
+
)
|
36
|
+
r"""flag indicating if minimum value is included"""
|
37
|
+
|
38
|
+
max_inclusive: Annotated[Optional[bool], pydantic.Field(alias="maxInclusive")] = (
|
39
|
+
None
|
40
|
+
)
|
41
|
+
r"""flag indicating if maximim value is included"""
|
@@ -0,0 +1,78 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from egain_api_python.types import BaseModel
|
5
|
+
import pydantic
|
6
|
+
from typing import Literal, Optional
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
8
|
+
|
9
|
+
|
10
|
+
AnswersRequestType = Literal[
|
11
|
+
"portal",
|
12
|
+
"custom",
|
13
|
+
]
|
14
|
+
r"""The channel where the query originated, e.g., directly from the portal or via a custom integration."""
|
15
|
+
|
16
|
+
|
17
|
+
class AnswersRequestChannelTypedDict(TypedDict):
|
18
|
+
type: NotRequired[AnswersRequestType]
|
19
|
+
r"""The channel where the query originated, e.g., directly from the portal or via a custom integration."""
|
20
|
+
name: NotRequired[str]
|
21
|
+
r"""A descriptive name for the channel (e.g., \"web\", \"mobile app\", \"agent console\")."""
|
22
|
+
|
23
|
+
|
24
|
+
class AnswersRequestChannel(BaseModel):
|
25
|
+
type: Optional[AnswersRequestType] = "custom"
|
26
|
+
r"""The channel where the query originated, e.g., directly from the portal or via a custom integration."""
|
27
|
+
|
28
|
+
name: Optional[str] = None
|
29
|
+
r"""A descriptive name for the channel (e.g., \"web\", \"mobile app\", \"agent console\")."""
|
30
|
+
|
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
|
+
class AnswersRequestTypedDict(TypedDict):
|
59
|
+
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
|
+
event_id: NotRequired[str]
|
63
|
+
r"""Unique ID for this specific API call or event."""
|
64
|
+
session_id: NotRequired[str]
|
65
|
+
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."""
|
66
|
+
|
67
|
+
|
68
|
+
class AnswersRequest(BaseModel):
|
69
|
+
channel: Optional[AnswersRequestChannel] = None
|
70
|
+
|
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
|
+
event_id: Annotated[Optional[str], pydantic.Field(alias="eventId")] = None
|
75
|
+
r"""Unique ID for this specific API call or event."""
|
76
|
+
|
77
|
+
session_id: Annotated[Optional[str], pydantic.Field(alias="sessionId")] = None
|
78
|
+
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."""
|
@@ -0,0 +1,93 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .referenceresponse import ReferenceResponse, ReferenceResponseTypedDict
|
5
|
+
from .searchresult import SearchResult, SearchResultTypedDict
|
6
|
+
from egain_api_python.types import BaseModel
|
7
|
+
import pydantic
|
8
|
+
from typing import List, Literal, Optional
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
10
|
+
|
11
|
+
|
12
|
+
AnswersResponseAnswerType = Literal[
|
13
|
+
"certified",
|
14
|
+
"generative",
|
15
|
+
]
|
16
|
+
r"""Indicates whether the answer was extracted directly from documents or generated by the LLM."""
|
17
|
+
|
18
|
+
|
19
|
+
class AnswersResponseAnswerTypedDict(TypedDict):
|
20
|
+
answer_value: str
|
21
|
+
r"""The main response text. May be a certified answer or a generative answer produced by the LLM."""
|
22
|
+
references: List[ReferenceResponseTypedDict]
|
23
|
+
r"""Supporting sources that were used to produce the answer."""
|
24
|
+
answer_type: AnswersResponseAnswerType
|
25
|
+
r"""Indicates whether the answer was extracted directly from documents or generated by the LLM."""
|
26
|
+
relevance_score: float
|
27
|
+
r"""Confidence score (0.0-1.0) reflecting how well the answer matches the query."""
|
28
|
+
|
29
|
+
|
30
|
+
class AnswersResponseAnswer(BaseModel):
|
31
|
+
answer_value: Annotated[str, pydantic.Field(alias="answerValue")]
|
32
|
+
r"""The main response text. May be a certified answer or a generative answer produced by the LLM."""
|
33
|
+
|
34
|
+
references: List[ReferenceResponse]
|
35
|
+
r"""Supporting sources that were used to produce the answer."""
|
36
|
+
|
37
|
+
answer_type: Annotated[
|
38
|
+
AnswersResponseAnswerType, pydantic.Field(alias="answerType")
|
39
|
+
]
|
40
|
+
r"""Indicates whether the answer was extracted directly from documents or generated by the LLM."""
|
41
|
+
|
42
|
+
relevance_score: Annotated[float, pydantic.Field(alias="relevanceScore")]
|
43
|
+
r"""Confidence score (0.0-1.0) reflecting how well the answer matches the query."""
|
44
|
+
|
45
|
+
|
46
|
+
AnswersResponseType = Literal[
|
47
|
+
"portal",
|
48
|
+
"custom",
|
49
|
+
]
|
50
|
+
r"""The channel where the query originated, e.g., directly from the portal or via a custom integration."""
|
51
|
+
|
52
|
+
|
53
|
+
class AnswersResponseChannelTypedDict(TypedDict):
|
54
|
+
type: AnswersResponseType
|
55
|
+
r"""The channel where the query originated, e.g., directly from the portal or via a custom integration."""
|
56
|
+
name: NotRequired[str]
|
57
|
+
r"""The channel name."""
|
58
|
+
|
59
|
+
|
60
|
+
class AnswersResponseChannel(BaseModel):
|
61
|
+
type: AnswersResponseType
|
62
|
+
r"""The channel where the query originated, e.g., directly from the portal or via a custom integration."""
|
63
|
+
|
64
|
+
name: Optional[str] = None
|
65
|
+
r"""The channel name."""
|
66
|
+
|
67
|
+
|
68
|
+
class AnswersResponseTypedDict(TypedDict):
|
69
|
+
answer: NotRequired[AnswersResponseAnswerTypedDict]
|
70
|
+
search_results: NotRequired[List[SearchResultTypedDict]]
|
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]
|
74
|
+
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."""
|
75
|
+
event_id: NotRequired[str]
|
76
|
+
r"""Unique ID for this specific API call or event."""
|
77
|
+
|
78
|
+
|
79
|
+
class AnswersResponse(BaseModel):
|
80
|
+
answer: Optional[AnswersResponseAnswer] = None
|
81
|
+
|
82
|
+
search_results: Annotated[
|
83
|
+
Optional[List[SearchResult]], pydantic.Field(alias="searchResults")
|
84
|
+
] = None
|
85
|
+
r"""List of top search results used to support the answer. Includes snippets, metadata, and relevance scores."""
|
86
|
+
|
87
|
+
channel: Optional[AnswersResponseChannel] = None
|
88
|
+
|
89
|
+
session_id: Annotated[Optional[str], pydantic.Field(alias="sessionId")] = None
|
90
|
+
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
|
+
|
92
|
+
event_id: Annotated[Optional[str], pydantic.Field(alias="eventId")] = None
|
93
|
+
r"""Unique ID for this specific API call or event."""
|
@@ -0,0 +1,241 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .articleattachment import ArticleAttachment, ArticleAttachmentTypedDict
|
5
|
+
from .articletype import ArticleType, ArticleTypeTypedDict
|
6
|
+
from .bookmarkstatus import BookmarkStatus, BookmarkStatusTypedDict
|
7
|
+
from .complianceforarticle import ComplianceForArticle, ComplianceForArticleTypedDict
|
8
|
+
from .createdby import CreatedBy, CreatedByTypedDict
|
9
|
+
from .customattribute import CustomAttribute, CustomAttributeTypedDict
|
10
|
+
from .edition import Edition, EditionTypedDict
|
11
|
+
from .languagecode import LanguageCode
|
12
|
+
from .link import Link, LinkTypedDict
|
13
|
+
from .modifiedby import ModifiedBy, ModifiedByTypedDict
|
14
|
+
from .ownedby import OwnedBy, OwnedByTypedDict
|
15
|
+
from .personalization import Personalization, PersonalizationTypedDict
|
16
|
+
from .structuredauthoringfields import (
|
17
|
+
StructuredAuthoringFields,
|
18
|
+
StructuredAuthoringFieldsTypedDict,
|
19
|
+
)
|
20
|
+
from .topicbreadcrumb import TopicBreadcrumb, TopicBreadcrumbTypedDict
|
21
|
+
from .workflow import Workflow, WorkflowTypedDict
|
22
|
+
from egain_api_python.types import BaseModel
|
23
|
+
import pydantic
|
24
|
+
from typing import List, Optional
|
25
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
26
|
+
|
27
|
+
|
28
|
+
class ArticleTypedDict(TypedDict):
|
29
|
+
r"""Success"""
|
30
|
+
|
31
|
+
id: str
|
32
|
+
r"""The ID of the Article.<br>An Article ID is composed of a 2-4 letter prefix, followed by a dash and 4-15 digits."""
|
33
|
+
created_by: CreatedByTypedDict
|
34
|
+
name: str
|
35
|
+
r"""The name of the Article."""
|
36
|
+
topic_breadcrumb: List[TopicBreadcrumbTypedDict]
|
37
|
+
r"""A list of topics from the root topic to this Article. There may be multiple paths."""
|
38
|
+
additional_info: NotRequired[str]
|
39
|
+
r"""Additional information about the Article. Max 1 KB."""
|
40
|
+
article_macro: NotRequired[str]
|
41
|
+
r"""The name of the macro associated with this Article."""
|
42
|
+
article_type: NotRequired[ArticleTypeTypedDict]
|
43
|
+
r"""The type of the Article and its attributes."""
|
44
|
+
article_keywords: NotRequired[str]
|
45
|
+
r"""A comma-separated list of keywords associated with this Article. 1 KB max size limit."""
|
46
|
+
article_summary: NotRequired[str]
|
47
|
+
r"""A brief summary of the Article, provided as metadata. 1 KB max size limit."""
|
48
|
+
attachments: NotRequired[List[ArticleAttachmentTypedDict]]
|
49
|
+
r"""The attachments of the Article.
|
50
|
+
|
51
|
+
"""
|
52
|
+
availability_date: NotRequired[str]
|
53
|
+
r"""The date on which the Article version is available."""
|
54
|
+
available_editions: NotRequired[List[EditionTypedDict]]
|
55
|
+
r"""The editions of this Article that are available to the user."""
|
56
|
+
average_rating: NotRequired[float]
|
57
|
+
r"""The average rating of the Article."""
|
58
|
+
content: NotRequired[str]
|
59
|
+
r"""The Article content. The maximum allowed Article content size is 5 MB."""
|
60
|
+
content_text: NotRequired[str]
|
61
|
+
r"""The plaintext version of the Article content, which does not have the HTML tags and rich formatting present in *content*. The maximum allowed Article content size is 5 MB."""
|
62
|
+
modified_by: NotRequired[ModifiedByTypedDict]
|
63
|
+
owned_by: NotRequired[OwnedByTypedDict]
|
64
|
+
created_date: NotRequired[str]
|
65
|
+
custom_attributes: NotRequired[List[CustomAttributeTypedDict]]
|
66
|
+
r"""A list of custom attributes."""
|
67
|
+
department_id: NotRequired[str]
|
68
|
+
r"""ID of the Article's department."""
|
69
|
+
description: NotRequired[str]
|
70
|
+
r"""A description of the Article. The maximum allowed Article description size is 1 KB."""
|
71
|
+
expiration_date: NotRequired[str]
|
72
|
+
r"""Date of Article expiration if Article expires otherwise empty."""
|
73
|
+
image_url: NotRequired[str]
|
74
|
+
r"""The URL of an image to be associated with the Article."""
|
75
|
+
include_in_gen_ai: NotRequired[bool]
|
76
|
+
r"""Indicates whether the Article is included for Generative AI."""
|
77
|
+
is_subscribed: NotRequired[bool]
|
78
|
+
r"""Indicates whether the Article is subscribed for notifications."""
|
79
|
+
modified_date: NotRequired[str]
|
80
|
+
r"""The date on which the Article was last modified."""
|
81
|
+
language_code: NotRequired[LanguageCode]
|
82
|
+
r"""Language code of the resource's language."""
|
83
|
+
link: NotRequired[LinkTypedDict]
|
84
|
+
r"""Defines the relationship between this resource and another object."""
|
85
|
+
structured_authoring_fields: NotRequired[StructuredAuthoringFieldsTypedDict]
|
86
|
+
article_state: NotRequired[str]
|
87
|
+
r"""The Article's state."""
|
88
|
+
times_rated: NotRequired[int]
|
89
|
+
r"""The number of times that this Article has been rated."""
|
90
|
+
version_id: NotRequired[str]
|
91
|
+
r"""The ID of this version of the Article."""
|
92
|
+
workflow: NotRequired[WorkflowTypedDict]
|
93
|
+
r"""The Article's workflow."""
|
94
|
+
compliance: NotRequired[ComplianceForArticleTypedDict]
|
95
|
+
r"""This schema contains the compliance details for an Article."""
|
96
|
+
personalization: NotRequired[PersonalizationTypedDict]
|
97
|
+
r"""Personalization allows the filtering of search results and controls the access to articles and article editions."""
|
98
|
+
bookmark_status: NotRequired[BookmarkStatusTypedDict]
|
99
|
+
r"""Article Bookmark Status"""
|
100
|
+
|
101
|
+
|
102
|
+
class Article(BaseModel):
|
103
|
+
r"""Success"""
|
104
|
+
|
105
|
+
id: str
|
106
|
+
r"""The ID of the Article.<br>An Article ID is composed of a 2-4 letter prefix, followed by a dash and 4-15 digits."""
|
107
|
+
|
108
|
+
created_by: Annotated[CreatedBy, pydantic.Field(alias="createdBy")]
|
109
|
+
|
110
|
+
name: str
|
111
|
+
r"""The name of the Article."""
|
112
|
+
|
113
|
+
topic_breadcrumb: Annotated[
|
114
|
+
List[TopicBreadcrumb], pydantic.Field(alias="topicBreadcrumb")
|
115
|
+
]
|
116
|
+
r"""A list of topics from the root topic to this Article. There may be multiple paths."""
|
117
|
+
|
118
|
+
additional_info: Annotated[
|
119
|
+
Optional[str], pydantic.Field(alias="additionalInfo")
|
120
|
+
] = None
|
121
|
+
r"""Additional information about the Article. Max 1 KB."""
|
122
|
+
|
123
|
+
article_macro: Annotated[Optional[str], pydantic.Field(alias="articleMacro")] = None
|
124
|
+
r"""The name of the macro associated with this Article."""
|
125
|
+
|
126
|
+
article_type: Annotated[
|
127
|
+
Optional[ArticleType], pydantic.Field(alias="articleType")
|
128
|
+
] = None
|
129
|
+
r"""The type of the Article and its attributes."""
|
130
|
+
|
131
|
+
article_keywords: Annotated[
|
132
|
+
Optional[str], pydantic.Field(alias="articleKeywords")
|
133
|
+
] = None
|
134
|
+
r"""A comma-separated list of keywords associated with this Article. 1 KB max size limit."""
|
135
|
+
|
136
|
+
article_summary: Annotated[
|
137
|
+
Optional[str], pydantic.Field(alias="articleSummary")
|
138
|
+
] = None
|
139
|
+
r"""A brief summary of the Article, provided as metadata. 1 KB max size limit."""
|
140
|
+
|
141
|
+
attachments: Optional[List[ArticleAttachment]] = None
|
142
|
+
r"""The attachments of the Article.
|
143
|
+
|
144
|
+
"""
|
145
|
+
|
146
|
+
availability_date: Annotated[
|
147
|
+
Optional[str], pydantic.Field(alias="availabilityDate")
|
148
|
+
] = None
|
149
|
+
r"""The date on which the Article version is available."""
|
150
|
+
|
151
|
+
available_editions: Annotated[
|
152
|
+
Optional[List[Edition]], pydantic.Field(alias="availableEditions")
|
153
|
+
] = None
|
154
|
+
r"""The editions of this Article that are available to the user."""
|
155
|
+
|
156
|
+
average_rating: Annotated[
|
157
|
+
Optional[float], pydantic.Field(alias="averageRating")
|
158
|
+
] = None
|
159
|
+
r"""The average rating of the Article."""
|
160
|
+
|
161
|
+
content: Optional[str] = None
|
162
|
+
r"""The Article content. The maximum allowed Article content size is 5 MB."""
|
163
|
+
|
164
|
+
content_text: Annotated[Optional[str], pydantic.Field(alias="contentText")] = None
|
165
|
+
r"""The plaintext version of the Article content, which does not have the HTML tags and rich formatting present in *content*. The maximum allowed Article content size is 5 MB."""
|
166
|
+
|
167
|
+
modified_by: Annotated[Optional[ModifiedBy], pydantic.Field(alias="modifiedBy")] = (
|
168
|
+
None
|
169
|
+
)
|
170
|
+
|
171
|
+
owned_by: Annotated[Optional[OwnedBy], pydantic.Field(alias="ownedBy")] = None
|
172
|
+
|
173
|
+
created_date: Annotated[Optional[str], pydantic.Field(alias="createdDate")] = None
|
174
|
+
|
175
|
+
custom_attributes: Annotated[
|
176
|
+
Optional[List[CustomAttribute]], pydantic.Field(alias="customAttributes")
|
177
|
+
] = None
|
178
|
+
r"""A list of custom attributes."""
|
179
|
+
|
180
|
+
department_id: Annotated[Optional[str], pydantic.Field(alias="departmentID")] = None
|
181
|
+
r"""ID of the Article's department."""
|
182
|
+
|
183
|
+
description: Optional[str] = None
|
184
|
+
r"""A description of the Article. The maximum allowed Article description size is 1 KB."""
|
185
|
+
|
186
|
+
expiration_date: Annotated[
|
187
|
+
Optional[str], pydantic.Field(alias="expirationDate")
|
188
|
+
] = None
|
189
|
+
r"""Date of Article expiration if Article expires otherwise empty."""
|
190
|
+
|
191
|
+
image_url: Annotated[Optional[str], pydantic.Field(alias="imageURL")] = None
|
192
|
+
r"""The URL of an image to be associated with the Article."""
|
193
|
+
|
194
|
+
include_in_gen_ai: Annotated[
|
195
|
+
Optional[bool], pydantic.Field(alias="includeInGenAI")
|
196
|
+
] = None
|
197
|
+
r"""Indicates whether the Article is included for Generative AI."""
|
198
|
+
|
199
|
+
is_subscribed: Annotated[Optional[bool], pydantic.Field(alias="isSubscribed")] = (
|
200
|
+
None
|
201
|
+
)
|
202
|
+
r"""Indicates whether the Article is subscribed for notifications."""
|
203
|
+
|
204
|
+
modified_date: Annotated[Optional[str], pydantic.Field(alias="modifiedDate")] = None
|
205
|
+
r"""The date on which the Article was last modified."""
|
206
|
+
|
207
|
+
language_code: Annotated[
|
208
|
+
Optional[LanguageCode], pydantic.Field(alias="languageCode")
|
209
|
+
] = None
|
210
|
+
r"""Language code of the resource's language."""
|
211
|
+
|
212
|
+
link: Optional[Link] = None
|
213
|
+
r"""Defines the relationship between this resource and another object."""
|
214
|
+
|
215
|
+
structured_authoring_fields: Annotated[
|
216
|
+
Optional[StructuredAuthoringFields],
|
217
|
+
pydantic.Field(alias="structuredAuthoringFields"),
|
218
|
+
] = None
|
219
|
+
|
220
|
+
article_state: Annotated[Optional[str], pydantic.Field(alias="articleState")] = None
|
221
|
+
r"""The Article's state."""
|
222
|
+
|
223
|
+
times_rated: Annotated[Optional[int], pydantic.Field(alias="timesRated")] = None
|
224
|
+
r"""The number of times that this Article has been rated."""
|
225
|
+
|
226
|
+
version_id: Annotated[Optional[str], pydantic.Field(alias="versionId")] = None
|
227
|
+
r"""The ID of this version of the Article."""
|
228
|
+
|
229
|
+
workflow: Optional[Workflow] = None
|
230
|
+
r"""The Article's workflow."""
|
231
|
+
|
232
|
+
compliance: Optional[ComplianceForArticle] = None
|
233
|
+
r"""This schema contains the compliance details for an Article."""
|
234
|
+
|
235
|
+
personalization: Optional[Personalization] = None
|
236
|
+
r"""Personalization allows the filtering of search results and controls the access to articles and article editions."""
|
237
|
+
|
238
|
+
bookmark_status: Annotated[
|
239
|
+
Optional[BookmarkStatus], pydantic.Field(alias="bookmarkStatus")
|
240
|
+
] = None
|
241
|
+
r"""Article Bookmark Status"""
|