graphlit-client 1.0.20250625001__py3-none-any.whl → 1.0.20250627001__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. graphlit_api/__init__.py +556 -0
  2. graphlit_api/client.py +205 -0
  3. graphlit_api/count_connectors.py +21 -0
  4. graphlit_api/count_views.py +19 -0
  5. graphlit_api/create_connector.py +25 -0
  6. graphlit_api/create_view.py +316 -0
  7. graphlit_api/create_workflow.py +6 -0
  8. graphlit_api/delete_connector.py +23 -0
  9. graphlit_api/delete_view.py +21 -0
  10. graphlit_api/enums.py +46 -0
  11. graphlit_api/get_connector.py +88 -0
  12. graphlit_api/get_feed.py +32 -1
  13. graphlit_api/get_user.py +5 -0
  14. graphlit_api/get_user_by_identifier.py +7 -0
  15. graphlit_api/get_view.py +321 -0
  16. graphlit_api/get_workflow.py +6 -0
  17. graphlit_api/input_types.py +143 -21
  18. graphlit_api/operations.py +937 -0
  19. graphlit_api/query_connectors.py +93 -0
  20. graphlit_api/query_feeds.py +32 -1
  21. graphlit_api/query_users.py +5 -0
  22. graphlit_api/query_views.py +330 -0
  23. graphlit_api/query_workflows.py +6 -0
  24. graphlit_api/update_connector.py +25 -0
  25. graphlit_api/update_view.py +316 -0
  26. graphlit_api/update_workflow.py +6 -0
  27. graphlit_api/upsert_workflow.py +6 -0
  28. {graphlit_client-1.0.20250625001.dist-info → graphlit_client-1.0.20250627001.dist-info}/METADATA +1 -1
  29. {graphlit_client-1.0.20250625001.dist-info → graphlit_client-1.0.20250627001.dist-info}/RECORD +32 -20
  30. {graphlit_client-1.0.20250625001.dist-info → graphlit_client-1.0.20250627001.dist-info}/WHEEL +0 -0
  31. {graphlit_client-1.0.20250625001.dist-info → graphlit_client-1.0.20250627001.dist-info}/licenses/LICENSE +0 -0
  32. {graphlit_client-1.0.20250625001.dist-info → graphlit_client-1.0.20250627001.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,316 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: ./documents
3
+
4
+ from typing import Any, List, Optional
5
+
6
+ from pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .enums import ContentTypes, EntityState, FileTypes, ObservableTypes, ViewTypes
10
+
11
+
12
+ class CreateView(BaseModel):
13
+ create_view: Optional["CreateViewCreateView"] = Field(alias="createView")
14
+
15
+
16
+ class CreateViewCreateView(BaseModel):
17
+ id: str
18
+ name: str
19
+ state: EntityState
20
+ type: Optional[ViewTypes]
21
+ filter: Optional["CreateViewCreateViewFilter"]
22
+ augmented_filter: Optional["CreateViewCreateViewAugmentedFilter"] = Field(
23
+ alias="augmentedFilter"
24
+ )
25
+
26
+
27
+ class CreateViewCreateViewFilter(BaseModel):
28
+ date_range: Optional["CreateViewCreateViewFilterDateRange"] = Field(
29
+ alias="dateRange"
30
+ )
31
+ in_last: Optional[Any] = Field(alias="inLast")
32
+ creation_date_range: Optional["CreateViewCreateViewFilterCreationDateRange"] = (
33
+ Field(alias="creationDateRange")
34
+ )
35
+ created_in_last: Optional[Any] = Field(alias="createdInLast")
36
+ types: Optional[List[ContentTypes]]
37
+ file_types: Optional[List[Optional[FileTypes]]] = Field(alias="fileTypes")
38
+ formats: Optional[List[Optional[str]]]
39
+ file_extensions: Optional[List[str]] = Field(alias="fileExtensions")
40
+ similar_contents: Optional[List["CreateViewCreateViewFilterSimilarContents"]] = (
41
+ Field(alias="similarContents")
42
+ )
43
+ contents: Optional[List["CreateViewCreateViewFilterContents"]]
44
+ feeds: Optional[List["CreateViewCreateViewFilterFeeds"]]
45
+ workflows: Optional[List["CreateViewCreateViewFilterWorkflows"]]
46
+ collections: Optional[List["CreateViewCreateViewFilterCollections"]]
47
+ users: Optional[List["CreateViewCreateViewFilterUsers"]]
48
+ observations: Optional[List["CreateViewCreateViewFilterObservations"]]
49
+ or_: Optional[List["CreateViewCreateViewFilterOr"]] = Field(alias="or")
50
+ and_: Optional[List["CreateViewCreateViewFilterAnd"]] = Field(alias="and")
51
+
52
+
53
+ class CreateViewCreateViewFilterDateRange(BaseModel):
54
+ from_: Optional[Any] = Field(alias="from")
55
+ to: Optional[Any]
56
+
57
+
58
+ class CreateViewCreateViewFilterCreationDateRange(BaseModel):
59
+ from_: Optional[Any] = Field(alias="from")
60
+ to: Optional[Any]
61
+
62
+
63
+ class CreateViewCreateViewFilterSimilarContents(BaseModel):
64
+ id: str
65
+
66
+
67
+ class CreateViewCreateViewFilterContents(BaseModel):
68
+ id: str
69
+
70
+
71
+ class CreateViewCreateViewFilterFeeds(BaseModel):
72
+ id: str
73
+
74
+
75
+ class CreateViewCreateViewFilterWorkflows(BaseModel):
76
+ id: str
77
+
78
+
79
+ class CreateViewCreateViewFilterCollections(BaseModel):
80
+ id: str
81
+
82
+
83
+ class CreateViewCreateViewFilterUsers(BaseModel):
84
+ id: str
85
+
86
+
87
+ class CreateViewCreateViewFilterObservations(BaseModel):
88
+ type: ObservableTypes
89
+ observable: "CreateViewCreateViewFilterObservationsObservable"
90
+ states: Optional[List[Optional[EntityState]]]
91
+
92
+
93
+ class CreateViewCreateViewFilterObservationsObservable(BaseModel):
94
+ id: str
95
+
96
+
97
+ class CreateViewCreateViewFilterOr(BaseModel):
98
+ feeds: Optional[List["CreateViewCreateViewFilterOrFeeds"]]
99
+ workflows: Optional[List["CreateViewCreateViewFilterOrWorkflows"]]
100
+ collections: Optional[List["CreateViewCreateViewFilterOrCollections"]]
101
+ users: Optional[List["CreateViewCreateViewFilterOrUsers"]]
102
+ observations: Optional[List["CreateViewCreateViewFilterOrObservations"]]
103
+
104
+
105
+ class CreateViewCreateViewFilterOrFeeds(BaseModel):
106
+ id: str
107
+
108
+
109
+ class CreateViewCreateViewFilterOrWorkflows(BaseModel):
110
+ id: str
111
+
112
+
113
+ class CreateViewCreateViewFilterOrCollections(BaseModel):
114
+ id: str
115
+
116
+
117
+ class CreateViewCreateViewFilterOrUsers(BaseModel):
118
+ id: str
119
+
120
+
121
+ class CreateViewCreateViewFilterOrObservations(BaseModel):
122
+ type: ObservableTypes
123
+ observable: "CreateViewCreateViewFilterOrObservationsObservable"
124
+ states: Optional[List[Optional[EntityState]]]
125
+
126
+
127
+ class CreateViewCreateViewFilterOrObservationsObservable(BaseModel):
128
+ id: str
129
+
130
+
131
+ class CreateViewCreateViewFilterAnd(BaseModel):
132
+ feeds: Optional[List["CreateViewCreateViewFilterAndFeeds"]]
133
+ workflows: Optional[List["CreateViewCreateViewFilterAndWorkflows"]]
134
+ collections: Optional[List["CreateViewCreateViewFilterAndCollections"]]
135
+ users: Optional[List["CreateViewCreateViewFilterAndUsers"]]
136
+ observations: Optional[List["CreateViewCreateViewFilterAndObservations"]]
137
+
138
+
139
+ class CreateViewCreateViewFilterAndFeeds(BaseModel):
140
+ id: str
141
+
142
+
143
+ class CreateViewCreateViewFilterAndWorkflows(BaseModel):
144
+ id: str
145
+
146
+
147
+ class CreateViewCreateViewFilterAndCollections(BaseModel):
148
+ id: str
149
+
150
+
151
+ class CreateViewCreateViewFilterAndUsers(BaseModel):
152
+ id: str
153
+
154
+
155
+ class CreateViewCreateViewFilterAndObservations(BaseModel):
156
+ type: ObservableTypes
157
+ observable: "CreateViewCreateViewFilterAndObservationsObservable"
158
+ states: Optional[List[Optional[EntityState]]]
159
+
160
+
161
+ class CreateViewCreateViewFilterAndObservationsObservable(BaseModel):
162
+ id: str
163
+
164
+
165
+ class CreateViewCreateViewAugmentedFilter(BaseModel):
166
+ date_range: Optional["CreateViewCreateViewAugmentedFilterDateRange"] = Field(
167
+ alias="dateRange"
168
+ )
169
+ in_last: Optional[Any] = Field(alias="inLast")
170
+ creation_date_range: Optional[
171
+ "CreateViewCreateViewAugmentedFilterCreationDateRange"
172
+ ] = Field(alias="creationDateRange")
173
+ created_in_last: Optional[Any] = Field(alias="createdInLast")
174
+ types: Optional[List[ContentTypes]]
175
+ file_types: Optional[List[Optional[FileTypes]]] = Field(alias="fileTypes")
176
+ formats: Optional[List[Optional[str]]]
177
+ file_extensions: Optional[List[str]] = Field(alias="fileExtensions")
178
+ similar_contents: Optional[
179
+ List["CreateViewCreateViewAugmentedFilterSimilarContents"]
180
+ ] = Field(alias="similarContents")
181
+ contents: Optional[List["CreateViewCreateViewAugmentedFilterContents"]]
182
+ feeds: Optional[List["CreateViewCreateViewAugmentedFilterFeeds"]]
183
+ workflows: Optional[List["CreateViewCreateViewAugmentedFilterWorkflows"]]
184
+ collections: Optional[List["CreateViewCreateViewAugmentedFilterCollections"]]
185
+ users: Optional[List["CreateViewCreateViewAugmentedFilterUsers"]]
186
+ observations: Optional[List["CreateViewCreateViewAugmentedFilterObservations"]]
187
+ or_: Optional[List["CreateViewCreateViewAugmentedFilterOr"]] = Field(alias="or")
188
+ and_: Optional[List["CreateViewCreateViewAugmentedFilterAnd"]] = Field(alias="and")
189
+
190
+
191
+ class CreateViewCreateViewAugmentedFilterDateRange(BaseModel):
192
+ from_: Optional[Any] = Field(alias="from")
193
+ to: Optional[Any]
194
+
195
+
196
+ class CreateViewCreateViewAugmentedFilterCreationDateRange(BaseModel):
197
+ from_: Optional[Any] = Field(alias="from")
198
+ to: Optional[Any]
199
+
200
+
201
+ class CreateViewCreateViewAugmentedFilterSimilarContents(BaseModel):
202
+ id: str
203
+
204
+
205
+ class CreateViewCreateViewAugmentedFilterContents(BaseModel):
206
+ id: str
207
+
208
+
209
+ class CreateViewCreateViewAugmentedFilterFeeds(BaseModel):
210
+ id: str
211
+
212
+
213
+ class CreateViewCreateViewAugmentedFilterWorkflows(BaseModel):
214
+ id: str
215
+
216
+
217
+ class CreateViewCreateViewAugmentedFilterCollections(BaseModel):
218
+ id: str
219
+
220
+
221
+ class CreateViewCreateViewAugmentedFilterUsers(BaseModel):
222
+ id: str
223
+
224
+
225
+ class CreateViewCreateViewAugmentedFilterObservations(BaseModel):
226
+ type: ObservableTypes
227
+ observable: "CreateViewCreateViewAugmentedFilterObservationsObservable"
228
+ states: Optional[List[Optional[EntityState]]]
229
+
230
+
231
+ class CreateViewCreateViewAugmentedFilterObservationsObservable(BaseModel):
232
+ id: str
233
+
234
+
235
+ class CreateViewCreateViewAugmentedFilterOr(BaseModel):
236
+ feeds: Optional[List["CreateViewCreateViewAugmentedFilterOrFeeds"]]
237
+ workflows: Optional[List["CreateViewCreateViewAugmentedFilterOrWorkflows"]]
238
+ collections: Optional[List["CreateViewCreateViewAugmentedFilterOrCollections"]]
239
+ users: Optional[List["CreateViewCreateViewAugmentedFilterOrUsers"]]
240
+ observations: Optional[List["CreateViewCreateViewAugmentedFilterOrObservations"]]
241
+
242
+
243
+ class CreateViewCreateViewAugmentedFilterOrFeeds(BaseModel):
244
+ id: str
245
+
246
+
247
+ class CreateViewCreateViewAugmentedFilterOrWorkflows(BaseModel):
248
+ id: str
249
+
250
+
251
+ class CreateViewCreateViewAugmentedFilterOrCollections(BaseModel):
252
+ id: str
253
+
254
+
255
+ class CreateViewCreateViewAugmentedFilterOrUsers(BaseModel):
256
+ id: str
257
+
258
+
259
+ class CreateViewCreateViewAugmentedFilterOrObservations(BaseModel):
260
+ type: ObservableTypes
261
+ observable: "CreateViewCreateViewAugmentedFilterOrObservationsObservable"
262
+ states: Optional[List[Optional[EntityState]]]
263
+
264
+
265
+ class CreateViewCreateViewAugmentedFilterOrObservationsObservable(BaseModel):
266
+ id: str
267
+
268
+
269
+ class CreateViewCreateViewAugmentedFilterAnd(BaseModel):
270
+ feeds: Optional[List["CreateViewCreateViewAugmentedFilterAndFeeds"]]
271
+ workflows: Optional[List["CreateViewCreateViewAugmentedFilterAndWorkflows"]]
272
+ collections: Optional[List["CreateViewCreateViewAugmentedFilterAndCollections"]]
273
+ users: Optional[List["CreateViewCreateViewAugmentedFilterAndUsers"]]
274
+ observations: Optional[List["CreateViewCreateViewAugmentedFilterAndObservations"]]
275
+
276
+
277
+ class CreateViewCreateViewAugmentedFilterAndFeeds(BaseModel):
278
+ id: str
279
+
280
+
281
+ class CreateViewCreateViewAugmentedFilterAndWorkflows(BaseModel):
282
+ id: str
283
+
284
+
285
+ class CreateViewCreateViewAugmentedFilterAndCollections(BaseModel):
286
+ id: str
287
+
288
+
289
+ class CreateViewCreateViewAugmentedFilterAndUsers(BaseModel):
290
+ id: str
291
+
292
+
293
+ class CreateViewCreateViewAugmentedFilterAndObservations(BaseModel):
294
+ type: ObservableTypes
295
+ observable: "CreateViewCreateViewAugmentedFilterAndObservationsObservable"
296
+ states: Optional[List[Optional[EntityState]]]
297
+
298
+
299
+ class CreateViewCreateViewAugmentedFilterAndObservationsObservable(BaseModel):
300
+ id: str
301
+
302
+
303
+ CreateView.model_rebuild()
304
+ CreateViewCreateView.model_rebuild()
305
+ CreateViewCreateViewFilter.model_rebuild()
306
+ CreateViewCreateViewFilterObservations.model_rebuild()
307
+ CreateViewCreateViewFilterOr.model_rebuild()
308
+ CreateViewCreateViewFilterOrObservations.model_rebuild()
309
+ CreateViewCreateViewFilterAnd.model_rebuild()
310
+ CreateViewCreateViewFilterAndObservations.model_rebuild()
311
+ CreateViewCreateViewAugmentedFilter.model_rebuild()
312
+ CreateViewCreateViewAugmentedFilterObservations.model_rebuild()
313
+ CreateViewCreateViewAugmentedFilterOr.model_rebuild()
314
+ CreateViewCreateViewAugmentedFilterOrObservations.model_rebuild()
315
+ CreateViewCreateViewAugmentedFilterAnd.model_rebuild()
316
+ CreateViewCreateViewAugmentedFilterAndObservations.model_rebuild()
@@ -342,6 +342,12 @@ class CreateWorkflowCreateWorkflowEnrichmentLink(BaseModel):
342
342
  excluded_links: Optional[List[LinkTypes]] = Field(alias="excludedLinks")
343
343
  allowed_files: Optional[List[FileTypes]] = Field(alias="allowedFiles")
344
344
  excluded_files: Optional[List[FileTypes]] = Field(alias="excludedFiles")
345
+ allowed_content_types: Optional[List[ContentTypes]] = Field(
346
+ alias="allowedContentTypes"
347
+ )
348
+ excluded_content_types: Optional[List[ContentTypes]] = Field(
349
+ alias="excludedContentTypes"
350
+ )
345
351
  allow_content_domain: Optional[bool] = Field(alias="allowContentDomain")
346
352
  maximum_links: Optional[int] = Field(alias="maximumLinks")
347
353
 
@@ -0,0 +1,23 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: ./documents
3
+
4
+ from typing import Optional
5
+
6
+ from pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .enums import EntityState
10
+
11
+
12
+ class DeleteConnector(BaseModel):
13
+ delete_connector: Optional["DeleteConnectorDeleteConnector"] = Field(
14
+ alias="deleteConnector"
15
+ )
16
+
17
+
18
+ class DeleteConnectorDeleteConnector(BaseModel):
19
+ id: str
20
+ state: EntityState
21
+
22
+
23
+ DeleteConnector.model_rebuild()
@@ -0,0 +1,21 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: ./documents
3
+
4
+ from typing import Optional
5
+
6
+ from pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .enums import EntityState
10
+
11
+
12
+ class DeleteView(BaseModel):
13
+ delete_view: Optional["DeleteViewDeleteView"] = Field(alias="deleteView")
14
+
15
+
16
+ class DeleteViewDeleteView(BaseModel):
17
+ id: str
18
+ state: EntityState
19
+
20
+
21
+ DeleteView.model_rebuild()
graphlit_api/enums.py CHANGED
@@ -38,6 +38,16 @@ class CalendarEventStatus(str, Enum):
38
38
  CANCELLED = "CANCELLED"
39
39
 
40
40
 
41
+ class GoogleEmailAuthenticationTypes(str, Enum):
42
+ USER = "USER"
43
+ CONNECTOR = "CONNECTOR"
44
+
45
+
46
+ class MicrosoftCalendarAuthenticationTypes(str, Enum):
47
+ USER = "USER"
48
+ CONNECTOR = "CONNECTOR"
49
+
50
+
41
51
  class MedicalIndicationFacetTypes(str, Enum):
42
52
  CREATION_DATE = "CREATION_DATE"
43
53
 
@@ -67,9 +77,15 @@ class OpenAIVisionDetailLevels(str, Enum):
67
77
  LOW = "LOW"
68
78
 
69
79
 
80
+ class GoogleCalendarAuthenticationTypes(str, Enum):
81
+ USER = "USER"
82
+ CONNECTOR = "CONNECTOR"
83
+
84
+
70
85
  class GoogleDriveAuthenticationTypes(str, Enum):
71
86
  SERVICE_ACCOUNT = "SERVICE_ACCOUNT"
72
87
  USER = "USER"
88
+ CONNECTOR = "CONNECTOR"
73
89
 
74
90
 
75
91
  class ReductoExtractionModes(str, Enum):
@@ -404,6 +420,11 @@ class ObservableTypes(str, Enum):
404
420
  MEDICAL_PROCEDURE = "MEDICAL_PROCEDURE"
405
421
 
406
422
 
423
+ class MicrosoftEmailAuthenticationTypes(str, Enum):
424
+ USER = "USER"
425
+ CONNECTOR = "CONNECTOR"
426
+
427
+
407
428
  class ContentPublishingServiceTypes(str, Enum):
408
429
  ELEVEN_LABS_AUDIO = "ELEVEN_LABS_AUDIO"
409
430
  OPEN_AI_IMAGE = "OPEN_AI_IMAGE"
@@ -544,6 +565,12 @@ class ConversationTypes(str, Enum):
544
565
  CONTENT = "CONTENT"
545
566
 
546
567
 
568
+ class GitHubAuthenticationTypes(str, Enum):
569
+ PERSONAL_ACCESS_TOKEN = "PERSONAL_ACCESS_TOKEN"
570
+ O_AUTH = "O_AUTH"
571
+ CONNECTOR = "CONNECTOR"
572
+
573
+
547
574
  class RenditionTypes(str, Enum):
548
575
  CONTENT = "CONTENT"
549
576
 
@@ -592,6 +619,7 @@ class MedicalDeviceFacetTypes(str, Enum):
592
619
 
593
620
 
594
621
  class DeepgramModels(str, Enum):
622
+ NOVA3_MEDICAL = "NOVA3_MEDICAL"
595
623
  NOVA3 = "NOVA3"
596
624
  NOVA2 = "NOVA2"
597
625
  NOVA2_MEETING = "NOVA2_MEETING"
@@ -644,6 +672,7 @@ class AuthenticationServiceTypes(str, Enum):
644
672
  MICROSOFT_GRAPH = "MICROSOFT_GRAPH"
645
673
  CLERK = "CLERK"
646
674
  GOOGLE = "GOOGLE"
675
+ ARCADE = "ARCADE"
647
676
 
648
677
 
649
678
  class DeviceTypes(str, Enum):
@@ -657,6 +686,12 @@ class DeviceTypes(str, Enum):
657
686
  UNKNOWN = "UNKNOWN"
658
687
 
659
688
 
689
+ class GitHubIssueAuthenticationTypes(str, Enum):
690
+ PERSONAL_ACCESS_TOKEN = "PERSONAL_ACCESS_TOKEN"
691
+ O_AUTH = "O_AUTH"
692
+ CONNECTOR = "CONNECTOR"
693
+
694
+
660
695
  class GroqModels(str, Enum):
661
696
  LLAMA_4_MAVERICK_17B = "LLAMA_4_MAVERICK_17B"
662
697
  LLAMA_4_SCOUT_17B = "LLAMA_4_SCOUT_17B"
@@ -808,6 +843,7 @@ class EntityTypes(str, Enum):
808
843
  SOFTWARE = "SOFTWARE"
809
844
  SPECIFICATION = "SPECIFICATION"
810
845
  USER = "USER"
846
+ VIEW = "VIEW"
811
847
  WORKFLOW = "WORKFLOW"
812
848
 
813
849
 
@@ -907,6 +943,10 @@ class TimedPolicyRecurrenceTypes(str, Enum):
907
943
  REPEAT = "REPEAT"
908
944
 
909
945
 
946
+ class ViewTypes(str, Enum):
947
+ CONTENT = "CONTENT"
948
+
949
+
910
950
  class VoyageModels(str, Enum):
911
951
  VOYAGE = "VOYAGE"
912
952
  VOYAGE_3_0_LARGE = "VOYAGE_3_0_LARGE"
@@ -980,6 +1020,7 @@ class MedicalStudyFacetTypes(str, Enum):
980
1020
  class SharePointAuthenticationTypes(str, Enum):
981
1021
  APPLICATION = "APPLICATION"
982
1022
  USER = "USER"
1023
+ CONNECTOR = "CONNECTOR"
983
1024
 
984
1025
 
985
1026
  class MedicalTherapyFacetTypes(str, Enum):
@@ -1142,6 +1183,11 @@ class LinkTypes(str, Enum):
1142
1183
  FILE = "FILE"
1143
1184
 
1144
1185
 
1186
+ class OneDriveAuthenticationTypes(str, Enum):
1187
+ USER = "USER"
1188
+ CONNECTOR = "CONNECTOR"
1189
+
1190
+
1145
1191
  class ProductFacetTypes(str, Enum):
1146
1192
  CREATION_DATE = "CREATION_DATE"
1147
1193
 
@@ -0,0 +1,88 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: ./documents
3
+
4
+ from typing import Any, List, Optional
5
+
6
+ from pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .enums import (
10
+ AuthenticationServiceTypes,
11
+ ConnectorTypes,
12
+ EntityState,
13
+ IntegrationServiceTypes,
14
+ )
15
+
16
+
17
+ class GetConnector(BaseModel):
18
+ connector: Optional["GetConnectorConnector"]
19
+
20
+
21
+ class GetConnectorConnector(BaseModel):
22
+ id: str
23
+ name: str
24
+ creation_date: Any = Field(alias="creationDate")
25
+ relevance: Optional[float]
26
+ owner: "GetConnectorConnectorOwner"
27
+ state: EntityState
28
+ type: Optional[ConnectorTypes]
29
+ authentication: Optional["GetConnectorConnectorAuthentication"]
30
+ integration: Optional["GetConnectorConnectorIntegration"]
31
+
32
+
33
+ class GetConnectorConnectorOwner(BaseModel):
34
+ id: str
35
+
36
+
37
+ class GetConnectorConnectorAuthentication(BaseModel):
38
+ type: AuthenticationServiceTypes
39
+ microsoft: Optional["GetConnectorConnectorAuthenticationMicrosoft"]
40
+ google: Optional["GetConnectorConnectorAuthenticationGoogle"]
41
+ arcade: Optional["GetConnectorConnectorAuthenticationArcade"]
42
+
43
+
44
+ class GetConnectorConnectorAuthenticationMicrosoft(BaseModel):
45
+ tenant_id: str = Field(alias="tenantId")
46
+ client_id: str = Field(alias="clientId")
47
+ client_secret: str = Field(alias="clientSecret")
48
+
49
+
50
+ class GetConnectorConnectorAuthenticationGoogle(BaseModel):
51
+ client_id: str = Field(alias="clientId")
52
+ client_secret: str = Field(alias="clientSecret")
53
+
54
+
55
+ class GetConnectorConnectorAuthenticationArcade(BaseModel):
56
+ authorization_id: str = Field(alias="authorizationId")
57
+
58
+
59
+ class GetConnectorConnectorIntegration(BaseModel):
60
+ type: IntegrationServiceTypes
61
+ uri: Optional[str]
62
+ slack: Optional["GetConnectorConnectorIntegrationSlack"]
63
+ email: Optional["GetConnectorConnectorIntegrationEmail"]
64
+ twitter: Optional["GetConnectorConnectorIntegrationTwitter"]
65
+
66
+
67
+ class GetConnectorConnectorIntegrationSlack(BaseModel):
68
+ token: str
69
+ channel: str
70
+
71
+
72
+ class GetConnectorConnectorIntegrationEmail(BaseModel):
73
+ from_: str = Field(alias="from")
74
+ subject: str
75
+ to: List[str]
76
+
77
+
78
+ class GetConnectorConnectorIntegrationTwitter(BaseModel):
79
+ consumer_key: str = Field(alias="consumerKey")
80
+ consumer_secret: str = Field(alias="consumerSecret")
81
+ access_token_key: str = Field(alias="accessTokenKey")
82
+ access_token_secret: str = Field(alias="accessTokenSecret")
83
+
84
+
85
+ GetConnector.model_rebuild()
86
+ GetConnectorConnector.model_rebuild()
87
+ GetConnectorConnectorAuthentication.model_rebuild()
88
+ GetConnectorConnectorIntegration.model_rebuild()