mergepythonclient 4.0.0__py3-none-any.whl → 4.2.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/core/client_wrapper.py +2 -2
- merge/resources/accounting/__init__.py +21 -0
- merge/resources/accounting/client.py +19 -0
- merge/resources/accounting/resources/__init__.py +3 -0
- merge/resources/accounting/resources/selective_sync/__init__.py +4 -0
- merge/resources/accounting/resources/selective_sync/client.py +104 -0
- merge/resources/accounting/resources/selective_sync/raw_client.py +103 -0
- merge/resources/accounting/types/__init__.py +18 -0
- merge/resources/accounting/types/operator_enum.py +58 -0
- merge/resources/accounting/types/selective_sync_condition.py +49 -0
- merge/resources/accounting/types/selective_sync_condition_list.py +21 -0
- merge/resources/accounting/types/selective_sync_condition_operator.py +7 -0
- merge/resources/accounting/types/sync_status.py +7 -0
- merge/resources/accounting/types/sync_status_reason_enum.py +20 -0
- merge/resources/accounting/types/sync_status_sync_status_reason.py +7 -0
- merge/resources/ats/__init__.py +21 -0
- merge/resources/ats/client.py +19 -0
- merge/resources/ats/resources/__init__.py +3 -0
- merge/resources/ats/resources/selective_sync/__init__.py +4 -0
- merge/resources/ats/resources/selective_sync/client.py +104 -0
- merge/resources/ats/resources/selective_sync/raw_client.py +103 -0
- merge/resources/ats/types/__init__.py +18 -0
- merge/resources/ats/types/operator_enum.py +58 -0
- merge/resources/ats/types/selective_sync_condition.py +49 -0
- merge/resources/ats/types/selective_sync_condition_list.py +21 -0
- merge/resources/ats/types/selective_sync_condition_operator.py +7 -0
- merge/resources/ats/types/sync_status.py +7 -0
- merge/resources/ats/types/sync_status_reason_enum.py +20 -0
- merge/resources/ats/types/sync_status_sync_status_reason.py +7 -0
- merge/resources/calendar/__init__.py +21 -0
- merge/resources/calendar/client.py +19 -0
- merge/resources/calendar/resources/__init__.py +3 -0
- merge/resources/calendar/resources/selective_sync/__init__.py +4 -0
- merge/resources/calendar/resources/selective_sync/client.py +104 -0
- merge/resources/calendar/resources/selective_sync/raw_client.py +103 -0
- merge/resources/calendar/types/__init__.py +18 -0
- merge/resources/calendar/types/operator_enum.py +58 -0
- merge/resources/calendar/types/selective_sync_condition.py +49 -0
- merge/resources/calendar/types/selective_sync_condition_list.py +21 -0
- merge/resources/calendar/types/selective_sync_condition_operator.py +7 -0
- merge/resources/calendar/types/sync_status.py +7 -0
- merge/resources/calendar/types/sync_status_reason_enum.py +20 -0
- merge/resources/calendar/types/sync_status_sync_status_reason.py +7 -0
- merge/resources/chat/__init__.py +39 -0
- merge/resources/chat/client.py +19 -0
- merge/resources/chat/resources/__init__.py +3 -0
- merge/resources/chat/resources/selective_sync/__init__.py +4 -0
- merge/resources/chat/resources/selective_sync/client.py +264 -0
- merge/resources/chat/resources/selective_sync/raw_client.py +293 -0
- merge/resources/chat/types/__init__.py +36 -0
- merge/resources/chat/types/chat_sync_selection.py +50 -0
- merge/resources/chat/types/chat_sync_selection_type.py +7 -0
- merge/resources/chat/types/chat_sync_selection_type_enum.py +18 -0
- merge/resources/chat/types/label_selection.py +43 -0
- merge/resources/chat/types/label_selection_list.py +21 -0
- merge/resources/chat/types/operator_enum.py +58 -0
- merge/resources/chat/types/paginated_chat_sync_selection_list.py +23 -0
- merge/resources/chat/types/selective_sync_condition.py +49 -0
- merge/resources/chat/types/selective_sync_condition_list.py +21 -0
- merge/resources/chat/types/selective_sync_condition_operator.py +7 -0
- merge/resources/chat/types/sync_status.py +7 -0
- merge/resources/chat/types/sync_status_reason_enum.py +20 -0
- merge/resources/chat/types/sync_status_sync_status_reason.py +7 -0
- merge/resources/crm/__init__.py +21 -0
- merge/resources/crm/client.py +19 -0
- merge/resources/crm/resources/__init__.py +3 -0
- merge/resources/crm/resources/selective_sync/__init__.py +4 -0
- merge/resources/crm/resources/selective_sync/client.py +104 -0
- merge/resources/crm/resources/selective_sync/raw_client.py +103 -0
- merge/resources/crm/types/__init__.py +18 -0
- merge/resources/crm/types/operator_enum.py +58 -0
- merge/resources/crm/types/selective_sync_condition.py +49 -0
- merge/resources/crm/types/selective_sync_condition_list.py +21 -0
- merge/resources/crm/types/selective_sync_condition_operator.py +7 -0
- merge/resources/crm/types/sync_status.py +7 -0
- merge/resources/crm/types/sync_status_reason_enum.py +20 -0
- merge/resources/crm/types/sync_status_sync_status_reason.py +7 -0
- merge/resources/email/__init__.py +27 -0
- merge/resources/email/client.py +19 -0
- merge/resources/email/resources/__init__.py +3 -0
- merge/resources/email/resources/selective_sync/__init__.py +4 -0
- merge/resources/email/resources/selective_sync/client.py +167 -0
- merge/resources/email/resources/selective_sync/raw_client.py +184 -0
- merge/resources/email/types/__init__.py +24 -0
- merge/resources/email/types/label_selection.py +43 -0
- merge/resources/email/types/label_selection_list.py +21 -0
- merge/resources/email/types/operator_enum.py +58 -0
- merge/resources/email/types/selective_sync_condition.py +49 -0
- merge/resources/email/types/selective_sync_condition_list.py +21 -0
- merge/resources/email/types/selective_sync_condition_operator.py +7 -0
- merge/resources/email/types/sync_status.py +7 -0
- merge/resources/email/types/sync_status_reason_enum.py +20 -0
- merge/resources/email/types/sync_status_sync_status_reason.py +7 -0
- merge/resources/filestorage/__init__.py +39 -0
- merge/resources/filestorage/client.py +19 -0
- merge/resources/filestorage/resources/__init__.py +3 -0
- merge/resources/filestorage/resources/selective_sync/__init__.py +4 -0
- merge/resources/filestorage/resources/selective_sync/client.py +264 -0
- merge/resources/filestorage/resources/selective_sync/raw_client.py +293 -0
- merge/resources/filestorage/types/__init__.py +36 -0
- merge/resources/filestorage/types/file_storage_sync_selection.py +50 -0
- merge/resources/filestorage/types/file_storage_sync_selection_type.py +7 -0
- merge/resources/filestorage/types/file_storage_sync_selection_type_enum.py +26 -0
- merge/resources/filestorage/types/label_selection.py +43 -0
- merge/resources/filestorage/types/label_selection_list.py +21 -0
- merge/resources/filestorage/types/operator_enum.py +58 -0
- merge/resources/filestorage/types/paginated_file_storage_sync_selection_list.py +23 -0
- merge/resources/filestorage/types/selective_sync_condition.py +49 -0
- merge/resources/filestorage/types/selective_sync_condition_list.py +21 -0
- merge/resources/filestorage/types/selective_sync_condition_operator.py +7 -0
- merge/resources/filestorage/types/sync_status.py +7 -0
- merge/resources/filestorage/types/sync_status_reason_enum.py +20 -0
- merge/resources/filestorage/types/sync_status_sync_status_reason.py +7 -0
- merge/resources/hris/__init__.py +21 -0
- merge/resources/hris/client.py +19 -0
- merge/resources/hris/resources/__init__.py +3 -0
- merge/resources/hris/resources/selective_sync/__init__.py +4 -0
- merge/resources/hris/resources/selective_sync/client.py +104 -0
- merge/resources/hris/resources/selective_sync/raw_client.py +103 -0
- merge/resources/hris/types/__init__.py +18 -0
- merge/resources/hris/types/operator_enum.py +58 -0
- merge/resources/hris/types/selective_sync_condition.py +49 -0
- merge/resources/hris/types/selective_sync_condition_list.py +21 -0
- merge/resources/hris/types/selective_sync_condition_operator.py +7 -0
- merge/resources/hris/types/sync_status.py +7 -0
- merge/resources/hris/types/sync_status_reason_enum.py +20 -0
- merge/resources/hris/types/sync_status_sync_status_reason.py +7 -0
- merge/resources/knowledgebase/__init__.py +33 -0
- merge/resources/knowledgebase/client.py +19 -0
- merge/resources/knowledgebase/resources/__init__.py +3 -0
- merge/resources/knowledgebase/resources/selective_sync/__init__.py +4 -0
- merge/resources/knowledgebase/resources/selective_sync/client.py +201 -0
- merge/resources/knowledgebase/resources/selective_sync/raw_client.py +212 -0
- merge/resources/knowledgebase/types/__init__.py +30 -0
- merge/resources/knowledgebase/types/knowledge_base_sync_selection.py +50 -0
- merge/resources/knowledgebase/types/knowledge_base_sync_selection_type.py +7 -0
- merge/resources/knowledgebase/types/knowledge_base_sync_selection_type_enum.py +18 -0
- merge/resources/knowledgebase/types/operator_enum.py +58 -0
- merge/resources/knowledgebase/types/paginated_knowledge_base_sync_selection_list.py +23 -0
- merge/resources/knowledgebase/types/selective_sync_condition.py +49 -0
- merge/resources/knowledgebase/types/selective_sync_condition_list.py +21 -0
- merge/resources/knowledgebase/types/selective_sync_condition_operator.py +7 -0
- merge/resources/knowledgebase/types/sync_status.py +7 -0
- merge/resources/knowledgebase/types/sync_status_reason_enum.py +20 -0
- merge/resources/knowledgebase/types/sync_status_sync_status_reason.py +7 -0
- merge/resources/ticketing/__init__.py +21 -0
- merge/resources/ticketing/client.py +19 -0
- merge/resources/ticketing/resources/__init__.py +3 -0
- merge/resources/ticketing/resources/selective_sync/__init__.py +4 -0
- merge/resources/ticketing/resources/selective_sync/client.py +104 -0
- merge/resources/ticketing/resources/selective_sync/raw_client.py +103 -0
- merge/resources/ticketing/types/__init__.py +18 -0
- merge/resources/ticketing/types/operator_enum.py +58 -0
- merge/resources/ticketing/types/selective_sync_condition.py +49 -0
- merge/resources/ticketing/types/selective_sync_condition_list.py +21 -0
- merge/resources/ticketing/types/selective_sync_condition_operator.py +7 -0
- merge/resources/ticketing/types/sync_status.py +7 -0
- merge/resources/ticketing/types/sync_status_reason_enum.py +20 -0
- merge/resources/ticketing/types/sync_status_sync_status_reason.py +7 -0
- {mergepythonclient-4.0.0.dist-info → mergepythonclient-4.2.0.dist-info}/METADATA +2 -1
- {mergepythonclient-4.0.0.dist-info → mergepythonclient-4.2.0.dist-info}/RECORD +163 -55
- {mergepythonclient-4.0.0.dist-info → mergepythonclient-4.2.0.dist-info}/LICENSE.md +0 -0
- {mergepythonclient-4.0.0.dist-info → mergepythonclient-4.2.0.dist-info}/WHEEL +0 -0
merge/resources/chat/__init__.py
CHANGED
|
@@ -24,6 +24,9 @@ if typing.TYPE_CHECKING:
|
|
|
24
24
|
AvailableActions,
|
|
25
25
|
CategoriesEnum,
|
|
26
26
|
CategoryEnum,
|
|
27
|
+
ChatSyncSelection,
|
|
28
|
+
ChatSyncSelectionType,
|
|
29
|
+
ChatSyncSelectionTypeEnum,
|
|
27
30
|
CommonModelScopeApi,
|
|
28
31
|
CommonModelScopesBodyRequest,
|
|
29
32
|
CompletedAccountInitialScreenEnum,
|
|
@@ -58,6 +61,8 @@ if typing.TYPE_CHECKING:
|
|
|
58
61
|
Issue,
|
|
59
62
|
IssueStatus,
|
|
60
63
|
IssueStatusEnum,
|
|
64
|
+
LabelSelection,
|
|
65
|
+
LabelSelectionList,
|
|
61
66
|
LanguageEnum,
|
|
62
67
|
LastSyncResultEnum,
|
|
63
68
|
LinkToken,
|
|
@@ -72,8 +77,10 @@ if typing.TYPE_CHECKING:
|
|
|
72
77
|
ModelPermissionDeserializerRequest,
|
|
73
78
|
MultipartFormFieldRequest,
|
|
74
79
|
MultipartFormFieldRequestEncoding,
|
|
80
|
+
OperatorEnum,
|
|
75
81
|
PaginatedAccountDetailsAndActionsList,
|
|
76
82
|
PaginatedAuditLogEventList,
|
|
83
|
+
PaginatedChatSyncSelectionList,
|
|
77
84
|
PaginatedConversationList,
|
|
78
85
|
PaginatedGroupList,
|
|
79
86
|
PaginatedIssueList,
|
|
@@ -94,11 +101,16 @@ if typing.TYPE_CHECKING:
|
|
|
94
101
|
RequestFormatEnum,
|
|
95
102
|
ResponseTypeEnum,
|
|
96
103
|
RoleEnum,
|
|
104
|
+
SelectiveSyncCondition,
|
|
105
|
+
SelectiveSyncConditionList,
|
|
106
|
+
SelectiveSyncConditionOperator,
|
|
97
107
|
SelectiveSyncConfigurationsUsageEnum,
|
|
98
108
|
StatusFd5Enum,
|
|
99
109
|
SyncStatus,
|
|
100
110
|
SyncStatusLastSyncResult,
|
|
111
|
+
SyncStatusReasonEnum,
|
|
101
112
|
SyncStatusStatus,
|
|
113
|
+
SyncStatusSyncStatusReason,
|
|
102
114
|
TypeEnum,
|
|
103
115
|
User,
|
|
104
116
|
UserFieldMappings,
|
|
@@ -134,6 +146,7 @@ if typing.TYPE_CHECKING:
|
|
|
134
146
|
passthrough,
|
|
135
147
|
regenerate_key,
|
|
136
148
|
scopes,
|
|
149
|
+
selective_sync,
|
|
137
150
|
sync_status,
|
|
138
151
|
users,
|
|
139
152
|
webhook_receivers,
|
|
@@ -157,6 +170,9 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
157
170
|
"AvailableActions": ".types",
|
|
158
171
|
"CategoriesEnum": ".types",
|
|
159
172
|
"CategoryEnum": ".types",
|
|
173
|
+
"ChatSyncSelection": ".types",
|
|
174
|
+
"ChatSyncSelectionType": ".types",
|
|
175
|
+
"ChatSyncSelectionTypeEnum": ".types",
|
|
160
176
|
"CommonModelScopeApi": ".types",
|
|
161
177
|
"CommonModelScopesBodyRequest": ".types",
|
|
162
178
|
"CompletedAccountInitialScreenEnum": ".types",
|
|
@@ -195,6 +211,8 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
195
211
|
"IssueStatus": ".types",
|
|
196
212
|
"IssueStatusEnum": ".types",
|
|
197
213
|
"IssuesListRequestStatus": ".resources",
|
|
214
|
+
"LabelSelection": ".types",
|
|
215
|
+
"LabelSelectionList": ".types",
|
|
198
216
|
"LanguageEnum": ".types",
|
|
199
217
|
"LastSyncResultEnum": ".types",
|
|
200
218
|
"LinkToken": ".types",
|
|
@@ -212,8 +230,10 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
212
230
|
"ModelPermissionDeserializerRequest": ".types",
|
|
213
231
|
"MultipartFormFieldRequest": ".types",
|
|
214
232
|
"MultipartFormFieldRequestEncoding": ".types",
|
|
233
|
+
"OperatorEnum": ".types",
|
|
215
234
|
"PaginatedAccountDetailsAndActionsList": ".types",
|
|
216
235
|
"PaginatedAuditLogEventList": ".types",
|
|
236
|
+
"PaginatedChatSyncSelectionList": ".types",
|
|
217
237
|
"PaginatedConversationList": ".types",
|
|
218
238
|
"PaginatedGroupList": ".types",
|
|
219
239
|
"PaginatedIssueList": ".types",
|
|
@@ -234,11 +254,16 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
234
254
|
"RequestFormatEnum": ".types",
|
|
235
255
|
"ResponseTypeEnum": ".types",
|
|
236
256
|
"RoleEnum": ".types",
|
|
257
|
+
"SelectiveSyncCondition": ".types",
|
|
258
|
+
"SelectiveSyncConditionList": ".types",
|
|
259
|
+
"SelectiveSyncConditionOperator": ".types",
|
|
237
260
|
"SelectiveSyncConfigurationsUsageEnum": ".types",
|
|
238
261
|
"StatusFd5Enum": ".types",
|
|
239
262
|
"SyncStatus": ".types",
|
|
240
263
|
"SyncStatusLastSyncResult": ".types",
|
|
264
|
+
"SyncStatusReasonEnum": ".types",
|
|
241
265
|
"SyncStatusStatus": ".types",
|
|
266
|
+
"SyncStatusSyncStatusReason": ".types",
|
|
242
267
|
"TypeEnum": ".types",
|
|
243
268
|
"User": ".types",
|
|
244
269
|
"UserFieldMappings": ".types",
|
|
@@ -264,6 +289,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
264
289
|
"passthrough": ".resources",
|
|
265
290
|
"regenerate_key": ".resources",
|
|
266
291
|
"scopes": ".resources",
|
|
292
|
+
"selective_sync": ".resources",
|
|
267
293
|
"sync_status": ".resources",
|
|
268
294
|
"users": ".resources",
|
|
269
295
|
"webhook_receivers": ".resources",
|
|
@@ -310,6 +336,9 @@ __all__ = [
|
|
|
310
336
|
"AvailableActions",
|
|
311
337
|
"CategoriesEnum",
|
|
312
338
|
"CategoryEnum",
|
|
339
|
+
"ChatSyncSelection",
|
|
340
|
+
"ChatSyncSelectionType",
|
|
341
|
+
"ChatSyncSelectionTypeEnum",
|
|
313
342
|
"CommonModelScopeApi",
|
|
314
343
|
"CommonModelScopesBodyRequest",
|
|
315
344
|
"CompletedAccountInitialScreenEnum",
|
|
@@ -348,6 +377,8 @@ __all__ = [
|
|
|
348
377
|
"IssueStatus",
|
|
349
378
|
"IssueStatusEnum",
|
|
350
379
|
"IssuesListRequestStatus",
|
|
380
|
+
"LabelSelection",
|
|
381
|
+
"LabelSelectionList",
|
|
351
382
|
"LanguageEnum",
|
|
352
383
|
"LastSyncResultEnum",
|
|
353
384
|
"LinkToken",
|
|
@@ -365,8 +396,10 @@ __all__ = [
|
|
|
365
396
|
"ModelPermissionDeserializerRequest",
|
|
366
397
|
"MultipartFormFieldRequest",
|
|
367
398
|
"MultipartFormFieldRequestEncoding",
|
|
399
|
+
"OperatorEnum",
|
|
368
400
|
"PaginatedAccountDetailsAndActionsList",
|
|
369
401
|
"PaginatedAuditLogEventList",
|
|
402
|
+
"PaginatedChatSyncSelectionList",
|
|
370
403
|
"PaginatedConversationList",
|
|
371
404
|
"PaginatedGroupList",
|
|
372
405
|
"PaginatedIssueList",
|
|
@@ -387,11 +420,16 @@ __all__ = [
|
|
|
387
420
|
"RequestFormatEnum",
|
|
388
421
|
"ResponseTypeEnum",
|
|
389
422
|
"RoleEnum",
|
|
423
|
+
"SelectiveSyncCondition",
|
|
424
|
+
"SelectiveSyncConditionList",
|
|
425
|
+
"SelectiveSyncConditionOperator",
|
|
390
426
|
"SelectiveSyncConfigurationsUsageEnum",
|
|
391
427
|
"StatusFd5Enum",
|
|
392
428
|
"SyncStatus",
|
|
393
429
|
"SyncStatusLastSyncResult",
|
|
430
|
+
"SyncStatusReasonEnum",
|
|
394
431
|
"SyncStatusStatus",
|
|
432
|
+
"SyncStatusSyncStatusReason",
|
|
395
433
|
"TypeEnum",
|
|
396
434
|
"User",
|
|
397
435
|
"UserFieldMappings",
|
|
@@ -417,6 +455,7 @@ __all__ = [
|
|
|
417
455
|
"passthrough",
|
|
418
456
|
"regenerate_key",
|
|
419
457
|
"scopes",
|
|
458
|
+
"selective_sync",
|
|
420
459
|
"sync_status",
|
|
421
460
|
"users",
|
|
422
461
|
"webhook_receivers",
|
merge/resources/chat/client.py
CHANGED
|
@@ -32,6 +32,7 @@ if typing.TYPE_CHECKING:
|
|
|
32
32
|
from .resources.passthrough.client import PassthroughClient
|
|
33
33
|
from .resources.regenerate_key.client import AsyncRegenerateKeyClient, RegenerateKeyClient
|
|
34
34
|
from .resources.scopes.client import AsyncScopesClient, ScopesClient
|
|
35
|
+
from .resources.selective_sync.client import AsyncSelectiveSyncClient, SelectiveSyncClient
|
|
35
36
|
from .resources.sync_status.client import AsyncSyncStatusClient, SyncStatusClient
|
|
36
37
|
from .resources.users.client import AsyncUsersClient, UsersClient
|
|
37
38
|
from .resources.webhook_receivers.client import AsyncWebhookReceiversClient, WebhookReceiversClient
|
|
@@ -60,6 +61,7 @@ class ChatClient:
|
|
|
60
61
|
self._messages: typing.Optional[MessagesClient] = None
|
|
61
62
|
self._passthrough: typing.Optional[PassthroughClient] = None
|
|
62
63
|
self._regenerate_key: typing.Optional[RegenerateKeyClient] = None
|
|
64
|
+
self._selective_sync: typing.Optional[SelectiveSyncClient] = None
|
|
63
65
|
self._sync_status: typing.Optional[SyncStatusClient] = None
|
|
64
66
|
self._force_resync: typing.Optional[ForceResyncClient] = None
|
|
65
67
|
self._users: typing.Optional[UsersClient] = None
|
|
@@ -216,6 +218,14 @@ class ChatClient:
|
|
|
216
218
|
self._regenerate_key = RegenerateKeyClient(client_wrapper=self._client_wrapper)
|
|
217
219
|
return self._regenerate_key
|
|
218
220
|
|
|
221
|
+
@property
|
|
222
|
+
def selective_sync(self):
|
|
223
|
+
if self._selective_sync is None:
|
|
224
|
+
from .resources.selective_sync.client import SelectiveSyncClient # noqa: E402
|
|
225
|
+
|
|
226
|
+
self._selective_sync = SelectiveSyncClient(client_wrapper=self._client_wrapper)
|
|
227
|
+
return self._selective_sync
|
|
228
|
+
|
|
219
229
|
@property
|
|
220
230
|
def sync_status(self):
|
|
221
231
|
if self._sync_status is None:
|
|
@@ -270,6 +280,7 @@ class AsyncChatClient:
|
|
|
270
280
|
self._messages: typing.Optional[AsyncMessagesClient] = None
|
|
271
281
|
self._passthrough: typing.Optional[resources_chat_resources_passthrough_client_AsyncPassthroughClient] = None
|
|
272
282
|
self._regenerate_key: typing.Optional[AsyncRegenerateKeyClient] = None
|
|
283
|
+
self._selective_sync: typing.Optional[AsyncSelectiveSyncClient] = None
|
|
273
284
|
self._sync_status: typing.Optional[AsyncSyncStatusClient] = None
|
|
274
285
|
self._force_resync: typing.Optional[AsyncForceResyncClient] = None
|
|
275
286
|
self._users: typing.Optional[AsyncUsersClient] = None
|
|
@@ -426,6 +437,14 @@ class AsyncChatClient:
|
|
|
426
437
|
self._regenerate_key = AsyncRegenerateKeyClient(client_wrapper=self._client_wrapper)
|
|
427
438
|
return self._regenerate_key
|
|
428
439
|
|
|
440
|
+
@property
|
|
441
|
+
def selective_sync(self):
|
|
442
|
+
if self._selective_sync is None:
|
|
443
|
+
from .resources.selective_sync.client import AsyncSelectiveSyncClient # noqa: E402
|
|
444
|
+
|
|
445
|
+
self._selective_sync = AsyncSelectiveSyncClient(client_wrapper=self._client_wrapper)
|
|
446
|
+
return self._selective_sync
|
|
447
|
+
|
|
429
448
|
@property
|
|
430
449
|
def sync_status(self):
|
|
431
450
|
if self._sync_status is None:
|
|
@@ -25,6 +25,7 @@ if typing.TYPE_CHECKING:
|
|
|
25
25
|
passthrough,
|
|
26
26
|
regenerate_key,
|
|
27
27
|
scopes,
|
|
28
|
+
selective_sync,
|
|
28
29
|
sync_status,
|
|
29
30
|
users,
|
|
30
31
|
webhook_receivers,
|
|
@@ -62,6 +63,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
62
63
|
"passthrough": ".passthrough",
|
|
63
64
|
"regenerate_key": ".regenerate_key",
|
|
64
65
|
"scopes": ".scopes",
|
|
66
|
+
"selective_sync": ".selective_sync",
|
|
65
67
|
"sync_status": ".sync_status",
|
|
66
68
|
"users": ".users",
|
|
67
69
|
"webhook_receivers": ".webhook_receivers",
|
|
@@ -116,6 +118,7 @@ __all__ = [
|
|
|
116
118
|
"passthrough",
|
|
117
119
|
"regenerate_key",
|
|
118
120
|
"scopes",
|
|
121
|
+
"selective_sync",
|
|
119
122
|
"sync_status",
|
|
120
123
|
"users",
|
|
121
124
|
"webhook_receivers",
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
from .....core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
6
|
+
from .....core.request_options import RequestOptions
|
|
7
|
+
from ...types.label_selection_list import LabelSelectionList
|
|
8
|
+
from ...types.paginated_chat_sync_selection_list import PaginatedChatSyncSelectionList
|
|
9
|
+
from ...types.selective_sync_condition_list import SelectiveSyncConditionList
|
|
10
|
+
from .raw_client import AsyncRawSelectiveSyncClient, RawSelectiveSyncClient
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class SelectiveSyncClient:
|
|
14
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
15
|
+
self._raw_client = RawSelectiveSyncClient(client_wrapper=client_wrapper)
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def with_raw_response(self) -> RawSelectiveSyncClient:
|
|
19
|
+
"""
|
|
20
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
21
|
+
|
|
22
|
+
Returns
|
|
23
|
+
-------
|
|
24
|
+
RawSelectiveSyncClient
|
|
25
|
+
"""
|
|
26
|
+
return self._raw_client
|
|
27
|
+
|
|
28
|
+
def conditions_list(self, *, request_options: typing.Optional[RequestOptions] = None) -> SelectiveSyncConditionList:
|
|
29
|
+
"""
|
|
30
|
+
Returns a list of `SelectiveSyncCondition` objects.
|
|
31
|
+
|
|
32
|
+
Parameters
|
|
33
|
+
----------
|
|
34
|
+
request_options : typing.Optional[RequestOptions]
|
|
35
|
+
Request-specific configuration.
|
|
36
|
+
|
|
37
|
+
Returns
|
|
38
|
+
-------
|
|
39
|
+
SelectiveSyncConditionList
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
Examples
|
|
43
|
+
--------
|
|
44
|
+
from merge import Merge
|
|
45
|
+
|
|
46
|
+
client = Merge(
|
|
47
|
+
account_token="YOUR_ACCOUNT_TOKEN",
|
|
48
|
+
api_key="YOUR_API_KEY",
|
|
49
|
+
)
|
|
50
|
+
client.chat.selective_sync.conditions_list()
|
|
51
|
+
"""
|
|
52
|
+
_response = self._raw_client.conditions_list(request_options=request_options)
|
|
53
|
+
return _response.data
|
|
54
|
+
|
|
55
|
+
def labels_list(self, *, request_options: typing.Optional[RequestOptions] = None) -> LabelSelectionList:
|
|
56
|
+
"""
|
|
57
|
+
Returns a list of `LabelSelection` objects.
|
|
58
|
+
|
|
59
|
+
Parameters
|
|
60
|
+
----------
|
|
61
|
+
request_options : typing.Optional[RequestOptions]
|
|
62
|
+
Request-specific configuration.
|
|
63
|
+
|
|
64
|
+
Returns
|
|
65
|
+
-------
|
|
66
|
+
LabelSelectionList
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
Examples
|
|
70
|
+
--------
|
|
71
|
+
from merge import Merge
|
|
72
|
+
|
|
73
|
+
client = Merge(
|
|
74
|
+
account_token="YOUR_ACCOUNT_TOKEN",
|
|
75
|
+
api_key="YOUR_API_KEY",
|
|
76
|
+
)
|
|
77
|
+
client.chat.selective_sync.labels_list()
|
|
78
|
+
"""
|
|
79
|
+
_response = self._raw_client.labels_list(request_options=request_options)
|
|
80
|
+
return _response.data
|
|
81
|
+
|
|
82
|
+
def selections_list(
|
|
83
|
+
self,
|
|
84
|
+
*,
|
|
85
|
+
cursor: typing.Optional[str] = None,
|
|
86
|
+
page_size: typing.Optional[int] = None,
|
|
87
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
88
|
+
) -> PaginatedChatSyncSelectionList:
|
|
89
|
+
"""
|
|
90
|
+
Returns a list of `ChatSyncSelection` objects.
|
|
91
|
+
|
|
92
|
+
Parameters
|
|
93
|
+
----------
|
|
94
|
+
cursor : typing.Optional[str]
|
|
95
|
+
The pagination cursor value.
|
|
96
|
+
|
|
97
|
+
page_size : typing.Optional[int]
|
|
98
|
+
Number of results to return per page. The maximum limit is 100.
|
|
99
|
+
|
|
100
|
+
request_options : typing.Optional[RequestOptions]
|
|
101
|
+
Request-specific configuration.
|
|
102
|
+
|
|
103
|
+
Returns
|
|
104
|
+
-------
|
|
105
|
+
PaginatedChatSyncSelectionList
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
Examples
|
|
109
|
+
--------
|
|
110
|
+
from merge import Merge
|
|
111
|
+
|
|
112
|
+
client = Merge(
|
|
113
|
+
account_token="YOUR_ACCOUNT_TOKEN",
|
|
114
|
+
api_key="YOUR_API_KEY",
|
|
115
|
+
)
|
|
116
|
+
client.chat.selective_sync.selections_list(
|
|
117
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
118
|
+
page_size=1,
|
|
119
|
+
)
|
|
120
|
+
"""
|
|
121
|
+
_response = self._raw_client.selections_list(
|
|
122
|
+
cursor=cursor, page_size=page_size, request_options=request_options
|
|
123
|
+
)
|
|
124
|
+
return _response.data
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
class AsyncSelectiveSyncClient:
|
|
128
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
129
|
+
self._raw_client = AsyncRawSelectiveSyncClient(client_wrapper=client_wrapper)
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def with_raw_response(self) -> AsyncRawSelectiveSyncClient:
|
|
133
|
+
"""
|
|
134
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
135
|
+
|
|
136
|
+
Returns
|
|
137
|
+
-------
|
|
138
|
+
AsyncRawSelectiveSyncClient
|
|
139
|
+
"""
|
|
140
|
+
return self._raw_client
|
|
141
|
+
|
|
142
|
+
async def conditions_list(
|
|
143
|
+
self, *, request_options: typing.Optional[RequestOptions] = None
|
|
144
|
+
) -> SelectiveSyncConditionList:
|
|
145
|
+
"""
|
|
146
|
+
Returns a list of `SelectiveSyncCondition` objects.
|
|
147
|
+
|
|
148
|
+
Parameters
|
|
149
|
+
----------
|
|
150
|
+
request_options : typing.Optional[RequestOptions]
|
|
151
|
+
Request-specific configuration.
|
|
152
|
+
|
|
153
|
+
Returns
|
|
154
|
+
-------
|
|
155
|
+
SelectiveSyncConditionList
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
Examples
|
|
159
|
+
--------
|
|
160
|
+
import asyncio
|
|
161
|
+
|
|
162
|
+
from merge import AsyncMerge
|
|
163
|
+
|
|
164
|
+
client = AsyncMerge(
|
|
165
|
+
account_token="YOUR_ACCOUNT_TOKEN",
|
|
166
|
+
api_key="YOUR_API_KEY",
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
async def main() -> None:
|
|
171
|
+
await client.chat.selective_sync.conditions_list()
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
asyncio.run(main())
|
|
175
|
+
"""
|
|
176
|
+
_response = await self._raw_client.conditions_list(request_options=request_options)
|
|
177
|
+
return _response.data
|
|
178
|
+
|
|
179
|
+
async def labels_list(self, *, request_options: typing.Optional[RequestOptions] = None) -> LabelSelectionList:
|
|
180
|
+
"""
|
|
181
|
+
Returns a list of `LabelSelection` objects.
|
|
182
|
+
|
|
183
|
+
Parameters
|
|
184
|
+
----------
|
|
185
|
+
request_options : typing.Optional[RequestOptions]
|
|
186
|
+
Request-specific configuration.
|
|
187
|
+
|
|
188
|
+
Returns
|
|
189
|
+
-------
|
|
190
|
+
LabelSelectionList
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
Examples
|
|
194
|
+
--------
|
|
195
|
+
import asyncio
|
|
196
|
+
|
|
197
|
+
from merge import AsyncMerge
|
|
198
|
+
|
|
199
|
+
client = AsyncMerge(
|
|
200
|
+
account_token="YOUR_ACCOUNT_TOKEN",
|
|
201
|
+
api_key="YOUR_API_KEY",
|
|
202
|
+
)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
async def main() -> None:
|
|
206
|
+
await client.chat.selective_sync.labels_list()
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
asyncio.run(main())
|
|
210
|
+
"""
|
|
211
|
+
_response = await self._raw_client.labels_list(request_options=request_options)
|
|
212
|
+
return _response.data
|
|
213
|
+
|
|
214
|
+
async def selections_list(
|
|
215
|
+
self,
|
|
216
|
+
*,
|
|
217
|
+
cursor: typing.Optional[str] = None,
|
|
218
|
+
page_size: typing.Optional[int] = None,
|
|
219
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
220
|
+
) -> PaginatedChatSyncSelectionList:
|
|
221
|
+
"""
|
|
222
|
+
Returns a list of `ChatSyncSelection` objects.
|
|
223
|
+
|
|
224
|
+
Parameters
|
|
225
|
+
----------
|
|
226
|
+
cursor : typing.Optional[str]
|
|
227
|
+
The pagination cursor value.
|
|
228
|
+
|
|
229
|
+
page_size : typing.Optional[int]
|
|
230
|
+
Number of results to return per page. The maximum limit is 100.
|
|
231
|
+
|
|
232
|
+
request_options : typing.Optional[RequestOptions]
|
|
233
|
+
Request-specific configuration.
|
|
234
|
+
|
|
235
|
+
Returns
|
|
236
|
+
-------
|
|
237
|
+
PaginatedChatSyncSelectionList
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
Examples
|
|
241
|
+
--------
|
|
242
|
+
import asyncio
|
|
243
|
+
|
|
244
|
+
from merge import AsyncMerge
|
|
245
|
+
|
|
246
|
+
client = AsyncMerge(
|
|
247
|
+
account_token="YOUR_ACCOUNT_TOKEN",
|
|
248
|
+
api_key="YOUR_API_KEY",
|
|
249
|
+
)
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
async def main() -> None:
|
|
253
|
+
await client.chat.selective_sync.selections_list(
|
|
254
|
+
cursor="cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
|
|
255
|
+
page_size=1,
|
|
256
|
+
)
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
asyncio.run(main())
|
|
260
|
+
"""
|
|
261
|
+
_response = await self._raw_client.selections_list(
|
|
262
|
+
cursor=cursor, page_size=page_size, request_options=request_options
|
|
263
|
+
)
|
|
264
|
+
return _response.data
|