egain-api-python 0.1.1__py3-none-any.whl → 0.1.3__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 (35) hide show
  1. egain_api_python/_version.py +3 -3
  2. egain_api_python/answers.py +26 -26
  3. egain_api_python/articlelists.py +6 -6
  4. egain_api_python/errors/gethealthop.py +33 -19
  5. egain_api_python/export.py +2 -2
  6. egain_api_python/models/__init__.py +87 -64
  7. egain_api_python/models/aisearchop.py +6 -34
  8. egain_api_python/models/aisearchresponse.py +0 -4
  9. egain_api_python/models/articleaisearchresult.py +14 -21
  10. egain_api_python/models/articletype.py +3 -5
  11. egain_api_python/models/exportstatus.py +15 -8
  12. egain_api_python/models/getannouncementarticlesop.py +2 -2
  13. egain_api_python/models/getarticlelistdetailsop.py +2 -2
  14. egain_api_python/models/getarticlesintopicop.py +4 -4
  15. egain_api_python/models/{post_portalid_answersop.py → getbestanswerop.py} +9 -9
  16. egain_api_python/models/gethealthop.py +134 -7
  17. egain_api_python/models/getpopulararticlesop.py +4 -4
  18. egain_api_python/models/getrelatedarticlesop.py +2 -2
  19. egain_api_python/models/importstatus.py +116 -0
  20. egain_api_python/models/knowledgeexport.py +3 -5
  21. egain_api_python/models/referenceresponse.py +7 -23
  22. egain_api_python/models/{post_portalid_retrieveop.py → retrievechunksop.py} +9 -9
  23. egain_api_python/models/searchresult.py +7 -23
  24. egain_api_python/populararticles.py +12 -12
  25. egain_api_python/portal_article.py +24 -24
  26. egain_api_python/retrieve.py +26 -26
  27. egain_api_python/sdk.py +1 -0
  28. egain_api_python/search.py +18 -36
  29. {egain_api_python-0.1.1.dist-info → egain_api_python-0.1.3.dist-info}/METADATA +16 -11
  30. {egain_api_python-0.1.1.dist-info → egain_api_python-0.1.3.dist-info}/RECORD +33 -35
  31. egain_api_python/models/resourcetype_parameter.py +0 -10
  32. egain_api_python/models/topicaisearchresult.py +0 -67
  33. {egain_api_python-0.1.1.dist-info → egain_api_python-0.1.3.dist-info}/WHEEL +0 -0
  34. {egain_api_python-0.1.1.dist-info → egain_api_python-0.1.3.dist-info}/licenses/LICENSE +0 -0
  35. {egain_api_python-0.1.1.dist-info → egain_api_python-0.1.3.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
+ from .topicbreadcrumb import TopicBreadcrumb, TopicBreadcrumbTypedDict
4
5
  from egain_api_python.types import BaseModel
5
6
  import pydantic
6
7
  from typing import Literal, Optional
@@ -22,25 +23,6 @@ ReferenceResponseSource = Literal[
22
23
  r"""Source Type"""
23
24
 
24
25
 
25
- class ReferenceResponseLinkTypedDict(TypedDict):
26
- r"""Defines the relationship between this resource and another object."""
27
-
28
- rel: NotRequired[str]
29
- 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."""
30
- href: NotRequired[str]
31
- r"""The URL that specifies the link's destination."""
32
-
33
-
34
- class ReferenceResponseLink(BaseModel):
35
- r"""Defines the relationship between this resource and another object."""
36
-
37
- rel: Optional[str] = None
38
- 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."""
39
-
40
- href: Optional[str] = None
41
- r"""The URL that specifies the link's destination."""
42
-
43
-
44
26
  class ReferenceResponseTypedDict(TypedDict):
45
27
  r"""One document used in generated response"""
46
28
 
@@ -54,8 +36,8 @@ class ReferenceResponseTypedDict(TypedDict):
54
36
  r"""Source Type"""
55
37
  doc_name: NotRequired[str]
56
38
  r"""Name of the attachment, if an attachment was used as the source content."""
57
- link: NotRequired[ReferenceResponseLinkTypedDict]
58
- r"""Defines the relationship between this resource and another object."""
39
+ topic_bread_crumb: NotRequired[TopicBreadcrumbTypedDict]
40
+ r"""This schema contains one or more TopicSummary instances."""
59
41
 
60
42
 
61
43
  class ReferenceResponse(BaseModel):
@@ -76,5 +58,7 @@ class ReferenceResponse(BaseModel):
76
58
  doc_name: Annotated[Optional[str], pydantic.Field(alias="docName")] = None
77
59
  r"""Name of the attachment, if an attachment was used as the source content."""
78
60
 
79
- link: Optional[ReferenceResponseLink] = None
80
- r"""Defines the relationship between this resource and another object."""
61
+ topic_bread_crumb: Annotated[
62
+ Optional[TopicBreadcrumb], pydantic.Field(alias="topicBreadCrumb")
63
+ ] = None
64
+ r"""This schema contains one or more TopicSummary instances."""
@@ -15,31 +15,31 @@ from typing import Dict, List, Optional
15
15
  from typing_extensions import Annotated, NotRequired, TypedDict
16
16
 
17
17
 
18
- POST_PORTAL_ID_RETRIEVE_OP_SERVERS = [
18
+ RETRIEVE_CHUNKS_OP_SERVERS = [
19
19
  # aiservices
20
20
  "https://${API_DOMAIN}/core/aiservices/v4",
21
21
  ]
22
22
 
23
23
 
24
- class PostPortalIDRetrieveRequestTypedDict(TypedDict):
24
+ class RetrieveChunksRequestTypedDict(TypedDict):
25
25
  q: str
26
26
  r"""The search query string. The string must be escaped as required by the URL syntax rules."""
27
27
  portal_id: str
28
28
  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."""
29
- dollar_filter_user_profile_id: NotRequired[str]
29
+ filter_user_profile_id: NotRequired[str]
30
30
  language: NotRequired[LanguageCodeParameter]
31
31
  r"""The language that describes the details of a resource. Resources available in different languages may differ from each other. <br><br> If lang is not passed, then the portal's default language is used."""
32
- dollar_filter_tags: NotRequired[Dict[str, List[str]]]
32
+ filter_tags: NotRequired[Dict[str, List[str]]]
33
33
  r"""An object where each key is a **Category Tag ID** (numeric string),
34
34
  and each value is an array of **Tag IDs** for that category.
35
35
 
36
36
  """
37
- dollar_filter_topic_ids: NotRequired[List[str]]
37
+ filter_topic_ids: NotRequired[List[str]]
38
38
  r"""An array of topic IDs. It is used to restrict search results to specific topics."""
39
39
  retrieve_request: NotRequired[RetrieveRequestTypedDict]
40
40
 
41
41
 
42
- class PostPortalIDRetrieveRequest(BaseModel):
42
+ class RetrieveChunksRequest(BaseModel):
43
43
  q: Annotated[
44
44
  str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
45
45
  ]
@@ -52,7 +52,7 @@ class PostPortalIDRetrieveRequest(BaseModel):
52
52
  ]
53
53
  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."""
54
54
 
55
- dollar_filter_user_profile_id: Annotated[
55
+ filter_user_profile_id: Annotated[
56
56
  Optional[str],
57
57
  pydantic.Field(alias="$filter[userProfileID]"),
58
58
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
@@ -65,7 +65,7 @@ class PostPortalIDRetrieveRequest(BaseModel):
65
65
  ] = None
66
66
  r"""The language that describes the details of a resource. Resources available in different languages may differ from each other. <br><br> If lang is not passed, then the portal's default language is used."""
67
67
 
68
- dollar_filter_tags: Annotated[
68
+ filter_tags: Annotated[
69
69
  Optional[Dict[str, List[str]]],
70
70
  pydantic.Field(alias="$filter[tags]"),
71
71
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
@@ -75,7 +75,7 @@ class PostPortalIDRetrieveRequest(BaseModel):
75
75
 
76
76
  """
77
77
 
78
- dollar_filter_topic_ids: Annotated[
78
+ filter_topic_ids: Annotated[
79
79
  Optional[List[str]],
80
80
  pydantic.Field(alias="$filter[topicIds]"),
81
81
  FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
@@ -1,6 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
+ from .topicbreadcrumb import TopicBreadcrumb, TopicBreadcrumbTypedDict
4
5
  from egain_api_python.types import BaseModel
5
6
  import pydantic
6
7
  from typing import Literal, Optional
@@ -28,25 +29,6 @@ SnippetType = Literal[
28
29
  ]
29
30
 
30
31
 
31
- class SearchResultLinkTypedDict(TypedDict):
32
- r"""Defines the relationship between this resource and another object."""
33
-
34
- rel: NotRequired[str]
35
- 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."""
36
- href: NotRequired[str]
37
- r"""The URL that specifies the link's destination."""
38
-
39
-
40
- class SearchResultLink(BaseModel):
41
- r"""Defines the relationship between this resource and another object."""
42
-
43
- rel: Optional[str] = None
44
- 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."""
45
-
46
- href: Optional[str] = None
47
- r"""The URL that specifies the link's destination."""
48
-
49
-
50
32
  class SearchResultTypedDict(TypedDict):
51
33
  r"""Represents a single document or snippet returned by search, along with its metadata and relevance score."""
52
34
 
@@ -65,8 +47,8 @@ class SearchResultTypedDict(TypedDict):
65
47
  doc_name: NotRequired[str]
66
48
  r"""Name of the attachment, if an attachment was used as the source content."""
67
49
  snippet_type: NotRequired[SnippetType]
68
- link: NotRequired[SearchResultLinkTypedDict]
69
- r"""Defines the relationship between this resource and another object."""
50
+ topic_bread_crumb: NotRequired[TopicBreadcrumbTypedDict]
51
+ r"""This schema contains one or more TopicSummary instances."""
70
52
 
71
53
 
72
54
  class SearchResult(BaseModel):
@@ -97,5 +79,7 @@ class SearchResult(BaseModel):
97
79
  Optional[SnippetType], pydantic.Field(alias="snippetType")
98
80
  ] = None
99
81
 
100
- link: Optional[SearchResultLink] = None
101
- r"""Defines the relationship between this resource and another object."""
82
+ topic_bread_crumb: Annotated[
83
+ Optional[TopicBreadcrumb], pydantic.Field(alias="topicBreadCrumb")
84
+ ] = None
85
+ r"""This schema contains one or more TopicSummary instances."""
@@ -15,9 +15,9 @@ class Populararticles(BaseSDK):
15
15
  *,
16
16
  accept_language: models.AcceptLanguage,
17
17
  portal_id: str,
18
- dollar_filter_topic_id: Optional[str] = None,
18
+ filter_topic_id: Optional[str] = None,
19
19
  language: Optional[models.LanguageQueryParameter] = None,
20
- dollar_filter_tags: Optional[str] = None,
20
+ filter_tags: Optional[str] = None,
21
21
  pagenum: Optional[int] = 1,
22
22
  pagesize: Optional[int] = 10,
23
23
  article_result_additional_attributes: Optional[
@@ -51,9 +51,9 @@ class Populararticles(BaseSDK):
51
51
 
52
52
  :param accept_language: The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).
53
53
  :param portal_id: 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.
54
- :param dollar_filter_topic_id: The ID of the topic. It is used to restrict to a specific topic.
54
+ :param filter_topic_id: The ID of the topic. It is used to restrict to a specific topic.
55
55
  :param language: 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>
56
- :param dollar_filter_tags: 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.
56
+ :param filter_tags: 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.
57
57
  :param pagenum: Pagination parameter that specifies the page number of results to be returned. Used in conjunction with $pagesize.
58
58
  :param pagesize: Pagination parameter that specifies the number of results per page. Used in conjunction with $pagenum.
59
59
  :param article_result_additional_attributes: 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. #### Default Attributes These Article attributes are always returned: | Name | Description | ---- | ----------- | id | The ID of the Article. | name | The name of the Article. | articleType | The Article Type and its attributes. | createdBy | The ID, first name, middle name and last name of the user that created the Article. | createdDate | The date that the Article was created. | hasAttachments | True: The Article has one or more attachments.<br>False: The Article does not have any attachments. | languageCode | The language code of the Article language. | modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article. | modifiedDate | The date that the Article was last modified on. | link | The link object, used to retrieve the details of the Article. | versionId | The ID of the Article version that is returned.
@@ -75,9 +75,9 @@ class Populararticles(BaseSDK):
75
75
  request = models.GetpopulararticlesRequest(
76
76
  accept_language=accept_language,
77
77
  portal_id=portal_id,
78
- dollar_filter_topic_id=dollar_filter_topic_id,
78
+ filter_topic_id=filter_topic_id,
79
79
  language=language,
80
- dollar_filter_tags=dollar_filter_tags,
80
+ filter_tags=filter_tags,
81
81
  pagenum=pagenum,
82
82
  pagesize=pagesize,
83
83
  article_result_additional_attributes=article_result_additional_attributes,
@@ -153,9 +153,9 @@ class Populararticles(BaseSDK):
153
153
  *,
154
154
  accept_language: models.AcceptLanguage,
155
155
  portal_id: str,
156
- dollar_filter_topic_id: Optional[str] = None,
156
+ filter_topic_id: Optional[str] = None,
157
157
  language: Optional[models.LanguageQueryParameter] = None,
158
- dollar_filter_tags: Optional[str] = None,
158
+ filter_tags: Optional[str] = None,
159
159
  pagenum: Optional[int] = 1,
160
160
  pagesize: Optional[int] = 10,
161
161
  article_result_additional_attributes: Optional[
@@ -189,9 +189,9 @@ class Populararticles(BaseSDK):
189
189
 
190
190
  :param accept_language: The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).
191
191
  :param portal_id: 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.
192
- :param dollar_filter_topic_id: The ID of the topic. It is used to restrict to a specific topic.
192
+ :param filter_topic_id: The ID of the topic. It is used to restrict to a specific topic.
193
193
  :param language: 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>
194
- :param dollar_filter_tags: 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.
194
+ :param filter_tags: 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.
195
195
  :param pagenum: Pagination parameter that specifies the page number of results to be returned. Used in conjunction with $pagesize.
196
196
  :param pagesize: Pagination parameter that specifies the number of results per page. Used in conjunction with $pagenum.
197
197
  :param article_result_additional_attributes: 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. #### Default Attributes These Article attributes are always returned: | Name | Description | ---- | ----------- | id | The ID of the Article. | name | The name of the Article. | articleType | The Article Type and its attributes. | createdBy | The ID, first name, middle name and last name of the user that created the Article. | createdDate | The date that the Article was created. | hasAttachments | True: The Article has one or more attachments.<br>False: The Article does not have any attachments. | languageCode | The language code of the Article language. | modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article. | modifiedDate | The date that the Article was last modified on. | link | The link object, used to retrieve the details of the Article. | versionId | The ID of the Article version that is returned.
@@ -213,9 +213,9 @@ class Populararticles(BaseSDK):
213
213
  request = models.GetpopulararticlesRequest(
214
214
  accept_language=accept_language,
215
215
  portal_id=portal_id,
216
- dollar_filter_topic_id=dollar_filter_topic_id,
216
+ filter_topic_id=filter_topic_id,
217
217
  language=language,
218
- dollar_filter_tags=dollar_filter_tags,
218
+ filter_tags=filter_tags,
219
219
  pagenum=pagenum,
220
220
  pagesize=pagesize,
221
221
  article_result_additional_attributes=article_result_additional_attributes,
@@ -1299,12 +1299,12 @@ class PortalArticle(BaseSDK):
1299
1299
  *,
1300
1300
  accept_language: models.AcceptLanguage,
1301
1301
  portal_id: str,
1302
- dollar_filter_topic_id: str,
1302
+ filter_topic_id: str,
1303
1303
  search_profile_id: Optional[str] = None,
1304
1304
  article_result_additional_attributes: Optional[
1305
1305
  List[models.ArticleResultAdditionalAttributes]
1306
1306
  ] = None,
1307
- dollar_filter_tags: Optional[str] = None,
1307
+ filter_tags: Optional[str] = None,
1308
1308
  workflow_milestone: Optional[models.WorkflowMilestone] = None,
1309
1309
  language: Optional[models.LanguageQueryParameter] = None,
1310
1310
  pagenum: Optional[int] = 1,
@@ -1342,10 +1342,10 @@ class PortalArticle(BaseSDK):
1342
1342
 
1343
1343
  :param accept_language: The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).
1344
1344
  :param portal_id: 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.
1345
- :param dollar_filter_topic_id: The ID of the topic. It is used to restrict to a specific topic.
1345
+ :param filter_topic_id: The ID of the topic. It is used to restrict to a specific topic.
1346
1346
  :param search_profile_id: Search Profile ID
1347
1347
  :param article_result_additional_attributes: 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. #### Default Attributes These Article attributes are always returned: | Name | Description | ---- | ----------- | id | The ID of the Article. | name | The name of the Article. | articleType | The Article Type and its attributes. | createdBy | The ID, first name, middle name and last name of the user that created the Article. | createdDate | The date that the Article was created. | hasAttachments | True: The Article has one or more attachments.<br>False: The Article does not have any attachments. | languageCode | The language code of the Article language. | modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article. | modifiedDate | The date that the Article was last modified on. | link | The link object, used to retrieve the details of the Article. | versionId | The ID of the Article version that is returned.
1348
- :param dollar_filter_tags: 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.
1348
+ :param filter_tags: 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.
1349
1349
  :param workflow_milestone: For agents with the View Author Portal or View Staging Portal actions, this determines which version of the Article is returned.<li>'Authoring' returns the most recent version of an Article checked-in by an author.</li><li>'Staging' returns the updated version currently being processed in a workflow.</li><li>'Publish' returns the most recently published version.</li>
1350
1350
  :param language: 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>
1351
1351
  :param pagenum: Pagination parameter that specifies the page number of results to be returned. Used in conjunction with $pagesize.
@@ -1371,9 +1371,9 @@ class PortalArticle(BaseSDK):
1371
1371
  accept_language=accept_language,
1372
1372
  portal_id=portal_id,
1373
1373
  search_profile_id=search_profile_id,
1374
- dollar_filter_topic_id=dollar_filter_topic_id,
1374
+ filter_topic_id=filter_topic_id,
1375
1375
  article_result_additional_attributes=article_result_additional_attributes,
1376
- dollar_filter_tags=dollar_filter_tags,
1376
+ filter_tags=filter_tags,
1377
1377
  workflow_milestone=workflow_milestone,
1378
1378
  language=language,
1379
1379
  pagenum=pagenum,
@@ -1452,12 +1452,12 @@ class PortalArticle(BaseSDK):
1452
1452
  *,
1453
1453
  accept_language: models.AcceptLanguage,
1454
1454
  portal_id: str,
1455
- dollar_filter_topic_id: str,
1455
+ filter_topic_id: str,
1456
1456
  search_profile_id: Optional[str] = None,
1457
1457
  article_result_additional_attributes: Optional[
1458
1458
  List[models.ArticleResultAdditionalAttributes]
1459
1459
  ] = None,
1460
- dollar_filter_tags: Optional[str] = None,
1460
+ filter_tags: Optional[str] = None,
1461
1461
  workflow_milestone: Optional[models.WorkflowMilestone] = None,
1462
1462
  language: Optional[models.LanguageQueryParameter] = None,
1463
1463
  pagenum: Optional[int] = 1,
@@ -1495,10 +1495,10 @@ class PortalArticle(BaseSDK):
1495
1495
 
1496
1496
  :param accept_language: The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).
1497
1497
  :param portal_id: 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.
1498
- :param dollar_filter_topic_id: The ID of the topic. It is used to restrict to a specific topic.
1498
+ :param filter_topic_id: The ID of the topic. It is used to restrict to a specific topic.
1499
1499
  :param search_profile_id: Search Profile ID
1500
1500
  :param article_result_additional_attributes: 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. #### Default Attributes These Article attributes are always returned: | Name | Description | ---- | ----------- | id | The ID of the Article. | name | The name of the Article. | articleType | The Article Type and its attributes. | createdBy | The ID, first name, middle name and last name of the user that created the Article. | createdDate | The date that the Article was created. | hasAttachments | True: The Article has one or more attachments.<br>False: The Article does not have any attachments. | languageCode | The language code of the Article language. | modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article. | modifiedDate | The date that the Article was last modified on. | link | The link object, used to retrieve the details of the Article. | versionId | The ID of the Article version that is returned.
1501
- :param dollar_filter_tags: 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.
1501
+ :param filter_tags: 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.
1502
1502
  :param workflow_milestone: For agents with the View Author Portal or View Staging Portal actions, this determines which version of the Article is returned.<li>'Authoring' returns the most recent version of an Article checked-in by an author.</li><li>'Staging' returns the updated version currently being processed in a workflow.</li><li>'Publish' returns the most recently published version.</li>
1503
1503
  :param language: 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>
1504
1504
  :param pagenum: Pagination parameter that specifies the page number of results to be returned. Used in conjunction with $pagesize.
@@ -1524,9 +1524,9 @@ class PortalArticle(BaseSDK):
1524
1524
  accept_language=accept_language,
1525
1525
  portal_id=portal_id,
1526
1526
  search_profile_id=search_profile_id,
1527
- dollar_filter_topic_id=dollar_filter_topic_id,
1527
+ filter_topic_id=filter_topic_id,
1528
1528
  article_result_additional_attributes=article_result_additional_attributes,
1529
- dollar_filter_tags=dollar_filter_tags,
1529
+ filter_tags=filter_tags,
1530
1530
  workflow_milestone=workflow_milestone,
1531
1531
  language=language,
1532
1532
  pagenum=pagenum,
@@ -2026,7 +2026,7 @@ class PortalArticle(BaseSDK):
2026
2026
  accept_language: models.AcceptLanguage,
2027
2027
  portal_id: str,
2028
2028
  article_id: str,
2029
- dollar_filter_tags: Optional[str] = None,
2029
+ filter_tags: Optional[str] = None,
2030
2030
  article_result_additional_attributes: Optional[
2031
2031
  List[models.ArticleResultAdditionalAttributes]
2032
2032
  ] = None,
@@ -2066,7 +2066,7 @@ class PortalArticle(BaseSDK):
2066
2066
  :param accept_language: The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).
2067
2067
  :param portal_id: 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.
2068
2068
  :param article_id: 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.
2069
- :param dollar_filter_tags: 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.
2069
+ :param filter_tags: 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.
2070
2070
  :param article_result_additional_attributes: 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. #### Default Attributes These Article attributes are always returned: | Name | Description | ---- | ----------- | id | The ID of the Article. | name | The name of the Article. | articleType | The Article Type and its attributes. | createdBy | The ID, first name, middle name and last name of the user that created the Article. | createdDate | The date that the Article was created. | hasAttachments | True: The Article has one or more attachments.<br>False: The Article does not have any attachments. | languageCode | The language code of the Article language. | modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article. | modifiedDate | The date that the Article was last modified on. | link | The link object, used to retrieve the details of the Article. | versionId | The ID of the Article version that is returned.
2071
2071
  :param workflow_milestone: For agents with the View Author Portal or View Staging Portal actions, this determines which version of the Article is returned.<li>'Authoring' returns the most recent version of an Article checked-in by an author.</li><li>'Staging' returns the updated version currently being processed in a workflow.</li><li>'Publish' returns the most recently published version.</li>
2072
2072
  :param language: 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>
@@ -2091,7 +2091,7 @@ class PortalArticle(BaseSDK):
2091
2091
  accept_language=accept_language,
2092
2092
  portal_id=portal_id,
2093
2093
  article_id=article_id,
2094
- dollar_filter_tags=dollar_filter_tags,
2094
+ filter_tags=filter_tags,
2095
2095
  article_result_additional_attributes=article_result_additional_attributes,
2096
2096
  workflow_milestone=workflow_milestone,
2097
2097
  language=language,
@@ -2170,7 +2170,7 @@ class PortalArticle(BaseSDK):
2170
2170
  accept_language: models.AcceptLanguage,
2171
2171
  portal_id: str,
2172
2172
  article_id: str,
2173
- dollar_filter_tags: Optional[str] = None,
2173
+ filter_tags: Optional[str] = None,
2174
2174
  article_result_additional_attributes: Optional[
2175
2175
  List[models.ArticleResultAdditionalAttributes]
2176
2176
  ] = None,
@@ -2210,7 +2210,7 @@ class PortalArticle(BaseSDK):
2210
2210
  :param accept_language: The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).
2211
2211
  :param portal_id: 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.
2212
2212
  :param article_id: 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.
2213
- :param dollar_filter_tags: 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.
2213
+ :param filter_tags: 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.
2214
2214
  :param article_result_additional_attributes: 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. #### Default Attributes These Article attributes are always returned: | Name | Description | ---- | ----------- | id | The ID of the Article. | name | The name of the Article. | articleType | The Article Type and its attributes. | createdBy | The ID, first name, middle name and last name of the user that created the Article. | createdDate | The date that the Article was created. | hasAttachments | True: The Article has one or more attachments.<br>False: The Article does not have any attachments. | languageCode | The language code of the Article language. | modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article. | modifiedDate | The date that the Article was last modified on. | link | The link object, used to retrieve the details of the Article. | versionId | The ID of the Article version that is returned.
2215
2215
  :param workflow_milestone: For agents with the View Author Portal or View Staging Portal actions, this determines which version of the Article is returned.<li>'Authoring' returns the most recent version of an Article checked-in by an author.</li><li>'Staging' returns the updated version currently being processed in a workflow.</li><li>'Publish' returns the most recently published version.</li>
2216
2216
  :param language: 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>
@@ -2235,7 +2235,7 @@ class PortalArticle(BaseSDK):
2235
2235
  accept_language=accept_language,
2236
2236
  portal_id=portal_id,
2237
2237
  article_id=article_id,
2238
- dollar_filter_tags=dollar_filter_tags,
2238
+ filter_tags=filter_tags,
2239
2239
  article_result_additional_attributes=article_result_additional_attributes,
2240
2240
  workflow_milestone=workflow_milestone,
2241
2241
  language=language,
@@ -2313,7 +2313,7 @@ class PortalArticle(BaseSDK):
2313
2313
  *,
2314
2314
  accept_language: models.AcceptLanguage,
2315
2315
  portal_id: str,
2316
- dollar_filter_tags: Optional[str] = None,
2316
+ filter_tags: Optional[str] = None,
2317
2317
  article_result_additional_attributes: Optional[
2318
2318
  List[models.ArticleResultAdditionalAttributes]
2319
2319
  ] = None,
@@ -2353,7 +2353,7 @@ class PortalArticle(BaseSDK):
2353
2353
 
2354
2354
  :param accept_language: The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).
