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.
Files changed (332) hide show
  1. egain_api_python/__init__.py +17 -0
  2. egain_api_python/_hooks/__init__.py +5 -0
  3. egain_api_python/_hooks/registration.py +13 -0
  4. egain_api_python/_hooks/sdkhooks.py +76 -0
  5. egain_api_python/_hooks/types.py +112 -0
  6. egain_api_python/_version.py +15 -0
  7. egain_api_python/aiservices.py +23 -0
  8. egain_api_python/answers.py +281 -0
  9. egain_api_python/articlelists.py +469 -0
  10. egain_api_python/basesdk.py +368 -0
  11. egain_api_python/connectorssearchevents.py +537 -0
  12. egain_api_python/content.py +23 -0
  13. egain_api_python/errors/__init__.py +78 -0
  14. egain_api_python/errors/egaindefaulterror.py +40 -0
  15. egain_api_python/errors/egainerror.py +30 -0
  16. egain_api_python/errors/gethealthop.py +74 -0
  17. egain_api_python/errors/no_response_error.py +17 -0
  18. egain_api_python/errors/responsevalidationerror.py +27 -0
  19. egain_api_python/errors/schemas_wserrorcommon.py +51 -0
  20. egain_api_python/errors/wserrorcommon.py +49 -0
  21. egain_api_python/escalation.py +955 -0
  22. egain_api_python/export.py +487 -0
  23. egain_api_python/federatedsearchevent.py +287 -0
  24. egain_api_python/general.py +925 -0
  25. egain_api_python/guidedhelp.py +3373 -0
  26. egain_api_python/health.py +253 -0
  27. egain_api_python/httpclient.py +125 -0
  28. egain_api_python/import_.py +1161 -0
  29. egain_api_python/models/__init__.py +2136 -0
  30. egain_api_python/models/acceptghsolutionop.py +52 -0
  31. egain_api_python/models/acceptlanguage.py +23 -0
  32. egain_api_python/models/accessibleportal.py +37 -0
  33. egain_api_python/models/action.py +56 -0
  34. egain_api_python/models/actionsearch.py +92 -0
  35. egain_api_python/models/addasreferenceop.py +52 -0
  36. egain_api_python/models/addbookmarkop.py +43 -0
  37. egain_api_python/models/additionalsnippets.py +57 -0
  38. egain_api_python/models/addtoreplyop.py +52 -0
  39. egain_api_python/models/aisearchop.py +131 -0
  40. egain_api_python/models/aisearchresponse.py +67 -0
  41. egain_api_python/models/allaccessibleportals.py +28 -0
  42. egain_api_python/models/answer.py +21 -0
  43. egain_api_python/models/answeredquestion.py +125 -0
  44. egain_api_python/models/answerrange.py +41 -0
  45. egain_api_python/models/answersrequest.py +78 -0
  46. egain_api_python/models/answersresponse.py +93 -0
  47. egain_api_python/models/article.py +241 -0
  48. egain_api_python/models/articleactivitylink.py +62 -0
  49. egain_api_python/models/articleadditionalattributes.py +23 -0
  50. egain_api_python/models/articleaisearchresult.py +254 -0
  51. egain_api_python/models/articleattachment.py +44 -0
  52. egain_api_python/models/articlelist.py +48 -0
  53. egain_api_python/models/articlelistresult.py +38 -0
  54. egain_api_python/models/articlelistsresult.py +22 -0
  55. egain_api_python/models/articlepermissions.py +25 -0
  56. egain_api_python/models/articlepermissionsresult.py +27 -0
  57. egain_api_python/models/articlerating.py +51 -0
  58. egain_api_python/models/articleratingsresponse.py +28 -0
  59. egain_api_python/models/articleresult.py +159 -0
  60. egain_api_python/models/articleresultadditionalattributes.py +22 -0
  61. egain_api_python/models/articleresults.py +32 -0
  62. egain_api_python/models/articlesearchresult.py +243 -0
  63. egain_api_python/models/articlesearchresults.py +32 -0
  64. egain_api_python/models/articlesort.py +11 -0
  65. egain_api_python/models/articlesortorder.py +11 -0
  66. egain_api_python/models/articletype.py +56 -0
  67. egain_api_python/models/articlewitheditions.py +227 -0
  68. egain_api_python/models/attachment.py +31 -0
  69. egain_api_python/models/attachmentadditionalattributes.py +10 -0
  70. egain_api_python/models/attachmentcontent.py +57 -0
  71. egain_api_python/models/attachmentcontentresult.py +22 -0
  72. egain_api_python/models/attachmentforcreatesuggestion.py +25 -0
  73. egain_api_python/models/attachments.py +35 -0
  74. egain_api_python/models/attachmentsummary.py +37 -0
  75. egain_api_python/models/attachmentupload.py +20 -0
  76. egain_api_python/models/avertcustomerescalationop.py +44 -0
  77. egain_api_python/models/bookmark.py +57 -0
  78. egain_api_python/models/bookmarkresult.py +26 -0
  79. egain_api_python/models/bookmarkstatus.py +34 -0
  80. egain_api_python/models/case.py +158 -0
  81. egain_api_python/models/caseadditionalattributes.py +11 -0
  82. egain_api_python/models/caseanswer.py +21 -0
  83. egain_api_python/models/casebase.py +67 -0
  84. egain_api_python/models/casebaseresult.py +28 -0
  85. egain_api_python/models/casebasesearchsettings.py +26 -0
  86. egain_api_python/models/caselistresult.py +74 -0
  87. egain_api_python/models/caselistresults.py +28 -0
  88. egain_api_python/models/casequestion.py +16 -0
  89. egain_api_python/models/casequestiondetail.py +29 -0
  90. egain_api_python/models/casesearch.py +80 -0
  91. egain_api_python/models/clusterid.py +16 -0
  92. egain_api_python/models/clusterresult.py +37 -0
  93. egain_api_python/models/clusterresults.py +28 -0
  94. egain_api_python/models/comment.py +33 -0
  95. egain_api_python/models/comments.py +26 -0
  96. egain_api_python/models/completecustomerescalationop.py +44 -0
  97. egain_api_python/models/compliancearticleresult.py +166 -0
  98. egain_api_python/models/compliancearticleresultadditionalattributes.py +22 -0
  99. egain_api_python/models/compliancearticleresults.py +35 -0
  100. egain_api_python/models/complianceforarticle.py +59 -0
  101. egain_api_python/models/complyarticleop.py +40 -0
  102. egain_api_python/models/components_schemas_tag.py +25 -0
  103. egain_api_python/models/components_schemas_tagcategory.py +39 -0
  104. egain_api_python/models/components_schemas_taggroup.py +25 -0
  105. egain_api_python/models/configurableattribute.py +25 -0
  106. egain_api_python/models/configurableattributes.py +15 -0
  107. egain_api_python/models/contactperson.py +43 -0
  108. egain_api_python/models/contacts.py +21 -0
  109. egain_api_python/models/createbookmark.py +64 -0
  110. egain_api_python/models/createdby.py +37 -0
  111. egain_api_python/models/createfederatedsearchevent.py +85 -0
  112. egain_api_python/models/createfederatedsearchresulteventop.py +46 -0
  113. egain_api_python/models/createimportop.py +20 -0
  114. egain_api_python/models/createimportvalidationop.py +20 -0
  115. egain_api_python/models/createquickpick.py +34 -0
  116. egain_api_python/models/createquickpickop.py +55 -0
  117. egain_api_python/models/createsearchresulteventforconnectors.py +71 -0
  118. egain_api_python/models/createsearchresulteventforconnectorsop.py +48 -0
  119. egain_api_python/models/createsignedurlop.py +29 -0
  120. egain_api_python/models/createsuggestion.py +126 -0
  121. egain_api_python/models/createviewedsearchresulteventforconnectors.py +76 -0
  122. egain_api_python/models/createviewedsearchresultseventforconnectorsop.py +48 -0
  123. egain_api_python/models/customattribute.py +35 -0
  124. egain_api_python/models/deletebookmarkop.py +40 -0
  125. egain_api_python/models/deletesuggestionop.py +40 -0
  126. egain_api_python/models/department.py +21 -0
  127. egain_api_python/models/detailfield.py +32 -0
  128. egain_api_python/models/displayfield.py +27 -0
  129. egain_api_python/models/dynamiccluster.py +21 -0
  130. egain_api_python/models/dynamicsearch.py +40 -0
  131. egain_api_python/models/edition.py +79 -0
  132. egain_api_python/models/editionwithcontent.py +68 -0
  133. egain_api_python/models/email.py +21 -0
  134. egain_api_python/models/exportcontentop.py +14 -0
  135. egain_api_python/models/exportstatus.py +106 -0
  136. egain_api_python/models/exportstatusop.py +31 -0
  137. egain_api_python/models/feedbackarticleforsuggestion.py +34 -0
  138. egain_api_python/models/folderbreadcrumb.py +24 -0
  139. egain_api_python/models/foldersummary.py +29 -0
  140. egain_api_python/models/getacknowledgedcompliancearticlesop.py +119 -0
  141. egain_api_python/models/getallarticlelistsop.py +47 -0
  142. egain_api_python/models/getallcasebasesreleasesop.py +65 -0
  143. egain_api_python/models/getallcasesop.py +83 -0
  144. egain_api_python/models/getallportalsop.py +60 -0
  145. egain_api_python/models/getallprofilesinportalop.py +64 -0
  146. egain_api_python/models/getallquickpicksop.py +83 -0
  147. egain_api_python/models/getalltopicsop.py +132 -0
  148. egain_api_python/models/getalluserprofilesop.py +47 -0
  149. egain_api_python/models/getancestortopicsop.py +133 -0
  150. egain_api_python/models/getannouncementarticlesop.py +134 -0
  151. egain_api_python/models/getarticleattachmentbyidop.py +31 -0
  152. egain_api_python/models/getarticlebyidop.py +257 -0
  153. egain_api_python/models/getarticlebyidwitheditionsop.py +46 -0
  154. egain_api_python/models/getarticleeditiondetailsop.py +55 -0
  155. egain_api_python/models/getarticlelistdetailsop.py +115 -0
  156. egain_api_python/models/getarticlepermissionsbyidop.py +40 -0
  157. egain_api_python/models/getarticlepersonalizationop.py +73 -0
  158. egain_api_python/models/getarticleratingsop.py +74 -0
  159. egain_api_python/models/getarticlesintopicop.py +172 -0
  160. egain_api_python/models/getattachmentbyidinportalop.py +56 -0
  161. egain_api_python/models/getbookmarkop.py +31 -0
  162. egain_api_python/models/getcasebasereleasebyidop.py +64 -0
  163. egain_api_python/models/getcasebyidop.py +75 -0
  164. egain_api_python/models/getchildtopicsop.py +150 -0
  165. egain_api_python/models/getclusterbycasebasereleaseidop.py +74 -0
  166. egain_api_python/models/gethealthop.py +130 -0
  167. egain_api_python/models/getimportcontentop.py +46 -0
  168. egain_api_python/models/getmyportalsop.py +97 -0
  169. egain_api_python/models/getmysubscriptionop.py +115 -0
  170. egain_api_python/models/getpendingcompliancearticlesop.py +119 -0
  171. egain_api_python/models/getpopulararticlesop.py +133 -0
  172. egain_api_python/models/getportaldetailsbyidop.py +47 -0
  173. egain_api_python/models/getrelatedarticlesforsuggestionop.py +96 -0
  174. egain_api_python/models/getrelatedarticlesop.py +143 -0
  175. egain_api_python/models/getsuggestionattachmentbyidop.py +76 -0
  176. egain_api_python/models/getsuggestionattachmentsop.py +40 -0
  177. egain_api_python/models/getsuggestioncommentsop.py +40 -0
  178. egain_api_python/models/getsuggestionop.py +107 -0
  179. egain_api_python/models/gettagcategoriesforinterestforportalop.py +46 -0
  180. egain_api_python/models/gettopicbreadcrumbforarticleop.py +55 -0
  181. egain_api_python/models/getuserdetailsop.py +22 -0
  182. egain_api_python/models/getusermilestonesop.py +22 -0
  183. egain_api_python/models/ghsearchrequest.py +67 -0
  184. egain_api_python/models/ghsearchresult.py +75 -0
  185. egain_api_python/models/ghstepsearchrequest.py +64 -0
  186. egain_api_python/models/image.py +17 -0
  187. egain_api_python/models/importcontent.py +79 -0
  188. egain_api_python/models/importstatus.py +29 -0
  189. egain_api_python/models/kblanguage.py +63 -0
  190. egain_api_python/models/kblanguagecode.py +48 -0
  191. egain_api_python/models/kblanguages.py +22 -0
  192. egain_api_python/models/knowledgeexport.py +237 -0
  193. egain_api_python/models/l10nstring.py +22 -0
  194. egain_api_python/models/languagecode.py +39 -0
  195. egain_api_python/models/languagecode_parameter.py +39 -0
  196. egain_api_python/models/languagequeryparameter.py +39 -0
  197. egain_api_python/models/link.py +25 -0
  198. egain_api_python/models/makesuggestionop.py +44 -0
  199. egain_api_python/models/mandatorylanguagequeryparameter.py +38 -0
  200. egain_api_python/models/metadata.py +29 -0
  201. egain_api_python/models/milestone.py +21 -0
  202. egain_api_python/models/milestonename.py +26 -0
  203. egain_api_python/models/milestones.py +21 -0
  204. egain_api_python/models/modifiedby.py +37 -0
  205. egain_api_python/models/modifysuggestion.py +78 -0
  206. egain_api_python/models/modifysuggestionsop.py +44 -0
  207. egain_api_python/models/optionalarticleattributes.py +20 -0
  208. egain_api_python/models/order.py +10 -0
  209. egain_api_python/models/ownedby.py +37 -0
  210. egain_api_python/models/paginationinfo.py +32 -0
  211. egain_api_python/models/patchimportcontentvalidationop.py +46 -0
  212. egain_api_python/models/personalization.py +67 -0
  213. egain_api_python/models/phone.py +21 -0
  214. egain_api_python/models/portal.py +102 -0
  215. egain_api_python/models/portalresult.py +28 -0
  216. egain_api_python/models/portalsettings.py +398 -0
  217. egain_api_python/models/post_portalid_answersop.py +88 -0
  218. egain_api_python/models/post_portalid_retrieveop.py +88 -0
  219. egain_api_python/models/profile.py +26 -0
  220. egain_api_python/models/profileresult.py +24 -0
  221. egain_api_python/models/publishprofile.py +30 -0
  222. egain_api_python/models/publishview.py +38 -0
  223. egain_api_python/models/question.py +101 -0
  224. egain_api_python/models/questionandanswer.py +26 -0
  225. egain_api_python/models/quickpickrating.py +32 -0
  226. egain_api_python/models/quickpickresult.py +38 -0
  227. egain_api_python/models/quickpickresults.py +28 -0
  228. egain_api_python/models/ratearticleop.py +71 -0
  229. egain_api_python/models/referenceresponse.py +80 -0
  230. egain_api_python/models/rejectghsolutionop.py +52 -0
  231. egain_api_python/models/relatedquestions.py +28 -0
  232. egain_api_python/models/resourcetype_parameter.py +10 -0
  233. egain_api_python/models/restorequickpickop.py +63 -0
  234. egain_api_python/models/retrieverequest.py +47 -0
  235. egain_api_python/models/retrieveresponse.py +96 -0
  236. egain_api_python/models/role.py +26 -0
  237. egain_api_python/models/roletemplate.py +25 -0
  238. egain_api_python/models/schemas_answer.py +94 -0
  239. egain_api_python/models/schemas_customattribute.py +35 -0
  240. egain_api_python/models/schemas_link.py +27 -0
  241. egain_api_python/models/schemas_tag.py +21 -0
  242. egain_api_python/models/schemas_tagcategory.py +75 -0
  243. egain_api_python/models/schemas_taggroup.py +31 -0
  244. egain_api_python/models/schemas_tags.py +19 -0
  245. egain_api_python/models/schemas_wserrorcommon.py +17 -0
  246. egain_api_python/models/searchfilterattribute.py +61 -0
  247. egain_api_python/models/searchpriortoescalationop.py +108 -0
  248. egain_api_python/models/searchresult.py +101 -0
  249. egain_api_python/models/searchsuggestionop.py +93 -0
  250. egain_api_python/models/security.py +25 -0
  251. egain_api_python/models/selectuserprofileop.py +44 -0
  252. egain_api_python/models/sessioncontextvariable.py +17 -0
  253. egain_api_python/models/shorturl.py +32 -0
  254. egain_api_python/models/sortidname.py +10 -0
  255. egain_api_python/models/sortidnamedepartment.py +11 -0
  256. egain_api_python/models/stage.py +26 -0
  257. egain_api_python/models/startcustomerescalationop.py +66 -0
  258. egain_api_python/models/startescalationrequest.py +94 -0
  259. egain_api_python/models/startghsearchop.py +74 -0
  260. egain_api_python/models/startquestionandanswer.py +26 -0
  261. egain_api_python/models/stepghsearchop.py +62 -0
  262. egain_api_python/models/stringattributevalue.py +30 -0
  263. egain_api_python/models/structuredauthoringfields.py +33 -0
  264. egain_api_python/models/subscribearticleop.py +40 -0
  265. egain_api_python/models/suggestion.py +190 -0
  266. egain_api_python/models/suggestionadditionalattributes.py +11 -0
  267. egain_api_python/models/suggestionattachment.py +46 -0
  268. egain_api_python/models/suggestions.py +28 -0
  269. egain_api_python/models/tag.py +17 -0
  270. egain_api_python/models/tagcategoriesforinterest.py +22 -0
  271. egain_api_python/models/tagcategory.py +34 -0
  272. egain_api_python/models/taggroup.py +17 -0
  273. egain_api_python/models/taggroups.py +20 -0
  274. egain_api_python/models/tags.py +17 -0
  275. egain_api_python/models/topic.py +113 -0
  276. egain_api_python/models/topicadditionalattributes.py +20 -0
  277. egain_api_python/models/topicaisearchresult.py +67 -0
  278. egain_api_python/models/topicbreadcrumb.py +24 -0
  279. egain_api_python/models/topicresult.py +26 -0
  280. egain_api_python/models/topicsummary.py +31 -0
  281. egain_api_python/models/topictreenode.py +27 -0
  282. egain_api_python/models/topictreeresult.py +28 -0
  283. egain_api_python/models/unsubscribearticleop.py +55 -0
  284. egain_api_python/models/uploadattachmentop.py +36 -0
  285. egain_api_python/models/userdetails.py +44 -0
  286. egain_api_python/models/userprofile.py +33 -0
  287. egain_api_python/models/userprofiles.py +21 -0
  288. egain_api_python/models/userview.py +33 -0
  289. egain_api_python/models/validateimportcontent.py +58 -0
  290. egain_api_python/models/virtualcase.py +52 -0
  291. egain_api_python/models/workflow.py +21 -0
  292. egain_api_python/models/workflowmilestone.py +11 -0
  293. egain_api_python/models/wserrorcommon.py +17 -0
  294. egain_api_python/populararticles.py +287 -0
  295. egain_api_python/portal_article.py +4935 -0
  296. egain_api_python/portal_attachment.py +494 -0
  297. egain_api_python/portal_bookmark.py +707 -0
  298. egain_api_python/portal_sdk.py +88 -0
  299. egain_api_python/portal_suggestion.py +2283 -0
  300. egain_api_python/portal_topic.py +975 -0
  301. egain_api_python/portal_userdetails.py +211 -0
  302. egain_api_python/portal_userprofile.py +431 -0
  303. egain_api_python/py.typed +1 -0
  304. egain_api_python/retrieve.py +265 -0
  305. egain_api_python/sdk.py +216 -0
  306. egain_api_python/sdkconfiguration.py +50 -0
  307. egain_api_python/search.py +251 -0
  308. egain_api_python/types/__init__.py +21 -0
  309. egain_api_python/types/basemodel.py +39 -0
  310. egain_api_python/usermilestones.py +219 -0
  311. egain_api_python/utils/__init__.py +200 -0
  312. egain_api_python/utils/annotations.py +79 -0
  313. egain_api_python/utils/datetimes.py +23 -0
  314. egain_api_python/utils/enums.py +74 -0
  315. egain_api_python/utils/eventstreaming.py +248 -0
  316. egain_api_python/utils/forms.py +223 -0
  317. egain_api_python/utils/headers.py +136 -0
  318. egain_api_python/utils/logger.py +27 -0
  319. egain_api_python/utils/metadata.py +118 -0
  320. egain_api_python/utils/queryparams.py +205 -0
  321. egain_api_python/utils/requestbodies.py +66 -0
  322. egain_api_python/utils/retries.py +217 -0
  323. egain_api_python/utils/security.py +192 -0
  324. egain_api_python/utils/serializers.py +249 -0
  325. egain_api_python/utils/unmarshal_json_response.py +24 -0
  326. egain_api_python/utils/url.py +155 -0
  327. egain_api_python/utils/values.py +137 -0
  328. egain_api_python-0.1.1.dist-info/METADATA +827 -0
  329. egain_api_python-0.1.1.dist-info/RECORD +332 -0
  330. egain_api_python-0.1.1.dist-info/WHEEL +5 -0
  331. egain_api_python-0.1.1.dist-info/licenses/LICENSE +21 -0
  332. egain_api_python-0.1.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,48 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from typing import Literal
