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,231 @@
|
|
|
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 EventTypeEnum(str, enum.Enum):
|
|
10
|
+
"""
|
|
11
|
+
* `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY
|
|
12
|
+
* `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY
|
|
13
|
+
* `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY
|
|
14
|
+
* `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY
|
|
15
|
+
* `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY
|
|
16
|
+
* `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE
|
|
17
|
+
* `INVITED_USER` - INVITED_USER
|
|
18
|
+
* `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED
|
|
19
|
+
* `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED
|
|
20
|
+
* `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT
|
|
21
|
+
* `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT
|
|
22
|
+
* `CREATED_DESTINATION` - CREATED_DESTINATION
|
|
23
|
+
* `DELETED_DESTINATION` - DELETED_DESTINATION
|
|
24
|
+
* `CHANGED_DESTINATION` - CHANGED_DESTINATION
|
|
25
|
+
* `CHANGED_SCOPES` - CHANGED_SCOPES
|
|
26
|
+
* `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION
|
|
27
|
+
* `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS
|
|
28
|
+
* `ENABLED_INTEGRATION` - ENABLED_INTEGRATION
|
|
29
|
+
* `DISABLED_INTEGRATION` - DISABLED_INTEGRATION
|
|
30
|
+
* `ENABLED_CATEGORY` - ENABLED_CATEGORY
|
|
31
|
+
* `DISABLED_CATEGORY` - DISABLED_CATEGORY
|
|
32
|
+
* `CHANGED_PASSWORD` - CHANGED_PASSWORD
|
|
33
|
+
* `RESET_PASSWORD` - RESET_PASSWORD
|
|
34
|
+
* `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION
|
|
35
|
+
* `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT
|
|
36
|
+
* `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION
|
|
37
|
+
* `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT
|
|
38
|
+
* `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING
|
|
39
|
+
* `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING
|
|
40
|
+
* `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING
|
|
41
|
+
* `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING
|
|
42
|
+
* `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING
|
|
43
|
+
* `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING
|
|
44
|
+
* `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE
|
|
45
|
+
* `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE
|
|
46
|
+
* `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE
|
|
47
|
+
* `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC
|
|
48
|
+
* `MUTED_ISSUE` - MUTED_ISSUE
|
|
49
|
+
* `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK
|
|
50
|
+
* `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK
|
|
51
|
+
* `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK
|
|
52
|
+
* `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED
|
|
53
|
+
* `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
CREATED_REMOTE_PRODUCTION_API_KEY = "CREATED_REMOTE_PRODUCTION_API_KEY"
|
|
57
|
+
DELETED_REMOTE_PRODUCTION_API_KEY = "DELETED_REMOTE_PRODUCTION_API_KEY"
|
|
58
|
+
CREATED_TEST_API_KEY = "CREATED_TEST_API_KEY"
|
|
59
|
+
DELETED_TEST_API_KEY = "DELETED_TEST_API_KEY"
|
|
60
|
+
REGENERATED_PRODUCTION_API_KEY = "REGENERATED_PRODUCTION_API_KEY"
|
|
61
|
+
REGENERATED_WEBHOOK_SIGNATURE = "REGENERATED_WEBHOOK_SIGNATURE"
|
|
62
|
+
INVITED_USER = "INVITED_USER"
|
|
63
|
+
TWO_FACTOR_AUTH_ENABLED = "TWO_FACTOR_AUTH_ENABLED"
|
|
64
|
+
TWO_FACTOR_AUTH_DISABLED = "TWO_FACTOR_AUTH_DISABLED"
|
|
65
|
+
DELETED_LINKED_ACCOUNT = "DELETED_LINKED_ACCOUNT"
|
|
66
|
+
DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT = "DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT"
|
|
67
|
+
CREATED_DESTINATION = "CREATED_DESTINATION"
|
|
68
|
+
DELETED_DESTINATION = "DELETED_DESTINATION"
|
|
69
|
+
CHANGED_DESTINATION = "CHANGED_DESTINATION"
|
|
70
|
+
CHANGED_SCOPES = "CHANGED_SCOPES"
|
|
71
|
+
CHANGED_PERSONAL_INFORMATION = "CHANGED_PERSONAL_INFORMATION"
|
|
72
|
+
CHANGED_ORGANIZATION_SETTINGS = "CHANGED_ORGANIZATION_SETTINGS"
|
|
73
|
+
ENABLED_INTEGRATION = "ENABLED_INTEGRATION"
|
|
74
|
+
DISABLED_INTEGRATION = "DISABLED_INTEGRATION"
|
|
75
|
+
ENABLED_CATEGORY = "ENABLED_CATEGORY"
|
|
76
|
+
DISABLED_CATEGORY = "DISABLED_CATEGORY"
|
|
77
|
+
CHANGED_PASSWORD = "CHANGED_PASSWORD"
|
|
78
|
+
RESET_PASSWORD = "RESET_PASSWORD"
|
|
79
|
+
ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION"
|
|
80
|
+
ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT"
|
|
81
|
+
DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION = "DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION"
|
|
82
|
+
DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT = "DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT"
|
|
83
|
+
CREATED_INTEGRATION_WIDE_FIELD_MAPPING = "CREATED_INTEGRATION_WIDE_FIELD_MAPPING"
|
|
84
|
+
CREATED_LINKED_ACCOUNT_FIELD_MAPPING = "CREATED_LINKED_ACCOUNT_FIELD_MAPPING"
|
|
85
|
+
CHANGED_INTEGRATION_WIDE_FIELD_MAPPING = "CHANGED_INTEGRATION_WIDE_FIELD_MAPPING"
|
|
86
|
+
CHANGED_LINKED_ACCOUNT_FIELD_MAPPING = "CHANGED_LINKED_ACCOUNT_FIELD_MAPPING"
|
|
87
|
+
DELETED_INTEGRATION_WIDE_FIELD_MAPPING = "DELETED_INTEGRATION_WIDE_FIELD_MAPPING"
|
|
88
|
+
DELETED_LINKED_ACCOUNT_FIELD_MAPPING = "DELETED_LINKED_ACCOUNT_FIELD_MAPPING"
|
|
89
|
+
CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE"
|
|
90
|
+
CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE"
|
|
91
|
+
DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE = "DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE"
|
|
92
|
+
FORCED_LINKED_ACCOUNT_RESYNC = "FORCED_LINKED_ACCOUNT_RESYNC"
|
|
93
|
+
MUTED_ISSUE = "MUTED_ISSUE"
|
|
94
|
+
GENERATED_MAGIC_LINK = "GENERATED_MAGIC_LINK"
|
|
95
|
+
ENABLED_MERGE_WEBHOOK = "ENABLED_MERGE_WEBHOOK"
|
|
96
|
+
DISABLED_MERGE_WEBHOOK = "DISABLED_MERGE_WEBHOOK"
|
|
97
|
+
MERGE_WEBHOOK_TARGET_CHANGED = "MERGE_WEBHOOK_TARGET_CHANGED"
|
|
98
|
+
END_USER_CREDENTIALS_ACCESSED = "END_USER_CREDENTIALS_ACCESSED"
|
|
99
|
+
|
|
100
|
+
def visit(
|
|
101
|
+
self,
|
|
102
|
+
created_remote_production_api_key: typing.Callable[[], T_Result],
|
|
103
|
+
deleted_remote_production_api_key: typing.Callable[[], T_Result],
|
|
104
|
+
created_test_api_key: typing.Callable[[], T_Result],
|
|
105
|
+
deleted_test_api_key: typing.Callable[[], T_Result],
|
|
106
|
+
regenerated_production_api_key: typing.Callable[[], T_Result],
|
|
107
|
+
regenerated_webhook_signature: typing.Callable[[], T_Result],
|
|
108
|
+
invited_user: typing.Callable[[], T_Result],
|
|
109
|
+
two_factor_auth_enabled: typing.Callable[[], T_Result],
|
|
110
|
+
two_factor_auth_disabled: typing.Callable[[], T_Result],
|
|
111
|
+
deleted_linked_account: typing.Callable[[], T_Result],
|
|
112
|
+
deleted_all_common_models_for_linked_account: typing.Callable[[], T_Result],
|
|
113
|
+
created_destination: typing.Callable[[], T_Result],
|
|
114
|
+
deleted_destination: typing.Callable[[], T_Result],
|
|
115
|
+
changed_destination: typing.Callable[[], T_Result],
|
|
116
|
+
changed_scopes: typing.Callable[[], T_Result],
|
|
117
|
+
changed_personal_information: typing.Callable[[], T_Result],
|
|
118
|
+
changed_organization_settings: typing.Callable[[], T_Result],
|
|
119
|
+
enabled_integration: typing.Callable[[], T_Result],
|
|
120
|
+
disabled_integration: typing.Callable[[], T_Result],
|
|
121
|
+
enabled_category: typing.Callable[[], T_Result],
|
|
122
|
+
disabled_category: typing.Callable[[], T_Result],
|
|
123
|
+
changed_password: typing.Callable[[], T_Result],
|
|
124
|
+
reset_password: typing.Callable[[], T_Result],
|
|
125
|
+
enabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result],
|
|
126
|
+
enabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result],
|
|
127
|
+
disabled_redact_unmapped_data_for_organization: typing.Callable[[], T_Result],
|
|
128
|
+
disabled_redact_unmapped_data_for_linked_account: typing.Callable[[], T_Result],
|
|
129
|
+
created_integration_wide_field_mapping: typing.Callable[[], T_Result],
|
|
130
|
+
created_linked_account_field_mapping: typing.Callable[[], T_Result],
|
|
131
|
+
changed_integration_wide_field_mapping: typing.Callable[[], T_Result],
|
|
132
|
+
changed_linked_account_field_mapping: typing.Callable[[], T_Result],
|
|
133
|
+
deleted_integration_wide_field_mapping: typing.Callable[[], T_Result],
|
|
134
|
+
deleted_linked_account_field_mapping: typing.Callable[[], T_Result],
|
|
135
|
+
created_linked_account_common_model_override: typing.Callable[[], T_Result],
|
|
136
|
+
changed_linked_account_common_model_override: typing.Callable[[], T_Result],
|
|
137
|
+
deleted_linked_account_common_model_override: typing.Callable[[], T_Result],
|
|
138
|
+
forced_linked_account_resync: typing.Callable[[], T_Result],
|
|
139
|
+
muted_issue: typing.Callable[[], T_Result],
|
|
140
|
+
generated_magic_link: typing.Callable[[], T_Result],
|
|
141
|
+
enabled_merge_webhook: typing.Callable[[], T_Result],
|
|
142
|
+
disabled_merge_webhook: typing.Callable[[], T_Result],
|
|
143
|
+
merge_webhook_target_changed: typing.Callable[[], T_Result],
|
|
144
|
+
end_user_credentials_accessed: typing.Callable[[], T_Result],
|
|
145
|
+
) -> T_Result:
|
|
146
|
+
if self is EventTypeEnum.CREATED_REMOTE_PRODUCTION_API_KEY:
|
|
147
|
+
return created_remote_production_api_key()
|
|
148
|
+
if self is EventTypeEnum.DELETED_REMOTE_PRODUCTION_API_KEY:
|
|
149
|
+
return deleted_remote_production_api_key()
|
|
150
|
+
if self is EventTypeEnum.CREATED_TEST_API_KEY:
|
|
151
|
+
return created_test_api_key()
|
|
152
|
+
if self is EventTypeEnum.DELETED_TEST_API_KEY:
|
|
153
|
+
return deleted_test_api_key()
|
|
154
|
+
if self is EventTypeEnum.REGENERATED_PRODUCTION_API_KEY:
|
|
155
|
+
return regenerated_production_api_key()
|
|
156
|
+
if self is EventTypeEnum.REGENERATED_WEBHOOK_SIGNATURE:
|
|
157
|
+
return regenerated_webhook_signature()
|
|
158
|
+
if self is EventTypeEnum.INVITED_USER:
|
|
159
|
+
return invited_user()
|
|
160
|
+
if self is EventTypeEnum.TWO_FACTOR_AUTH_ENABLED:
|
|
161
|
+
return two_factor_auth_enabled()
|
|
162
|
+
if self is EventTypeEnum.TWO_FACTOR_AUTH_DISABLED:
|
|
163
|
+
return two_factor_auth_disabled()
|
|
164
|
+
if self is EventTypeEnum.DELETED_LINKED_ACCOUNT:
|
|
165
|
+
return deleted_linked_account()
|
|
166
|
+
if self is EventTypeEnum.DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT:
|
|
167
|
+
return deleted_all_common_models_for_linked_account()
|
|
168
|
+
if self is EventTypeEnum.CREATED_DESTINATION:
|
|
169
|
+
return created_destination()
|
|
170
|
+
if self is EventTypeEnum.DELETED_DESTINATION:
|
|
171
|
+
return deleted_destination()
|
|
172
|
+
if self is EventTypeEnum.CHANGED_DESTINATION:
|
|
173
|
+
return changed_destination()
|
|
174
|
+
if self is EventTypeEnum.CHANGED_SCOPES:
|
|
175
|
+
return changed_scopes()
|
|
176
|
+
if self is EventTypeEnum.CHANGED_PERSONAL_INFORMATION:
|
|
177
|
+
return changed_personal_information()
|
|
178
|
+
if self is EventTypeEnum.CHANGED_ORGANIZATION_SETTINGS:
|
|
179
|
+
return changed_organization_settings()
|
|
180
|
+
if self is EventTypeEnum.ENABLED_INTEGRATION:
|
|
181
|
+
return enabled_integration()
|
|
182
|
+
if self is EventTypeEnum.DISABLED_INTEGRATION:
|
|
183
|
+
return disabled_integration()
|
|
184
|
+
if self is EventTypeEnum.ENABLED_CATEGORY:
|
|
185
|
+
return enabled_category()
|
|
186
|
+
if self is EventTypeEnum.DISABLED_CATEGORY:
|
|
187
|
+
return disabled_category()
|
|
188
|
+
if self is EventTypeEnum.CHANGED_PASSWORD:
|
|
189
|
+
return changed_password()
|
|
190
|
+
if self is EventTypeEnum.RESET_PASSWORD:
|
|
191
|
+
return reset_password()
|
|
192
|
+
if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION:
|
|
193
|
+
return enabled_redact_unmapped_data_for_organization()
|
|
194
|
+
if self is EventTypeEnum.ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT:
|
|
195
|
+
return enabled_redact_unmapped_data_for_linked_account()
|
|
196
|
+
if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION:
|
|
197
|
+
return disabled_redact_unmapped_data_for_organization()
|
|
198
|
+
if self is EventTypeEnum.DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT:
|
|
199
|
+
return disabled_redact_unmapped_data_for_linked_account()
|
|
200
|
+
if self is EventTypeEnum.CREATED_INTEGRATION_WIDE_FIELD_MAPPING:
|
|
201
|
+
return created_integration_wide_field_mapping()
|
|
202
|
+
if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_FIELD_MAPPING:
|
|
203
|
+
return created_linked_account_field_mapping()
|
|
204
|
+
if self is EventTypeEnum.CHANGED_INTEGRATION_WIDE_FIELD_MAPPING:
|
|
205
|
+
return changed_integration_wide_field_mapping()
|
|
206
|
+
if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_FIELD_MAPPING:
|
|
207
|
+
return changed_linked_account_field_mapping()
|
|
208
|
+
if self is EventTypeEnum.DELETED_INTEGRATION_WIDE_FIELD_MAPPING:
|
|
209
|
+
return deleted_integration_wide_field_mapping()
|
|
210
|
+
if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_FIELD_MAPPING:
|
|
211
|
+
return deleted_linked_account_field_mapping()
|
|
212
|
+
if self is EventTypeEnum.CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE:
|
|
213
|
+
return created_linked_account_common_model_override()
|
|
214
|
+
if self is EventTypeEnum.CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE:
|
|
215
|
+
return changed_linked_account_common_model_override()
|
|
216
|
+
if self is EventTypeEnum.DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE:
|
|
217
|
+
return deleted_linked_account_common_model_override()
|
|
218
|
+
if self is EventTypeEnum.FORCED_LINKED_ACCOUNT_RESYNC:
|
|
219
|
+
return forced_linked_account_resync()
|
|
220
|
+
if self is EventTypeEnum.MUTED_ISSUE:
|
|
221
|
+
return muted_issue()
|
|
222
|
+
if self is EventTypeEnum.GENERATED_MAGIC_LINK:
|
|
223
|
+
return generated_magic_link()
|
|
224
|
+
if self is EventTypeEnum.ENABLED_MERGE_WEBHOOK:
|
|
225
|
+
return enabled_merge_webhook()
|
|
226
|
+
if self is EventTypeEnum.DISABLED_MERGE_WEBHOOK:
|
|
227
|
+
return disabled_merge_webhook()
|
|
228
|
+
if self is EventTypeEnum.MERGE_WEBHOOK_TARGET_CHANGED:
|
|
229
|
+
return merge_webhook_target_changed()
|
|
230
|
+
if self is EventTypeEnum.END_USER_CREDENTIALS_ACCESSED:
|
|
231
|
+
return end_user_credentials_accessed()
|
|
@@ -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 ExternalTargetFieldApi(UncheckedBaseModel):
|
|
11
|
+
name: typing.Optional[str] = None
|
|
12
|
+
description: typing.Optional[str] = None
|
|
13
|
+
is_mapped: typing.Optional[str] = None
|
|
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,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 .external_target_field_api import ExternalTargetFieldApi
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ExternalTargetFieldApiResponse(UncheckedBaseModel):
|
|
12
|
+
container: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Container", default=None)
|
|
13
|
+
article: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Article", default=None)
|
|
14
|
+
attachment: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="Attachment", default=None)
|
|
15
|
+
user: typing.Optional[typing.List[ExternalTargetFieldApi]] = pydantic.Field(alias="User", default=None)
|
|
16
|
+
group: typing.Optional[typing.List[ExternalTargetFieldApi]] = 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,26 @@
|
|
|
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 .field_mapping_api_instance_remote_field import FieldMappingApiInstanceRemoteField
|
|
9
|
+
from .field_mapping_api_instance_target_field import FieldMappingApiInstanceTargetField
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class FieldMappingApiInstance(UncheckedBaseModel):
|
|
13
|
+
id: typing.Optional[str] = None
|
|
14
|
+
is_integration_wide: typing.Optional[bool] = None
|
|
15
|
+
target_field: typing.Optional[FieldMappingApiInstanceTargetField] = None
|
|
16
|
+
remote_field: typing.Optional[FieldMappingApiInstanceRemoteField] = None
|
|
17
|
+
jmes_path: typing.Optional[str] = None
|
|
18
|
+
|
|
19
|
+
if IS_PYDANTIC_V2:
|
|
20
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
21
|
+
else:
|
|
22
|
+
|
|
23
|
+
class Config:
|
|
24
|
+
frozen = True
|
|
25
|
+
smart_union = True
|
|
26
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,27 @@
|
|
|
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 .field_mapping_api_instance_remote_field_remote_endpoint_info import (
|
|
9
|
+
FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class FieldMappingApiInstanceRemoteField(UncheckedBaseModel):
|
|
14
|
+
remote_key_name: typing.Optional[str] = None
|
|
15
|
+
schema_: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(
|
|
16
|
+
alias="schema", default=None
|
|
17
|
+
)
|
|
18
|
+
remote_endpoint_info: FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo
|
|
19
|
+
|
|
20
|
+
if IS_PYDANTIC_V2:
|
|
21
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
22
|
+
else:
|
|
23
|
+
|
|
24
|
+
class Config:
|
|
25
|
+
frozen = True
|
|
26
|
+
smart_union = True
|
|
27
|
+
extra = pydantic.Extra.allow
|
merge/resources/knowledgebase/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py
ADDED
|
@@ -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 FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo(UncheckedBaseModel):
|
|
11
|
+
method: typing.Optional[str] = None
|
|
12
|
+
url_path: typing.Optional[str] = None
|
|
13
|
+
field_traversal_path: typing.Optional[typing.List[str]] = None
|
|
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,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 .field_mapping_api_instance import FieldMappingApiInstance
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class FieldMappingApiInstanceResponse(UncheckedBaseModel):
|
|
12
|
+
container: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Container", default=None)
|
|
13
|
+
article: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Article", default=None)
|
|
14
|
+
attachment: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="Attachment", default=None)
|
|
15
|
+
user: typing.Optional[typing.List[FieldMappingApiInstance]] = pydantic.Field(alias="User", default=None)
|
|
16
|
+
group: typing.Optional[typing.List[FieldMappingApiInstance]] = 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,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 FieldMappingApiInstanceTargetField(UncheckedBaseModel):
|
|
11
|
+
name: str
|
|
12
|
+
description: str
|
|
13
|
+
is_organization_wide: bool
|
|
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,27 @@
|
|
|
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 .debug_mode_log import DebugModeLog
|
|
9
|
+
from .error_validation_problem import ErrorValidationProblem
|
|
10
|
+
from .field_mapping_api_instance import FieldMappingApiInstance
|
|
11
|
+
from .warning_validation_problem import WarningValidationProblem
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class FieldMappingInstanceResponse(UncheckedBaseModel):
|
|
15
|
+
model: FieldMappingApiInstance
|
|
16
|
+
warnings: typing.List[WarningValidationProblem]
|
|
17
|
+
errors: typing.List[ErrorValidationProblem]
|
|
18
|
+
logs: typing.Optional[typing.List[DebugModeLog]] = None
|
|
19
|
+
|
|
20
|
+
if IS_PYDANTIC_V2:
|
|
21
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
22
|
+
else:
|
|
23
|
+
|
|
24
|
+
class Config:
|
|
25
|
+
frozen = True
|
|
26
|
+
smart_union = True
|
|
27
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,21 @@
|
|
|
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 FieldPermissionDeserializer(UncheckedBaseModel):
|
|
11
|
+
enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None
|
|
12
|
+
disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None
|
|
13
|
+
|
|
14
|
+
if IS_PYDANTIC_V2:
|
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
+
else:
|
|
17
|
+
|
|
18
|
+
class Config:
|
|
19
|
+
frozen = True
|
|
20
|
+
smart_union = True
|
|
21
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,21 @@
|
|
|
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 FieldPermissionDeserializerRequest(UncheckedBaseModel):
|
|
11
|
+
enabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None
|
|
12
|
+
disabled_fields: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None
|
|
13
|
+
|
|
14
|
+
if IS_PYDANTIC_V2:
|
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
+
else:
|
|
17
|
+
|
|
18
|
+
class Config:
|
|
19
|
+
frozen = True
|
|
20
|
+
smart_union = True
|
|
21
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import datetime as dt
|
|
6
|
+
import typing
|
|
7
|
+
|
|
8
|
+
import pydantic
|
|
9
|
+
from ....core.pydantic_utilities import IS_PYDANTIC_V2, update_forward_refs
|
|
10
|
+
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
11
|
+
from .group_users_item import GroupUsersItem
|
|
12
|
+
from .remote_data import RemoteData
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class Group(UncheckedBaseModel):
|
|
16
|
+
"""
|
|
17
|
+
# The Group Object
|
|
18
|
+
### Description
|
|
19
|
+
The `Group` object is used to represent any subset of `Users`. This can extend to company domains as well.
|
|
20
|
+
### Usage Example
|
|
21
|
+
Fetch from the `GET /api/knowledgebase/v1/groups` endpoint and view their groups.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
id: typing.Optional[str] = None
|
|
25
|
+
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
26
|
+
"""
|
|
27
|
+
The third-party API ID of the matching object.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
31
|
+
"""
|
|
32
|
+
The datetime that this object was created by Merge.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
modified_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
36
|
+
"""
|
|
37
|
+
The datetime that this object was modified by Merge.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
name: typing.Optional[str] = pydantic.Field(default=None)
|
|
41
|
+
"""
|
|
42
|
+
The group's name.
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
parent_group: typing.Optional["GroupParentGroup"] = pydantic.Field(default=None)
|
|
46
|
+
"""
|
|
47
|
+
The parent group for this group.
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
users: typing.Optional[typing.List[GroupUsersItem]] = None
|
|
51
|
+
remote_was_deleted: typing.Optional[bool] = pydantic.Field(default=None)
|
|
52
|
+
"""
|
|
53
|
+
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/).
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
57
|
+
remote_data: typing.Optional[typing.List[RemoteData]] = None
|
|
58
|
+
|
|
59
|
+
if IS_PYDANTIC_V2:
|
|
60
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
61
|
+
else:
|
|
62
|
+
|
|
63
|
+
class Config:
|
|
64
|
+
frozen = True
|
|
65
|
+
smart_union = True
|
|
66
|
+
extra = pydantic.Extra.allow
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
from .group_parent_group import GroupParentGroup # noqa: E402, F401, I001
|
|
70
|
+
|
|
71
|
+
update_forward_refs(Group)
|
|
@@ -0,0 +1,24 @@
|
|
|
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 .field_permission_deserializer import FieldPermissionDeserializer
|
|
9
|
+
from .model_permission_deserializer import ModelPermissionDeserializer
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class IndividualCommonModelScopeDeserializer(UncheckedBaseModel):
|
|
13
|
+
model_name: str
|
|
14
|
+
model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializer]] = None
|
|
15
|
+
field_permissions: typing.Optional[FieldPermissionDeserializer] = None
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,24 @@
|
|
|
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 .field_permission_deserializer_request import FieldPermissionDeserializerRequest
|
|
9
|
+
from .model_permission_deserializer_request import ModelPermissionDeserializerRequest
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class IndividualCommonModelScopeDeserializerRequest(UncheckedBaseModel):
|
|
13
|
+
model_name: str
|
|
14
|
+
model_permissions: typing.Optional[typing.Dict[str, ModelPermissionDeserializerRequest]] = None
|
|
15
|
+
field_permissions: typing.Optional[FieldPermissionDeserializerRequest] = None
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,36 @@
|
|
|
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 .issue_status import IssueStatus
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Issue(UncheckedBaseModel):
|
|
13
|
+
id: typing.Optional[str] = None
|
|
14
|
+
status: typing.Optional[IssueStatus] = pydantic.Field(default=None)
|
|
15
|
+
"""
|
|
16
|
+
Status of the issue. Options: ('ONGOING', 'RESOLVED')
|
|
17
|
+
|
|
18
|
+
* `ONGOING` - ONGOING
|
|
19
|
+
* `RESOLVED` - RESOLVED
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
error_description: str
|
|
23
|
+
end_user: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
24
|
+
first_incident_time: typing.Optional[dt.datetime] = None
|
|
25
|
+
last_incident_time: typing.Optional[dt.datetime] = None
|
|
26
|
+
is_muted: typing.Optional[bool] = None
|
|
27
|
+
error_details: typing.Optional[typing.List[str]] = 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
|