graphlit-client 1.0.20250622004__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 (41) hide show
  1. graphlit_api/__init__.py +700 -0
  2. graphlit_api/client.py +297 -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 +903 -818
  11. graphlit_api/get_connector.py +88 -0
  12. graphlit_api/get_content.py +62 -0
  13. graphlit_api/get_feed.py +60 -1
  14. graphlit_api/get_user.py +5 -0
  15. graphlit_api/get_user_by_identifier.py +7 -0
  16. graphlit_api/get_view.py +321 -0
  17. graphlit_api/get_workflow.py +6 -0
  18. graphlit_api/input_types.py +2902 -2632
  19. graphlit_api/lookup_contents.py +66 -0
  20. graphlit_api/operations.py +1209 -0
  21. graphlit_api/query_box_folders.py +25 -0
  22. graphlit_api/query_connectors.py +93 -0
  23. graphlit_api/query_contents.py +63 -0
  24. graphlit_api/query_contents_observations.py +67 -0
  25. graphlit_api/query_dropbox_folders.py +27 -0
  26. graphlit_api/query_feeds.py +60 -1
  27. graphlit_api/query_google_calendars.py +27 -0
  28. graphlit_api/query_google_drive_folders.py +29 -0
  29. graphlit_api/query_microsoft_calendars.py +29 -0
  30. graphlit_api/query_users.py +5 -0
  31. graphlit_api/query_views.py +330 -0
  32. graphlit_api/query_workflows.py +6 -0
  33. graphlit_api/update_connector.py +25 -0
  34. graphlit_api/update_view.py +316 -0
  35. graphlit_api/update_workflow.py +6 -0
  36. graphlit_api/upsert_workflow.py +6 -0
  37. {graphlit_client-1.0.20250622004.dist-info → graphlit_client-1.0.20250627001.dist-info}/METADATA +1 -1
  38. {graphlit_client-1.0.20250622004.dist-info → graphlit_client-1.0.20250627001.dist-info}/RECORD +41 -24
  39. {graphlit_client-1.0.20250622004.dist-info → graphlit_client-1.0.20250627001.dist-info}/WHEEL +0 -0
  40. {graphlit_client-1.0.20250622004.dist-info → graphlit_client-1.0.20250627001.dist-info}/licenses/LICENSE +0 -0
  41. {graphlit_client-1.0.20250622004.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()