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,257 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .acceptlanguage import AcceptLanguage
|
5
|
+
from .articleadditionalattributes import ArticleAdditionalAttributes
|
6
|
+
from .languagequeryparameter import LanguageQueryParameter
|
7
|
+
from .workflowmilestone import WorkflowMilestone
|
8
|
+
from egain_api_python.types import BaseModel
|
9
|
+
from egain_api_python.utils import (
|
10
|
+
FieldMetadata,
|
11
|
+
HeaderMetadata,
|
12
|
+
PathParamMetadata,
|
13
|
+
QueryParamMetadata,
|
14
|
+
)
|
15
|
+
import pydantic
|
16
|
+
from typing import List, Literal, Optional
|
17
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
18
|
+
|
19
|
+
|
20
|
+
AccessSource = Literal[
|
21
|
+
"article_view",
|
22
|
+
"article_view_more_related_Article",
|
23
|
+
"article_view_basic_search",
|
24
|
+
"article_view_adv_search",
|
25
|
+
"article_view_guided_help",
|
26
|
+
"article_view_browse_topic",
|
27
|
+
"article_view_browse_tree",
|
28
|
+
"article_view_popular_articles",
|
29
|
+
"article_view_useful_items",
|
30
|
+
"article_view_widget",
|
31
|
+
"article_view_announcement",
|
32
|
+
"article_view_bookmarked",
|
33
|
+
"article_view_subscription_notification",
|
34
|
+
"article_view_guided_help_additional_info",
|
35
|
+
"view_articles_pending_compliance",
|
36
|
+
"type_ahead_Suggestion",
|
37
|
+
"semantic_Suggestion",
|
38
|
+
"instant_answer",
|
39
|
+
"instant_answer_reference",
|
40
|
+
]
|
41
|
+
r"""Provides information about the method in which the Article is accessed and is used for self-service analytics. Refer to the eGain User Guide regarding \"Article View Contexts\".
|
42
|
+
|
43
|
+
| Name | Description
|
44
|
+
| ---- | -----------
|
45
|
+
| article_view | View an Article directly using its ID.
|
46
|
+
| article_view_more_related_Article | View related articles of an Article using its ID.
|
47
|
+
| article_view_basic_search | View an Article via a basic search.
|
48
|
+
| article_view_adv_search | View an Article via an advanced search.
|
49
|
+
| article_view_guided_help | View an Article via a Guided Help solution.
|
50
|
+
| article_view_browse_topic | View an Article via browsing a topic.
|
51
|
+
| article_view_browse_tree | View an Article via browsing a topic tree.
|
52
|
+
| article_view_popular_articles | View an Article using the Popular Items list in the Self-Service portal.
|
53
|
+
| article_view_useful_items | View Article using the Useful Items list in the Self-Service portal.
|
54
|
+
| article_view_widget | View an Article via a widget.
|
55
|
+
| article_view_announcement | View an Article from the announcement section in the Self-Service portal.
|
56
|
+
| article_view_bookmarked | View a bookmarked Article.
|
57
|
+
| article_view_subscription_notification | View an Article from a subscription notification.
|
58
|
+
| article_view_guided_help_additional_info | View an Article via additional information from a Guided Help search.
|
59
|
+
| view_articles_pending_compliance | View an Article via Read & Sign in the Self-Service portal.
|
60
|
+
| type_ahead_Suggestion | View an Article from a type-ahead Suggestion in the Self-Service portal.
|
61
|
+
| semantic_Suggestion | View an Article from a semantic Suggestion in the Self-Service portal.
|
62
|
+
| instant_answer | View an Article via an Instant Answers solution.
|
63
|
+
| instant_answer_reference | View an Article that is used as a reference for an Instant Answers solution.
|
64
|
+
|
65
|
+
"""
|
66
|
+
|
67
|
+
|
68
|
+
class GetArticleByIDRequestTypedDict(TypedDict):
|
69
|
+
accept_language: AcceptLanguage
|
70
|
+
r"""The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses)."""
|
71
|
+
portal_id: str
|
72
|
+
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."""
|
73
|
+
article_id: str
|
74
|
+
r"""The ID of the Article.<br><br>An Article ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits."""
|
75
|
+
language: NotRequired[LanguageQueryParameter]
|
76
|
+
r"""The language that describes the details of a resource. Resources available in different languages may differ from each other.<li>If <code>lang</code> is not passed, then the portal's default language is used.</li>"""
|
77
|
+
article_additional_attributes: NotRequired[List[ArticleAdditionalAttributes]]
|
78
|
+
r"""The attributes of an Article to be returned *in addition to* the default list of attributes, listed below. Multiple additional attributes can be specified using a comma-separated list. Passing 'all' will return all attributes.
|
79
|
+
|
80
|
+
#### Default Attributes
|
81
|
+
These Article attributes are always returned:
|
82
|
+
|
83
|
+
| Name | Description
|
84
|
+
| ---- | -----------
|
85
|
+
| id | The ID of the Article.
|
86
|
+
| name | The name of the Article.
|
87
|
+
| additionalInfo | Additional information provided as Article metadata.
|
88
|
+
| articleType | The Article type and its attributes.
|
89
|
+
| articleKeywords | A comma-separated list of keywords associated with this Article.
|
90
|
+
| articleState | The current state of the Article. States include A (Authoring), S (Staging), and P (Published).
|
91
|
+
| articleSummary | A brief summary of the Article, provided as metadata.
|
92
|
+
| createdBy | The ID, first name, middle name and last name of the user that created the Article.
|
93
|
+
| createdDate | The date that the Article was created.
|
94
|
+
| departmentId | ID of the department for which this Article belongs to.
|
95
|
+
| description | The Article's description.
|
96
|
+
| expirationDate | The date that the Article is set to expire.
|
97
|
+
| attachments | The Article's attachments
|
98
|
+
| imageURL | The URL of the image that is present in the Article version. It is used as the thumbnail image for the Article.
|
99
|
+
| includeInGenAI | Indicates whether this Article is used for eGain's generative AI features.
|
100
|
+
| isSubscribed | Indicates whether the Article is subscribed for notifications.
|
101
|
+
| languageCode | The language code of the Article language.
|
102
|
+
| link | The link object, used to retrieve the details of the Article.
|
103
|
+
| modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article.
|
104
|
+
| modifiedDate | The date that the Article was last modified on.
|
105
|
+
| topicBreadcrumb | Contains a list of topics from the top-level topic to this Article. There may be multiple paths.
|
106
|
+
| versionId | The ID of the Article version that is returned.
|
107
|
+
|
108
|
+
"""
|
109
|
+
custom_additional_attributes: NotRequired[str]
|
110
|
+
access_source: NotRequired[AccessSource]
|
111
|
+
r"""Provides information about the method in which the Article is accessed and is used for self-service analytics. Refer to the eGain User Guide regarding \"Article View Contexts\".
|
112
|
+
|
113
|
+
| Name | Description
|
114
|
+
| ---- | -----------
|
115
|
+
| article_view | View an Article directly using its ID.
|
116
|
+
| article_view_more_related_Article | View related articles of an Article using its ID.
|
117
|
+
| article_view_basic_search | View an Article via a basic search.
|
118
|
+
| article_view_adv_search | View an Article via an advanced search.
|
119
|
+
| article_view_guided_help | View an Article via a Guided Help solution.
|
120
|
+
| article_view_browse_topic | View an Article via browsing a topic.
|
121
|
+
| article_view_browse_tree | View an Article via browsing a topic tree.
|
122
|
+
| article_view_popular_articles | View an Article using the Popular Items list in the Self-Service portal.
|
123
|
+
| article_view_useful_items | View Article using the Useful Items list in the Self-Service portal.
|
124
|
+
| article_view_widget | View an Article via a widget.
|
125
|
+
| article_view_announcement | View an Article from the announcement section in the Self-Service portal.
|
126
|
+
| article_view_bookmarked | View a bookmarked Article.
|
127
|
+
| article_view_subscription_notification | View an Article from a subscription notification.
|
128
|
+
| article_view_guided_help_additional_info | View an Article via additional information from a Guided Help search.
|
129
|
+
| view_articles_pending_compliance | View an Article via Read & Sign in the Self-Service portal.
|
130
|
+
| type_ahead_Suggestion | View an Article from a type-ahead Suggestion in the Self-Service portal.
|
131
|
+
| semantic_Suggestion | View an Article from a semantic Suggestion in the Self-Service portal.
|
132
|
+
| instant_answer | View an Article via an Instant Answers solution.
|
133
|
+
| instant_answer_reference | View an Article that is used as a reference for an Instant Answers solution.
|
134
|
+
|
135
|
+
"""
|
136
|
+
publish_view_id: NotRequired[str]
|
137
|
+
r"""The ID of a publish view for an Article. A publish view is a set of tags used to generate multiple editions of the same Article for display on the self-service portal. Publish views are used in conjunction with single sourcing to tailor the content of an Article to a specific audience by granting access to an Article's version to users that possess the same tags.<br><br>A publish view ID is composed of a 4-letter prefix, followed by a dash and 4-15 digits."""
|
138
|
+
workflow_milestone: NotRequired[WorkflowMilestone]
|
139
|
+
r"""For agents with the View Author Portal or View Staging Portal actions, this determines which version of the Article is returned.<li>'Authoring' returns the most recent version of an Article checked-in by an author.</li><li>'Staging' returns the updated version currently being processed in a workflow.</li><li>'Publish' returns the most recently published version.</li>"""
|
140
|
+
|
141
|
+
|
142
|
+
class GetArticleByIDRequest(BaseModel):
|
143
|
+
accept_language: Annotated[
|
144
|
+
AcceptLanguage,
|
145
|
+
pydantic.Field(alias="Accept-Language"),
|
146
|
+
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
147
|
+
]
|
148
|
+
r"""The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses)."""
|
149
|
+
|
150
|
+
portal_id: Annotated[
|
151
|
+
str,
|
152
|
+
pydantic.Field(alias="portalID"),
|
153
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
154
|
+
]
|
155
|
+
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."""
|
156
|
+
|
157
|
+
article_id: Annotated[
|
158
|
+
str,
|
159
|
+
pydantic.Field(alias="articleID"),
|
160
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
161
|
+
]
|
162
|
+
r"""The ID of the Article.<br><br>An Article ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits."""
|
163
|
+
|
164
|
+
language: Annotated[
|
165
|
+
Optional[LanguageQueryParameter],
|
166
|
+
pydantic.Field(alias="$lang"),
|
167
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
168
|
+
] = None
|
169
|
+
r"""The language that describes the details of a resource. Resources available in different languages may differ from each other.<li>If <code>lang</code> is not passed, then the portal's default language is used.</li>"""
|
170
|
+
|
171
|
+
article_additional_attributes: Annotated[
|
172
|
+
Optional[List[ArticleAdditionalAttributes]],
|
173
|
+
pydantic.Field(alias="articleAdditionalAttributes"),
|
174
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=False)),
|
175
|
+
] = None
|
176
|
+
r"""The attributes of an Article to be returned *in addition to* the default list of attributes, listed below. Multiple additional attributes can be specified using a comma-separated list. Passing 'all' will return all attributes.
|
177
|
+
|
178
|
+
#### Default Attributes
|
179
|
+
These Article attributes are always returned:
|
180
|
+
|
181
|
+
| Name | Description
|
182
|
+
| ---- | -----------
|
183
|
+
| id | The ID of the Article.
|
184
|
+
| name | The name of the Article.
|
185
|
+
| additionalInfo | Additional information provided as Article metadata.
|
186
|
+
| articleType | The Article type and its attributes.
|
187
|
+
| articleKeywords | A comma-separated list of keywords associated with this Article.
|
188
|
+
| articleState | The current state of the Article. States include A (Authoring), S (Staging), and P (Published).
|
189
|
+
| articleSummary | A brief summary of the Article, provided as metadata.
|
190
|
+
| createdBy | The ID, first name, middle name and last name of the user that created the Article.
|
191
|
+
| createdDate | The date that the Article was created.
|
192
|
+
| departmentId | ID of the department for which this Article belongs to.
|
193
|
+
| description | The Article's description.
|
194
|
+
| expirationDate | The date that the Article is set to expire.
|
195
|
+
| attachments | The Article's attachments
|
196
|
+
| imageURL | The URL of the image that is present in the Article version. It is used as the thumbnail image for the Article.
|
197
|
+
| includeInGenAI | Indicates whether this Article is used for eGain's generative AI features.
|
198
|
+
| isSubscribed | Indicates whether the Article is subscribed for notifications.
|
199
|
+
| languageCode | The language code of the Article language.
|
200
|
+
| link | The link object, used to retrieve the details of the Article.
|
201
|
+
| modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article.
|
202
|
+
| modifiedDate | The date that the Article was last modified on.
|
203
|
+
| topicBreadcrumb | Contains a list of topics from the top-level topic to this Article. There may be multiple paths.
|
204
|
+
| versionId | The ID of the Article version that is returned.
|
205
|
+
|
206
|
+
"""
|
207
|
+
|
208
|
+
custom_additional_attributes: Annotated[
|
209
|
+
Optional[str],
|
210
|
+
pydantic.Field(alias="$customAdditionalAttributes"),
|
211
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
212
|
+
] = None
|
213
|
+
|
214
|
+
access_source: Annotated[
|
215
|
+
Optional[AccessSource],
|
216
|
+
pydantic.Field(alias="accessSource"),
|
217
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
218
|
+
] = "article_view"
|
219
|
+
r"""Provides information about the method in which the Article is accessed and is used for self-service analytics. Refer to the eGain User Guide regarding \"Article View Contexts\".
|
220
|
+
|
221
|
+
| Name | Description
|
222
|
+
| ---- | -----------
|
223
|
+
| article_view | View an Article directly using its ID.
|
224
|
+
| article_view_more_related_Article | View related articles of an Article using its ID.
|
225
|
+
| article_view_basic_search | View an Article via a basic search.
|
226
|
+
| article_view_adv_search | View an Article via an advanced search.
|
227
|
+
| article_view_guided_help | View an Article via a Guided Help solution.
|
228
|
+
| article_view_browse_topic | View an Article via browsing a topic.
|
229
|
+
| article_view_browse_tree | View an Article via browsing a topic tree.
|
230
|
+
| article_view_popular_articles | View an Article using the Popular Items list in the Self-Service portal.
|
231
|
+
| article_view_useful_items | View Article using the Useful Items list in the Self-Service portal.
|
232
|
+
| article_view_widget | View an Article via a widget.
|
233
|
+
| article_view_announcement | View an Article from the announcement section in the Self-Service portal.
|
234
|
+
| article_view_bookmarked | View a bookmarked Article.
|
235
|
+
| article_view_subscription_notification | View an Article from a subscription notification.
|
236
|
+
| article_view_guided_help_additional_info | View an Article via additional information from a Guided Help search.
|
237
|
+
| view_articles_pending_compliance | View an Article via Read & Sign in the Self-Service portal.
|
238
|
+
| type_ahead_Suggestion | View an Article from a type-ahead Suggestion in the Self-Service portal.
|
239
|
+
| semantic_Suggestion | View an Article from a semantic Suggestion in the Self-Service portal.
|
240
|
+
| instant_answer | View an Article via an Instant Answers solution.
|
241
|
+
| instant_answer_reference | View an Article that is used as a reference for an Instant Answers solution.
|
242
|
+
|
243
|
+
"""
|
244
|
+
|
245
|
+
publish_view_id: Annotated[
|
246
|
+
Optional[str],
|
247
|
+
pydantic.Field(alias="publishViewId"),
|
248
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
249
|
+
] = None
|
250
|
+
r"""The ID of a publish view for an Article. A publish view is a set of tags used to generate multiple editions of the same Article for display on the self-service portal. Publish views are used in conjunction with single sourcing to tailor the content of an Article to a specific audience by granting access to an Article's version to users that possess the same tags.<br><br>A publish view ID is composed of a 4-letter prefix, followed by a dash and 4-15 digits."""
|
251
|
+
|
252
|
+
workflow_milestone: Annotated[
|
253
|
+
Optional[WorkflowMilestone],
|
254
|
+
pydantic.Field(alias="workflowMilestone"),
|
255
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
256
|
+
] = None
|
257
|
+
r"""For agents with the View Author Portal or View Staging Portal actions, this determines which version of the Article is returned.<li>'Authoring' returns the most recent version of an Article checked-in by an author.</li><li>'Staging' returns the updated version currently being processed in a workflow.</li><li>'Publish' returns the most recently published version.</li>"""
|
@@ -0,0 +1,46 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .acceptlanguage import AcceptLanguage
|
5
|
+
from .mandatorylanguagequeryparameter import MandatoryLanguageQueryParameter
|
6
|
+
from egain_api_python.types import BaseModel
|
7
|
+
from egain_api_python.utils import (
|
8
|
+
FieldMetadata,
|
9
|
+
HeaderMetadata,
|
10
|
+
PathParamMetadata,
|
11
|
+
QueryParamMetadata,
|
12
|
+
)
|
13
|
+
import pydantic
|
14
|
+
from typing_extensions import Annotated, TypedDict
|
15
|
+
|
16
|
+
|
17
|
+
class GetArticleByIDWithEditionsRequestTypedDict(TypedDict):
|
18
|
+
accept_language: AcceptLanguage
|
19
|
+
r"""The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses)."""
|
20
|
+
article_id: str
|
21
|
+
r"""The ID of the Article.<br><br>An Article ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits."""
|
22
|
+
language: MandatoryLanguageQueryParameter
|
23
|
+
r"""The language used for fetching the details of a resource. Resources available in different languages may differ from each other."""
|
24
|
+
|
25
|
+
|
26
|
+
class GetArticleByIDWithEditionsRequest(BaseModel):
|
27
|
+
accept_language: Annotated[
|
28
|
+
AcceptLanguage,
|
29
|
+
pydantic.Field(alias="Accept-Language"),
|
30
|
+
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
31
|
+
]
|
32
|
+
r"""The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses)."""
|
33
|
+
|
34
|
+
article_id: Annotated[
|
35
|
+
str,
|
36
|
+
pydantic.Field(alias="articleID"),
|
37
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
38
|
+
]
|
39
|
+
r"""The ID of the Article.<br><br>An Article ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits."""
|
40
|
+
|
41
|
+
language: Annotated[
|
42
|
+
MandatoryLanguageQueryParameter,
|
43
|
+
pydantic.Field(alias="$lang"),
|
44
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
45
|
+
]
|
46
|
+
r"""The language used for fetching the details of a resource. Resources available in different languages may differ from each other."""
|
@@ -0,0 +1,55 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .acceptlanguage import AcceptLanguage
|
5
|
+
from .mandatorylanguagequeryparameter import MandatoryLanguageQueryParameter
|
6
|
+
from egain_api_python.types import BaseModel
|
7
|
+
from egain_api_python.utils import (
|
8
|
+
FieldMetadata,
|
9
|
+
HeaderMetadata,
|
10
|
+
PathParamMetadata,
|
11
|
+
QueryParamMetadata,
|
12
|
+
)
|
13
|
+
import pydantic
|
14
|
+
from typing_extensions import Annotated, TypedDict
|
15
|
+
|
16
|
+
|
17
|
+
class GetArticleEditionDetailsRequestTypedDict(TypedDict):
|
18
|
+
accept_language: AcceptLanguage
|
19
|
+
r"""The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses)."""
|
20
|
+
article_id: str
|
21
|
+
r"""The ID of the Article. Both numeric and alternate ID formats are supported.<br><br>Valid numerical IDs are 15-19 digits long."""
|
22
|
+
publish_view_id: str
|
23
|
+
r"""Publish View Id of the article on which operation is performed."""
|
24
|
+
language: MandatoryLanguageQueryParameter
|
25
|
+
r"""The language used for fetching the details of a resource. Resources available in different languages may differ from each other."""
|
26
|
+
|
27
|
+
|
28
|
+
class GetArticleEditionDetailsRequest(BaseModel):
|
29
|
+
accept_language: Annotated[
|
30
|
+
AcceptLanguage,
|
31
|
+
pydantic.Field(alias="Accept-Language"),
|
32
|
+
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
33
|
+
]
|
34
|
+
r"""The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses)."""
|
35
|
+
|
36
|
+
article_id: Annotated[
|
37
|
+
str,
|
38
|
+
pydantic.Field(alias="articleID"),
|
39
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
40
|
+
]
|
41
|
+
r"""The ID of the Article. Both numeric and alternate ID formats are supported.<br><br>Valid numerical IDs are 15-19 digits long."""
|
42
|
+
|
43
|
+
publish_view_id: Annotated[
|
44
|
+
str,
|
45
|
+
pydantic.Field(alias="publishViewId"),
|
46
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
47
|
+
]
|
48
|
+
r"""Publish View Id of the article on which operation is performed."""
|
49
|
+
|
50
|
+
language: Annotated[
|
51
|
+
MandatoryLanguageQueryParameter,
|
52
|
+
pydantic.Field(alias="$lang"),
|
53
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
54
|
+
]
|
55
|
+
r"""The language used for fetching the details of a resource. Resources available in different languages may differ from each other."""
|
@@ -0,0 +1,115 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .acceptlanguage import AcceptLanguage
|
5
|
+
from .articleresultadditionalattributes import ArticleResultAdditionalAttributes
|
6
|
+
from .languagequeryparameter import LanguageQueryParameter
|
7
|
+
from egain_api_python.types import BaseModel
|
8
|
+
from egain_api_python.utils import (
|
9
|
+
FieldMetadata,
|
10
|
+
HeaderMetadata,
|
11
|
+
PathParamMetadata,
|
12
|
+
QueryParamMetadata,
|
13
|
+
)
|
14
|
+
import pydantic
|
15
|
+
from typing import List, Optional
|
16
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
17
|
+
|
18
|
+
|
19
|
+
class GetArticleListDetailsRequestTypedDict(TypedDict):
|
20
|
+
accept_language: AcceptLanguage
|
21
|
+
r"""The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses)."""
|
22
|
+
portal_id: str
|
23
|
+
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."""
|
24
|
+
list_id: str
|
25
|
+
r"""The ID of the list to be returned."""
|
26
|
+
dollar_filter_topic_id: NotRequired[str]
|
27
|
+
r"""The ID of the topic. It is used to restrict to a specific topic."""
|
28
|
+
article_result_additional_attributes: NotRequired[
|
29
|
+
List[ArticleResultAdditionalAttributes]
|
30
|
+
]
|
31
|
+
r"""The attributes of an Article to be returned *in addition to* the default list of attributes, listed below. Multiple additional attributes can be specified using a comma-separated list. Passing 'all' will return all attributes.
|
32
|
+
|
33
|
+
#### Default Attributes
|
34
|
+
These Article attributes are always returned:
|
35
|
+
|
36
|
+
| Name | Description
|
37
|
+
| ---- | -----------
|
38
|
+
| id | The ID of the Article.
|
39
|
+
| name | The name of the Article.
|
40
|
+
| articleType | The Article Type and its attributes.
|
41
|
+
| createdBy | The ID, first name, middle name and last name of the user that created the Article.
|
42
|
+
| createdDate | The date that the Article was created.
|
43
|
+
| hasAttachments | True: The Article has one or more attachments.<br>False: The Article does not have any attachments.
|
44
|
+
| languageCode | The language code of the Article language.
|
45
|
+
| modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article.
|
46
|
+
| modifiedDate | The date that the Article was last modified on.
|
47
|
+
| link | The link object, used to retrieve the details of the Article.
|
48
|
+
| versionId | The ID of the Article version that is returned.
|
49
|
+
|
50
|
+
"""
|
51
|
+
language: NotRequired[LanguageQueryParameter]
|
52
|
+
r"""The language that describes the details of a resource. Resources available in different languages may differ from each other.<li>If <code>lang</code> is not passed, then the portal's default language is used.</li>"""
|
53
|
+
|
54
|
+
|
55
|
+
class GetArticleListDetailsRequest(BaseModel):
|
56
|
+
accept_language: Annotated[
|
57
|
+
AcceptLanguage,
|
58
|
+
pydantic.Field(alias="Accept-Language"),
|
59
|
+
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
60
|
+
]
|
61
|
+
r"""The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses)."""
|
62
|
+
|
63
|
+
portal_id: Annotated[
|
64
|
+
str,
|
65
|
+
pydantic.Field(alias="portalID"),
|
66
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
67
|
+
]
|
68
|
+
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."""
|
69
|
+
|
70
|
+
list_id: Annotated[
|
71
|
+
str,
|
72
|
+
pydantic.Field(alias="listID"),
|
73
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
74
|
+
]
|
75
|
+
r"""The ID of the list to be returned."""
|
76
|
+
|
77
|
+
dollar_filter_topic_id: Annotated[
|
78
|
+
Optional[str],
|
79
|
+
pydantic.Field(alias="$filter[topicId]"),
|
80
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
81
|
+
] = None
|
82
|
+
r"""The ID of the topic. It is used to restrict to a specific topic."""
|
83
|
+
|
84
|
+
article_result_additional_attributes: Annotated[
|
85
|
+
Optional[List[ArticleResultAdditionalAttributes]],
|
86
|
+
pydantic.Field(alias="articleResultAdditionalAttributes"),
|
87
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=False)),
|
88
|
+
] = None
|
89
|
+
r"""The attributes of an Article to be returned *in addition to* the default list of attributes, listed below. Multiple additional attributes can be specified using a comma-separated list. Passing 'all' will return all attributes.
|
90
|
+
|
91
|
+
#### Default Attributes
|
92
|
+
These Article attributes are always returned:
|
93
|
+
|
94
|
+
| Name | Description
|
95
|
+
| ---- | -----------
|
96
|
+
| id | The ID of the Article.
|
97
|
+
| name | The name of the Article.
|
98
|
+
| articleType | The Article Type and its attributes.
|
99
|
+
| createdBy | The ID, first name, middle name and last name of the user that created the Article.
|
100
|
+
| createdDate | The date that the Article was created.
|
101
|
+
| hasAttachments | True: The Article has one or more attachments.<br>False: The Article does not have any attachments.
|
102
|
+
| languageCode | The language code of the Article language.
|
103
|
+
| modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article.
|
104
|
+
| modifiedDate | The date that the Article was last modified on.
|
105
|
+
| link | The link object, used to retrieve the details of the Article.
|
106
|
+
| versionId | The ID of the Article version that is returned.
|
107
|
+
|
108
|
+
"""
|
109
|
+
|
110
|
+
language: Annotated[
|
111
|
+
Optional[LanguageQueryParameter],
|
112
|
+
pydantic.Field(alias="$lang"),
|
113
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
114
|
+
] = None
|
115
|
+
r"""The language that describes the details of a resource. Resources available in different languages may differ from each other.<li>If <code>lang</code> is not passed, then the portal's default language is used.</li>"""
|
@@ -0,0 +1,40 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .acceptlanguage import AcceptLanguage
|
5
|
+
from egain_api_python.types import BaseModel
|
6
|
+
from egain_api_python.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
7
|
+
import pydantic
|
8
|
+
from typing_extensions import Annotated, TypedDict
|
9
|
+
|
10
|
+
|
11
|
+
class GetArticlePermissionsByIDRequestTypedDict(TypedDict):
|
12
|
+
accept_language: AcceptLanguage
|
13
|
+
r"""The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses)."""
|
14
|
+
portal_id: str
|
15
|
+
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."""
|
16
|
+
article_id: str
|
17
|
+
r"""The ID of the Article.<br><br>An Article ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits."""
|
18
|
+
|
19
|
+
|
20
|
+
class GetArticlePermissionsByIDRequest(BaseModel):
|
21
|
+
accept_language: Annotated[
|
22
|
+
AcceptLanguage,
|
23
|
+
pydantic.Field(alias="Accept-Language"),
|
24
|
+
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
25
|
+
]
|
26
|
+
r"""The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses)."""
|
27
|
+
|
28
|
+
portal_id: Annotated[
|
29
|
+
str,
|
30
|
+
pydantic.Field(alias="portalID"),
|
31
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
32
|
+
]
|
33
|
+
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."""
|
34
|
+
|
35
|
+
article_id: Annotated[
|
36
|
+
str,
|
37
|
+
pydantic.Field(alias="articleID"),
|
38
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
39
|
+
]
|
40
|
+
r"""The ID of the Article.<br><br>An Article ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits."""
|
@@ -0,0 +1,73 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .acceptlanguage import AcceptLanguage
|
5
|
+
from .languagequeryparameter import LanguageQueryParameter
|
6
|
+
from egain_api_python.types import BaseModel
|
7
|
+
from egain_api_python.utils import (
|
8
|
+
FieldMetadata,
|
9
|
+
HeaderMetadata,
|
10
|
+
PathParamMetadata,
|
11
|
+
QueryParamMetadata,
|
12
|
+
)
|
13
|
+
import pydantic
|
14
|
+
from typing import Literal, Optional
|
15
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
16
|
+
|
17
|
+
|
18
|
+
GetArticlePersonalizationWorkflowMilestone = Literal[
|
19
|
+
"authoring",
|
20
|
+
"publish",
|
21
|
+
"staging",
|
22
|
+
]
|
23
|
+
r"""workflow milestone of the Article"""
|
24
|
+
|
25
|
+
|
26
|
+
class GetArticlePersonalizationRequestTypedDict(TypedDict):
|
27
|
+
accept_language: AcceptLanguage
|
28
|
+
r"""The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses)."""
|
29
|
+
portal_id: str
|
30
|
+
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."""
|
31
|
+
article_id: str
|
32
|
+
r"""The ID of the Article.<br><br>An Article ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits."""
|
33
|
+
language: NotRequired[LanguageQueryParameter]
|
34
|
+
r"""The language that describes the details of a resource. Resources available in different languages may differ from each other.<li>If <code>lang</code> is not passed, then the portal's default language is used.</li>"""
|
35
|
+
workflow_milestone: NotRequired[GetArticlePersonalizationWorkflowMilestone]
|
36
|
+
r"""Workflow milestone of the Article"""
|
37
|
+
|
38
|
+
|
39
|
+
class GetArticlePersonalizationRequest(BaseModel):
|
40
|
+
accept_language: Annotated[
|
41
|
+
AcceptLanguage,
|
42
|
+
pydantic.Field(alias="Accept-Language"),
|
43
|
+
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
44
|
+
]
|
45
|
+
r"""The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses)."""
|
46
|
+
|
47
|
+
portal_id: Annotated[
|
48
|
+
str,
|
49
|
+
pydantic.Field(alias="portalID"),
|
50
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
51
|
+
]
|
52
|
+
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."""
|
53
|
+
|
54
|
+
article_id: Annotated[
|
55
|
+
str,
|
56
|
+
pydantic.Field(alias="articleID"),
|
57
|
+
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
58
|
+
]
|
59
|
+
r"""The ID of the Article.<br><br>An Article ID is composed of a 2-4 letter prefix followed by a dash and 4-15 digits."""
|
60
|
+
|
61
|
+
language: Annotated[
|
62
|
+
Optional[LanguageQueryParameter],
|
63
|
+
pydantic.Field(alias="$lang"),
|
64
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
65
|
+
] = None
|
66
|
+
r"""The language that describes the details of a resource. Resources available in different languages may differ from each other.<li>If <code>lang</code> is not passed, then the portal's default language is used.</li>"""
|
67
|
+
|
68
|
+
workflow_milestone: Annotated[
|
69
|
+
Optional[GetArticlePersonalizationWorkflowMilestone],
|
70
|
+
pydantic.Field(alias="workflowMilestone"),
|
71
|
+
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
72
|
+
] = "publish"
|
73
|
+
r"""Workflow milestone of the Article"""
|