2355
2355
  :param portal_id: 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.
2356
- :param dollar_filter_tags: 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.
2356
+ :param filter_tags: 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.
2357
2357
  :param article_result_additional_attributes: 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. #### Default Attributes These Article attributes are always returned: | Name | Description | ---- | ----------- | id | The ID of the Article. | name | The name of the Article. | articleType | The Article Type and its attributes. | createdBy | The ID, first name, middle name and last name of the user that created the Article. | createdDate | The date that the Article was created. | hasAttachments | True: The Article has one or more attachments.<br>False: The Article does not have any attachments. | languageCode | The language code of the Article language. | modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article. | modifiedDate | The date that the Article was last modified on. | link | The link object, used to retrieve the details of the Article. | versionId | The ID of the Article version that is returned.
2358
2358
  :param workflow_milestone: For agents with the View Author Portal or View Staging Portal actions, this determines which version of the Article is returned.<li>'Authoring' returns the most recent version of an Article checked-in by an author.</li><li>'Staging' returns the updated version currently being processed in a workflow.</li><li>'Publish' returns the most recently published version.</li>
2359
2359
  :param language: 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>
@@ -2377,7 +2377,7 @@ class PortalArticle(BaseSDK):
2377
2377
  request = models.GetAnnouncementArticlesRequest(
2378
2378
  accept_language=accept_language,
2379
2379
  portal_id=portal_id,
2380
- dollar_filter_tags=dollar_filter_tags,
2380
+ filter_tags=filter_tags,
2381
2381
  article_result_additional_attributes=article_result_additional_attributes,
2382
2382
  workflow_milestone=workflow_milestone,
2383
2383
  language=language,
@@ -2455,7 +2455,7 @@ class PortalArticle(BaseSDK):
2455
2455
  *,
2456
2456
  accept_language: models.AcceptLanguage,
2457
2457
  portal_id: str,
2458
- dollar_filter_tags: Optional[str] = None,
2458
+ filter_tags: Optional[str] = None,
2459
2459
  article_result_additional_attributes: Optional[
2460
2460
  List[models.ArticleResultAdditionalAttributes]
2461
2461
  ] = None,
@@ -2495,7 +2495,7 @@ class PortalArticle(BaseSDK):
2495
2495
 
2496
2496
  :param accept_language: The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).