5
+
6
+
7
+ KbLanguageCode = Literal[
8
+ "en-US",
9
+ "en-GB",
10
+ "fr-FR",
11
+ "es-ES",
12
+ "it-IT",
13
+ "de-DE",
14
+ "nl-NL",
15
+ "pt-BR",
16
+ "pt-PT",
17
+ "da-DK",
18
+ "sv-SE",
19
+ "ru-RU",
20
+ "fr-CA",
21
+ "zh-CN",
22
+ "ja-JP",
23
+ "ko-KR",
24
+ "nn-NO",
25
+ ]
26
+ r"""A short language code. A list of codes can be found below:
27
+
28
+ |Code|Description
29
+ |----|-----------
30
+ |en-US|English (United States)
31
+ |en-GB|English (United Kingdom)
32
+ |fr-FR|French (France)
33
+ |es-ES|Spanish (Spain)
34
+ |it-IT|Italian (Italy)
35
+ |de-DE|German (Germany)
36
+ |nl-NL|Dutch (Netherlands)
37
+ |pt-BR|Portuguese (Brazil)
38
+ |pt-PT|Portuguese (Portugal)
39
+ |da-DK|Danish (Denmark)
40
+ |sv-SE|Swedish (Sweden)
41
+ |ru-RU|Russian (Russia)
42
+ |fr-CA|French (Canada)
43
+ |zh-CN|Chinese (Simplified, China)
44
+ |ja-JP|Japanese (Japan)
45
+ |ko-KR|Korean (South Korea)
46
+ |nn-NO|Norwegian Nynorsk (Norway)
47
+
48
+ """
@@ -0,0 +1,22 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .kblanguage import KbLanguage, KbLanguageTypedDict
5
+ from egain_api_python.types import BaseModel
6
+ import pydantic
7
+ from typing import List, Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class KbLanguagesTypedDict(TypedDict):
12
+ r"""KB languages"""
13
+
14
+ kb_language: NotRequired[List[KbLanguageTypedDict]]
15
+
16
+
17
+ class KbLanguages(BaseModel):
18
+ r"""KB languages"""
19
+
20
+ kb_language: Annotated[
21
+ Optional[List[KbLanguage]], pydantic.Field(alias="KbLanguage")
22
+ ] = None
@@ -0,0 +1,237 @@
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 List, Literal, Optional
7
+ from typing_extensions import Annotated, NotRequired, TypedDict
8
+
9
+
10
+ ArticleCategories = Literal[
11
+ "searchable",
12
+ "all",
13
+ ]
14
+ r"""Category of articles to return. All includes browsable and searchable."""
15
+
16
+
17
+ KnowledgeExportCode = Literal[
18
+ "en-US",
19
+ "es-ES",
20
+ "fr-FR",
21
+ "it-IT",
22
+ "de-DE",
23
+ "nl-NL",
24
+ "pt-BR",
25
+ "pt-PT",
26
+ "da-DK",
27
+ "ru-RU",
28
+ "fr-CA",
29
+ "zh-CN",
30
+ "ja-JP",
31
+ "ko-KR",
32
+ "sv-SE",
33
+ ]
34
+ r"""The code of the language."""
35
+
36
+
37
+ class KnowledgeExportLanguageTypedDict(TypedDict):
38
+ r"""The Knowledge Base language in which the content is created."""
39
+
40
+ code: KnowledgeExportCode
41
+ r"""The code of the language."""
42
+
43
+
44
+ class KnowledgeExportLanguage(BaseModel):
45
+ r"""The Knowledge Base language in which the content is created."""
46
+
47
+ code: KnowledgeExportCode
48
+ r"""The code of the language."""
49
+
50
+
51
+ KnowledgeExportResourceType = Literal[
52
+ "articles",
53
+ "topics",
54
+ "portals",
55
+ "all",
56
+ ]
57
+
58
+
59
+ DestinationType = Literal[
60
+ "AWS S3 bucket",
61
+ "Shared file path",
62
+ ]
63
+ r"""Type of data destination"""
64
+
65
+
66
+ class KnowledgeExportCredentialsTypedDict(TypedDict):
67
+ access_key: NotRequired[str]
68
+ secret_key: NotRequired[str]
69
+
70
+
71
+ class KnowledgeExportCredentials(BaseModel):
72
+ access_key: Annotated[Optional[str], pydantic.Field(alias="accessKey")] = None
73
+
74
+ secret_key: Annotated[Optional[str], pydantic.Field(alias="secretKey")] = None
75
+
76
+
77
+ class DataDestinationTypedDict(TypedDict):
78
+ destination_type: DestinationType
79
+ r"""Type of data destination"""
80
+ path: str
81
+ r"""Path of the data destination"""
82
+ region: NotRequired[str]
83
+ r"""Region of the data destination"""
84
+ credentials: NotRequired[KnowledgeExportCredentialsTypedDict]
85
+
86
+
87
+ class DataDestination(BaseModel):
88
+ destination_type: Annotated[
89
+ DestinationType, pydantic.Field(alias="destinationType")
90
+ ]
91
+ r"""Type of data destination"""
92
+
93
+ path: str
94
+ r"""Path of the data destination"""
95
+
96
+ region: Optional[str] = None
97
+ r"""Region of the data destination"""
98
+
99
+ credentials: Optional[KnowledgeExportCredentials] = None
100
+
101
+
102
+ class KnowledgeExportTypedDict(TypedDict):
103
+ portal_id: str
104
+ 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."""
105
+ language: KnowledgeExportLanguageTypedDict
106
+ r"""The Knowledge Base language in which the content is created."""
107
+ resource_types: List[KnowledgeExportResourceType]
108
+ r"""Types of Knowledge Hub resources to export. Multiple values can be specified using a comma-separated list. Details of a single portal are exported.
109
+ Articles whose state is Published are returned.
110
+ | Portal Attribute Name | Description
111
+ | ------------------------------- | -----------
112
+ | id | The ID of the Portal in Readable format.
113
+ | alternateId | The system-generated ID of the Portal in long format.
114
+ | name | The name of the Portal.
115
+ | description | The Portal's description.
116
+ | departmentId | ID of the department this Portal belongs to.
117
+ | defaultContentLanguageId | The default ID of the language for the portal content.
118
+
119
+ | Topic Attribute Name | Description
120
+ | ------------------------------ | -----------
121
+ | id | The ID of the Topic in Readable form.
122
+ | alternateId | The system-generated ID of the Topic in long form.
123
+ | name | The name of the Topic.
124
+ | departmentId | ID of the department this Topic belongs to.
125
+ | modifiedDate | The date when the Topic was last modified on.
126
+ | topicHomeArticleId | The ID of the Article used as the home page of this Topic.
127
+ | childCount | Total number of children sub-topis below the current Topic.
128
+ | subTopicIds | Array with the list of sub-topics (all levels of the topic hierarchy).
129
+ | parentTopicId | ID of the parent Topic. -1 if it is the root Topic.
130
+ | imageURL | URL of the inline Topic image.
131
+ | customAttributes | One or more comma-separated names for Topic custom attributes defined by the user to be returned.
132
+
133
+ | Article Attribute Name | Description
134
+ | ---------------------- | -----------
135
+ | id | The ID of the Article in Readable form.
136
+ | alternateId | The system-generated ID of the Article in long form.
137
+ | name | The name of the Article.
138
+ | additionalInfo | Additional information provided as Article metadata.
139
+ | type | The Article type object and its attributes.
140
+ | keywords | A comma-separated list of keywords associated with this Article, provided as metadata.
141
+ | summary | A brief summary of the Article, provided as metadata.
142
+ | state | The state of the Article. State P (Published).
143
+ | departmentId | ID of the department this Article belongs to.
144
+ | description | The description of the Article.
145
+ | imageURL | The URL of the image that is present in the Article version. It is used as the thumbnail image for the Article.
146
+ | attachements | The Article's uploaded attachments and their IDs.
147
+ | includeInGenAI | Indicates whether this Article is used for eGain's generative AI features.
148
+ | topicBreadcrumb | Contains a list of topics from the top-level topic to this Article. There may be multiple paths.
149
+ | versionId | The ID of the Article version that is returned.
150
+ | expirationDate | The date that the Article is set to expire.
151
+ | averageRating | Average rating of the Article.
152
+ | timesRated | Number or times the Article was rated.
153
+ | availabilityDate | The date the Article is set to be available.
154
+ | articleMacro | The macro of the Article.
155
+ | content | path to the Article content in .html format.
156
+ | customAttributes | One or more comma-separated names for Article custom attributes defined by the user to be returned.
157
+ | personalization | Article personalization details, incuding tag categories.
158
+ | editions | The editions of the Article, including the publish profile (view) associated with each edition.
159
+
160
+ """
161
+ data_destination: DataDestinationTypedDict
162
+ article_categories: NotRequired[ArticleCategories]
163
+ r"""Category of articles to return. All includes browsable and searchable."""
164
+
165
+
166
+ class KnowledgeExport(BaseModel):
167
+ portal_id: Annotated[str, pydantic.Field(alias="portalID")]
168
+ 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."""
169
+
170
+ language: KnowledgeExportLanguage
171
+ r"""The Knowledge Base language in which the content is created."""
172
+
173
+ resource_types: Annotated[
174
+ List[KnowledgeExportResourceType], pydantic.Field(alias="resourceTypes")
175
+ ]
176
+ r"""Types of Knowledge Hub resources to export. Multiple values can be specified using a comma-separated list. Details of a single portal are exported.
177
+ Articles whose state is Published are returned.
178
+ | Portal Attribute Name | Description
179
+ | ------------------------------- | -----------
180
+ | id | The ID of the Portal in Readable format.
181
+ | alternateId | The system-generated ID of the Portal in long format.
182
+ | name | The name of the Portal.
183
+ | description | The Portal's description.
184
+ | departmentId | ID of the department this Portal belongs to.
185
+ | defaultContentLanguageId | The default ID of the language for the portal content.
186
+
187
+ | Topic Attribute Name | Description
188
+ | ------------------------------ | -----------
189
+ | id | The ID of the Topic in Readable form.
190
+ | alternateId | The system-generated ID of the Topic in long form.
191
+ | name | The name of the Topic.
192
+ | departmentId | ID of the department this Topic belongs to.
193
+ | modifiedDate | The date when the Topic was last modified on.
194
+ | topicHomeArticleId | The ID of the Article used as the home page of this Topic.
195
+ | childCount | Total number of children sub-topis below the current Topic.
196
+ | subTopicIds | Array with the list of sub-topics (all levels of the topic hierarchy).
197
+ | parentTopicId | ID of the parent Topic. -1 if it is the root Topic.
198
+ | imageURL | URL of the inline Topic image.
199
+ | customAttributes | One or more comma-separated names for Topic custom attributes defined by the user to be returned.
200
+
201
+ | Article Attribute Name | Description
202
+ | ---------------------- | -----------
203
+ | id | The ID of the Article in Readable form.
204
+ | alternateId | The system-generated ID of the Article in long form.
205
+ | name | The name of the Article.
206
+ | additionalInfo | Additional information provided as Article metadata.
207
+ | type | The Article type object and its attributes.
208
+ | keywords | A comma-separated list of keywords associated with this Article, provided as metadata.
209
+ | summary | A brief summary of the Article, provided as metadata.
210
+ | state | The state of the Article. State P (Published).
211
+ | departmentId | ID of the department this Article belongs to.
212
+ | description | The description of the Article.
213
+ | imageURL | The URL of the image that is present in the Article version. It is used as the thumbnail image for the Article.
214
+ | attachements | The Article's uploaded attachments and their IDs.
215
+ | includeInGenAI | Indicates whether this Article is used for eGain's generative AI features.
216
+ | topicBreadcrumb | Contains a list of topics from the top-level topic to this Article. There may be multiple paths.
217
+ | versionId | The ID of the Article version that is returned.
218
+ | expirationDate | The date that the Article is set to expire.
219
+ | averageRating | Average rating of the Article.
220
+ | timesRated | Number or times the Article was rated.
221
+ | availabilityDate | The date the Article is set to be available.
222
+ | articleMacro | The macro of the Article.
223
+ | content | path to the Article content in .html format.
224
+ | customAttributes | One or more comma-separated names for Article custom attributes defined by the user to be returned.
225
+ | personalization | Article personalization details, incuding tag categories.
226
+ | editions | The editions of the Article, including the publish profile (view) associated with each edition.
227
+
228
+ """
229
+
230
+ data_destination: Annotated[
231
+ DataDestination, pydantic.Field(alias="dataDestination")
232
+ ]
233
+
234
+ article_categories: Annotated[
235
+ Optional[ArticleCategories], pydantic.Field(alias="articleCategories")
236
+ ] = "searchable"
237
+ r"""Category of articles to return. All includes browsable and searchable."""
@@ -0,0 +1,22 @@
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 L10NStringTypedDict(TypedDict):
11
+ value: NotRequired[str]
12
+ r"""A string that indicates the value."""
13
+ display_value: NotRequired[str]
14
+ r"""Localized string of the value element."""
15
+
16
+
17
+ class L10NString(BaseModel):
18
+ value: Optional[str] = None
19
+ r"""A string that indicates the value."""
20
+
21
+ display_value: Annotated[Optional[str], pydantic.Field(alias="displayValue")] = None
22
+ r"""Localized string of the value element."""
@@ -0,0 +1,39 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from typing import Literal
5
+
6
+
7
+ LanguageCode = Literal[
8
+ "en-US",
9
+ "fr-FR",
10
+ "en-GB",
11
+ "es-ES",
12
+ "it-IT",
13
+ "nl-NL",
14
+ "da-DA",
15
+ "sv-SE",
16
+ "pt-PT",
17
+ "fi-FI",
18
+ "no-NB",
19
+ "no-NN",
20
+ "ja-JA",
21
+ "de-DE",
22
+ "pt-BR",
23
+ "zh-CN",
24
+ "zh-TW",
25
+ "ko-KO",
26
+ "ru-RU",
27
+ "el-EL",
28
+ "tr-TR",
29
+ "pl-PL",
30
+ "cs-CS",
31
+ "sk-SK",
32
+ "hu-HU",
33
+ "sr-SR",
34
+ "ar-SA",
35
+ "hr-HR",
36
+ "ro-RO",
37
+ "th-TH",
38
+ ]
39
+ r"""Language code of the resource's language."""
@@ -0,0 +1,39 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from typing import Literal
5
+
6
+
7
+ LanguageCodeParameter = Literal[
8
+ "en-US",
9
+ "fr-FR",
10
+ "en-GB",
11
+ "es-ES",
12
+ "it-IT",
13
+ "nl-NL",
14
+ "da-DA",
15
+ "sv-SE",
16
+ "pt-PT",
17
+ "fi-FI",
18
+ "no-NB",
19
+ "no-NN",
20
+ "ja-JA",
21
+ "de-DE",
22
+ "pt-BR",
23
+ "zh-CN",
24
+ "zh-TW",
25
+ "ko-KO",
26
+ "ru-RU",
27
+ "el-EL",
28
+ "tr-TR",
29
+ "pl-PL",
30
+ "cs-CS",
31
+ "sk-SK",
32
+ "hu-HU",
33
+ "sr-SR",
34
+ "ar-SA",
35
+ "hr-HR",
36
+ "ro-RO",
37
+ "th-TH",
38
+ "xx-XX",
39
+ ]
@@ -0,0 +1,39 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from typing import Literal
5
+
6
+
7
+ LanguageQueryParameter = Literal[
8
+ "en-US",
9
+ "fr-FR",
10
+ "en-GB",
11
+ "es-ES",
12
+ "it-IT",
13
+ "nl-NL",
14
+ "da-DA",
15
+ "sv-SE",
16
+ "pt-PT",
17
+ "fi-FI",
18
+ "no-NB",
19
+ "no-NN",
20
+ "ja-JA",
21
+ "de-DE",
22
+ "pt-BR",
23
+ "zh-CN",
24
+ "zh-TW",
25
+ "ko-KO",
26
+ "ru-RU",
27
+ "el-EL",
28
+ "tr-TR",
29
+ "pl-PL",
30
+ "cs-CS",
31
+ "sk-SK",
32
+ "hu-HU",
33
+ "sr-SR",
34
+ "ar-SA",
35
+ "hr-HR",
36
+ "ro-RO",
37
+ "th-TH",
38
+ "xx-XX",
39
+ ]
@@ -0,0 +1,25 @@
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 LinkTypedDict(TypedDict):
10
+ r"""Defines the relationship between this resource and another object."""
11
+
12
+ rel: NotRequired[str]
13
+ r"""Defines the relationship between a linked resource and the current object.<br><br>For example: *self*, *prev*, *next* or an object name such as *'user'*, *'folder'* etc."""
14
+ href: NotRequired[str]
15
+ r"""The URL that specifies the link's destination."""
16
+
17
+
18
+ class Link(BaseModel):
19
+ r"""Defines the relationship between this resource and another object."""
20
+
21
+ rel: Optional[str] = None
22
+ r"""Defines the relationship between a linked resource and the current object.<br><br>For example: *self*, *prev*, *next* or an object name such as *'user'*, *'folder'* etc."""
23
+
24
+ href: Optional[str] = None
25
+ r"""The URL that specifies the link's destination."""
@@ -0,0 +1,44 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .acceptlanguage import AcceptLanguage
5
+ from .createsuggestion import CreateSuggestion, CreateSuggestionTypedDict
6
+ from egain_api_python.types import BaseModel
7
+ from egain_api_python.utils import (
8
+ FieldMetadata,
9
+ HeaderMetadata,
10
+ PathParamMetadata,
11
+ RequestMetadata,
12
+ )
13
+ import pydantic
14
+ from typing import Optional
15
+ from typing_extensions import Annotated, NotRequired, TypedDict
16
+
17
+
18
+ class MakeSuggestionRequestTypedDict(TypedDict):
19
+ accept_language: AcceptLanguage
20
+ r"""The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses)."""
21
+ portal_id: str
22
+ 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."""
23
+ create_suggestion: NotRequired[CreateSuggestionTypedDict]
24
+
25
+
26
+ class MakeSuggestionRequest(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
+ portal_id: Annotated[
35
+ str,
36
+ pydantic.Field(alias="portalID"),
37
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
38
+ ]
39
+ 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."""
40
+
41
+ create_suggestion: Annotated[
42
+ Optional[CreateSuggestion],
43
+ FieldMetadata(request=RequestMetadata(media_type="application/json")),
44
+ ] = None
@@ -0,0 +1,38 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from typing import Literal
5
+
6
+
7
+ MandatoryLanguageQueryParameter = Literal[
8
+ "en-US",
9
+ "fr-FR",
10
+ "en-GB",
11
+ "es-ES",
12
+ "it-IT",
13
+ "nl-NL",
14
+ "da-DA",
15
+ "sv-SE",
16
+ "pt-PT",
17
+ "fi-FI",
18
+ "no-NB",
19
+ "no-NN",
20
+ "ja-JA",
21
+ "de-DE",
22
+ "pt-BR",
23
+ "zh-CN",
24
+ "zh-TW",
25
+ "ko-KO",
26
+ "ru-RU",
27
+ "el-EL",
28
+ "tr-TR",
29
+ "pl-PL",
30
+ "cs-CS",
31
+ "sk-SK",
32
+ "hu-HU",
33
+ "sr-SR",
34
+ "ar-SA",
35
+ "hr-HR",
36
+ "ro-RO",
37
+ "th-TH",
38
+ ]
@@ -0,0 +1,29 @@
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 MetadataTypedDict(TypedDict):
11
+ title: NotRequired[str]
12
+ r"""content of the title"""
13
+ additional_information: NotRequired[str]
14
+ r"""content of the additional information"""
15
+ action: NotRequired[str]
16
+ r"""content of the action"""
17
+
18
+
19
+ class Metadata(BaseModel):
20
+ title: Optional[str] = None
21
+ r"""content of the title"""
22
+
23
+ additional_information: Annotated[
24
+ Optional[str], pydantic.Field(alias="additionalInformation")
25
+ ] = None
26
+ r"""content of the additional information"""
27
+
28
+ action: Optional[str] = None
29
+ r"""content of the action"""
@@ -0,0 +1,21 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .milestonename import MilestoneName, MilestoneNameTypedDict
5
+ from egain_api_python.types import BaseModel
6
+ from typing import Optional
7
+ from typing_extensions import NotRequired, TypedDict
8
+
9
+
10
+ class MilestoneTypedDict(TypedDict):
11
+ r"""A resource's workflow milestone."""
12
+
13
+ name: NotRequired[MilestoneNameTypedDict]
14
+ r"""The identifiers of the milestone."""
15
+
16
+
17
+ class Milestone(BaseModel):
18
+ r"""A resource's workflow milestone."""
19
+
20
+ name: Optional[MilestoneName] = None
21
+ r"""The identifiers of the milestone."""
@@ -0,0 +1,26 @@
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 MilestoneNameTypedDict(TypedDict):
11
+ r"""The identifiers of the milestone."""
12
+
13
+ value: NotRequired[str]
14
+ r"""The name of the milestone."""
15
+ display_value: NotRequired[str]
16
+ r"""The readable name of the milestone."""
17
+
18
+
19
+ class MilestoneName(BaseModel):
20
+ r"""The identifiers of the milestone."""
21
+
22
+ value: Optional[str] = None
23
+ r"""The name of the milestone."""
24
+
25
+ display_value: Annotated[Optional[str], pydantic.Field(alias="displayValue")] = None
26
+ r"""The readable name of the milestone."""
@@ -0,0 +1,21 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .milestone import Milestone, MilestoneTypedDict
5
+ from egain_api_python.types import BaseModel
6
+ from typing import List, Optional
7
+ from typing_extensions import NotRequired, TypedDict
8
+
9
+
10
+ class MilestonesTypedDict(TypedDict):
11
+ r"""Success"""
12
+
13
+ milestone: NotRequired[List[MilestoneTypedDict]]
14
+ r"""milestones"""
15
+
16
+
17
+ class Milestones(BaseModel):
18
+ r"""Success"""
19
+
20
+ milestone: Optional[List[Milestone]] = None
21
+ r"""milestones"""