bulkit 0.1.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.
- bulkit/__init__.py +307 -0
- bulkit/_base_client.py +1147 -0
- bulkit/_constants.py +15 -0
- bulkit/_exceptions.py +306 -0
- bulkit/_pagination.py +226 -0
- bulkit/_resource.py +19 -0
- bulkit/_response.py +85 -0
- bulkit/_types.py +52 -0
- bulkit/_version.py +3 -0
- bulkit/client.py +146 -0
- bulkit/py.typed +0 -0
- bulkit/resources/__init__.py +85 -0
- bulkit/resources/channels.py +305 -0
- bulkit/resources/media.py +1319 -0
- bulkit/resources/platforms.py +122 -0
- bulkit/resources/posts.py +1186 -0
- bulkit/resources/stats.py +267 -0
- bulkit/resources/tags.py +107 -0
- bulkit/resources/usage.py +108 -0
- bulkit/resources/webhooks.py +823 -0
- bulkit/types/__init__.py +233 -0
- bulkit/types/_base.py +10 -0
- bulkit/types/_errors.py +113 -0
- bulkit/types/channel.py +52 -0
- bulkit/types/comment.py +35 -0
- bulkit/types/media.py +48 -0
- bulkit/types/platform.py +105 -0
- bulkit/types/post.py +250 -0
- bulkit/types/shared.py +123 -0
- bulkit/types/stats.py +112 -0
- bulkit/types/tag.py +10 -0
- bulkit/types/usage.py +29 -0
- bulkit/types/webhook.py +145 -0
- bulkit/webhooks.py +141 -0
- bulkit-0.1.0.dist-info/METADATA +346 -0
- bulkit-0.1.0.dist-info/RECORD +38 -0
- bulkit-0.1.0.dist-info/WHEEL +4 -0
- bulkit-0.1.0.dist-info/licenses/LICENSE +21 -0
bulkit/__init__.py
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from . import types as types
|
|
4
|
+
from ._exceptions import APIConnectionError as APIConnectionError
|
|
5
|
+
from ._exceptions import APIConnectionTimeoutError as APIConnectionTimeoutError
|
|
6
|
+
from ._exceptions import APIError as APIError
|
|
7
|
+
from ._exceptions import APIResponseValidationError as APIResponseValidationError
|
|
8
|
+
from ._exceptions import APIUserAbortError as APIUserAbortError
|
|
9
|
+
from ._exceptions import AuthenticationError as AuthenticationError
|
|
10
|
+
from ._exceptions import BadRequestError as BadRequestError
|
|
11
|
+
from ._exceptions import BulkitError as BulkitError
|
|
12
|
+
from ._exceptions import ConflictError as ConflictError
|
|
13
|
+
from ._exceptions import InternalServerError as InternalServerError
|
|
14
|
+
from ._exceptions import NotFoundError as NotFoundError
|
|
15
|
+
from ._exceptions import PayloadTooLargeError as PayloadTooLargeError
|
|
16
|
+
from ._exceptions import PermissionDeniedError as PermissionDeniedError
|
|
17
|
+
from ._exceptions import QuotaExceededError as QuotaExceededError
|
|
18
|
+
from ._exceptions import RateLimitError as RateLimitError
|
|
19
|
+
from ._exceptions import UnprocessableEntityError as UnprocessableEntityError
|
|
20
|
+
from ._exceptions import UnsupportedMediaTypeError as UnsupportedMediaTypeError
|
|
21
|
+
from ._exceptions import WebhookVerificationError as WebhookVerificationError
|
|
22
|
+
from ._pagination import AsyncCursorPage as AsyncCursorPage
|
|
23
|
+
from ._pagination import AsyncPaginator as AsyncPaginator
|
|
24
|
+
from ._pagination import SyncCursorPage as SyncCursorPage
|
|
25
|
+
from ._response import APIResponse as APIResponse
|
|
26
|
+
from ._response import RateLimitInfo as RateLimitInfo
|
|
27
|
+
from ._types import NOT_GIVEN as NOT_GIVEN
|
|
28
|
+
from ._types import OMIT as OMIT
|
|
29
|
+
from ._types import FileTypes as FileTypes
|
|
30
|
+
from ._types import Headers as Headers
|
|
31
|
+
from ._types import NotGiven as NotGiven
|
|
32
|
+
from ._types import NotGivenOr as NotGivenOr
|
|
33
|
+
from ._types import Omit as Omit
|
|
34
|
+
from ._types import Query as Query
|
|
35
|
+
from ._types import RequestOptions as RequestOptions
|
|
36
|
+
from ._types import Timeout as Timeout
|
|
37
|
+
from ._version import __version__ as __version__
|
|
38
|
+
from .client import AsyncBulkit as AsyncBulkit
|
|
39
|
+
from .client import Bulkit as Bulkit
|
|
40
|
+
from .types import ApiErrorCode as ApiErrorCode
|
|
41
|
+
from .types import Attachment as Attachment
|
|
42
|
+
from .types import BulkitModel as BulkitModel
|
|
43
|
+
from .types import Channel as Channel
|
|
44
|
+
from .types import ChannelAccount as ChannelAccount
|
|
45
|
+
from .types import ChannelCapabilities as ChannelCapabilities
|
|
46
|
+
from .types import ChannelCapabilityOption as ChannelCapabilityOption
|
|
47
|
+
from .types import ChannelFeatureStatus as ChannelFeatureStatus
|
|
48
|
+
from .types import ChannelMetricsStatus as ChannelMetricsStatus
|
|
49
|
+
from .types import ChannelOperationOutcome as ChannelOperationOutcome
|
|
50
|
+
from .types import Comment as Comment
|
|
51
|
+
from .types import CommentPage as CommentPage
|
|
52
|
+
from .types import CommentReply as CommentReply
|
|
53
|
+
from .types import CreatePostBlock as CreatePostBlock
|
|
54
|
+
from .types import CreatePostBlockParam as CreatePostBlockParam
|
|
55
|
+
from .types import CreatePostChannel as CreatePostChannel
|
|
56
|
+
from .types import CreatePostChannelParam as CreatePostChannelParam
|
|
57
|
+
from .types import CreatePostRequest as CreatePostRequest
|
|
58
|
+
from .types import CreateWebhookRequest as CreateWebhookRequest
|
|
59
|
+
from .types import Error as Error
|
|
60
|
+
from .types import ErrorDetail as ErrorDetail
|
|
61
|
+
from .types import FieldError as FieldError
|
|
62
|
+
from .types import InsightFormat as InsightFormat
|
|
63
|
+
from .types import InsightFormatKind as InsightFormatKind
|
|
64
|
+
from .types import InsightHour as InsightHour
|
|
65
|
+
from .types import InsightSlot as InsightSlot
|
|
66
|
+
from .types import InsightTag as InsightTag
|
|
67
|
+
from .types import InsightThread as InsightThread
|
|
68
|
+
from .types import InsightThreadKind as InsightThreadKind
|
|
69
|
+
from .types import InsightWeekday as InsightWeekday
|
|
70
|
+
from .types import IssuedWebhookEndpoint as IssuedWebhookEndpoint
|
|
71
|
+
from .types import MediaItem as MediaItem
|
|
72
|
+
from .types import MediaKind as MediaKind
|
|
73
|
+
from .types import MediaKindLimits as MediaKindLimits
|
|
74
|
+
from .types import MediaLimits as MediaLimits
|
|
75
|
+
from .types import MediaPage as MediaPage
|
|
76
|
+
from .types import MediaPerKindLimits as MediaPerKindLimits
|
|
77
|
+
from .types import MediaTypeLimits as MediaTypeLimits
|
|
78
|
+
from .types import MediaUpload as MediaUpload
|
|
79
|
+
from .types import MediaUploadPart as MediaUploadPart
|
|
80
|
+
from .types import MediaUserTag as MediaUserTag
|
|
81
|
+
from .types import MediaUserTagParam as MediaUserTagParam
|
|
82
|
+
from .types import OptionChoice as OptionChoice
|
|
83
|
+
from .types import OptionChoices as OptionChoices
|
|
84
|
+
from .types import Platform as Platform
|
|
85
|
+
from .types import PlatformId as PlatformId
|
|
86
|
+
from .types import PlatformLimits as PlatformLimits
|
|
87
|
+
from .types import PlatformOptionDefinition as PlatformOptionDefinition
|
|
88
|
+
from .types import PlatformOptionDefinitionMedia as PlatformOptionDefinitionMedia
|
|
89
|
+
from .types import (
|
|
90
|
+
PlatformOptionDefinitionRequiredWithMedia as PlatformOptionDefinitionRequiredWithMedia,
|
|
91
|
+
)
|
|
92
|
+
from .types import PlatformOptionDefinitionRequires as PlatformOptionDefinitionRequires
|
|
93
|
+
from .types import PlatformOptionDefinitionRequiresAnyOf as PlatformOptionDefinitionRequiresAnyOf
|
|
94
|
+
from .types import PlatformOptionDefinitionRulesOut as PlatformOptionDefinitionRulesOut
|
|
95
|
+
from .types import PlatformParam as PlatformParam
|
|
96
|
+
from .types import PlatformRemoteEditLimits as PlatformRemoteEditLimits
|
|
97
|
+
from .types import PlatformTitleLimits as PlatformTitleLimits
|
|
98
|
+
from .types import PlatformUserTagLimits as PlatformUserTagLimits
|
|
99
|
+
from .types import Post as Post
|
|
100
|
+
from .types import PostBlock as PostBlock
|
|
101
|
+
from .types import PostChannel as PostChannel
|
|
102
|
+
from .types import PostIntent as PostIntent
|
|
103
|
+
from .types import PostListStatus as PostListStatus
|
|
104
|
+
from .types import PostMetricReading as PostMetricReading
|
|
105
|
+
from .types import PostMetrics as PostMetrics
|
|
106
|
+
from .types import PostMetricsChannel as PostMetricsChannel
|
|
107
|
+
from .types import PostPage as PostPage
|
|
108
|
+
from .types import PostStatus as PostStatus
|
|
109
|
+
from .types import PostType as PostType
|
|
110
|
+
from .types import ReplyToCommentRequest as ReplyToCommentRequest
|
|
111
|
+
from .types import RetractResult as RetractResult
|
|
112
|
+
from .types import RevisePostBlock as RevisePostBlock
|
|
113
|
+
from .types import RevisePostBlockParam as RevisePostBlockParam
|
|
114
|
+
from .types import RevisePostChannel as RevisePostChannel
|
|
115
|
+
from .types import RevisePostChannelParam as RevisePostChannelParam
|
|
116
|
+
from .types import RevisePostRequest as RevisePostRequest
|
|
117
|
+
from .types import ReviseResult as ReviseResult
|
|
118
|
+
from .types import SignMediaUploadPartsRequest as SignMediaUploadPartsRequest
|
|
119
|
+
from .types import StartMediaUploadRequest as StartMediaUploadRequest
|
|
120
|
+
from .types import Stats as Stats
|
|
121
|
+
from .types import StatsChannel as StatsChannel
|
|
122
|
+
from .types import StatsDay as StatsDay
|
|
123
|
+
from .types import StatsEngagement as StatsEngagement
|
|
124
|
+
from .types import StatsEngagementTotals as StatsEngagementTotals
|
|
125
|
+
from .types import StatsInsights as StatsInsights
|
|
126
|
+
from .types import StatsQueue as StatsQueue
|
|
127
|
+
from .types import StatsTag as StatsTag
|
|
128
|
+
from .types import StatsTotals as StatsTotals
|
|
129
|
+
from .types import Tag as Tag
|
|
130
|
+
from .types import UnknownWebhookEvent as UnknownWebhookEvent
|
|
131
|
+
from .types import UpdateWebhookRequest as UpdateWebhookRequest
|
|
132
|
+
from .types import UploadMediaRequest as UploadMediaRequest
|
|
133
|
+
from .types import Usage as Usage
|
|
134
|
+
from .types import UsageMetric as UsageMetric
|
|
135
|
+
from .types import UsagePlan as UsagePlan
|
|
136
|
+
from .types import UsagePosts as UsagePosts
|
|
137
|
+
from .types import UsageStorage as UsageStorage
|
|
138
|
+
from .types import WebhookChannelData as WebhookChannelData
|
|
139
|
+
from .types import WebhookChannelNeedsReconnectEvent as WebhookChannelNeedsReconnectEvent
|
|
140
|
+
from .types import WebhookDelivery as WebhookDelivery
|
|
141
|
+
from .types import WebhookDeliveryPage as WebhookDeliveryPage
|
|
142
|
+
from .types import WebhookDeliveryStatus as WebhookDeliveryStatus
|
|
143
|
+
from .types import WebhookEndpoint as WebhookEndpoint
|
|
144
|
+
from .types import WebhookEndpointStatus as WebhookEndpointStatus
|
|
145
|
+
from .types import WebhookEvent as WebhookEvent
|
|
146
|
+
from .types import WebhookEventType as WebhookEventType
|
|
147
|
+
from .types import WebhookPostData as WebhookPostData
|
|
148
|
+
from .types import WebhookPostEvent as WebhookPostEvent
|
|
149
|
+
from .types import WebhookSubscribableEvent as WebhookSubscribableEvent
|
|
150
|
+
from .types import WebhookTestEvent as WebhookTestEvent
|
|
151
|
+
from .types import WebhookTestResult as WebhookTestResult
|
|
152
|
+
from .webhooks import SIGNATURE_HEADER as SIGNATURE_HEADER
|
|
153
|
+
from .webhooks import sign_webhook_payload as sign_webhook_payload
|
|
154
|
+
from .webhooks import verify_webhook as verify_webhook
|
|
155
|
+
|
|
156
|
+
__all__ = [
|
|
157
|
+
"NOT_GIVEN",
|
|
158
|
+
"OMIT",
|
|
159
|
+
"SIGNATURE_HEADER",
|
|
160
|
+
"APIConnectionError",
|
|
161
|
+
"APIConnectionTimeoutError",
|
|
162
|
+
"APIError",
|
|
163
|
+
"APIResponse",
|
|
164
|
+
"APIResponseValidationError",
|
|
165
|
+
"APIUserAbortError",
|
|
166
|
+
"ApiErrorCode",
|
|
167
|
+
"AsyncBulkit",
|
|
168
|
+
"AsyncCursorPage",
|
|
169
|
+
"AsyncPaginator",
|
|
170
|
+
"Attachment",
|
|
171
|
+
"AuthenticationError",
|
|
172
|
+
"BadRequestError",
|
|
173
|
+
"Bulkit",
|
|
174
|
+
"BulkitError",
|
|
175
|
+
"BulkitModel",
|
|
176
|
+
"Channel",
|
|
177
|
+
"ChannelAccount",
|
|
178
|
+
"ChannelCapabilities",
|
|
179
|
+
"ChannelCapabilityOption",
|
|
180
|
+
"ChannelFeatureStatus",
|
|
181
|
+
"ChannelMetricsStatus",
|
|
182
|
+
"ChannelOperationOutcome",
|
|
183
|
+
"Comment",
|
|
184
|
+
"CommentPage",
|
|
185
|
+
"CommentReply",
|
|
186
|
+
"ConflictError",
|
|
187
|
+
"CreatePostBlock",
|
|
188
|
+
"CreatePostBlockParam",
|
|
189
|
+
"CreatePostChannel",
|
|
190
|
+
"CreatePostChannelParam",
|
|
191
|
+
"CreatePostRequest",
|
|
192
|
+
"CreateWebhookRequest",
|
|
193
|
+
"Error",
|
|
194
|
+
"ErrorDetail",
|
|
195
|
+
"FieldError",
|
|
196
|
+
"FileTypes",
|
|
197
|
+
"Headers",
|
|
198
|
+
"InsightFormat",
|
|
199
|
+
"InsightFormatKind",
|
|
200
|
+
"InsightHour",
|
|
201
|
+
"InsightSlot",
|
|
202
|
+
"InsightTag",
|
|
203
|
+
"InsightThread",
|
|
204
|
+
"InsightThreadKind",
|
|
205
|
+
"InsightWeekday",
|
|
206
|
+
"InternalServerError",
|
|
207
|
+
"IssuedWebhookEndpoint",
|
|
208
|
+
"MediaItem",
|
|
209
|
+
"MediaKind",
|
|
210
|
+
"MediaKindLimits",
|
|
211
|
+
"MediaLimits",
|
|
212
|
+
"MediaPage",
|
|
213
|
+
"MediaPerKindLimits",
|
|
214
|
+
"MediaTypeLimits",
|
|
215
|
+
"MediaUpload",
|
|
216
|
+
"MediaUploadPart",
|
|
217
|
+
"MediaUserTag",
|
|
218
|
+
"MediaUserTagParam",
|
|
219
|
+
"NotFoundError",
|
|
220
|
+
"NotGiven",
|
|
221
|
+
"NotGivenOr",
|
|
222
|
+
"Omit",
|
|
223
|
+
"OptionChoice",
|
|
224
|
+
"OptionChoices",
|
|
225
|
+
"PayloadTooLargeError",
|
|
226
|
+
"PermissionDeniedError",
|
|
227
|
+
"Platform",
|
|
228
|
+
"PlatformId",
|
|
229
|
+
"PlatformLimits",
|
|
230
|
+
"PlatformOptionDefinition",
|
|
231
|
+
"PlatformOptionDefinitionMedia",
|
|
232
|
+
"PlatformOptionDefinitionRequiredWithMedia",
|
|
233
|
+
"PlatformOptionDefinitionRequires",
|
|
234
|
+
"PlatformOptionDefinitionRequiresAnyOf",
|
|
235
|
+
"PlatformOptionDefinitionRulesOut",
|
|
236
|
+
"PlatformParam",
|
|
237
|
+
"PlatformRemoteEditLimits",
|
|
238
|
+
"PlatformTitleLimits",
|
|
239
|
+
"PlatformUserTagLimits",
|
|
240
|
+
"Post",
|
|
241
|
+
"PostBlock",
|
|
242
|
+
"PostChannel",
|
|
243
|
+
"PostIntent",
|
|
244
|
+
"PostListStatus",
|
|
245
|
+
"PostMetricReading",
|
|
246
|
+
"PostMetrics",
|
|
247
|
+
"PostMetricsChannel",
|
|
248
|
+
"PostPage",
|
|
249
|
+
"PostStatus",
|
|
250
|
+
"PostType",
|
|
251
|
+
"Query",
|
|
252
|
+
"QuotaExceededError",
|
|
253
|
+
"RateLimitError",
|
|
254
|
+
"RateLimitInfo",
|
|
255
|
+
"ReplyToCommentRequest",
|
|
256
|
+
"RequestOptions",
|
|
257
|
+
"RetractResult",
|
|
258
|
+
"RevisePostBlock",
|
|
259
|
+
"RevisePostBlockParam",
|
|
260
|
+
"RevisePostChannel",
|
|
261
|
+
"RevisePostChannelParam",
|
|
262
|
+
"RevisePostRequest",
|
|
263
|
+
"ReviseResult",
|
|
264
|
+
"SignMediaUploadPartsRequest",
|
|
265
|
+
"StartMediaUploadRequest",
|
|
266
|
+
"Stats",
|
|
267
|
+
"StatsChannel",
|
|
268
|
+
"StatsDay",
|
|
269
|
+
"StatsEngagement",
|
|
270
|
+
"StatsEngagementTotals",
|
|
271
|
+
"StatsInsights",
|
|
272
|
+
"StatsQueue",
|
|
273
|
+
"StatsTag",
|
|
274
|
+
"StatsTotals",
|
|
275
|
+
"SyncCursorPage",
|
|
276
|
+
"Tag",
|
|
277
|
+
"Timeout",
|
|
278
|
+
"UnknownWebhookEvent",
|
|
279
|
+
"UnprocessableEntityError",
|
|
280
|
+
"UnsupportedMediaTypeError",
|
|
281
|
+
"UpdateWebhookRequest",
|
|
282
|
+
"UploadMediaRequest",
|
|
283
|
+
"Usage",
|
|
284
|
+
"UsageMetric",
|
|
285
|
+
"UsagePlan",
|
|
286
|
+
"UsagePosts",
|
|
287
|
+
"UsageStorage",
|
|
288
|
+
"WebhookChannelData",
|
|
289
|
+
"WebhookChannelNeedsReconnectEvent",
|
|
290
|
+
"WebhookDelivery",
|
|
291
|
+
"WebhookDeliveryPage",
|
|
292
|
+
"WebhookDeliveryStatus",
|
|
293
|
+
"WebhookEndpoint",
|
|
294
|
+
"WebhookEndpointStatus",
|
|
295
|
+
"WebhookEvent",
|
|
296
|
+
"WebhookEventType",
|
|
297
|
+
"WebhookPostData",
|
|
298
|
+
"WebhookPostEvent",
|
|
299
|
+
"WebhookSubscribableEvent",
|
|
300
|
+
"WebhookTestEvent",
|
|
301
|
+
"WebhookTestResult",
|
|
302
|
+
"WebhookVerificationError",
|
|
303
|
+
"__version__",
|
|
304
|
+
"sign_webhook_payload",
|
|
305
|
+
"types",
|
|
306
|
+
"verify_webhook",
|
|
307
|
+
]
|