2497
2497
  :param portal_id: 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.
2498
- :param dollar_filter_tags: 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.
2498
+ :param filter_tags: 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.
2499
2499
  :param article_result_additional_attributes: 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. #### Default Attributes These Article attributes are always returned: | Name | Description | ---- | ----------- | id | The ID of the Article. | name | The name of the Article. | articleType | The Article Type and its attributes. | createdBy | The ID, first name, middle name and last name of the user that created the Article. | createdDate | The date that the Article was created. | hasAttachments | True: The Article has one or more attachments.<br>False: The Article does not have any attachments. | languageCode | The language code of the Article language. | modifiedBy | The ID, first name, middle name and last name of the user that last modified the Article. | modifiedDate | The date that the Article was last modified on. | link | The link object, used to retrieve the details of the Article. | versionId | The ID of the Article version that is returned.
2500
2500
  :param workflow_milestone: For agents with the View Author Portal or View Staging Portal actions, this determines which version of the Article is returned.<li>'Authoring' returns the most recent version of an Article checked-in by an author.</li><li>'Staging' returns the updated version currently being processed in a workflow.</li><li>'Publish' returns the most recently published version.</li>
2501
2501
  :param language: 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>
@@ -2519,7 +2519,7 @@ class PortalArticle(BaseSDK):
2519
2519
  request = models.GetAnnouncementArticlesRequest(
2520
2520
  accept_language=accept_language,
2521
2521
  portal_id=portal_id,
2522
- dollar_filter_tags=dollar_filter_tags,
2522
+ filter_tags=filter_tags,
2523
2523
  article_result_additional_attributes=article_result_additional_attributes,
2524
2524
  workflow_milestone=workflow_milestone,
2525
2525
  language=language,
@@ -10,15 +10,15 @@ from typing import Dict, List, Mapping, Optional, Union
10
10
 
11
11
 
12
12
  class Retrieve(BaseSDK):
13
- def post_portal_id_retrieve(
13
+ def retrieve_chunks(
14
14
  self,
15
15
  *,
16
16
  q: str,
17
17
  portal_id: str,
18
- dollar_filter_user_profile_id: Optional[str] = None,
18
+ filter_user_profile_id: Optional[str] = None,
19
19
  language: Optional[models.LanguageCodeParameter] = None,
20
- dollar_filter_tags: Optional[Dict[str, List[str]]] = None,
21
- dollar_filter_topic_ids: Optional[List[str]] = None,
20
+ filter_tags: Optional[Dict[str, List[str]]] = None,
21
+ filter_topic_ids: Optional[List[str]] = None,
22
22
  channel: Optional[
23
23
  Union[models.RetrieveRequestChannel, models.RetrieveRequestChannelTypedDict]
24
24
  ] = None,
@@ -35,10 +35,10 @@ class Retrieve(BaseSDK):
35
35
 
36
36
  :param q: The search query string. The string must be escaped as required by the URL syntax rules.
37
37
  :param portal_id: 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.
38
- :param dollar_filter_user_profile_id:
38
+ :param filter_user_profile_id:
39
39
  :param language: The language that describes the details of a resource. Resources available in different languages may differ from each other. <br><br> If lang is not passed, then the portal's default language is used.
40
- :param dollar_filter_tags: An object where each key is a **Category Tag ID** (numeric string), and each value is an array of **Tag IDs** for that category.
41
- :param dollar_filter_topic_ids: An array of topic IDs. It is used to restrict search results to specific topics.
40
+ :param filter_tags: An object where each key is a **Category Tag ID** (numeric string), and each value is an array of **Tag IDs** for that category.
41
+ :param filter_topic_ids: An array of topic IDs. It is used to restrict search results to specific topics.
42
42
  :param channel:
43
43
  :param event_id: Unique ID for this specific API call or event.
44
44
  :param session_id: ID that ties multiple API calls to the same user session. Will be used as part of to tie events back to a session.
@@ -55,18 +55,18 @@ class Retrieve(BaseSDK):
55
55
  if server_url is not None:
56
56
  base_url = server_url
57
57
  else:
58
- base_url = models.POST_PORTAL_ID_RETRIEVE_OP_SERVERS[0]
58
+ base_url = models.RETRIEVE_CHUNKS_OP_SERVERS[0]
59
59
  url_variables = {
60
60
  "API_DOMAIN": "api.egain.cloud",
61
61
  }
62
62
 
63
- request = models.PostPortalIDRetrieveRequest(
63
+ request = models.RetrieveChunksRequest(
64
64
  q=q,
65
65
  portal_id=portal_id,
66
- dollar_filter_user_profile_id=dollar_filter_user_profile_id,
66
+ filter_user_profile_id=filter_user_profile_id,
67
67
  language=language,
68
- dollar_filter_tags=dollar_filter_tags,
69
- dollar_filter_topic_ids=dollar_filter_topic_ids,
68
+ filter_tags=filter_tags,
69
+ filter_topic_ids=filter_topic_ids,
70
70
  retrieve_request=models.RetrieveRequest(
71
71
  channel=utils.get_pydantic_model(
72
72
  channel, Optional[models.RetrieveRequestChannel]
@@ -111,7 +111,7 @@ class Retrieve(BaseSDK):
111
111
  hook_ctx=HookContext(
112
112
  config=self.sdk_configuration,
113
113
  base_url=base_url or "",
114
- operation_id="post_/{portalID}/retrieve",
114
+ operation_id="retrieveChunks",
115
115
  oauth2_scopes=[],
116
116
  security_source=get_security_from_env(
117
117
  self.sdk_configuration.security, models.Security
@@ -137,15 +137,15 @@ class Retrieve(BaseSDK):
137
137
 
138
138
  raise errors.EgainDefaultError("Unexpected response received", http_res)
139
139
 
140
- async def post_portal_id_retrieve_async(
140
+ async def retrieve_chunks_async(
141
141
  self,
142
142
  *,
143
143
  q: str,
144
144
  portal_id: str,
145
- dollar_filter_user_profile_id: Optional[str] = None,
145
+ filter_user_profile_id: Optional[str] = None,
146
146
  language: Optional[models.LanguageCodeParameter] = None,
147
- dollar_filter_tags: Optional[Dict[str, List[str]]] = None,
148
- dollar_filter_topic_ids: Optional[List[str]] = None,
147
+ filter_tags: Optional[Dict[str, List[str]]] = None,
148
+ filter_topic_ids: Optional[List[str]] = None,
149
149
  channel: Optional[
150
150
  Union[models.RetrieveRequestChannel, models.RetrieveRequestChannelTypedDict]
151
151
  ] = None,
@@ -162,10 +162,10 @@ class Retrieve(BaseSDK):
162
162
 
163
163
  :param q: The search query string. The string must be escaped as required by the URL syntax rules.
164
164
  :param portal_id: 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.
165
- :param dollar_filter_user_profile_id:
165
+ :param filter_user_profile_id:
166
166
  :param language: The language that describes the details of a resource. Resources available in different languages may differ from each other. <br><br> If lang is not passed, then the portal's default language is used.
167
- :param dollar_filter_tags: An object where each key is a **Category Tag ID** (numeric string), and each value is an array of **Tag IDs** for that category.
168
- :param dollar_filter_topic_ids: An array of topic IDs. It is used to restrict search results to specific topics.
167
+ :param filter_tags: An object where each key is a **Category Tag ID** (numeric string), and each value is an array of **Tag IDs** for that category.
168
+ :param filter_topic_ids: An array of topic IDs. It is used to restrict search results to specific topics.
169
169
  :param channel:
170
170
  :param event_id: Unique ID for this specific API call or event.
171
171
  :param session_id: ID that ties multiple API calls to the same user session. Will be used as part of to tie events back to a session.
@@ -182,18 +182,18 @@ class Retrieve(BaseSDK):
182
182
  if server_url is not None:
183
183
  base_url = server_url
184
184
  else:
185
- base_url = models.POST_PORTAL_ID_RETRIEVE_OP_SERVERS[0]
185
+ base_url = models.RETRIEVE_CHUNKS_OP_SERVERS[0]
186
186
  url_variables = {
187
187
  "API_DOMAIN": "api.egain.cloud",
188
188
  }
189
189
 
190
- request = models.PostPortalIDRetrieveRequest(
190
+ request = models.RetrieveChunksRequest(
191
191
  q=q,
192
192
  portal_id=portal_id,
193
- dollar_filter_user_profile_id=dollar_filter_user_profile_id,
193
+ filter_user_profile_id=filter_user_profile_id,
194
194
  language=language,
195
- dollar_filter_tags=dollar_filter_tags,
196
- dollar_filter_topic_ids=dollar_filter_topic_ids,
195
+ filter_tags=filter_tags,
196
+ filter_topic_ids=filter_topic_ids,
197
197
  retrieve_request=models.RetrieveRequest(
198
198
  channel=utils.get_pydantic_model(
199
199
  channel, Optional[models.RetrieveRequestChannel]
@@ -238,7 +238,7 @@ class Retrieve(BaseSDK):
238
238
  hook_ctx=HookContext(
239
239
  config=self.sdk_configuration,
240
240
  base_url=base_url or "",
241
- operation_id="post_/{portalID}/retrieve",
241
+ operation_id="retrieveChunks",
242
242
  oauth2_scopes=[],
243
243
  security_source=get_security_from_env(
244
244
  self.sdk_configuration.security, models.Security
egain_api_python/sdk.py CHANGED
@@ -45,6 +45,7 @@ class Egain(BaseSDK):
45
45
 
46
46
 
47
47
 
48
+ https://github.com/eGain/egain-api-python - Full SDK Documentation
48
49
  """
49
50
 
50
51
  aiservices: "Aiservices"