mergepythonclient 2.3.2__py3-none-any.whl → 2.4.0__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.
- merge/__init__.py +3 -1
- merge/client.py +49 -30
- merge/core/client_wrapper.py +2 -2
- merge/resources/__init__.py +3 -2
- merge/resources/knowledgebase/__init__.py +472 -0
- merge/resources/knowledgebase/client.py +480 -0
- merge/resources/knowledgebase/raw_client.py +13 -0
- merge/resources/knowledgebase/resources/__init__.py +128 -0
- merge/resources/knowledgebase/resources/account_details/__init__.py +4 -0
- merge/resources/knowledgebase/resources/account_details/client.py +102 -0
- merge/resources/knowledgebase/resources/account_details/raw_client.py +91 -0
- merge/resources/knowledgebase/resources/account_token/__init__.py +4 -0
- merge/resources/knowledgebase/resources/account_token/client.py +112 -0
- merge/resources/knowledgebase/resources/account_token/raw_client.py +98 -0
- merge/resources/knowledgebase/resources/articles/__init__.py +35 -0
- merge/resources/knowledgebase/resources/articles/client.py +378 -0
- merge/resources/knowledgebase/resources/articles/raw_client.py +363 -0
- merge/resources/knowledgebase/resources/articles/types/__init__.py +36 -0
- merge/resources/knowledgebase/resources/articles/types/articles_list_request_expand.py +625 -0
- merge/resources/knowledgebase/resources/articles/types/articles_retrieve_request_expand.py +631 -0
- merge/resources/knowledgebase/resources/async_passthrough/__init__.py +32 -0
- merge/resources/knowledgebase/resources/async_passthrough/client.py +201 -0
- merge/resources/knowledgebase/resources/async_passthrough/raw_client.py +189 -0
- merge/resources/knowledgebase/resources/async_passthrough/types/__init__.py +32 -0
- merge/resources/knowledgebase/resources/async_passthrough/types/async_passthrough_retrieve_response.py +7 -0
- merge/resources/knowledgebase/resources/attachments/__init__.py +4 -0
- merge/resources/knowledgebase/resources/attachments/client.py +326 -0
- merge/resources/knowledgebase/resources/attachments/raw_client.py +311 -0
- merge/resources/knowledgebase/resources/audit_trail/__init__.py +4 -0
- merge/resources/knowledgebase/resources/audit_trail/client.py +178 -0
- merge/resources/knowledgebase/resources/audit_trail/raw_client.py +161 -0
- merge/resources/knowledgebase/resources/available_actions/__init__.py +4 -0
- merge/resources/knowledgebase/resources/available_actions/client.py +102 -0
- merge/resources/knowledgebase/resources/available_actions/raw_client.py +91 -0
- merge/resources/knowledgebase/resources/containers/__init__.py +35 -0
- merge/resources/knowledgebase/resources/containers/client.py +378 -0
- merge/resources/knowledgebase/resources/containers/raw_client.py +363 -0
- merge/resources/knowledgebase/resources/containers/types/__init__.py +36 -0
- merge/resources/knowledgebase/resources/containers/types/containers_list_request_expand.py +41 -0
- merge/resources/knowledgebase/resources/containers/types/containers_retrieve_request_expand.py +41 -0
- merge/resources/knowledgebase/resources/delete_account/__init__.py +4 -0
- merge/resources/knowledgebase/resources/delete_account/client.py +99 -0
- merge/resources/knowledgebase/resources/delete_account/raw_client.py +71 -0
- merge/resources/knowledgebase/resources/field_mapping/__init__.py +4 -0
- merge/resources/knowledgebase/resources/field_mapping/client.py +652 -0
- merge/resources/knowledgebase/resources/field_mapping/raw_client.py +672 -0
- merge/resources/knowledgebase/resources/force_resync/__init__.py +4 -0
- merge/resources/knowledgebase/resources/force_resync/client.py +106 -0
- merge/resources/knowledgebase/resources/force_resync/raw_client.py +93 -0
- merge/resources/knowledgebase/resources/generate_key/__init__.py +4 -0
- merge/resources/knowledgebase/resources/generate_key/client.py +115 -0
- merge/resources/knowledgebase/resources/generate_key/raw_client.py +114 -0
- merge/resources/knowledgebase/resources/groups/__init__.py +32 -0
- merge/resources/knowledgebase/resources/groups/client.py +348 -0
- merge/resources/knowledgebase/resources/groups/raw_client.py +333 -0
- merge/resources/knowledgebase/resources/groups/types/__init__.py +36 -0
- merge/resources/knowledgebase/resources/groups/types/groups_list_request_expand.py +25 -0
- merge/resources/knowledgebase/resources/groups/types/groups_retrieve_request_expand.py +25 -0
- merge/resources/knowledgebase/resources/issues/__init__.py +32 -0
- merge/resources/knowledgebase/resources/issues/client.py +331 -0
- merge/resources/knowledgebase/resources/issues/raw_client.py +336 -0
- merge/resources/knowledgebase/resources/issues/types/__init__.py +32 -0
- merge/resources/knowledgebase/resources/issues/types/issues_list_request_status.py +17 -0
- merge/resources/knowledgebase/resources/link_token/__init__.py +32 -0
- merge/resources/knowledgebase/resources/link_token/client.py +273 -0
- merge/resources/knowledgebase/resources/link_token/raw_client.py +256 -0
- merge/resources/knowledgebase/resources/link_token/types/__init__.py +32 -0
- merge/resources/knowledgebase/resources/link_token/types/end_user_details_request_language.py +7 -0
- merge/resources/knowledgebase/resources/linked_accounts/__init__.py +32 -0
- merge/resources/knowledgebase/resources/linked_accounts/client.py +265 -0
- merge/resources/knowledgebase/resources/linked_accounts/raw_client.py +248 -0
- merge/resources/knowledgebase/resources/linked_accounts/types/__init__.py +34 -0
- merge/resources/knowledgebase/resources/linked_accounts/types/linked_accounts_list_request_category.py +45 -0
- merge/resources/knowledgebase/resources/passthrough/__init__.py +4 -0
- merge/resources/knowledgebase/resources/passthrough/client.py +126 -0
- merge/resources/knowledgebase/resources/passthrough/raw_client.py +111 -0
- merge/resources/knowledgebase/resources/regenerate_key/__init__.py +4 -0
- merge/resources/knowledgebase/resources/regenerate_key/client.py +115 -0
- merge/resources/knowledgebase/resources/regenerate_key/raw_client.py +114 -0
- merge/resources/knowledgebase/resources/scopes/__init__.py +4 -0
- merge/resources/knowledgebase/resources/scopes/client.py +320 -0
- merge/resources/knowledgebase/resources/scopes/raw_client.py +267 -0
- merge/resources/knowledgebase/resources/sync_status/__init__.py +4 -0
- merge/resources/knowledgebase/resources/sync_status/client.py +130 -0
- merge/resources/knowledgebase/resources/sync_status/raw_client.py +121 -0
- merge/resources/knowledgebase/resources/users/__init__.py +4 -0
- merge/resources/knowledgebase/resources/users/client.py +326 -0
- merge/resources/knowledgebase/resources/users/raw_client.py +311 -0
- merge/resources/knowledgebase/resources/webhook_receivers/__init__.py +4 -0
- merge/resources/knowledgebase/resources/webhook_receivers/client.py +201 -0
- merge/resources/knowledgebase/resources/webhook_receivers/raw_client.py +208 -0
- merge/resources/knowledgebase/types/__init__.py +374 -0
- merge/resources/knowledgebase/types/account_details.py +40 -0
- merge/resources/knowledgebase/types/account_details_and_actions.py +54 -0
- merge/resources/knowledgebase/types/account_details_and_actions_category.py +7 -0
- merge/resources/knowledgebase/types/account_details_and_actions_integration.py +29 -0
- merge/resources/knowledgebase/types/account_details_and_actions_status.py +7 -0
- merge/resources/knowledgebase/types/account_details_and_actions_status_enum.py +36 -0
- merge/resources/knowledgebase/types/account_details_category.py +7 -0
- merge/resources/knowledgebase/types/account_integration.py +67 -0
- merge/resources/knowledgebase/types/account_token.py +23 -0
- merge/resources/knowledgebase/types/advanced_metadata.py +25 -0
- merge/resources/knowledgebase/types/article.py +159 -0
- merge/resources/knowledgebase/types/article_attachments_item.py +7 -0
- merge/resources/knowledgebase/types/article_author.py +7 -0
- merge/resources/knowledgebase/types/article_last_edited_by.py +7 -0
- merge/resources/knowledgebase/types/article_parent_article.py +9 -0
- merge/resources/knowledgebase/types/article_parent_container.py +7 -0
- merge/resources/knowledgebase/types/article_permissions_item.py +7 -0
- merge/resources/knowledgebase/types/article_root_container.py +7 -0
- merge/resources/knowledgebase/types/article_status.py +7 -0
- merge/resources/knowledgebase/types/article_type.py +7 -0
- merge/resources/knowledgebase/types/article_type_enum.py +31 -0
- merge/resources/knowledgebase/types/article_visibility.py +7 -0
- merge/resources/knowledgebase/types/async_passthrough_reciept.py +20 -0
- merge/resources/knowledgebase/types/attachment.py +67 -0
- merge/resources/knowledgebase/types/audit_log_event.py +97 -0
- merge/resources/knowledgebase/types/audit_log_event_event_type.py +7 -0
- merge/resources/knowledgebase/types/audit_log_event_role.py +7 -0
- merge/resources/knowledgebase/types/available_actions.py +33 -0
- merge/resources/knowledgebase/types/categories_enum.py +56 -0
- merge/resources/knowledgebase/types/category_enum.py +56 -0
- merge/resources/knowledgebase/types/common_model_scope_api.py +24 -0
- merge/resources/knowledgebase/types/common_model_scopes_body_request.py +23 -0
- merge/resources/knowledgebase/types/completed_account_initial_screen_enum.py +5 -0
- merge/resources/knowledgebase/types/container.py +130 -0
- merge/resources/knowledgebase/types/container_permissions_item.py +7 -0
- merge/resources/knowledgebase/types/container_status.py +7 -0
- merge/resources/knowledgebase/types/container_type.py +7 -0
- merge/resources/knowledgebase/types/container_type_enum.py +46 -0
- merge/resources/knowledgebase/types/container_visibility.py +7 -0
- merge/resources/knowledgebase/types/data_passthrough_request.py +62 -0
- merge/resources/knowledgebase/types/data_passthrough_request_method.py +7 -0
- merge/resources/knowledgebase/types/data_passthrough_request_request_format.py +7 -0
- merge/resources/knowledgebase/types/debug_mode_log.py +23 -0
- merge/resources/knowledgebase/types/debug_model_log_summary.py +22 -0
- merge/resources/knowledgebase/types/enabled_actions_enum.py +22 -0
- merge/resources/knowledgebase/types/encoding_enum.py +31 -0
- merge/resources/knowledgebase/types/error_validation_problem.py +24 -0
- merge/resources/knowledgebase/types/event_type_enum.py +231 -0
- merge/resources/knowledgebase/types/external_target_field_api.py +22 -0
- merge/resources/knowledgebase/types/external_target_field_api_response.py +25 -0
- merge/resources/knowledgebase/types/field_mapping_api_instance.py +26 -0
- merge/resources/knowledgebase/types/field_mapping_api_instance_remote_field.py +27 -0
- merge/resources/knowledgebase/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py +22 -0
- merge/resources/knowledgebase/types/field_mapping_api_instance_response.py +25 -0
- merge/resources/knowledgebase/types/field_mapping_api_instance_target_field.py +22 -0
- merge/resources/knowledgebase/types/field_mapping_instance_response.py +27 -0
- merge/resources/knowledgebase/types/field_permission_deserializer.py +21 -0
- merge/resources/knowledgebase/types/field_permission_deserializer_request.py +21 -0
- merge/resources/knowledgebase/types/group.py +71 -0
- merge/resources/knowledgebase/types/group_parent_group.py +9 -0
- merge/resources/knowledgebase/types/group_users_item.py +7 -0
- merge/resources/knowledgebase/types/individual_common_model_scope_deserializer.py +24 -0
- merge/resources/knowledgebase/types/individual_common_model_scope_deserializer_request.py +24 -0
- merge/resources/knowledgebase/types/issue.py +36 -0
- merge/resources/knowledgebase/types/issue_status.py +7 -0
- merge/resources/knowledgebase/types/issue_status_enum.py +22 -0
- merge/resources/knowledgebase/types/language_enum.py +22 -0
- merge/resources/knowledgebase/types/last_sync_result_enum.py +46 -0
- merge/resources/knowledgebase/types/link_token.py +22 -0
- merge/resources/knowledgebase/types/method_enum.py +51 -0
- merge/resources/knowledgebase/types/model_operation.py +32 -0
- merge/resources/knowledgebase/types/model_permission_deserializer.py +20 -0
- merge/resources/knowledgebase/types/model_permission_deserializer_request.py +20 -0
- merge/resources/knowledgebase/types/multipart_form_field_request.py +57 -0
- merge/resources/knowledgebase/types/multipart_form_field_request_encoding.py +7 -0
- merge/resources/knowledgebase/types/paginated_account_details_and_actions_list.py +23 -0
- merge/resources/knowledgebase/types/paginated_article_list.py +30 -0
- merge/resources/knowledgebase/types/paginated_attachment_list.py +23 -0
- merge/resources/knowledgebase/types/paginated_audit_log_event_list.py +23 -0
- merge/resources/knowledgebase/types/paginated_container_list.py +30 -0
- merge/resources/knowledgebase/types/paginated_group_list.py +29 -0
- merge/resources/knowledgebase/types/paginated_issue_list.py +23 -0
- merge/resources/knowledgebase/types/paginated_sync_status_list.py +23 -0
- merge/resources/knowledgebase/types/paginated_user_list.py +23 -0
- merge/resources/knowledgebase/types/permission.py +77 -0
- merge/resources/knowledgebase/types/permission_group.py +7 -0
- merge/resources/knowledgebase/types/permission_type.py +7 -0
- merge/resources/knowledgebase/types/permission_type_enum.py +36 -0
- merge/resources/knowledgebase/types/permission_user.py +7 -0
- merge/resources/knowledgebase/types/remote_data.py +34 -0
- merge/resources/knowledgebase/types/remote_endpoint_info.py +22 -0
- merge/resources/knowledgebase/types/remote_field_api.py +28 -0
- merge/resources/knowledgebase/types/remote_field_api_advanced_metadata.py +7 -0
- merge/resources/knowledgebase/types/remote_field_api_coverage.py +5 -0
- merge/resources/knowledgebase/types/remote_field_api_response.py +25 -0
- merge/resources/knowledgebase/types/remote_key.py +30 -0
- merge/resources/knowledgebase/types/remote_response.py +36 -0
- merge/resources/knowledgebase/types/remote_response_response_type.py +7 -0
- merge/resources/knowledgebase/types/request_format_enum.py +31 -0
- merge/resources/knowledgebase/types/response_type_enum.py +22 -0
- merge/resources/knowledgebase/types/role_enum.py +46 -0
- merge/resources/knowledgebase/types/roles_enum.py +31 -0
- merge/resources/knowledgebase/types/selective_sync_configurations_usage_enum.py +24 -0
- merge/resources/knowledgebase/types/status_3_c_6_enum.py +36 -0
- merge/resources/knowledgebase/types/status_fd_5_enum.py +46 -0
- merge/resources/knowledgebase/types/sync_status.py +41 -0
- merge/resources/knowledgebase/types/sync_status_last_sync_result.py +7 -0
- merge/resources/knowledgebase/types/sync_status_status.py +7 -0
- merge/resources/knowledgebase/types/user.py +60 -0
- merge/resources/knowledgebase/types/validation_problem_source.py +20 -0
- merge/resources/knowledgebase/types/visibility_enum.py +31 -0
- merge/resources/knowledgebase/types/warning_validation_problem.py +24 -0
- merge/resources/knowledgebase/types/webhook_receiver.py +22 -0
- {mergepythonclient-2.3.2.dist-info → mergepythonclient-2.4.0.dist-info}/METADATA +2 -1
- {mergepythonclient-2.3.2.dist-info → mergepythonclient-2.4.0.dist-info}/RECORD +209 -8
- {mergepythonclient-2.3.2.dist-info → mergepythonclient-2.4.0.dist-info}/LICENSE.md +0 -0
- {mergepythonclient-2.3.2.dist-info → mergepythonclient-2.4.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
T_Result = typing.TypeVar("T_Result")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class PermissionTypeEnum(str, enum.Enum):
|
|
10
|
+
"""
|
|
11
|
+
* `USER` - USER
|
|
12
|
+
* `GROUP` - GROUP
|
|
13
|
+
* `COMPANY` - COMPANY
|
|
14
|
+
* `ANYONE` - ANYONE
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
USER = "USER"
|
|
18
|
+
GROUP = "GROUP"
|
|
19
|
+
COMPANY = "COMPANY"
|
|
20
|
+
ANYONE = "ANYONE"
|
|
21
|
+
|
|
22
|
+
def visit(
|
|
23
|
+
self,
|
|
24
|
+
user: typing.Callable[[], T_Result],
|
|
25
|
+
group: typing.Callable[[], T_Result],
|
|
26
|
+
company: typing.Callable[[], T_Result],
|
|
27
|
+
anyone: typing.Callable[[], T_Result],
|
|
28
|
+
) -> T_Result:
|
|
29
|
+
if self is PermissionTypeEnum.USER:
|
|
30
|
+
return user()
|
|
31
|
+
if self is PermissionTypeEnum.GROUP:
|
|
32
|
+
return group()
|
|
33
|
+
if self is PermissionTypeEnum.COMPANY:
|
|
34
|
+
return company()
|
|
35
|
+
if self is PermissionTypeEnum.ANYONE:
|
|
36
|
+
return anyone()
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class RemoteData(UncheckedBaseModel):
|
|
11
|
+
"""
|
|
12
|
+
# The RemoteData Object
|
|
13
|
+
### Description
|
|
14
|
+
The `RemoteData` object is used to represent the full data pulled from the third-party API for an object.
|
|
15
|
+
|
|
16
|
+
### Usage Example
|
|
17
|
+
TODO
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
path: str = pydantic.Field()
|
|
21
|
+
"""
|
|
22
|
+
The third-party API path that is being called.
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
data: typing.Optional[typing.Optional[typing.Any]] = None
|
|
26
|
+
|
|
27
|
+
if IS_PYDANTIC_V2:
|
|
28
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
29
|
+
else:
|
|
30
|
+
|
|
31
|
+
class Config:
|
|
32
|
+
frozen = True
|
|
33
|
+
smart_union = True
|
|
34
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class RemoteEndpointInfo(UncheckedBaseModel):
|
|
11
|
+
method: str
|
|
12
|
+
url_path: str
|
|
13
|
+
field_traversal_path: typing.List[typing.Optional[typing.Any]]
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
class Config:
|
|
20
|
+
frozen = True
|
|
21
|
+
smart_union = True
|
|
22
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
from .remote_endpoint_info import RemoteEndpointInfo
|
|
9
|
+
from .remote_field_api_advanced_metadata import RemoteFieldApiAdvancedMetadata
|
|
10
|
+
from .remote_field_api_coverage import RemoteFieldApiCoverage
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class RemoteFieldApi(UncheckedBaseModel):
|
|
14
|
+
schema_: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field(alias="schema")
|
|
15
|
+
remote_key_name: str
|
|
16
|
+
remote_endpoint_info: RemoteEndpointInfo
|
|
17
|
+
example_values: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None
|
|
18
|
+
advanced_metadata: typing.Optional[RemoteFieldApiAdvancedMetadata] = None
|
|
19
|
+
coverage: typing.Optional[RemoteFieldApiCoverage] = None
|
|
20
|
+
|
|
21
|
+
if IS_PYDANTIC_V2:
|
|
22
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
23
|
+
else:
|
|
24
|
+
|
|
25
|
+
class Config:
|
|
26
|
+
frozen = True
|
|
27
|
+
smart_union = True
|
|
28
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
from .remote_field_api import RemoteFieldApi
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RemoteFieldApiResponse(UncheckedBaseModel):
|
|
12
|
+
container: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Container", default=None)
|
|
13
|
+
article: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Article", default=None)
|
|
14
|
+
attachment: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Attachment", default=None)
|
|
15
|
+
user: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="User", default=None)
|
|
16
|
+
group: typing.Optional[typing.List[RemoteFieldApi]] = pydantic.Field(alias="Group", default=None)
|
|
17
|
+
|
|
18
|
+
if IS_PYDANTIC_V2:
|
|
19
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
20
|
+
else:
|
|
21
|
+
|
|
22
|
+
class Config:
|
|
23
|
+
frozen = True
|
|
24
|
+
smart_union = True
|
|
25
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class RemoteKey(UncheckedBaseModel):
|
|
11
|
+
"""
|
|
12
|
+
# The RemoteKey Object
|
|
13
|
+
### Description
|
|
14
|
+
The `RemoteKey` object is used to represent a request for a new remote key.
|
|
15
|
+
|
|
16
|
+
### Usage Example
|
|
17
|
+
Post a `GenerateRemoteKey` to receive a new `RemoteKey`.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
name: str
|
|
21
|
+
key: str
|
|
22
|
+
|
|
23
|
+
if IS_PYDANTIC_V2:
|
|
24
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
25
|
+
else:
|
|
26
|
+
|
|
27
|
+
class Config:
|
|
28
|
+
frozen = True
|
|
29
|
+
smart_union = True
|
|
30
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
from .remote_response_response_type import RemoteResponseResponseType
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RemoteResponse(UncheckedBaseModel):
|
|
12
|
+
"""
|
|
13
|
+
# The RemoteResponse Object
|
|
14
|
+
### Description
|
|
15
|
+
The `RemoteResponse` object is used to represent information returned from a third-party endpoint.
|
|
16
|
+
|
|
17
|
+
### Usage Example
|
|
18
|
+
View the `RemoteResponse` returned from your `DataPassthrough`.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
method: str
|
|
22
|
+
path: str
|
|
23
|
+
status: int
|
|
24
|
+
response: typing.Optional[typing.Any] = None
|
|
25
|
+
response_headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
26
|
+
response_type: typing.Optional[RemoteResponseResponseType] = None
|
|
27
|
+
headers: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
28
|
+
|
|
29
|
+
if IS_PYDANTIC_V2:
|
|
30
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
31
|
+
else:
|
|
32
|
+
|
|
33
|
+
class Config:
|
|
34
|
+
frozen = True
|
|
35
|
+
smart_union = True
|
|
36
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
T_Result = typing.TypeVar("T_Result")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class RequestFormatEnum(str, enum.Enum):
|
|
10
|
+
"""
|
|
11
|
+
* `JSON` - JSON
|
|
12
|
+
* `XML` - XML
|
|
13
|
+
* `MULTIPART` - MULTIPART
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
JSON = "JSON"
|
|
17
|
+
XML = "XML"
|
|
18
|
+
MULTIPART = "MULTIPART"
|
|
19
|
+
|
|
20
|
+
def visit(
|
|
21
|
+
self,
|
|
22
|
+
json: typing.Callable[[], T_Result],
|
|
23
|
+
xml: typing.Callable[[], T_Result],
|
|
24
|
+
multipart: typing.Callable[[], T_Result],
|
|
25
|
+
) -> T_Result:
|
|
26
|
+
if self is RequestFormatEnum.JSON:
|
|
27
|
+
return json()
|
|
28
|
+
if self is RequestFormatEnum.XML:
|
|
29
|
+
return xml()
|
|
30
|
+
if self is RequestFormatEnum.MULTIPART:
|
|
31
|
+
return multipart()
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
T_Result = typing.TypeVar("T_Result")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ResponseTypeEnum(str, enum.Enum):
|
|
10
|
+
"""
|
|
11
|
+
* `JSON` - JSON
|
|
12
|
+
* `BASE64_GZIP` - BASE64_GZIP
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
JSON = "JSON"
|
|
16
|
+
BASE_64_GZIP = "BASE64_GZIP"
|
|
17
|
+
|
|
18
|
+
def visit(self, json: typing.Callable[[], T_Result], base_64_gzip: typing.Callable[[], T_Result]) -> T_Result:
|
|
19
|
+
if self is ResponseTypeEnum.JSON:
|
|
20
|
+
return json()
|
|
21
|
+
if self is ResponseTypeEnum.BASE_64_GZIP:
|
|
22
|
+
return base_64_gzip()
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
T_Result = typing.TypeVar("T_Result")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class RoleEnum(str, enum.Enum):
|
|
10
|
+
"""
|
|
11
|
+
* `ADMIN` - ADMIN
|
|
12
|
+
* `DEVELOPER` - DEVELOPER
|
|
13
|
+
* `MEMBER` - MEMBER
|
|
14
|
+
* `API` - API
|
|
15
|
+
* `SYSTEM` - SYSTEM
|
|
16
|
+
* `MERGE_TEAM` - MERGE_TEAM
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
ADMIN = "ADMIN"
|
|
20
|
+
DEVELOPER = "DEVELOPER"
|
|
21
|
+
MEMBER = "MEMBER"
|
|
22
|
+
API = "API"
|
|
23
|
+
SYSTEM = "SYSTEM"
|
|
24
|
+
MERGE_TEAM = "MERGE_TEAM"
|
|
25
|
+
|
|
26
|
+
def visit(
|
|
27
|
+
self,
|
|
28
|
+
admin: typing.Callable[[], T_Result],
|
|
29
|
+
developer: typing.Callable[[], T_Result],
|
|
30
|
+
member: typing.Callable[[], T_Result],
|
|
31
|
+
api: typing.Callable[[], T_Result],
|
|
32
|
+
system: typing.Callable[[], T_Result],
|
|
33
|
+
merge_team: typing.Callable[[], T_Result],
|
|
34
|
+
) -> T_Result:
|
|
35
|
+
if self is RoleEnum.ADMIN:
|
|
36
|
+
return admin()
|
|
37
|
+
if self is RoleEnum.DEVELOPER:
|
|
38
|
+
return developer()
|
|
39
|
+
if self is RoleEnum.MEMBER:
|
|
40
|
+
return member()
|
|
41
|
+
if self is RoleEnum.API:
|
|
42
|
+
return api()
|
|
43
|
+
if self is RoleEnum.SYSTEM:
|
|
44
|
+
return system()
|
|
45
|
+
if self is RoleEnum.MERGE_TEAM:
|
|
46
|
+
return merge_team()
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
T_Result = typing.TypeVar("T_Result")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class RolesEnum(str, enum.Enum):
|
|
10
|
+
"""
|
|
11
|
+
* `READ` - READ
|
|
12
|
+
* `WRITE` - WRITE
|
|
13
|
+
* `OWNER` - OWNER
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
READ = "READ"
|
|
17
|
+
WRITE = "WRITE"
|
|
18
|
+
OWNER = "OWNER"
|
|
19
|
+
|
|
20
|
+
def visit(
|
|
21
|
+
self,
|
|
22
|
+
read: typing.Callable[[], T_Result],
|
|
23
|
+
write: typing.Callable[[], T_Result],
|
|
24
|
+
owner: typing.Callable[[], T_Result],
|
|
25
|
+
) -> T_Result:
|
|
26
|
+
if self is RolesEnum.READ:
|
|
27
|
+
return read()
|
|
28
|
+
if self is RolesEnum.WRITE:
|
|
29
|
+
return write()
|
|
30
|
+
if self is RolesEnum.OWNER:
|
|
31
|
+
return owner()
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
T_Result = typing.TypeVar("T_Result")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class SelectiveSyncConfigurationsUsageEnum(str, enum.Enum):
|
|
10
|
+
"""
|
|
11
|
+
* `IN_NEXT_SYNC` - IN_NEXT_SYNC
|
|
12
|
+
* `IN_LAST_SYNC` - IN_LAST_SYNC
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
IN_NEXT_SYNC = "IN_NEXT_SYNC"
|
|
16
|
+
IN_LAST_SYNC = "IN_LAST_SYNC"
|
|
17
|
+
|
|
18
|
+
def visit(
|
|
19
|
+
self, in_next_sync: typing.Callable[[], T_Result], in_last_sync: typing.Callable[[], T_Result]
|
|
20
|
+
) -> T_Result:
|
|
21
|
+
if self is SelectiveSyncConfigurationsUsageEnum.IN_NEXT_SYNC:
|
|
22
|
+
return in_next_sync()
|
|
23
|
+
if self is SelectiveSyncConfigurationsUsageEnum.IN_LAST_SYNC:
|
|
24
|
+
return in_last_sync()
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
T_Result = typing.TypeVar("T_Result")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Status3C6Enum(str, enum.Enum):
|
|
10
|
+
"""
|
|
11
|
+
* `DRAFT` - DRAFT
|
|
12
|
+
* `PUBLISHED` - PUBLISHED
|
|
13
|
+
* `ARCHIVED` - ARCHIVED
|
|
14
|
+
* `TRASH` - TRASH
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
DRAFT = "DRAFT"
|
|
18
|
+
PUBLISHED = "PUBLISHED"
|
|
19
|
+
ARCHIVED = "ARCHIVED"
|
|
20
|
+
TRASH = "TRASH"
|
|
21
|
+
|
|
22
|
+
def visit(
|
|
23
|
+
self,
|
|
24
|
+
draft: typing.Callable[[], T_Result],
|
|
25
|
+
published: typing.Callable[[], T_Result],
|
|
26
|
+
archived: typing.Callable[[], T_Result],
|
|
27
|
+
trash: typing.Callable[[], T_Result],
|
|
28
|
+
) -> T_Result:
|
|
29
|
+
if self is Status3C6Enum.DRAFT:
|
|
30
|
+
return draft()
|
|
31
|
+
if self is Status3C6Enum.PUBLISHED:
|
|
32
|
+
return published()
|
|
33
|
+
if self is Status3C6Enum.ARCHIVED:
|
|
34
|
+
return archived()
|
|
35
|
+
if self is Status3C6Enum.TRASH:
|
|
36
|
+
return trash()
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
T_Result = typing.TypeVar("T_Result")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class StatusFd5Enum(str, enum.Enum):
|
|
10
|
+
"""
|
|
11
|
+
* `SYNCING` - SYNCING
|
|
12
|
+
* `DONE` - DONE
|
|
13
|
+
* `FAILED` - FAILED
|
|
14
|
+
* `DISABLED` - DISABLED
|
|
15
|
+
* `PAUSED` - PAUSED
|
|
16
|
+
* `PARTIALLY_SYNCED` - PARTIALLY_SYNCED
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
SYNCING = "SYNCING"
|
|
20
|
+
DONE = "DONE"
|
|
21
|
+
FAILED = "FAILED"
|
|
22
|
+
DISABLED = "DISABLED"
|
|
23
|
+
PAUSED = "PAUSED"
|
|
24
|
+
PARTIALLY_SYNCED = "PARTIALLY_SYNCED"
|
|
25
|
+
|
|
26
|
+
def visit(
|
|
27
|
+
self,
|
|
28
|
+
syncing: typing.Callable[[], T_Result],
|
|
29
|
+
done: typing.Callable[[], T_Result],
|
|
30
|
+
failed: typing.Callable[[], T_Result],
|
|
31
|
+
disabled: typing.Callable[[], T_Result],
|
|
32
|
+
paused: typing.Callable[[], T_Result],
|
|
33
|
+
partially_synced: typing.Callable[[], T_Result],
|
|
34
|
+
) -> T_Result:
|
|
35
|
+
if self is StatusFd5Enum.SYNCING:
|
|
36
|
+
return syncing()
|
|
37
|
+
if self is StatusFd5Enum.DONE:
|
|
38
|
+
return done()
|
|
39
|
+
if self is StatusFd5Enum.FAILED:
|
|
40
|
+
return failed()
|
|
41
|
+
if self is StatusFd5Enum.DISABLED:
|
|
42
|
+
return disabled()
|
|
43
|
+
if self is StatusFd5Enum.PAUSED:
|
|
44
|
+
return paused()
|
|
45
|
+
if self is StatusFd5Enum.PARTIALLY_SYNCED:
|
|
46
|
+
return partially_synced()
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import datetime as dt
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
import pydantic
|
|
7
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
9
|
+
from .selective_sync_configurations_usage_enum import SelectiveSyncConfigurationsUsageEnum
|
|
10
|
+
from .sync_status_last_sync_result import SyncStatusLastSyncResult
|
|
11
|
+
from .sync_status_status import SyncStatusStatus
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class SyncStatus(UncheckedBaseModel):
|
|
15
|
+
"""
|
|
16
|
+
# The SyncStatus Object
|
|
17
|
+
### Description
|
|
18
|
+
The `SyncStatus` object is used to represent the syncing state of an account
|
|
19
|
+
|
|
20
|
+
### Usage Example
|
|
21
|
+
View the `SyncStatus` for an account to see how recently its models were synced.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
model_name: str
|
|
25
|
+
model_id: str
|
|
26
|
+
last_sync_start: typing.Optional[dt.datetime] = None
|
|
27
|
+
next_sync_start: typing.Optional[dt.datetime] = None
|
|
28
|
+
last_sync_result: typing.Optional[SyncStatusLastSyncResult] = None
|
|
29
|
+
last_sync_finished: typing.Optional[dt.datetime] = None
|
|
30
|
+
status: SyncStatusStatus
|
|
31
|
+
is_initial_sync: bool
|
|
32
|
+
selective_sync_configurations_usage: typing.Optional[SelectiveSyncConfigurationsUsageEnum] = None
|
|
33
|
+
|
|
34
|
+
if IS_PYDANTIC_V2:
|
|
35
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
36
|
+
else:
|
|
37
|
+
|
|
38
|
+
class Config:
|
|
39
|
+
frozen = True
|
|
40
|
+
smart_union = True
|
|
41
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import datetime as dt
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
import pydantic
|
|
7
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class User(UncheckedBaseModel):
|
|
12
|
+
"""
|
|
13
|
+
# The User Object
|
|
14
|
+
### Description
|
|
15
|
+
The `User` object is used to represent a user within the Knowledge Base account.
|
|
16
|
+
### Usage Example
|
|
17
|
+
Fetch from the `GET /api/knowledgebase/v1/users` endpoint and view their users.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
id: typing.Optional[str] = None
|
|
21
|
+
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
22
|
+
"""
|
|
23
|
+
The third-party API ID of the matching object.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
27
|
+
"""
|
|
28
|
+
The datetime that this object was created by Merge.
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
32
|
+
"""
|
|
33
|
+
The datetime that this object was modified by Merge.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
name: typing.Optional[str] = pydantic.Field(default=None)
|
|
37
|
+
"""
|
|
38
|
+
The user's name.
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
email_address: typing.Optional[str] = pydantic.Field(default=None)
|
|
42
|
+
"""
|
|
43
|
+
The user's email address.
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None)
|
|
47
|
+
"""
|
|
48
|
+
Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/).
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
52
|
+
|
|
53
|
+
if IS_PYDANTIC_V2:
|
|
54
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
55
|
+
else:
|
|
56
|
+
|
|
57
|
+
class Config:
|
|
58
|
+
frozen = True
|
|
59
|
+
smart_union = True
|
|
60
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ValidationProblemSource(UncheckedBaseModel):
|
|
11
|
+
pointer: str
|
|
12
|
+
|
|
13
|
+
if IS_PYDANTIC_V2:
|
|
14
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
+
else:
|
|
16
|
+
|
|
17
|
+
class Config:
|
|
18
|
+
frozen = True
|
|
19
|
+
smart_union = True
|
|
20
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
|
|
6
|
+
T_Result = typing.TypeVar("T_Result")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class VisibilityEnum(str, enum.Enum):
|
|
10
|
+
"""
|
|
11
|
+
* `PUBLIC` - PUBLIC
|
|
12
|
+
* `INTERNAL` - INTERNAL
|
|
13
|
+
* `RESTRICTED` - RESTRICTED
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
PUBLIC = "PUBLIC"
|
|
17
|
+
INTERNAL = "INTERNAL"
|
|
18
|
+
RESTRICTED = "RESTRICTED"
|
|
19
|
+
|
|
20
|
+
def visit(
|
|
21
|
+
self,
|
|
22
|
+
public: typing.Callable[[], T_Result],
|
|
23
|
+
internal: typing.Callable[[], T_Result],
|
|
24
|
+
restricted: typing.Callable[[], T_Result],
|
|
25
|
+
) -> T_Result:
|
|
26
|
+
if self is VisibilityEnum.PUBLIC:
|
|
27
|
+
return public()
|
|
28
|
+
if self is VisibilityEnum.INTERNAL:
|
|
29
|
+
return internal()
|
|
30
|
+
if self is VisibilityEnum.RESTRICTED:
|
|
31
|
+
return restricted()
|