@egain/egain-mcp-server 1.0.26 → 1.1.0
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.
- package/README.md +20 -43
- package/bin/mcp-server.js +39534 -29516
- package/bin/mcp-server.js.map +298 -185
- package/esm/src/cloudflare-worker/cloudflare-worker.d.ts.map +1 -1
- package/esm/src/cloudflare-worker/cloudflare-worker.js +20 -9
- package/esm/src/cloudflare-worker/cloudflare-worker.js.map +1 -1
- package/esm/src/funcs/aiSearch.d.ts +63 -0
- package/esm/src/funcs/aiSearch.d.ts.map +1 -0
- package/esm/src/funcs/aiSearch.js +151 -0
- package/esm/src/funcs/aiSearch.js.map +1 -0
- package/esm/src/funcs/getAnnouncementArticles.d.ts +61 -0
- package/esm/src/funcs/getAnnouncementArticles.d.ts.map +1 -0
- package/esm/src/funcs/getAnnouncementArticles.js +152 -0
- package/esm/src/funcs/getAnnouncementArticles.js.map +1 -0
- package/esm/src/funcs/getAnnouncements.d.ts +39 -1
- package/esm/src/funcs/getAnnouncements.d.ts.map +1 -1
- package/esm/src/funcs/getAnnouncements.js +39 -1
- package/esm/src/funcs/getAnnouncements.js.map +1 -1
- package/esm/src/funcs/getArticle.d.ts +42 -0
- package/esm/src/funcs/getArticle.d.ts.map +1 -1
- package/esm/src/funcs/getArticle.js +42 -0
- package/esm/src/funcs/getArticle.js.map +1 -1
- package/esm/src/funcs/getArticleById.d.ts +70 -0
- package/esm/src/funcs/getArticleById.d.ts.map +1 -0
- package/esm/src/funcs/getArticleById.js +163 -0
- package/esm/src/funcs/getArticleById.js.map +1 -0
- package/esm/src/funcs/getBestAnswer.d.ts +66 -0
- package/esm/src/funcs/getBestAnswer.d.ts.map +1 -0
- package/esm/src/funcs/getBestAnswer.js +148 -0
- package/esm/src/funcs/getBestAnswer.js.map +1 -0
- package/esm/src/funcs/getMyPortals.d.ts +97 -0
- package/esm/src/funcs/getMyPortals.d.ts.map +1 -0
- package/esm/src/funcs/getMyPortals.js +180 -0
- package/esm/src/funcs/getMyPortals.js.map +1 -0
- package/esm/src/funcs/getPopularArticles.d.ts +39 -0
- package/esm/src/funcs/getPopularArticles.d.ts.map +1 -1
- package/esm/src/funcs/getPopularArticles.js +47 -3
- package/esm/src/funcs/getPopularArticles.js.map +1 -1
- package/esm/src/funcs/getPortals.d.ts +26 -1
- package/esm/src/funcs/getPortals.d.ts.map +1 -1
- package/esm/src/funcs/getPortals.js +35 -10
- package/esm/src/funcs/getPortals.js.map +1 -1
- package/esm/src/funcs/makeSuggestion.d.ts +46 -2
- package/esm/src/funcs/makeSuggestion.d.ts.map +1 -1
- package/esm/src/funcs/makeSuggestion.js +51 -3
- package/esm/src/funcs/makeSuggestion.js.map +1 -1
- package/esm/src/funcs/queryAnswers.d.ts +41 -5
- package/esm/src/funcs/queryAnswers.d.ts.map +1 -1
- package/esm/src/funcs/queryAnswers.js +41 -5
- package/esm/src/funcs/queryAnswers.js.map +1 -1
- package/esm/src/funcs/queryRetrieve.d.ts +41 -1
- package/esm/src/funcs/queryRetrieve.d.ts.map +1 -1
- package/esm/src/funcs/queryRetrieve.js +41 -1
- package/esm/src/funcs/queryRetrieve.js.map +1 -1
- package/esm/src/funcs/querySearch.d.ts +48 -1
- package/esm/src/funcs/querySearch.d.ts.map +1 -1
- package/esm/src/funcs/querySearch.js +48 -1
- package/esm/src/funcs/querySearch.js.map +1 -1
- package/esm/src/funcs/retrieveChunks.d.ts +41 -7
- package/esm/src/funcs/retrieveChunks.d.ts.map +1 -1
- package/esm/src/funcs/retrieveChunks.js +45 -19
- package/esm/src/funcs/retrieveChunks.js.map +1 -1
- package/esm/src/hooks/auth-hook.d.ts +1 -2
- package/esm/src/hooks/auth-hook.d.ts.map +1 -1
- package/esm/src/hooks/auth-hook.js +1 -65
- package/esm/src/hooks/auth-hook.js.map +1 -1
- package/esm/src/hooks/registration.d.ts.map +1 -1
- package/esm/src/hooks/registration.js +2 -16
- package/esm/src/hooks/registration.js.map +1 -1
- package/esm/src/landing-page.d.ts +5 -0
- package/esm/src/landing-page.d.ts.map +1 -0
- package/esm/src/landing-page.js +1070 -0
- package/esm/src/landing-page.js.map +1 -0
- package/esm/src/lib/base64.d.ts +2 -2
- package/esm/src/lib/base64.d.ts.map +1 -1
- package/esm/src/lib/base64.js +2 -2
- package/esm/src/lib/base64.js.map +1 -1
- package/esm/src/lib/config.d.ts +3 -3
- package/esm/src/lib/config.js +5 -5
- package/esm/src/lib/config.js.map +1 -1
- package/esm/src/lib/encodings.d.ts.map +1 -1
- package/esm/src/lib/encodings.js +10 -1
- package/esm/src/lib/encodings.js.map +1 -1
- package/esm/src/lib/matchers.d.ts.map +1 -1
- package/esm/src/lib/matchers.js +4 -1
- package/esm/src/lib/matchers.js.map +1 -1
- package/esm/src/lib/schemas.d.ts +4 -4
- package/esm/src/lib/schemas.d.ts.map +1 -1
- package/esm/src/lib/schemas.js +2 -2
- package/esm/src/lib/schemas.js.map +1 -1
- package/esm/src/lib/sdks.js +2 -2
- package/esm/src/lib/sdks.js.map +1 -1
- package/esm/src/lib/security.d.ts.map +1 -1
- package/esm/src/lib/security.js +18 -0
- package/esm/src/lib/security.js.map +1 -1
- package/esm/src/mcp-server/cli/start/command.d.ts.map +1 -1
- package/esm/src/mcp-server/cli/start/command.js +30 -0
- package/esm/src/mcp-server/cli/start/command.js.map +1 -1
- package/esm/src/mcp-server/cli/start/impl.d.ts +2 -7
- package/esm/src/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/esm/src/mcp-server/cli/start/impl.js +98 -22
- package/esm/src/mcp-server/cli/start/impl.js.map +1 -1
- package/esm/src/mcp-server/extensions.d.ts +4 -4
- package/esm/src/mcp-server/extensions.d.ts.map +1 -1
- package/esm/src/mcp-server/flags.d.ts +17 -0
- package/esm/src/mcp-server/flags.d.ts.map +1 -0
- package/esm/src/mcp-server/flags.js +5 -0
- package/esm/src/mcp-server/flags.js.map +1 -0
- package/esm/src/mcp-server/mcp-server.js +1 -1
- package/esm/src/mcp-server/mcp-server.js.map +1 -1
- package/esm/src/mcp-server/prompts.d.ts +4 -7
- package/esm/src/mcp-server/prompts.d.ts.map +1 -1
- package/esm/src/mcp-server/prompts.js.map +1 -1
- package/esm/src/mcp-server/server.d.ts +8 -1
- package/esm/src/mcp-server/server.d.ts.map +1 -1
- package/esm/src/mcp-server/server.js +19 -16
- package/esm/src/mcp-server/server.js.map +1 -1
- package/esm/src/mcp-server/tools/aiSearch.d.ts +7 -0
- package/esm/src/mcp-server/tools/aiSearch.d.ts.map +1 -0
- package/esm/src/mcp-server/tools/aiSearch.js +83 -0
- package/esm/src/mcp-server/tools/aiSearch.js.map +1 -0
- package/esm/src/mcp-server/tools/getAnnouncementArticles.d.ts +7 -0
- package/esm/src/mcp-server/tools/getAnnouncementArticles.d.ts.map +1 -0
- package/esm/src/mcp-server/tools/getAnnouncementArticles.js +81 -0
- package/esm/src/mcp-server/tools/getAnnouncementArticles.js.map +1 -0
- package/esm/src/mcp-server/tools/getAnnouncements.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/getAnnouncements.js +39 -1
- package/esm/src/mcp-server/tools/getAnnouncements.js.map +1 -1
- package/esm/src/mcp-server/tools/getArticle.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/getArticle.js +42 -0
- package/esm/src/mcp-server/tools/getArticle.js.map +1 -1
- package/esm/src/mcp-server/tools/getArticleById.d.ts +7 -0
- package/esm/src/mcp-server/tools/getArticleById.d.ts.map +1 -0
- package/esm/src/mcp-server/tools/getArticleById.js +90 -0
- package/esm/src/mcp-server/tools/getArticleById.js.map +1 -0
- package/esm/src/mcp-server/tools/getBestAnswer.d.ts +7 -0
- package/esm/src/mcp-server/tools/getBestAnswer.d.ts.map +1 -0
- package/esm/src/mcp-server/tools/getBestAnswer.js +85 -0
- package/esm/src/mcp-server/tools/getBestAnswer.js.map +1 -0
- package/esm/src/mcp-server/tools/getMyPortals.d.ts +7 -0
- package/esm/src/mcp-server/tools/getMyPortals.d.ts.map +1 -0
- package/esm/src/mcp-server/tools/getMyPortals.js +117 -0
- package/esm/src/mcp-server/tools/getMyPortals.js.map +1 -0
- package/esm/src/mcp-server/tools/getPopularArticles.d.ts +1 -1
- package/esm/src/mcp-server/tools/getPopularArticles.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/getPopularArticles.js +40 -0
- package/esm/src/mcp-server/tools/getPopularArticles.js.map +1 -1
- package/esm/src/mcp-server/tools/getPortals.d.ts +1 -1
- package/esm/src/mcp-server/tools/getPortals.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/getPortals.js +26 -1
- package/esm/src/mcp-server/tools/getPortals.js.map +1 -1
- package/esm/src/mcp-server/tools/makeSuggestion.d.ts +1 -1
- package/esm/src/mcp-server/tools/makeSuggestion.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/makeSuggestion.js +44 -0
- package/esm/src/mcp-server/tools/makeSuggestion.js.map +1 -1
- package/esm/src/mcp-server/tools/queryAnswers.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/queryAnswers.js +41 -5
- package/esm/src/mcp-server/tools/queryAnswers.js.map +1 -1
- package/esm/src/mcp-server/tools/queryRetrieve.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/queryRetrieve.js +41 -1
- package/esm/src/mcp-server/tools/queryRetrieve.js.map +1 -1
- package/esm/src/mcp-server/tools/querySearch.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/querySearch.js +48 -1
- package/esm/src/mcp-server/tools/querySearch.js.map +1 -1
- package/esm/src/mcp-server/tools/retrieveChunks.d.ts +1 -1
- package/esm/src/mcp-server/tools/retrieveChunks.d.ts.map +1 -1
- package/esm/src/mcp-server/tools/retrieveChunks.js +41 -7
- package/esm/src/mcp-server/tools/retrieveChunks.js.map +1 -1
- package/esm/src/mcp-server/tools.d.ts +14 -4
- package/esm/src/mcp-server/tools.d.ts.map +1 -1
- package/esm/src/mcp-server/tools.js +203 -5
- package/esm/src/mcp-server/tools.js.map +1 -1
- package/esm/src/models/acceptlanguage.d.ts +36 -5
- package/esm/src/models/acceptlanguage.d.ts.map +1 -1
- package/esm/src/models/acceptlanguage.js +18 -4
- package/esm/src/models/acceptlanguage.js.map +1 -1
- package/esm/src/models/accessibleportal.d.ts +1 -1
- package/esm/src/models/accessibleportal.d.ts.map +1 -1
- package/esm/src/models/accessibleportal.js.map +1 -1
- package/esm/src/models/additionalsnippets.d.ts +18 -3
- package/esm/src/models/additionalsnippets.d.ts.map +1 -1
- package/esm/src/models/additionalsnippets.js +8 -1
- package/esm/src/models/additionalsnippets.js.map +1 -1
- package/esm/src/models/aisearchop.d.ts +4 -10
- package/esm/src/models/aisearchop.d.ts.map +1 -1
- package/esm/src/models/aisearchop.js +9 -20
- package/esm/src/models/aisearchop.js.map +1 -1
- package/esm/src/models/aisearchresponse.d.ts +2 -2
- package/esm/src/models/aisearchresponse.d.ts.map +1 -1
- package/esm/src/models/aisearchresponse.js.map +1 -1
- package/esm/src/models/aispaginationinfo.d.ts +1 -1
- package/esm/src/models/aispaginationinfo.d.ts.map +1 -1
- package/esm/src/models/aispaginationinfo.js +5 -4
- package/esm/src/models/aispaginationinfo.js.map +1 -1
- package/esm/src/models/aitopicbreadcrumb.d.ts +1 -1
- package/esm/src/models/aitopicbreadcrumb.d.ts.map +1 -1
- package/esm/src/models/aitopicbreadcrumb.js +2 -1
- package/esm/src/models/aitopicbreadcrumb.js.map +1 -1
- package/esm/src/models/aitopicsummary.d.ts +1 -1
- package/esm/src/models/aitopicsummary.d.ts.map +1 -1
- package/esm/src/models/aitopicsummary.js.map +1 -1
- package/esm/src/models/allaccessibleportals.d.ts +1 -1
- package/esm/src/models/allaccessibleportals.d.ts.map +1 -1
- package/esm/src/models/allaccessibleportals.js +2 -1
- package/esm/src/models/allaccessibleportals.js.map +1 -1
- package/esm/src/models/answersrequest.d.ts +16 -25
- package/esm/src/models/answersrequest.d.ts.map +1 -1
- package/esm/src/models/answersrequest.js +11 -25
- package/esm/src/models/answersrequest.js.map +1 -1
- package/esm/src/models/answersresponse.d.ts +28 -7
- package/esm/src/models/answersresponse.d.ts.map +1 -1
- package/esm/src/models/answersresponse.js +8 -0
- package/esm/src/models/answersresponse.js.map +1 -1
- package/esm/src/models/article.d.ts +2 -2
- package/esm/src/models/article.d.ts.map +1 -1
- package/esm/src/models/article.js +3 -4
- package/esm/src/models/article.js.map +1 -1
- package/esm/src/models/articleadditionalattributes.d.ts +36 -2
- package/esm/src/models/articleadditionalattributes.d.ts.map +1 -1
- package/esm/src/models/articleadditionalattributes.js +17 -0
- package/esm/src/models/articleadditionalattributes.js.map +1 -1
- package/esm/src/models/articleaisearchresult.d.ts +48 -9
- package/esm/src/models/articleaisearchresult.d.ts.map +1 -1
- package/esm/src/models/articleaisearchresult.js +17 -1
- package/esm/src/models/articleaisearchresult.js.map +1 -1
- package/esm/src/models/articleattachment.d.ts +14 -3
- package/esm/src/models/articleattachment.d.ts.map +1 -1
- package/esm/src/models/articleattachment.js +7 -2
- package/esm/src/models/articleattachment.js.map +1 -1
- package/esm/src/models/articleresult.d.ts +1 -1
- package/esm/src/models/articleresult.d.ts.map +1 -1
- package/esm/src/models/articleresult.js +1 -1
- package/esm/src/models/articleresult.js.map +1 -1
- package/esm/src/models/articleresultadditionalattributes.d.ts +34 -2
- package/esm/src/models/articleresultadditionalattributes.d.ts.map +1 -1
- package/esm/src/models/articleresultadditionalattributes.js +16 -0
- package/esm/src/models/articleresultadditionalattributes.js.map +1 -1
- package/esm/src/models/articleresults.d.ts +1 -1
- package/esm/src/models/articleresults.d.ts.map +1 -1
- package/esm/src/models/articleresults.js.map +1 -1
- package/esm/src/models/articletype.d.ts +2 -7
- package/esm/src/models/articletype.d.ts.map +1 -1
- package/esm/src/models/articletype.js +2 -16
- package/esm/src/models/articletype.js.map +1 -1
- package/esm/src/models/attachmentforcreatesuggestion.d.ts +1 -1
- package/esm/src/models/attachmentforcreatesuggestion.d.ts.map +1 -1
- package/esm/src/models/attachmentforcreatesuggestion.js.map +1 -1
- package/esm/src/models/bookmarkstatus.d.ts +1 -1
- package/esm/src/models/bookmarkstatus.d.ts.map +1 -1
- package/esm/src/models/bookmarkstatus.js +1 -1
- package/esm/src/models/bookmarkstatus.js.map +1 -1
- package/esm/src/models/complianceforarticle.d.ts +3 -3
- package/esm/src/models/complianceforarticle.d.ts.map +1 -1
- package/esm/src/models/complianceforarticle.js +8 -5
- package/esm/src/models/complianceforarticle.js.map +1 -1
- package/esm/src/models/createdby.d.ts +1 -1
- package/esm/src/models/createdby.d.ts.map +1 -1
- package/esm/src/models/createdby.js.map +1 -1
- package/esm/src/models/createsuggestion.d.ts +69 -6
- package/esm/src/models/createsuggestion.d.ts.map +1 -1
- package/esm/src/models/createsuggestion.js +31 -2
- package/esm/src/models/createsuggestion.js.map +1 -1
- package/esm/src/models/customattribute.d.ts +18 -3
- package/esm/src/models/customattribute.d.ts.map +1 -1
- package/esm/src/models/customattribute.js +6 -0
- package/esm/src/models/customattribute.js.map +1 -1
- package/esm/src/models/department.d.ts +1 -1
- package/esm/src/models/department.d.ts.map +1 -1
- package/esm/src/models/department.js.map +1 -1
- package/esm/src/models/edition.d.ts +2 -2
- package/esm/src/models/edition.d.ts.map +1 -1
- package/esm/src/models/edition.js +1 -2
- package/esm/src/models/edition.js.map +1 -1
- package/esm/src/models/errors/sdkvalidationerror.d.ts +1 -1
- package/esm/src/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/esm/src/models/errors/sdkvalidationerror.js +2 -49
- package/esm/src/models/errors/sdkvalidationerror.js.map +1 -1
- package/esm/src/models/folderbreadcrumb.d.ts +1 -1
- package/esm/src/models/folderbreadcrumb.d.ts.map +1 -1
- package/esm/src/models/folderbreadcrumb.js.map +1 -1
- package/esm/src/models/foldersummary.d.ts +1 -1
- package/esm/src/models/foldersummary.d.ts.map +1 -1
- package/esm/src/models/foldersummary.js +1 -1
- package/esm/src/models/foldersummary.js.map +1 -1
- package/esm/src/models/getannouncementarticlesop.d.ts +8 -9
- package/esm/src/models/getannouncementarticlesop.d.ts.map +1 -1
- package/esm/src/models/getannouncementarticlesop.js +12 -10
- package/esm/src/models/getannouncementarticlesop.js.map +1 -1
- package/esm/src/models/getarticlebyidop.d.ts +77 -11
- package/esm/src/models/getarticlebyidop.d.ts.map +1 -1
- package/esm/src/models/getarticlebyidop.js +31 -62
- package/esm/src/models/getarticlebyidop.js.map +1 -1
- package/esm/src/models/getbestanswerop.d.ts +1 -9
- package/esm/src/models/getbestanswerop.d.ts.map +1 -1
- package/esm/src/models/getbestanswerop.js +3 -16
- package/esm/src/models/getbestanswerop.js.map +1 -1
- package/esm/src/models/getmyportalsop.d.ts +4 -10
- package/esm/src/models/getmyportalsop.d.ts.map +1 -1
- package/esm/src/models/getmyportalsop.js +9 -10
- package/esm/src/models/getmyportalsop.js.map +1 -1
- package/esm/src/models/getpopulararticlesop.d.ts +8 -9
- package/esm/src/models/getpopulararticlesop.d.ts.map +1 -1
- package/esm/src/models/getpopulararticlesop.js +12 -10
- package/esm/src/models/getpopulararticlesop.js.map +1 -1
- package/esm/src/models/l10nstring.d.ts +1 -1
- package/esm/src/models/l10nstring.d.ts.map +1 -1
- package/esm/src/models/l10nstring.js.map +1 -1
- package/esm/src/models/languagecode.d.ts +69 -2
- package/esm/src/models/languagecode.d.ts.map +1 -1
- package/esm/src/models/languagecode.js +32 -0
- package/esm/src/models/languagecode.js.map +1 -1
- package/esm/src/models/languagecodeparameter.d.ts +90 -5
- package/esm/src/models/languagecodeparameter.d.ts.map +1 -1
- package/esm/src/models/languagecodeparameter.js +45 -4
- package/esm/src/models/languagecodeparameter.js.map +1 -1
- package/esm/src/models/languagequeryparameter.d.ts +90 -5
- package/esm/src/models/languagequeryparameter.d.ts.map +1 -1
- package/esm/src/models/languagequeryparameter.js +45 -4
- package/esm/src/models/languagequeryparameter.js.map +1 -1
- package/esm/src/models/link.d.ts +1 -1
- package/esm/src/models/link.d.ts.map +1 -1
- package/esm/src/models/link.js.map +1 -1
- package/esm/src/models/makesuggestionop.d.ts +4 -9
- package/esm/src/models/makesuggestionop.d.ts.map +1 -1
- package/esm/src/models/makesuggestionop.js +3 -7
- package/esm/src/models/makesuggestionop.js.map +1 -1
- package/esm/src/models/mandatorylanguagequeryparameter.d.ts +90 -5
- package/esm/src/models/mandatorylanguagequeryparameter.d.ts.map +1 -1
- package/esm/src/models/mandatorylanguagequeryparameter.js +45 -4
- package/esm/src/models/mandatorylanguagequeryparameter.js.map +1 -1
- package/esm/src/models/milestone.d.ts +1 -1
- package/esm/src/models/milestone.d.ts.map +1 -1
- package/esm/src/models/milestone.js.map +1 -1
- package/esm/src/models/milestonename.d.ts +1 -1
- package/esm/src/models/milestonename.d.ts.map +1 -1
- package/esm/src/models/milestonename.js.map +1 -1
- package/esm/src/models/modifiedby.d.ts +1 -1
- package/esm/src/models/modifiedby.d.ts.map +1 -1
- package/esm/src/models/modifiedby.js.map +1 -1
- package/esm/src/models/order.d.ts +10 -2
- package/esm/src/models/order.d.ts.map +1 -1
- package/esm/src/models/order.js +4 -0
- package/esm/src/models/order.js.map +1 -1
- package/esm/src/models/ownedby.d.ts +1 -1
- package/esm/src/models/ownedby.d.ts.map +1 -1
- package/esm/src/models/ownedby.js +1 -2
- package/esm/src/models/ownedby.js.map +1 -1
- package/esm/src/models/paginationinfo.d.ts +1 -1
- package/esm/src/models/paginationinfo.d.ts.map +1 -1
- package/esm/src/models/paginationinfo.js +3 -3
- package/esm/src/models/paginationinfo.js.map +1 -1
- package/esm/src/models/personalization.d.ts +4 -4
- package/esm/src/models/personalization.d.ts.map +1 -1
- package/esm/src/models/personalization.js +1 -2
- package/esm/src/models/personalization.js.map +1 -1
- package/esm/src/models/publishview.d.ts +2 -2
- package/esm/src/models/publishview.d.ts.map +1 -1
- package/esm/src/models/publishview.js.map +1 -1
- package/esm/src/models/referenceresponse.d.ts +30 -5
- package/esm/src/models/referenceresponse.d.ts.map +1 -1
- package/esm/src/models/referenceresponse.js +12 -1
- package/esm/src/models/referenceresponse.js.map +1 -1
- package/esm/src/models/requiredlanguagecode.d.ts +71 -2
- package/esm/src/models/requiredlanguagecode.d.ts.map +1 -1
- package/esm/src/models/requiredlanguagecode.js +33 -0
- package/esm/src/models/requiredlanguagecode.js.map +1 -1
- package/esm/src/models/retrievechunksop.d.ts +1 -9
- package/esm/src/models/retrievechunksop.d.ts.map +1 -1
- package/esm/src/models/retrievechunksop.js +1 -15
- package/esm/src/models/retrievechunksop.js.map +1 -1
- package/esm/src/models/retrieverequest.d.ts +15 -4
- package/esm/src/models/retrieverequest.d.ts.map +1 -1
- package/esm/src/models/retrieverequest.js +4 -0
- package/esm/src/models/retrieverequest.js.map +1 -1
- package/esm/src/models/retrieveresponse.d.ts +27 -8
- package/esm/src/models/retrieveresponse.d.ts.map +1 -1
- package/esm/src/models/retrieveresponse.js +8 -1
- package/esm/src/models/retrieveresponse.js.map +1 -1
- package/esm/src/models/schemaslink.d.ts +1 -1
- package/esm/src/models/schemaslink.d.ts.map +1 -1
- package/esm/src/models/schemaslink.js.map +1 -1
- package/esm/src/models/schemastags.d.ts +1 -1
- package/esm/src/models/schemastags.d.ts.map +1 -1
- package/esm/src/models/schemastags.js.map +1 -1
- package/esm/src/models/searchresult.d.ts +40 -5
- package/esm/src/models/searchresult.d.ts.map +1 -1
- package/esm/src/models/searchresult.js +19 -0
- package/esm/src/models/searchresult.js.map +1 -1
- package/esm/src/models/security.d.ts +5 -2
- package/esm/src/models/security.d.ts.map +1 -1
- package/esm/src/models/security.js +5 -3
- package/esm/src/models/security.js.map +1 -1
- package/esm/src/models/shorturl.d.ts +1 -1
- package/esm/src/models/shorturl.d.ts.map +1 -1
- package/esm/src/models/shorturl.js +1 -2
- package/esm/src/models/shorturl.js.map +1 -1
- package/esm/src/models/sortidnamedepartment.d.ts +12 -2
- package/esm/src/models/sortidnamedepartment.d.ts.map +1 -1
- package/esm/src/models/sortidnamedepartment.js +5 -0
- package/esm/src/models/sortidnamedepartment.js.map +1 -1
- package/esm/src/models/stage.d.ts +1 -1
- package/esm/src/models/stage.d.ts.map +1 -1
- package/esm/src/models/stage.js +1 -2
- package/esm/src/models/stage.js.map +1 -1
- package/esm/src/models/structuredauthoringfields.d.ts +1 -1
- package/esm/src/models/structuredauthoringfields.d.ts.map +1 -1
- package/esm/src/models/structuredauthoringfields.js.map +1 -1
- package/esm/src/models/tag.d.ts +1 -1
- package/esm/src/models/tag.d.ts.map +1 -1
- package/esm/src/models/tag.js.map +1 -1
- package/esm/src/models/tagcategory.d.ts +1 -1
- package/esm/src/models/tagcategory.d.ts.map +1 -1
- package/esm/src/models/tagcategory.js.map +1 -1
- package/esm/src/models/taggroup.d.ts +1 -1
- package/esm/src/models/taggroup.d.ts.map +1 -1
- package/esm/src/models/taggroup.js +1 -2
- package/esm/src/models/taggroup.js.map +1 -1
- package/esm/src/models/taggroups.d.ts +1 -1
- package/esm/src/models/taggroups.d.ts.map +1 -1
- package/esm/src/models/taggroups.js.map +1 -1
- package/esm/src/models/tags.d.ts +1 -1
- package/esm/src/models/tags.d.ts.map +1 -1
- package/esm/src/models/tags.js.map +1 -1
- package/esm/src/models/topicbreadcrumb.d.ts +1 -1
- package/esm/src/models/topicbreadcrumb.d.ts.map +1 -1
- package/esm/src/models/topicbreadcrumb.js.map +1 -1
- package/esm/src/models/topicsummary.d.ts +1 -1
- package/esm/src/models/topicsummary.d.ts.map +1 -1
- package/esm/src/models/topicsummary.js.map +1 -1
- package/esm/src/models/workflow.d.ts +1 -1
- package/esm/src/models/workflow.d.ts.map +1 -1
- package/esm/src/models/workflow.js +1 -2
- package/esm/src/models/workflow.js.map +1 -1
- package/esm/src/models/workflowmilestone.d.ts +12 -2
- package/esm/src/models/workflowmilestone.d.ts.map +1 -1
- package/esm/src/models/workflowmilestone.js +5 -0
- package/esm/src/models/workflowmilestone.js.map +1 -1
- package/esm/src/models/wserrorcommon.d.ts +2 -2
- package/esm/src/models/wserrorcommon.d.ts.map +1 -1
- package/esm/src/models/wserrorcommon.js +1 -2
- package/esm/src/models/wserrorcommon.js.map +1 -1
- package/esm/src/tool-names.d.ts +5 -0
- package/esm/src/tool-names.d.ts.map +1 -0
- package/esm/src/tool-names.js +36 -0
- package/esm/src/tool-names.js.map +1 -0
- package/esm/src/types/bigint.d.ts +6 -0
- package/esm/src/types/bigint.d.ts.map +1 -0
- package/esm/src/types/bigint.js +87 -0
- package/esm/src/types/bigint.js.map +1 -0
- package/esm/worker-configuration.d.ts +1 -0
- package/esm/worker-configuration.d.ts.map +1 -1
- package/manifest.json +78 -51
- package/package.json +11 -7
- package/src/cloudflare-worker/cloudflare-worker.ts +22 -9
- package/src/funcs/{querySearch.ts → aiSearch.ts} +49 -2
- package/src/funcs/{getAnnouncements.ts → getAnnouncementArticles.ts} +67 -10
- package/src/funcs/{getArticle.ts → getArticleById.ts} +58 -1
- package/src/funcs/{queryAnswers.ts → getBestAnswer.ts} +52 -14
- package/src/funcs/{getPortals.ts → getMyPortals.ts} +35 -2
- package/src/funcs/getPopularArticles.ts +68 -8
- package/src/funcs/makeSuggestion.ts +67 -9
- package/src/funcs/{queryRetrieve.ts → retrieveChunks.ts} +50 -15
- package/src/hooks/auth-hook.ts +3 -63
- package/src/hooks/registration.ts +3 -18
- package/src/landing-page.ts +1084 -0
- package/src/lib/base64.ts +2 -2
- package/src/lib/config.ts +5 -5
- package/src/lib/encodings.ts +12 -3
- package/src/lib/matchers.ts +5 -1
- package/src/lib/schemas.ts +10 -22
- package/src/lib/sdks.ts +2 -2
- package/src/lib/security.ts +21 -0
- package/src/mcp-server/cli/start/command.ts +31 -0
- package/src/mcp-server/cli/start/impl.ts +118 -31
- package/src/mcp-server/extensions.ts +6 -4
- package/src/mcp-server/flags.ts +21 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +9 -19
- package/src/mcp-server/server.ts +22 -16
- package/src/mcp-server/tools/aiSearch.ts +92 -0
- package/src/mcp-server/tools/getAnnouncementArticles.ts +90 -0
- package/src/mcp-server/tools/getArticleById.ts +99 -0
- package/src/mcp-server/tools/getBestAnswer.ts +94 -0
- package/src/mcp-server/tools/{getPortals.ts → getMyPortals.ts} +39 -5
- package/src/mcp-server/tools/getPopularArticles.ts +40 -0
- package/src/mcp-server/tools/makeSuggestion.ts +44 -0
- package/src/mcp-server/tools/retrieveChunks.ts +89 -0
- package/src/mcp-server/tools.ts +300 -46
- package/src/models/acceptlanguage.ts +21 -8
- package/src/models/accessibleportal.ts +9 -11
- package/src/models/additionalsnippets.ts +25 -18
- package/src/models/aisearchop.ts +14 -37
- package/src/models/aisearchresponse.ts +7 -13
- package/src/models/aispaginationinfo.ts +7 -10
- package/src/models/aitopicbreadcrumb.ts +4 -7
- package/src/models/aitopicsummary.ts +1 -5
- package/src/models/allaccessibleportals.ts +5 -8
- package/src/models/answersrequest.ts +22 -58
- package/src/models/answersresponse.ts +30 -24
- package/src/models/article.ts +39 -40
- package/src/models/articleadditionalattributes.ts +22 -4
- package/src/models/articleaisearchresult.ts +70 -52
- package/src/models/articleattachment.ts +18 -15
- package/src/models/articleresult.ts +2 -6
- package/src/models/articleresultadditionalattributes.ts +43 -0
- package/src/models/articleresults.ts +1 -5
- package/src/models/articletype.ts +4 -25
- package/src/models/attachmentforcreatesuggestion.ts +1 -3
- package/src/models/bookmarkstatus.ts +2 -6
- package/src/models/complianceforarticle.ts +13 -22
- package/src/models/createdby.ts +7 -8
- package/src/models/createsuggestion.ts +54 -31
- package/src/models/customattribute.ts +13 -7
- package/src/models/department.ts +1 -5
- package/src/models/edition.ts +8 -13
- package/src/models/errors/sdkvalidationerror.ts +2 -57
- package/src/models/folderbreadcrumb.ts +5 -7
- package/src/models/foldersummary.ts +2 -6
- package/src/models/getannouncementarticlesop.ts +34 -23
- package/src/models/getarticlebyidop.ts +91 -95
- package/src/models/getbestanswerop.ts +16 -48
- package/src/models/getmyportalsop.ts +29 -44
- package/src/models/getpopulararticlesop.ts +34 -23
- package/src/models/l10nstring.ts +1 -5
- package/src/models/languagecode.ts +38 -2
- package/src/models/languagecodeparameter.ts +48 -10
- package/src/models/languagequeryparameter.ts +48 -10
- package/src/models/link.ts +1 -1
- package/src/models/makesuggestionop.ts +20 -30
- package/src/models/mandatorylanguagequeryparameter.ts +50 -10
- package/src/models/milestone.ts +3 -4
- package/src/models/milestonename.ts +1 -5
- package/src/models/modifiedby.ts +1 -5
- package/src/models/order.ts +7 -2
- package/src/models/ownedby.ts +7 -8
- package/src/models/paginationinfo.ts +4 -8
- package/src/models/personalization.ts +6 -19
- package/src/models/publishview.ts +2 -8
- package/src/models/referenceresponse.ts +34 -20
- package/src/models/requiredlanguagecode.ts +39 -4
- package/src/models/retrievechunksop.ts +16 -48
- package/src/models/retrieverequest.ts +12 -10
- package/src/models/retrieveresponse.ts +34 -28
- package/src/models/schemaslink.ts +1 -5
- package/src/models/schemastags.ts +1 -5
- package/src/models/searchresult.ts +34 -8
- package/src/models/security.ts +14 -7
- package/src/models/shorturl.ts +6 -7
- package/src/models/sortidnamedepartment.ts +8 -4
- package/src/models/stage.ts +4 -5
- package/src/models/structuredauthoringfields.ts +1 -3
- package/src/models/tag.ts +1 -1
- package/src/models/tagcategory.ts +1 -5
- package/src/models/taggroup.ts +4 -5
- package/src/models/taggroups.ts +3 -4
- package/src/models/tags.ts +1 -1
- package/src/models/topicbreadcrumb.ts +1 -5
- package/src/models/topicsummary.ts +1 -5
- package/src/models/workflow.ts +3 -4
- package/src/models/workflowmilestone.ts +8 -2
- package/src/models/wserrorcommon.ts +5 -10
- package/src/tool-names.ts +35 -0
- package/src/types/bigint.ts +87 -0
- package/tsconfig.json +0 -1
- package/worker-configuration.d.ts +2 -2
- package/worker-configuration.ts +1 -0
- package/src/cloudflare-worker/landing-page.ts +0 -337
- package/src/hooks/portal-cache-hook.ts +0 -505
- package/src/hooks/portal-lookup-hook.ts +0 -429
- package/src/mcp-server/tools/getAnnouncements.ts +0 -53
- package/src/mcp-server/tools/getArticle.ts +0 -56
- package/src/mcp-server/tools/queryAnswers.ts +0 -57
- package/src/mcp-server/tools/queryRetrieve.ts +0 -55
- package/src/mcp-server/tools/querySearch.ts +0 -44
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
6
7
|
import { AcceptLanguage, AcceptLanguage$zodSchema } from "./acceptlanguage.js";
|
|
7
8
|
import { Article, Article$zodSchema } from "./article.js";
|
|
8
9
|
import {
|
|
@@ -46,6 +47,57 @@ import { WSErrorCommon, WSErrorCommon$zodSchema } from "./wserrorcommon.js";
|
|
|
46
47
|
* | instant_answer | View an Article via an Instant Answers solution.
|
|
47
48
|
* | instant_answer_reference | View an Article that is used as a reference for an Instant Answers solution.
|
|
48
49
|
*/
|
|
50
|
+
export const AccessSource = {
|
|
51
|
+
ArticleView: "article_view",
|
|
52
|
+
ArticleViewMoreRelatedArticle: "article_view_more_related_Article",
|
|
53
|
+
ArticleViewBasicSearch: "article_view_basic_search",
|
|
54
|
+
ArticleViewAdvSearch: "article_view_adv_search",
|
|
55
|
+
ArticleViewGuidedHelp: "article_view_guided_help",
|
|
56
|
+
ArticleViewBrowseTopic: "article_view_browse_topic",
|
|
57
|
+
ArticleViewBrowseTree: "article_view_browse_tree",
|
|
58
|
+
ArticleViewPopularArticles: "article_view_popular_articles",
|
|
59
|
+
ArticleViewUsefulItems: "article_view_useful_items",
|
|
60
|
+
ArticleViewWidget: "article_view_widget",
|
|
61
|
+
ArticleViewAnnouncement: "article_view_announcement",
|
|
62
|
+
ArticleViewBookmarked: "article_view_bookmarked",
|
|
63
|
+
ArticleViewSubscriptionNotification: "article_view_subscription_notification",
|
|
64
|
+
ArticleViewGuidedHelpAdditionalInfo:
|
|
65
|
+
"article_view_guided_help_additional_info",
|
|
66
|
+
ViewArticlesPendingCompliance: "view_articles_pending_compliance",
|
|
67
|
+
TypeAheadSuggestion: "type_ahead_Suggestion",
|
|
68
|
+
SemanticSuggestion: "semantic_Suggestion",
|
|
69
|
+
InstantAnswer: "instant_answer",
|
|
70
|
+
InstantAnswerReference: "instant_answer_reference",
|
|
71
|
+
} as const;
|
|
72
|
+
/**
|
|
73
|
+
* 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".
|
|
74
|
+
*
|
|
75
|
+
* @remarks
|
|
76
|
+
*
|
|
77
|
+
* | Name | Description
|
|
78
|
+
* | ---- | -----------
|
|
79
|
+
* | article_view | View an Article directly using its ID.
|
|
80
|
+
* | article_view_more_related_Article | View related articles of an Article using its ID.
|
|
81
|
+
* | article_view_basic_search | View an Article via a basic search.
|
|
82
|
+
* | article_view_adv_search | View an Article via an advanced search.
|
|
83
|
+
* | article_view_guided_help | View an Article via a Guided Help solution.
|
|
84
|
+
* | article_view_browse_topic | View an Article via browsing a topic.
|
|
85
|
+
* | article_view_browse_tree | View an Article via browsing a topic tree.
|
|
86
|
+
* | article_view_popular_articles | View an Article using the Popular Items list in the Self-Service portal.
|
|
87
|
+
* | article_view_useful_items | View Article using the Useful Items list in the Self-Service portal.
|
|
88
|
+
* | article_view_widget | View an Article via a widget.
|
|
89
|
+
* | article_view_announcement | View an Article from the announcement section in the Self-Service portal.
|
|
90
|
+
* | article_view_bookmarked | View a bookmarked Article.
|
|
91
|
+
* | article_view_subscription_notification | View an Article from a subscription notification.
|
|
92
|
+
* | article_view_guided_help_additional_info | View an Article via additional information from a Guided Help search.
|
|
93
|
+
* | view_articles_pending_compliance | View an Article via Read & Sign in the Self-Service portal.
|
|
94
|
+
* | type_ahead_Suggestion | View an Article from a type-ahead Suggestion in the Self-Service portal.
|
|
95
|
+
* | semantic_Suggestion | View an Article from a semantic Suggestion in the Self-Service portal.
|
|
96
|
+
* | instant_answer | View an Article via an Instant Answers solution.
|
|
97
|
+
* | instant_answer_reference | View an Article that is used as a reference for an Instant Answers solution.
|
|
98
|
+
*/
|
|
99
|
+
export type AccessSource = ClosedEnum<typeof AccessSource>;
|
|
100
|
+
|
|
49
101
|
export const AccessSource$zodSchema = z.enum([
|
|
50
102
|
"article_view",
|
|
51
103
|
"article_view_more_related_Article",
|
|
@@ -67,35 +119,13 @@ export const AccessSource$zodSchema = z.enum([
|
|
|
67
119
|
"instant_answer",
|
|
68
120
|
"instant_answer_reference",
|
|
69
121
|
]).describe(
|
|
70
|
-
"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\".\n"
|
|
71
|
-
+ "\n"
|
|
72
|
-
+ "| Name | Description \n"
|
|
73
|
-
+ "| ---- | -----------\n"
|
|
74
|
-
+ "| article_view | View an Article directly using its ID.\n"
|
|
75
|
-
+ "| article_view_more_related_Article | View related articles of an Article using its ID.\n"
|
|
76
|
-
+ "| article_view_basic_search | View an Article via a basic search.\n"
|
|
77
|
-
+ "| article_view_adv_search | View an Article via an advanced search.\n"
|
|
78
|
-
+ "| article_view_guided_help | View an Article via a Guided Help solution.\n"
|
|
79
|
-
+ "| article_view_browse_topic | View an Article via browsing a topic.\n"
|
|
80
|
-
+ "| article_view_browse_tree | View an Article via browsing a topic tree.\n"
|
|
81
|
-
+ "| article_view_popular_articles | View an Article using the Popular Items list in the Self-Service portal.\n"
|
|
82
|
-
+ "| article_view_useful_items | View Article using the Useful Items list in the Self-Service portal.\n"
|
|
83
|
-
+ "| article_view_widget | View an Article via a widget.\n"
|
|
84
|
-
+ "| article_view_announcement | View an Article from the announcement section in the Self-Service portal.\n"
|
|
85
|
-
+ "| article_view_bookmarked | View a bookmarked Article.\n"
|
|
86
|
-
+ "| article_view_subscription_notification | View an Article from a subscription notification.\n"
|
|
87
|
-
+ "| article_view_guided_help_additional_info | View an Article via additional information from a Guided Help search.\n"
|
|
88
|
-
+ "| view_articles_pending_compliance | View an Article via Read & Sign in the Self-Service portal.\n"
|
|
89
|
-
+ "| type_ahead_Suggestion | View an Article from a type-ahead Suggestion in the Self-Service portal.\n"
|
|
90
|
-
+ "| semantic_Suggestion | View an Article from a semantic Suggestion in the Self-Service portal.\n"
|
|
91
|
-
+ "| instant_answer | View an Article via an Instant Answers solution.\n"
|
|
92
|
-
+ "| instant_answer_reference | View an Article that is used as a reference for an Instant Answers solution.\n"
|
|
93
|
-
+ "",
|
|
122
|
+
"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\".\n\n| Name | Description \n| ---- | -----------\n| article_view | View an Article directly using its ID.\n| article_view_more_related_Article | View related articles of an Article using its ID.\n| article_view_basic_search | View an Article via a basic search.\n| article_view_adv_search | View an Article via an advanced search.\n| article_view_guided_help | View an Article via a Guided Help solution.\n| article_view_browse_topic | View an Article via browsing a topic.\n| article_view_browse_tree | View an Article via browsing a topic tree.\n| article_view_popular_articles | View an Article using the Popular Items list in the Self-Service portal.\n| article_view_useful_items | View Article using the Useful Items list in the Self-Service portal.\n| article_view_widget | View an Article via a widget.\n| article_view_announcement | View an Article from the announcement section in the Self-Service portal.\n| article_view_bookmarked | View a bookmarked Article.\n| article_view_subscription_notification | View an Article from a subscription notification.\n| article_view_guided_help_additional_info | View an Article via additional information from a Guided Help search.\n| view_articles_pending_compliance | View an Article via Read & Sign in the Self-Service portal.\n| type_ahead_Suggestion | View an Article from a type-ahead Suggestion in the Self-Service portal.\n| semantic_Suggestion | View an Article from a semantic Suggestion in the Self-Service portal.\n| instant_answer | View an Article via an Instant Answers solution.\n| instant_answer_reference | View an Article that is used as a reference for an Instant Answers solution.\n",
|
|
94
123
|
);
|
|
95
124
|
|
|
96
|
-
export type AccessSource = z.infer<typeof AccessSource$zodSchema>;
|
|
97
|
-
|
|
98
125
|
export type GetArticleByIdRequest = {
|
|
126
|
+
xEgainActivityId?: string | undefined;
|
|
127
|
+
xExtIntegrationId?: string | undefined;
|
|
128
|
+
xExtInteractionId?: string | undefined;
|
|
99
129
|
acceptLanguage?: AcceptLanguage | undefined;
|
|
100
130
|
portalID: string;
|
|
101
131
|
articleID: string;
|
|
@@ -107,76 +137,42 @@ export type GetArticleByIdRequest = {
|
|
|
107
137
|
workflowMilestone?: WorkflowMilestone | undefined;
|
|
108
138
|
};
|
|
109
139
|
|
|
110
|
-
export const GetArticleByIdRequest$zodSchema: z.ZodType<
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
.describe(
|
|
121
|
-
"The
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
+ "| id | The ID of the Article.\n"
|
|
129
|
-
+ "| name | The name of the Article.\n"
|
|
130
|
-
+ "| additionalInfo | Additional information provided as Article metadata.\n"
|
|
131
|
-
+ "| articleType | The Article type and its attributes.\n"
|
|
132
|
-
+ "| articleKeywords | A comma-separated list of keywords associated with this Article.\n"
|
|
133
|
-
+ "| articleState | The current state of the Article. States include A (Authoring), S (Staging), and P (Published).\n"
|
|
134
|
-
+ "| articleSummary | A brief summary of the Article, provided as metadata.\n"
|
|
135
|
-
+ "| createdBy | The ID, first name, middle name and last name of the user that created the Article.\n"
|
|
136
|
-
+ "| createdDate | The date that the Article was created.\n"
|
|
137
|
-
+ "| departmentId | ID of the department for which this Article belongs to.\n"
|
|
138
|
-
+ "| description | The Article's description.\n"
|
|
139
|
-
+ "| expirationDate | The date that the Article is set to expire.\n"
|
|
140
|
-
+ "| attachments | The Article's attachments\n"
|
|
141
|
-
+ "| imageURL | The URL of the image that is present in the Article version. It is used as the thumbnail image for the Article.\n"
|
|
142
|
-
+ "| includeInGenAI | Indicates whether this Article is used for eGain's generative AI features.\n"
|
|
143
|
-
+ "| isSubscribed | Indicates whether the Article is subscribed for notifications. \n"
|
|
144
|
-
+ "| languageCode | The language code of the Article language. \n"
|
|
145
|
-
+ "| link | The link object, used to retrieve the details of the Article.\n"
|
|
146
|
-
+ "| modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article.\n"
|
|
147
|
-
+ "| modifiedDate | The date that the Article was last modified on.\n"
|
|
148
|
-
+ "| topicBreadcrumb | Contains a list of topics from the top-level topic to this Article. There may be multiple paths.\n"
|
|
149
|
-
+ "| versionId | The ID of the Article version that is returned.\n"
|
|
150
|
-
+ "",
|
|
140
|
+
export const GetArticleByIdRequest$zodSchema: z.ZodType<GetArticleByIdRequest> =
|
|
141
|
+
z.object({
|
|
142
|
+
Dollar_customAdditionalAttributes: z.string().optional(),
|
|
143
|
+
Dollar_lang: LanguageQueryParameter$zodSchema.optional(),
|
|
144
|
+
acceptLanguage: AcceptLanguage$zodSchema.default("en-US"),
|
|
145
|
+
accessSource: AccessSource$zodSchema.default("article_view"),
|
|
146
|
+
articleAdditionalAttributes: z.array(ArticleAdditionalAttributes$zodSchema)
|
|
147
|
+
.describe(
|
|
148
|
+
"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.\n\n#### Default Attributes\nThese Article attributes are always returned:\n\n| Name | Description \n| ---- | -----------\n| id | The ID of the Article.\n| name | The name of the Article.\n| additionalInfo | Additional information provided as Article metadata.\n| articleType | The Article type and its attributes.\n| articleKeywords | A comma-separated list of keywords associated with this Article.\n| articleState | The current state of the Article. States include A (Authoring), S (Staging), and P (Published).\n| articleSummary | A brief summary of the Article, provided as metadata.\n| createdBy | The ID, first name, middle name and last name of the user that created the Article.\n| createdDate | The date that the Article was created.\n| departmentId | ID of the department for which this Article belongs to.\n| description | The Article's description.\n| expirationDate | The date that the Article is set to expire.\n| attachments | The Article's attachments\n| imageURL | The URL of the image that is present in the Article version. It is used as the thumbnail image for the Article.\n| includeInGenAI | Indicates whether this Article is used for eGain's generative AI features.\n| isSubscribed | Indicates whether the Article is subscribed for notifications. \n| languageCode | The language code of the Article language. \n| link | The link object, used to retrieve the details of the Article.\n| modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article.\n| modifiedDate | The date that the Article was last modified on.\n| topicBreadcrumb | Contains a list of topics from the top-level topic to this Article. There may be multiple paths.\n| versionId | The ID of the Article version that is returned.\n",
|
|
149
|
+
).optional(),
|
|
150
|
+
articleID: z.string().describe(
|
|
151
|
+
"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.",
|
|
152
|
+
),
|
|
153
|
+
portalID: z.string().describe(
|
|
154
|
+
"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.",
|
|
155
|
+
),
|
|
156
|
+
publishViewId: z.string().describe(
|
|
157
|
+
"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.",
|
|
151
158
|
).optional(),
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
});
|
|
159
|
+
workflowMilestone: WorkflowMilestone$zodSchema.optional(),
|
|
160
|
+
xEgainActivityId: z.string().describe(
|
|
161
|
+
"A unique numeric interaction identifier from eGain.",
|
|
162
|
+
).optional(),
|
|
163
|
+
xExtIntegrationId: z.string().describe(
|
|
164
|
+
"The unique numeric identifier for a tenant, used in self-service functionality as well as third-party integrations.<br><br>*Note: If x-egain-activity-id is not provided, then this must be passed along with x-ext-interaction-id.*",
|
|
165
|
+
).optional(),
|
|
166
|
+
xExtInteractionId: z.string().describe(
|
|
167
|
+
"A unique interaction identifier from other CRM applications.<br><br>*Note: If x-egain-activity-id is not provided, then this must be passed along with x-ext-integration-id.*",
|
|
168
|
+
).optional(),
|
|
169
|
+
});
|
|
163
170
|
|
|
164
|
-
export type GetArticleByIdResponse =
|
|
165
|
-
ContentType: string;
|
|
166
|
-
StatusCode: number;
|
|
167
|
-
RawResponse: Response;
|
|
168
|
-
Article?: Article | undefined;
|
|
169
|
-
WSErrorCommon?: WSErrorCommon | undefined;
|
|
170
|
-
};
|
|
171
|
+
export type GetArticleByIdResponse = Article | WSErrorCommon;
|
|
171
172
|
|
|
172
173
|
export const GetArticleByIdResponse$zodSchema: z.ZodType<
|
|
173
|
-
GetArticleByIdResponse
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
ContentType: z.string(),
|
|
179
|
-
RawResponse: z.instanceof(Response),
|
|
180
|
-
StatusCode: z.number().int(),
|
|
181
|
-
WSErrorCommon: WSErrorCommon$zodSchema.optional(),
|
|
182
|
-
});
|
|
174
|
+
GetArticleByIdResponse
|
|
175
|
+
> = z.union([
|
|
176
|
+
Article$zodSchema,
|
|
177
|
+
WSErrorCommon$zodSchema,
|
|
178
|
+
]);
|
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { AnswersRequest, AnswersRequest$zodSchema } from "./answersrequest.js";
|
|
7
|
-
import {
|
|
8
|
-
AnswersResponse,
|
|
9
|
-
AnswersResponse$zodSchema,
|
|
10
|
-
} from "./answersresponse.js";
|
|
11
7
|
import {
|
|
12
8
|
RequiredLanguageCode,
|
|
13
9
|
RequiredLanguageCode$zodSchema,
|
|
@@ -23,47 +19,19 @@ export type GetBestAnswerRequest = {
|
|
|
23
19
|
AnswersRequest?: AnswersRequest | undefined;
|
|
24
20
|
};
|
|
25
21
|
|
|
26
|
-
export const GetBestAnswerRequest$zodSchema: z.ZodType<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
).optional(),
|
|
43
|
-
dollarFilterTopicIds: z.array(z.string()).describe(
|
|
44
|
-
"An array of topic IDs. It is used to restrict search results to specific topics.",
|
|
45
|
-
).optional(),
|
|
46
|
-
dollarFilterUserProfileID: z.string().optional(),
|
|
47
|
-
portalID: z.string().describe(
|
|
48
|
-
"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.",
|
|
49
|
-
),
|
|
50
|
-
q: z.string().describe("The search query string."),
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
export type GetBestAnswerResponse = {
|
|
54
|
-
ContentType: string;
|
|
55
|
-
StatusCode: number;
|
|
56
|
-
RawResponse: Response;
|
|
57
|
-
AnswersResponse?: AnswersResponse | undefined;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export const GetBestAnswerResponse$zodSchema: z.ZodType<
|
|
61
|
-
GetBestAnswerResponse,
|
|
62
|
-
z.ZodTypeDef,
|
|
63
|
-
unknown
|
|
64
|
-
> = z.object({
|
|
65
|
-
AnswersResponse: AnswersResponse$zodSchema.optional(),
|
|
66
|
-
ContentType: z.string(),
|
|
67
|
-
RawResponse: z.instanceof(Response),
|
|
68
|
-
StatusCode: z.number().int(),
|
|
69
|
-
});
|
|
22
|
+
export const GetBestAnswerRequest$zodSchema: z.ZodType<GetBestAnswerRequest> = z
|
|
23
|
+
.object({
|
|
24
|
+
AnswersRequest: AnswersRequest$zodSchema.optional(),
|
|
25
|
+
Dollar_lang: RequiredLanguageCode$zodSchema,
|
|
26
|
+
dollarFilterTags: z.record(z.string(), z.array(z.string())).describe(
|
|
27
|
+
"An object where each key is a **Category Tag ID** (numeric string), \nand each value is an array of **Tag IDs** for that category.\n **Note**:\n - The '$filter[tags]' query parameter JSON value should be url encoded.\n - Some developer tools for invoking APIs may not url encode the '$filter[tags]' query parameter JSON value by default. Ensure that only url encoded values are used.\n - Example of JSON value: {\"BASE-40845\":[\"BASE-40849\",\"BASE-40853\"]}\n - Example of URL encoded value: %7B%22BASE-40845%22%3A%5B%22BASE-40849%22%2C%22BASE-40853%22%5D%7D\n",
|
|
28
|
+
).optional(),
|
|
29
|
+
dollarFilterTopicIds: z.array(z.string()).describe(
|
|
30
|
+
"An array of topic IDs. It is used to restrict search results to specific topics.",
|
|
31
|
+
).optional(),
|
|
32
|
+
dollarFilterUserProfileID: z.string().optional(),
|
|
33
|
+
portalID: z.string().describe(
|
|
34
|
+
"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.",
|
|
35
|
+
),
|
|
36
|
+
q: z.string().describe("The search query string."),
|
|
37
|
+
});
|
|
@@ -27,52 +27,37 @@ export type GetMyPortalsRequest = {
|
|
|
27
27
|
shortUrlTemplate?: string | undefined;
|
|
28
28
|
Dollar_sort?: SortIdNameDepartment | undefined;
|
|
29
29
|
Dollar_order?: Order | undefined;
|
|
30
|
-
Dollar_pagesize?: number | undefined;
|
|
31
30
|
Dollar_pagenum?: number | undefined;
|
|
31
|
+
Dollar_pagesize?: number | undefined;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
export const GetMyPortalsRequest$zodSchema: z.ZodType<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"The Name of the template used while creating Short URL.",
|
|
57
|
-
).optional(),
|
|
58
|
-
});
|
|
34
|
+
export const GetMyPortalsRequest$zodSchema: z.ZodType<GetMyPortalsRequest> = z
|
|
35
|
+
.object({
|
|
36
|
+
Dollar_lang: MandatoryLanguageQueryParameter$zodSchema,
|
|
37
|
+
Dollar_order: Order$zodSchema.optional(),
|
|
38
|
+
Dollar_pagenum: z.int().default(1).describe(
|
|
39
|
+
"Pagination parameter that specifies the page number of results to be returned. Used in conjunction with $pagesize.",
|
|
40
|
+
),
|
|
41
|
+
Dollar_pagesize: z.int().default(25).describe(
|
|
42
|
+
"Pagination parameter that specifies the number of results per page. Used in conjunction with $pagenum.<br>Valid range of 5-75<br>_Default value_: 25",
|
|
43
|
+
),
|
|
44
|
+
Dollar_sort: SortIdNameDepartment$zodSchema.optional(),
|
|
45
|
+
acceptLanguage: AcceptLanguage$zodSchema.default("en-US"),
|
|
46
|
+
department: z.string().describe(
|
|
47
|
+
"The Name of the department for which portals are to be fetched",
|
|
48
|
+
).optional(),
|
|
49
|
+
filterText: z.string().describe(
|
|
50
|
+
"Portal name starting with a specific character are considered to filter the result.",
|
|
51
|
+
).optional(),
|
|
52
|
+
shortUrlTemplate: z.string().describe(
|
|
53
|
+
"The Name of the template used while creating Short URL.",
|
|
54
|
+
).optional(),
|
|
55
|
+
});
|
|
59
56
|
|
|
60
|
-
export type GetMyPortalsResponse =
|
|
61
|
-
ContentType: string;
|
|
62
|
-
StatusCode: number;
|
|
63
|
-
RawResponse: Response;
|
|
64
|
-
AllAccessiblePortals?: AllAccessiblePortals | undefined;
|
|
65
|
-
WSErrorCommon?: WSErrorCommon | undefined;
|
|
66
|
-
};
|
|
57
|
+
export type GetMyPortalsResponse = WSErrorCommon | AllAccessiblePortals;
|
|
67
58
|
|
|
68
|
-
export const GetMyPortalsResponse$zodSchema: z.ZodType<
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
AllAccessiblePortals: AllAccessiblePortals$zodSchema.optional(),
|
|
74
|
-
ContentType: z.string(),
|
|
75
|
-
RawResponse: z.instanceof(Response),
|
|
76
|
-
StatusCode: z.number().int(),
|
|
77
|
-
WSErrorCommon: WSErrorCommon$zodSchema.optional(),
|
|
78
|
-
});
|
|
59
|
+
export const GetMyPortalsResponse$zodSchema: z.ZodType<GetMyPortalsResponse> = z
|
|
60
|
+
.union([
|
|
61
|
+
WSErrorCommon$zodSchema,
|
|
62
|
+
AllAccessiblePortals$zodSchema,
|
|
63
|
+
]);
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { AcceptLanguage, AcceptLanguage$zodSchema } from "./acceptlanguage.js";
|
|
7
|
+
import {
|
|
8
|
+
ArticleResultAdditionalAttributes,
|
|
9
|
+
ArticleResultAdditionalAttributes$zodSchema,
|
|
10
|
+
} from "./articleresultadditionalattributes.js";
|
|
7
11
|
import { ArticleResults, ArticleResults$zodSchema } from "./articleresults.js";
|
|
8
12
|
import {
|
|
9
13
|
LanguageQueryParameter,
|
|
@@ -13,27 +17,36 @@ import { WSErrorCommon, WSErrorCommon$zodSchema } from "./wserrorcommon.js";
|
|
|
13
17
|
|
|
14
18
|
export type GetpopulararticlesRequest = {
|
|
15
19
|
acceptLanguage?: AcceptLanguage | undefined;
|
|
20
|
+
xExtIntegrationId?: string | undefined;
|
|
21
|
+
xEgainActivityId?: string | undefined;
|
|
22
|
+
xExtInteractionId?: string | undefined;
|
|
16
23
|
portalID: string;
|
|
17
24
|
dollarFilterTopicId?: string | undefined;
|
|
18
25
|
Dollar_lang?: LanguageQueryParameter | undefined;
|
|
19
26
|
dollarFilterTags?: string | undefined;
|
|
20
27
|
Dollar_pagenum?: number | undefined;
|
|
21
28
|
Dollar_pagesize?: number | undefined;
|
|
29
|
+
articleResultAdditionalAttributes?:
|
|
30
|
+
| Array<ArticleResultAdditionalAttributes>
|
|
31
|
+
| undefined;
|
|
22
32
|
};
|
|
23
33
|
|
|
24
34
|
export const GetpopulararticlesRequest$zodSchema: z.ZodType<
|
|
25
|
-
GetpopulararticlesRequest
|
|
26
|
-
z.ZodTypeDef,
|
|
27
|
-
unknown
|
|
35
|
+
GetpopulararticlesRequest
|
|
28
36
|
> = z.object({
|
|
29
|
-
Dollar_lang: LanguageQueryParameter$zodSchema.
|
|
30
|
-
Dollar_pagenum: z.
|
|
37
|
+
Dollar_lang: LanguageQueryParameter$zodSchema.optional(),
|
|
38
|
+
Dollar_pagenum: z.int().default(1).describe(
|
|
31
39
|
"Pagination parameter that specifies the page number of results to be returned. Used in conjunction with $pagesize.",
|
|
32
40
|
),
|
|
33
|
-
Dollar_pagesize: z.
|
|
41
|
+
Dollar_pagesize: z.int().default(10).describe(
|
|
34
42
|
"Pagination parameter that specifies the number of results per page. Used in conjunction with $pagenum.",
|
|
35
43
|
),
|
|
36
44
|
acceptLanguage: AcceptLanguage$zodSchema.default("en-US"),
|
|
45
|
+
articleResultAdditionalAttributes: z.array(
|
|
46
|
+
ArticleResultAdditionalAttributes$zodSchema,
|
|
47
|
+
).describe(
|
|
48
|
+
"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.\n\n#### Default Attributes\nThese Article attributes are always returned:\n\n| Name | Description \n| ---- | -----------\n| id | The ID of the Article.\n| name | The name of the Article.\n| articleType | The Article Type and its attributes.\n| createdBy | The ID, first name, middle name and last name of the user that created the Article.\n| createdDate | The date that the Article was created.\n| hasAttachments | True: The Article has one or more attachments.<br>False: The Article does not have any attachments.\n| languageCode | The language code of the Article language. \n| modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article.\n| modifiedDate | The date that the Article was last modified on.\n| link | The link object, used to retrieve the details of the Article.\n| versionId | The ID of the Article version that is returned.\n",
|
|
49
|
+
).optional(),
|
|
37
50
|
dollarFilterTags: z.string().describe(
|
|
38
51
|
"A comma separated list of Tag / Tag Group IDs. The query results will be filtered by the tags that are specified.<br><br>Tag IDs and Tag Group IDs can be mixed together.",
|
|
39
52
|
).optional(),
|
|
@@ -43,24 +56,22 @@ export const GetpopulararticlesRequest$zodSchema: z.ZodType<
|
|
|
43
56
|
portalID: z.string().describe(
|
|
44
57
|
"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.",
|
|
45
58
|
),
|
|
59
|
+
xEgainActivityId: z.string().describe(
|
|
60
|
+
"A unique numeric interaction identifier from eGain.",
|
|
61
|
+
).optional(),
|
|
62
|
+
xExtIntegrationId: z.string().describe(
|
|
63
|
+
"The unique numeric identifier for a tenant, used in self-service functionality as well as third-party integrations.<br><br>*Note: If x-egain-activity-id is not provided, then this must be passed along with x-ext-interaction-id.*",
|
|
64
|
+
).optional(),
|
|
65
|
+
xExtInteractionId: z.string().describe(
|
|
66
|
+
"A unique interaction identifier from other CRM applications.<br><br>*Note: If x-egain-activity-id is not provided, then this must be passed along with x-ext-integration-id.*",
|
|
67
|
+
).optional(),
|
|
46
68
|
});
|
|
47
69
|
|
|
48
|
-
export type GetpopulararticlesResponse =
|
|
49
|
-
ContentType: string;
|
|
50
|
-
StatusCode: number;
|
|
51
|
-
RawResponse: Response;
|
|
52
|
-
ArticleResults?: ArticleResults | undefined;
|
|
53
|
-
WSErrorCommon?: WSErrorCommon | undefined;
|
|
54
|
-
};
|
|
70
|
+
export type GetpopulararticlesResponse = WSErrorCommon | ArticleResults;
|
|
55
71
|
|
|
56
72
|
export const GetpopulararticlesResponse$zodSchema: z.ZodType<
|
|
57
|
-
GetpopulararticlesResponse
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
ContentType: z.string(),
|
|
63
|
-
RawResponse: z.instanceof(Response),
|
|
64
|
-
StatusCode: z.number().int(),
|
|
65
|
-
WSErrorCommon: WSErrorCommon$zodSchema.optional(),
|
|
66
|
-
});
|
|
73
|
+
GetpopulararticlesResponse
|
|
74
|
+
> = z.union([
|
|
75
|
+
WSErrorCommon$zodSchema,
|
|
76
|
+
ArticleResults$zodSchema,
|
|
77
|
+
]);
|
package/src/models/l10nstring.ts
CHANGED
|
@@ -9,11 +9,7 @@ export type L10NString = {
|
|
|
9
9
|
displayValue?: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
export const L10NString$zodSchema: z.ZodType<
|
|
13
|
-
L10NString,
|
|
14
|
-
z.ZodTypeDef,
|
|
15
|
-
unknown
|
|
16
|
-
> = z.object({
|
|
12
|
+
export const L10NString$zodSchema: z.ZodType<L10NString> = z.object({
|
|
17
13
|
displayValue: z.string().optional(),
|
|
18
14
|
value: z.string().optional(),
|
|
19
15
|
});
|
|
@@ -3,10 +3,48 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Language code of the resource's language.
|
|
9
10
|
*/
|
|
11
|
+
export const LanguageCode = {
|
|
12
|
+
EnUS: "en-US",
|
|
13
|
+
FRFR: "fr-FR",
|
|
14
|
+
EnGB: "en-GB",
|
|
15
|
+
ESES: "es-ES",
|
|
16
|
+
ITIT: "it-IT",
|
|
17
|
+
NLNL: "nl-NL",
|
|
18
|
+
DADA: "da-DA",
|
|
19
|
+
SvSE: "sv-SE",
|
|
20
|
+
PTPT: "pt-PT",
|
|
21
|
+
FIFI: "fi-FI",
|
|
22
|
+
NoNB: "no-NB",
|
|
23
|
+
NoNN: "no-NN",
|
|
24
|
+
JAJA: "ja-JA",
|
|
25
|
+
DEDE: "de-DE",
|
|
26
|
+
PtBR: "pt-BR",
|
|
27
|
+
ZhCN: "zh-CN",
|
|
28
|
+
ZhTW: "zh-TW",
|
|
29
|
+
KOKO: "ko-KO",
|
|
30
|
+
RURU: "ru-RU",
|
|
31
|
+
ELEL: "el-EL",
|
|
32
|
+
TRTR: "tr-TR",
|
|
33
|
+
PLPL: "pl-PL",
|
|
34
|
+
CSCS: "cs-CS",
|
|
35
|
+
SKSK: "sk-SK",
|
|
36
|
+
HUHU: "hu-HU",
|
|
37
|
+
SRSR: "sr-SR",
|
|
38
|
+
ArSA: "ar-SA",
|
|
39
|
+
HRHR: "hr-HR",
|
|
40
|
+
RORO: "ro-RO",
|
|
41
|
+
THTH: "th-TH",
|
|
42
|
+
} as const;
|
|
43
|
+
/**
|
|
44
|
+
* Language code of the resource's language.
|
|
45
|
+
*/
|
|
46
|
+
export type LanguageCode = ClosedEnum<typeof LanguageCode>;
|
|
47
|
+
|
|
10
48
|
export const LanguageCode$zodSchema = z.enum([
|
|
11
49
|
"en-US",
|
|
12
50
|
"fr-FR",
|
|
@@ -39,5 +77,3 @@ export const LanguageCode$zodSchema = z.enum([
|
|
|
39
77
|
"ro-RO",
|
|
40
78
|
"th-TH",
|
|
41
79
|
]).describe("Language code of the resource's language.");
|
|
42
|
-
|
|
43
|
-
export type LanguageCode = z.infer<typeof LanguageCode$zodSchema>;
|
|
@@ -3,10 +3,54 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const LanguageCodeParameter = {
|
|
9
|
+
EnUS: "en-US",
|
|
10
|
+
FRFR: "fr-FR",
|
|
11
|
+
EnGB: "en-GB",
|
|
12
|
+
ESES: "es-ES",
|
|
13
|
+
ITIT: "it-IT",
|
|
14
|
+
NLNL: "nl-NL",
|
|
15
|
+
DADA: "da-DA",
|
|
16
|
+
SvSE: "sv-SE",
|
|
17
|
+
PTPT: "pt-PT",
|
|
18
|
+
FIFI: "fi-FI",
|
|
19
|
+
NoNB: "no-NB",
|
|
20
|
+
NoNN: "no-NN",
|
|
21
|
+
JAJA: "ja-JA",
|
|
22
|
+
DEDE: "de-DE",
|
|
23
|
+
PtBR: "pt-BR",
|
|
24
|
+
ZhCN: "zh-CN",
|
|
25
|
+
ZhTW: "zh-TW",
|
|
26
|
+
KOKO: "ko-KO",
|
|
27
|
+
RURU: "ru-RU",
|
|
28
|
+
ELEL: "el-EL",
|
|
29
|
+
TRTR: "tr-TR",
|
|
30
|
+
PLPL: "pl-PL",
|
|
31
|
+
CSCS: "cs-CS",
|
|
32
|
+
SKSK: "sk-SK",
|
|
33
|
+
HUHU: "hu-HU",
|
|
34
|
+
SRSR: "sr-SR",
|
|
35
|
+
ArSA: "ar-SA",
|
|
36
|
+
HRHR: "hr-HR",
|
|
37
|
+
RORO: "ro-RO",
|
|
38
|
+
THTH: "th-TH",
|
|
39
|
+
DeAT: "de-AT",
|
|
40
|
+
ViVN: "vi-VN",
|
|
41
|
+
IDID: "id-ID",
|
|
42
|
+
MsMY: "ms-MY",
|
|
43
|
+
FilPH: "fil-PH",
|
|
44
|
+
FrCA: "fr-CA",
|
|
45
|
+
HiIN: "hi-IN",
|
|
46
|
+
UkUA: "uk-UA",
|
|
47
|
+
BGBG: "bg-BG",
|
|
48
|
+
SlSI: "sl-SI",
|
|
49
|
+
SrRS: "sr-RS",
|
|
50
|
+
XXXX: "xx-XX",
|
|
51
|
+
} as const;
|
|
52
|
+
export type LanguageCodeParameter = ClosedEnum<typeof LanguageCodeParameter>;
|
|
6
53
|
|
|
7
|
-
/**
|
|
8
|
-
* 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><br><br>**Important**: When using this API via SDK or MCP, use the parameter name `Dollar_lang`, not `$lang` or `lang`.
|
|
9
|
-
*/
|
|
10
54
|
export const LanguageCodeParameter$zodSchema = z.enum([
|
|
11
55
|
"en-US",
|
|
12
56
|
"fr-FR",
|
|
@@ -50,10 +94,4 @@ export const LanguageCodeParameter$zodSchema = z.enum([
|
|
|
50
94
|
"sl-SI",
|
|
51
95
|
"sr-RS",
|
|
52
96
|
"xx-XX",
|
|
53
|
-
])
|
|
54
|
-
"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><br><br>**Important**: When using this API via SDK or MCP, use the parameter name `Dollar_lang`, not `$lang` or `lang`.",
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
export type LanguageCodeParameter = z.infer<
|
|
58
|
-
typeof LanguageCodeParameter$zodSchema
|
|
59
|
-
>;
|
|
97
|
+
]);
|