pipe2 0.1.2__tar.gz → 0.2.0__tar.gz
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.
- {pipe2-0.1.2 → pipe2-0.2.0}/PKG-INFO +1 -1
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/__init__.py +102 -2
- pipe2-0.2.0/pipe2/generated/abort_multipart_upload.py +15 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/client.py +127 -8
- pipe2-0.2.0/pipe2/generated/complete_multipart_upload.py +21 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/enums.py +25 -6
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_credit_packs.py +8 -2
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_plans.py +8 -2
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_subscription.py +9 -1
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/input_types.py +387 -18
- pipe2-0.2.0/pipe2/generated/request_multipart_upload.py +27 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pyproject.toml +1 -1
- {pipe2-0.1.2 → pipe2-0.2.0}/.gitignore +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/__init__.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/client.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/add_affiliate_code.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/async_base_client.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/base_model.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/cancel_account_deletion.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/cancel_pipeline_run.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/cancel_subscription.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/change_avatar.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/change_name.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/change_password.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/confirm_account_deletion.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/create_asset.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/create_personal_access_token.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/delete_asset_action.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/ensure_affiliate.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/exceptions.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_active_pipeline_runs.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_asset_thumbnail.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_asset_thumbnails_by_ids.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_credit_balance.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_credit_history.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_current_user.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_my_affiliate.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_my_affiliate_codes.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_my_api_keys.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_my_referrals.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_notifications.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_pipeline_run.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_pipeline_runs.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_pipeline_runs_by_slug.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_pipelines.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/get_user_assets.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/init_login_flow.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/init_recovery_flow.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/init_signup_flow.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/init_verification_flow.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/mark_all_notifications_read.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/mark_notification_read.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/request_account_deletion.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/request_avatar_upload.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/request_upload.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/revoke_personal_access_token.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/run_pipeline.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/submit_login_flow.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/submit_recovery_flow.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/submit_signup_flow.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/submit_social_login.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/submit_verification_code.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/update_asset_tags.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/watch_active_pipeline_runs.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/watch_notifications.py +0 -0
- {pipe2-0.1.2 → pipe2-0.2.0}/pipe2/generated/watch_pipeline_run.py +0 -0
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Generated by ariadne-codegen
|
|
2
2
|
|
|
3
|
+
from .abort_multipart_upload import (
|
|
4
|
+
AbortMultipartUpload,
|
|
5
|
+
AbortMultipartUploadAbortMultipartUpload,
|
|
6
|
+
)
|
|
3
7
|
from .add_affiliate_code import AddAffiliateCode, AddAffiliateCodeAddAffiliateCode
|
|
4
8
|
from .async_base_client import AsyncBaseClient
|
|
5
9
|
from .base_model import BaseModel, Upload
|
|
@@ -16,6 +20,10 @@ from .change_avatar import ChangeAvatar, ChangeAvatarChangeAvatar
|
|
|
16
20
|
from .change_name import ChangeName, ChangeNameChangeName
|
|
17
21
|
from .change_password import ChangePassword, ChangePasswordChangePassword
|
|
18
22
|
from .client import Pipe2GraphQLClient
|
|
23
|
+
from .complete_multipart_upload import (
|
|
24
|
+
CompleteMultipartUpload,
|
|
25
|
+
CompleteMultipartUploadCompleteMultipartUpload,
|
|
26
|
+
)
|
|
19
27
|
from .confirm_account_deletion import (
|
|
20
28
|
ConfirmAccountDeletion,
|
|
21
29
|
ConfirmAccountDeletionConfirmAccountDeletion,
|
|
@@ -31,6 +39,7 @@ from .enums import (
|
|
|
31
39
|
affiliate_codes_select_column,
|
|
32
40
|
affiliates_select_column,
|
|
33
41
|
assets_select_column,
|
|
42
|
+
credit_pack_versions_select_column,
|
|
34
43
|
credit_packs_select_column,
|
|
35
44
|
cursor_ordering,
|
|
36
45
|
executions_visibility_select_column,
|
|
@@ -39,6 +48,7 @@ from .enums import (
|
|
|
39
48
|
personal_access_tokens_select_column,
|
|
40
49
|
pipeline_runs_select_column,
|
|
41
50
|
pipelines_select_column,
|
|
51
|
+
plan_versions_select_column,
|
|
42
52
|
plans_select_column,
|
|
43
53
|
subscriptions_select_column,
|
|
44
54
|
)
|
|
@@ -63,7 +73,11 @@ from .get_asset_thumbnails_by_ids import (
|
|
|
63
73
|
)
|
|
64
74
|
from .get_credit_balance import GetCreditBalance, GetCreditBalanceGetCreditBalance
|
|
65
75
|
from .get_credit_history import GetCreditHistory, GetCreditHistoryGetCreditHistory
|
|
66
|
-
from .get_credit_packs import
|
|
76
|
+
from .get_credit_packs import (
|
|
77
|
+
GetCreditPacks,
|
|
78
|
+
GetCreditPacksCreditPacks,
|
|
79
|
+
GetCreditPacksCreditPacksVersions,
|
|
80
|
+
)
|
|
67
81
|
from .get_current_user import GetCurrentUser, GetCurrentUserCurrentUser
|
|
68
82
|
from .get_my_affiliate import (
|
|
69
83
|
GetMyAffiliate,
|
|
@@ -114,11 +128,12 @@ from .get_pipeline_runs_by_slug import (
|
|
|
114
128
|
GetPipelineRunsBySlugPipelineRunsWorkflowExecution,
|
|
115
129
|
)
|
|
116
130
|
from .get_pipelines import GetPipelines, GetPipelinesPipelines
|
|
117
|
-
from .get_plans import GetPlans, GetPlansPlans
|
|
131
|
+
from .get_plans import GetPlans, GetPlansPlans, GetPlansPlansVersions
|
|
118
132
|
from .get_subscription import (
|
|
119
133
|
GetSubscription,
|
|
120
134
|
GetSubscriptionSubscriptions,
|
|
121
135
|
GetSubscriptionSubscriptionsPlan,
|
|
136
|
+
GetSubscriptionSubscriptionsPlanVersion,
|
|
122
137
|
)
|
|
123
138
|
from .get_user_assets import (
|
|
124
139
|
GetUserAssets,
|
|
@@ -173,6 +188,21 @@ from .input_types import (
|
|
|
173
188
|
assets_var_samp_order_by,
|
|
174
189
|
assets_variance_order_by,
|
|
175
190
|
bpchar_comparison_exp,
|
|
191
|
+
credit_pack_versions_aggregate_order_by,
|
|
192
|
+
credit_pack_versions_avg_order_by,
|
|
193
|
+
credit_pack_versions_bool_exp,
|
|
194
|
+
credit_pack_versions_max_order_by,
|
|
195
|
+
credit_pack_versions_min_order_by,
|
|
196
|
+
credit_pack_versions_order_by,
|
|
197
|
+
credit_pack_versions_stddev_order_by,
|
|
198
|
+
credit_pack_versions_stddev_pop_order_by,
|
|
199
|
+
credit_pack_versions_stddev_samp_order_by,
|
|
200
|
+
credit_pack_versions_stream_cursor_input,
|
|
201
|
+
credit_pack_versions_stream_cursor_value_input,
|
|
202
|
+
credit_pack_versions_sum_order_by,
|
|
203
|
+
credit_pack_versions_var_pop_order_by,
|
|
204
|
+
credit_pack_versions_var_samp_order_by,
|
|
205
|
+
credit_pack_versions_variance_order_by,
|
|
176
206
|
credit_packs_bool_exp,
|
|
177
207
|
credit_packs_order_by,
|
|
178
208
|
credit_packs_stream_cursor_input,
|
|
@@ -183,6 +213,7 @@ from .input_types import (
|
|
|
183
213
|
executions_visibility_stream_cursor_value_input,
|
|
184
214
|
jsonb_cast_exp,
|
|
185
215
|
jsonb_comparison_exp,
|
|
216
|
+
multipart_part_input,
|
|
186
217
|
notifications_bool_exp,
|
|
187
218
|
notifications_order_by,
|
|
188
219
|
notifications_pk_columns_input,
|
|
@@ -203,11 +234,29 @@ from .input_types import (
|
|
|
203
234
|
pipelines_order_by,
|
|
204
235
|
pipelines_stream_cursor_input,
|
|
205
236
|
pipelines_stream_cursor_value_input,
|
|
237
|
+
plan_versions_aggregate_order_by,
|
|
238
|
+
plan_versions_avg_order_by,
|
|
239
|
+
plan_versions_bool_exp,
|
|
240
|
+
plan_versions_max_order_by,
|
|
241
|
+
plan_versions_min_order_by,
|
|
242
|
+
plan_versions_order_by,
|
|
243
|
+
plan_versions_stddev_order_by,
|
|
244
|
+
plan_versions_stddev_pop_order_by,
|
|
245
|
+
plan_versions_stddev_samp_order_by,
|
|
246
|
+
plan_versions_stream_cursor_input,
|
|
247
|
+
plan_versions_stream_cursor_value_input,
|
|
248
|
+
plan_versions_sum_order_by,
|
|
249
|
+
plan_versions_var_pop_order_by,
|
|
250
|
+
plan_versions_var_samp_order_by,
|
|
251
|
+
plan_versions_variance_order_by,
|
|
206
252
|
plans_bool_exp,
|
|
207
253
|
plans_order_by,
|
|
208
254
|
plans_stream_cursor_input,
|
|
209
255
|
plans_stream_cursor_value_input,
|
|
256
|
+
subscriptions_aggregate_order_by,
|
|
210
257
|
subscriptions_bool_exp,
|
|
258
|
+
subscriptions_max_order_by,
|
|
259
|
+
subscriptions_min_order_by,
|
|
211
260
|
subscriptions_order_by,
|
|
212
261
|
subscriptions_stream_cursor_input,
|
|
213
262
|
subscriptions_stream_cursor_value_input,
|
|
@@ -231,6 +280,11 @@ from .request_avatar_upload import (
|
|
|
231
280
|
RequestAvatarUpload,
|
|
232
281
|
RequestAvatarUploadRequestAvatarUpload,
|
|
233
282
|
)
|
|
283
|
+
from .request_multipart_upload import (
|
|
284
|
+
RequestMultipartUpload,
|
|
285
|
+
RequestMultipartUploadRequestMultipartUpload,
|
|
286
|
+
RequestMultipartUploadRequestMultipartUploadPartUrls,
|
|
287
|
+
)
|
|
234
288
|
from .request_upload import RequestUpload, RequestUploadRequestUpload
|
|
235
289
|
from .revoke_personal_access_token import (
|
|
236
290
|
RevokePersonalAccessToken,
|
|
@@ -263,6 +317,8 @@ from .watch_pipeline_run import (
|
|
|
263
317
|
)
|
|
264
318
|
|
|
265
319
|
__all__ = [
|
|
320
|
+
"AbortMultipartUpload",
|
|
321
|
+
"AbortMultipartUploadAbortMultipartUpload",
|
|
266
322
|
"AddAffiliateCode",
|
|
267
323
|
"AddAffiliateCodeAddAffiliateCode",
|
|
268
324
|
"AsyncBaseClient",
|
|
@@ -280,6 +336,8 @@ __all__ = [
|
|
|
280
336
|
"ChangeNameChangeName",
|
|
281
337
|
"ChangePassword",
|
|
282
338
|
"ChangePasswordChangePassword",
|
|
339
|
+
"CompleteMultipartUpload",
|
|
340
|
+
"CompleteMultipartUploadCompleteMultipartUpload",
|
|
283
341
|
"ConfirmAccountDeletion",
|
|
284
342
|
"ConfirmAccountDeletionConfirmAccountDeletion",
|
|
285
343
|
"CreateAsset",
|
|
@@ -305,6 +363,7 @@ __all__ = [
|
|
|
305
363
|
"GetCreditHistoryGetCreditHistory",
|
|
306
364
|
"GetCreditPacks",
|
|
307
365
|
"GetCreditPacksCreditPacks",
|
|
366
|
+
"GetCreditPacksCreditPacksVersions",
|
|
308
367
|
"GetCurrentUser",
|
|
309
368
|
"GetCurrentUserCurrentUser",
|
|
310
369
|
"GetMyAffiliate",
|
|
@@ -346,9 +405,11 @@ __all__ = [
|
|
|
346
405
|
"GetPipelinesPipelines",
|
|
347
406
|
"GetPlans",
|
|
348
407
|
"GetPlansPlans",
|
|
408
|
+
"GetPlansPlansVersions",
|
|
349
409
|
"GetSubscription",
|
|
350
410
|
"GetSubscriptionSubscriptions",
|
|
351
411
|
"GetSubscriptionSubscriptionsPlan",
|
|
412
|
+
"GetSubscriptionSubscriptionsPlanVersion",
|
|
352
413
|
"GetUserAssets",
|
|
353
414
|
"GetUserAssetsAssets",
|
|
354
415
|
"GetUserAssetsAssetsAggregate",
|
|
@@ -376,6 +437,9 @@ __all__ = [
|
|
|
376
437
|
"RequestAccountDeletionRequestAccountDeletion",
|
|
377
438
|
"RequestAvatarUpload",
|
|
378
439
|
"RequestAvatarUploadRequestAvatarUpload",
|
|
440
|
+
"RequestMultipartUpload",
|
|
441
|
+
"RequestMultipartUploadRequestMultipartUpload",
|
|
442
|
+
"RequestMultipartUploadRequestMultipartUploadPartUrls",
|
|
379
443
|
"RequestUpload",
|
|
380
444
|
"RequestUploadRequestUpload",
|
|
381
445
|
"RevokePersonalAccessToken",
|
|
@@ -444,6 +508,22 @@ __all__ = [
|
|
|
444
508
|
"assets_var_samp_order_by",
|
|
445
509
|
"assets_variance_order_by",
|
|
446
510
|
"bpchar_comparison_exp",
|
|
511
|
+
"credit_pack_versions_aggregate_order_by",
|
|
512
|
+
"credit_pack_versions_avg_order_by",
|
|
513
|
+
"credit_pack_versions_bool_exp",
|
|
514
|
+
"credit_pack_versions_max_order_by",
|
|
515
|
+
"credit_pack_versions_min_order_by",
|
|
516
|
+
"credit_pack_versions_order_by",
|
|
517
|
+
"credit_pack_versions_select_column",
|
|
518
|
+
"credit_pack_versions_stddev_order_by",
|
|
519
|
+
"credit_pack_versions_stddev_pop_order_by",
|
|
520
|
+
"credit_pack_versions_stddev_samp_order_by",
|
|
521
|
+
"credit_pack_versions_stream_cursor_input",
|
|
522
|
+
"credit_pack_versions_stream_cursor_value_input",
|
|
523
|
+
"credit_pack_versions_sum_order_by",
|
|
524
|
+
"credit_pack_versions_var_pop_order_by",
|
|
525
|
+
"credit_pack_versions_var_samp_order_by",
|
|
526
|
+
"credit_pack_versions_variance_order_by",
|
|
447
527
|
"credit_packs_bool_exp",
|
|
448
528
|
"credit_packs_order_by",
|
|
449
529
|
"credit_packs_select_column",
|
|
@@ -457,6 +537,7 @@ __all__ = [
|
|
|
457
537
|
"executions_visibility_stream_cursor_value_input",
|
|
458
538
|
"jsonb_cast_exp",
|
|
459
539
|
"jsonb_comparison_exp",
|
|
540
|
+
"multipart_part_input",
|
|
460
541
|
"notifications_bool_exp",
|
|
461
542
|
"notifications_order_by",
|
|
462
543
|
"notifications_pk_columns_input",
|
|
@@ -482,12 +563,31 @@ __all__ = [
|
|
|
482
563
|
"pipelines_select_column",
|
|
483
564
|
"pipelines_stream_cursor_input",
|
|
484
565
|
"pipelines_stream_cursor_value_input",
|
|
566
|
+
"plan_versions_aggregate_order_by",
|
|
567
|
+
"plan_versions_avg_order_by",
|
|
568
|
+
"plan_versions_bool_exp",
|
|
569
|
+
"plan_versions_max_order_by",
|
|
570
|
+
"plan_versions_min_order_by",
|
|
571
|
+
"plan_versions_order_by",
|
|
572
|
+
"plan_versions_select_column",
|
|
573
|
+
"plan_versions_stddev_order_by",
|
|
574
|
+
"plan_versions_stddev_pop_order_by",
|
|
575
|
+
"plan_versions_stddev_samp_order_by",
|
|
576
|
+
"plan_versions_stream_cursor_input",
|
|
577
|
+
"plan_versions_stream_cursor_value_input",
|
|
578
|
+
"plan_versions_sum_order_by",
|
|
579
|
+
"plan_versions_var_pop_order_by",
|
|
580
|
+
"plan_versions_var_samp_order_by",
|
|
581
|
+
"plan_versions_variance_order_by",
|
|
485
582
|
"plans_bool_exp",
|
|
486
583
|
"plans_order_by",
|
|
487
584
|
"plans_select_column",
|
|
488
585
|
"plans_stream_cursor_input",
|
|
489
586
|
"plans_stream_cursor_value_input",
|
|
587
|
+
"subscriptions_aggregate_order_by",
|
|
490
588
|
"subscriptions_bool_exp",
|
|
589
|
+
"subscriptions_max_order_by",
|
|
590
|
+
"subscriptions_min_order_by",
|
|
491
591
|
"subscriptions_order_by",
|
|
492
592
|
"subscriptions_select_column",
|
|
493
593
|
"subscriptions_stream_cursor_input",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Generated by ariadne-codegen
|
|
2
|
+
# Source: ../graphql/operations/
|
|
3
|
+
|
|
4
|
+
from .base_model import BaseModel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AbortMultipartUpload(BaseModel):
|
|
8
|
+
abort_multipart_upload: "AbortMultipartUploadAbortMultipartUpload"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AbortMultipartUploadAbortMultipartUpload(BaseModel):
|
|
12
|
+
success: bool
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
AbortMultipartUpload.model_rebuild()
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
from collections.abc import AsyncIterator
|
|
5
5
|
from typing import Any, Optional, Union
|
|
6
6
|
|
|
7
|
+
from .abort_multipart_upload import AbortMultipartUpload
|
|
7
8
|
from .add_affiliate_code import AddAffiliateCode
|
|
8
9
|
from .async_base_client import AsyncBaseClient
|
|
9
10
|
from .base_model import UNSET, UnsetType
|
|
@@ -13,6 +14,7 @@ from .cancel_subscription import CancelSubscription
|
|
|
13
14
|
from .change_avatar import ChangeAvatar
|
|
14
15
|
from .change_name import ChangeName
|
|
15
16
|
from .change_password import ChangePassword
|
|
17
|
+
from .complete_multipart_upload import CompleteMultipartUpload
|
|
16
18
|
from .confirm_account_deletion import ConfirmAccountDeletion
|
|
17
19
|
from .create_asset import CreateAsset
|
|
18
20
|
from .create_personal_access_token import CreatePersonalAccessToken
|
|
@@ -41,11 +43,12 @@ from .init_login_flow import InitLoginFlow
|
|
|
41
43
|
from .init_recovery_flow import InitRecoveryFlow
|
|
42
44
|
from .init_signup_flow import InitSignupFlow
|
|
43
45
|
from .init_verification_flow import InitVerificationFlow
|
|
44
|
-
from .input_types import assets_bool_exp, pipeline_runs_bool_exp
|
|
46
|
+
from .input_types import assets_bool_exp, multipart_part_input, pipeline_runs_bool_exp
|
|
45
47
|
from .mark_all_notifications_read import MarkAllNotificationsRead
|
|
46
48
|
from .mark_notification_read import MarkNotificationRead
|
|
47
49
|
from .request_account_deletion import RequestAccountDeletion
|
|
48
50
|
from .request_avatar_upload import RequestAvatarUpload
|
|
51
|
+
from .request_multipart_upload import RequestMultipartUpload
|
|
49
52
|
from .request_upload import RequestUpload
|
|
50
53
|
from .revoke_personal_access_token import RevokePersonalAccessToken
|
|
51
54
|
from .run_pipeline import RunPipeline
|
|
@@ -455,6 +458,110 @@ class Pipe2GraphQLClient(AsyncBaseClient):
|
|
|
455
458
|
data = self.get_data(response)
|
|
456
459
|
return RequestUpload.model_validate(data)
|
|
457
460
|
|
|
461
|
+
async def request_multipart_upload(
|
|
462
|
+
self,
|
|
463
|
+
filename: str,
|
|
464
|
+
content_type: str,
|
|
465
|
+
total_size: Any,
|
|
466
|
+
part_size: Union[Optional[Any], UnsetType] = UNSET,
|
|
467
|
+
**kwargs: Any,
|
|
468
|
+
) -> RequestMultipartUpload:
|
|
469
|
+
query = gql("""
|
|
470
|
+
mutation RequestMultipartUpload($filename: String!, $content_type: String!, $total_size: bigint!, $part_size: bigint) {
|
|
471
|
+
request_multipart_upload(
|
|
472
|
+
filename: $filename
|
|
473
|
+
content_type: $content_type
|
|
474
|
+
total_size: $total_size
|
|
475
|
+
part_size: $part_size
|
|
476
|
+
) {
|
|
477
|
+
upload_id
|
|
478
|
+
key
|
|
479
|
+
asset_url
|
|
480
|
+
part_size
|
|
481
|
+
part_urls {
|
|
482
|
+
part_number
|
|
483
|
+
url
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
""")
|
|
488
|
+
variables: dict[str, object] = {
|
|
489
|
+
"filename": filename,
|
|
490
|
+
"content_type": content_type,
|
|
491
|
+
"total_size": total_size,
|
|
492
|
+
"part_size": part_size,
|
|
493
|
+
}
|
|
494
|
+
response = await self.execute(
|
|
495
|
+
query=query,
|
|
496
|
+
operation_name="RequestMultipartUpload",
|
|
497
|
+
variables=variables,
|
|
498
|
+
**kwargs,
|
|
499
|
+
)
|
|
500
|
+
data = self.get_data(response)
|
|
501
|
+
return RequestMultipartUpload.model_validate(data)
|
|
502
|
+
|
|
503
|
+
async def complete_multipart_upload(
|
|
504
|
+
self,
|
|
505
|
+
upload_id: str,
|
|
506
|
+
key: str,
|
|
507
|
+
content_type: str,
|
|
508
|
+
parts: list[multipart_part_input],
|
|
509
|
+
tags: Union[Optional[list[str]], UnsetType] = UNSET,
|
|
510
|
+
**kwargs: Any,
|
|
511
|
+
) -> CompleteMultipartUpload:
|
|
512
|
+
query = gql("""
|
|
513
|
+
mutation CompleteMultipartUpload($upload_id: String!, $key: String!, $content_type: String!, $parts: [multipart_part_input!]!, $tags: [String!] = []) {
|
|
514
|
+
complete_multipart_upload(
|
|
515
|
+
upload_id: $upload_id
|
|
516
|
+
key: $key
|
|
517
|
+
content_type: $content_type
|
|
518
|
+
parts: $parts
|
|
519
|
+
tags: $tags
|
|
520
|
+
) {
|
|
521
|
+
id
|
|
522
|
+
type
|
|
523
|
+
url
|
|
524
|
+
tags
|
|
525
|
+
created_at
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
""")
|
|
529
|
+
variables: dict[str, object] = {
|
|
530
|
+
"upload_id": upload_id,
|
|
531
|
+
"key": key,
|
|
532
|
+
"content_type": content_type,
|
|
533
|
+
"parts": parts,
|
|
534
|
+
"tags": tags,
|
|
535
|
+
}
|
|
536
|
+
response = await self.execute(
|
|
537
|
+
query=query,
|
|
538
|
+
operation_name="CompleteMultipartUpload",
|
|
539
|
+
variables=variables,
|
|
540
|
+
**kwargs,
|
|
541
|
+
)
|
|
542
|
+
data = self.get_data(response)
|
|
543
|
+
return CompleteMultipartUpload.model_validate(data)
|
|
544
|
+
|
|
545
|
+
async def abort_multipart_upload(
|
|
546
|
+
self, upload_id: str, key: str, **kwargs: Any
|
|
547
|
+
) -> AbortMultipartUpload:
|
|
548
|
+
query = gql("""
|
|
549
|
+
mutation AbortMultipartUpload($upload_id: String!, $key: String!) {
|
|
550
|
+
abort_multipart_upload(upload_id: $upload_id, key: $key) {
|
|
551
|
+
success
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
""")
|
|
555
|
+
variables: dict[str, object] = {"upload_id": upload_id, "key": key}
|
|
556
|
+
response = await self.execute(
|
|
557
|
+
query=query,
|
|
558
|
+
operation_name="AbortMultipartUpload",
|
|
559
|
+
variables=variables,
|
|
560
|
+
**kwargs,
|
|
561
|
+
)
|
|
562
|
+
data = self.get_data(response)
|
|
563
|
+
return AbortMultipartUpload.model_validate(data)
|
|
564
|
+
|
|
458
565
|
async def create_asset(
|
|
459
566
|
self,
|
|
460
567
|
asset_type: str,
|
|
@@ -1137,11 +1244,14 @@ class Pipe2GraphQLClient(AsyncBaseClient):
|
|
|
1137
1244
|
slug
|
|
1138
1245
|
name
|
|
1139
1246
|
description
|
|
1140
|
-
monthly_credits
|
|
1141
|
-
price_cents
|
|
1142
1247
|
features
|
|
1143
1248
|
sort_order
|
|
1144
|
-
|
|
1249
|
+
versions(where: {is_current: {_eq: true}}, limit: 1) {
|
|
1250
|
+
id
|
|
1251
|
+
whop_plan_id
|
|
1252
|
+
price_cents
|
|
1253
|
+
monthly_credits
|
|
1254
|
+
}
|
|
1145
1255
|
}
|
|
1146
1256
|
}
|
|
1147
1257
|
""")
|
|
@@ -1159,10 +1269,13 @@ class Pipe2GraphQLClient(AsyncBaseClient):
|
|
|
1159
1269
|
id
|
|
1160
1270
|
slug
|
|
1161
1271
|
name
|
|
1162
|
-
credits
|
|
1163
|
-
price_cents
|
|
1164
1272
|
sort_order
|
|
1165
|
-
|
|
1273
|
+
versions(where: {is_current: {_eq: true}}, limit: 1) {
|
|
1274
|
+
id
|
|
1275
|
+
whop_plan_id
|
|
1276
|
+
price_cents
|
|
1277
|
+
credits
|
|
1278
|
+
}
|
|
1166
1279
|
}
|
|
1167
1280
|
}
|
|
1168
1281
|
""")
|
|
@@ -1179,6 +1292,7 @@ class Pipe2GraphQLClient(AsyncBaseClient):
|
|
|
1179
1292
|
subscriptions {
|
|
1180
1293
|
id
|
|
1181
1294
|
plan_id
|
|
1295
|
+
plan_version_id
|
|
1182
1296
|
status
|
|
1183
1297
|
period_start
|
|
1184
1298
|
period_end
|
|
@@ -1186,9 +1300,14 @@ class Pipe2GraphQLClient(AsyncBaseClient):
|
|
|
1186
1300
|
plan {
|
|
1187
1301
|
slug
|
|
1188
1302
|
name
|
|
1189
|
-
monthly_credits
|
|
1190
1303
|
sort_order
|
|
1191
1304
|
}
|
|
1305
|
+
plan_version {
|
|
1306
|
+
id
|
|
1307
|
+
version
|
|
1308
|
+
monthly_credits
|
|
1309
|
+
price_cents
|
|
1310
|
+
}
|
|
1192
1311
|
}
|
|
1193
1312
|
}
|
|
1194
1313
|
""")
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated by ariadne-codegen
|
|
2
|
+
# Source: ../graphql/operations/
|
|
3
|
+
|
|
4
|
+
from pydantic import Field
|
|
5
|
+
|
|
6
|
+
from .base_model import BaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class CompleteMultipartUpload(BaseModel):
|
|
10
|
+
complete_multipart_upload: "CompleteMultipartUploadCompleteMultipartUpload"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class CompleteMultipartUploadCompleteMultipartUpload(BaseModel):
|
|
14
|
+
id: str
|
|
15
|
+
type_: str = Field(alias="type")
|
|
16
|
+
url: str
|
|
17
|
+
tags: list[str]
|
|
18
|
+
created_at: str
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
CompleteMultipartUpload.model_rebuild()
|
|
@@ -34,14 +34,23 @@ class assets_select_column(str, Enum):
|
|
|
34
34
|
url = "url"
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class credit_pack_versions_select_column(str, Enum):
|
|
38
|
+
created_at = "created_at"
|
|
39
|
+
credit_pack_id = "credit_pack_id"
|
|
38
40
|
credits = "credits"
|
|
41
|
+
deprecated_at = "deprecated_at"
|
|
39
42
|
id = "id"
|
|
40
|
-
|
|
43
|
+
is_current = "is_current"
|
|
41
44
|
price_cents = "price_cents"
|
|
45
|
+
version = "version"
|
|
46
|
+
whop_plan_id = "whop_plan_id"
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class credit_packs_select_column(str, Enum):
|
|
50
|
+
id = "id"
|
|
51
|
+
name = "name"
|
|
42
52
|
slug = "slug"
|
|
43
53
|
sort_order = "sort_order"
|
|
44
|
-
whop_plan_id = "whop_plan_id"
|
|
45
54
|
|
|
46
55
|
|
|
47
56
|
class cursor_ordering(str, Enum):
|
|
@@ -124,16 +133,25 @@ class pipelines_select_column(str, Enum):
|
|
|
124
133
|
ui_schema = "ui_schema"
|
|
125
134
|
|
|
126
135
|
|
|
136
|
+
class plan_versions_select_column(str, Enum):
|
|
137
|
+
created_at = "created_at"
|
|
138
|
+
deprecated_at = "deprecated_at"
|
|
139
|
+
id = "id"
|
|
140
|
+
is_current = "is_current"
|
|
141
|
+
monthly_credits = "monthly_credits"
|
|
142
|
+
plan_id = "plan_id"
|
|
143
|
+
price_cents = "price_cents"
|
|
144
|
+
version = "version"
|
|
145
|
+
whop_plan_id = "whop_plan_id"
|
|
146
|
+
|
|
147
|
+
|
|
127
148
|
class plans_select_column(str, Enum):
|
|
128
149
|
description = "description"
|
|
129
150
|
features = "features"
|
|
130
151
|
id = "id"
|
|
131
|
-
monthly_credits = "monthly_credits"
|
|
132
152
|
name = "name"
|
|
133
|
-
price_cents = "price_cents"
|
|
134
153
|
slug = "slug"
|
|
135
154
|
sort_order = "sort_order"
|
|
136
|
-
whop_plan_id = "whop_plan_id"
|
|
137
155
|
|
|
138
156
|
|
|
139
157
|
class subscriptions_select_column(str, Enum):
|
|
@@ -143,4 +161,5 @@ class subscriptions_select_column(str, Enum):
|
|
|
143
161
|
period_end = "period_end"
|
|
144
162
|
period_start = "period_start"
|
|
145
163
|
plan_id = "plan_id"
|
|
164
|
+
plan_version_id = "plan_version_id"
|
|
146
165
|
status = "status"
|
|
@@ -14,10 +14,16 @@ class GetCreditPacksCreditPacks(BaseModel):
|
|
|
14
14
|
id: Any
|
|
15
15
|
slug: str
|
|
16
16
|
name: str
|
|
17
|
-
credits: int
|
|
18
|
-
price_cents: int
|
|
19
17
|
sort_order: int
|
|
18
|
+
versions: list["GetCreditPacksCreditPacksVersions"]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class GetCreditPacksCreditPacksVersions(BaseModel):
|
|
22
|
+
id: Any
|
|
20
23
|
whop_plan_id: Optional[str]
|
|
24
|
+
price_cents: int
|
|
25
|
+
credits: int
|
|
21
26
|
|
|
22
27
|
|
|
23
28
|
GetCreditPacks.model_rebuild()
|
|
29
|
+
GetCreditPacksCreditPacks.model_rebuild()
|
|
@@ -15,11 +15,17 @@ class GetPlansPlans(BaseModel):
|
|
|
15
15
|
slug: str
|
|
16
16
|
name: str
|
|
17
17
|
description: Optional[str]
|
|
18
|
-
monthly_credits: int
|
|
19
|
-
price_cents: int
|
|
20
18
|
features: Any
|
|
21
19
|
sort_order: int
|
|
20
|
+
versions: list["GetPlansPlansVersions"]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class GetPlansPlansVersions(BaseModel):
|
|
24
|
+
id: Any
|
|
22
25
|
whop_plan_id: Optional[str]
|
|
26
|
+
price_cents: int
|
|
27
|
+
monthly_credits: int
|
|
23
28
|
|
|
24
29
|
|
|
25
30
|
GetPlans.model_rebuild()
|
|
31
|
+
GetPlansPlans.model_rebuild()
|
|
@@ -13,19 +13,27 @@ class GetSubscription(BaseModel):
|
|
|
13
13
|
class GetSubscriptionSubscriptions(BaseModel):
|
|
14
14
|
id: Any
|
|
15
15
|
plan_id: Any
|
|
16
|
+
plan_version_id: Any
|
|
16
17
|
status: str
|
|
17
18
|
period_start: Any
|
|
18
19
|
period_end: Any
|
|
19
20
|
cancel_at_period_end: bool
|
|
20
21
|
plan: "GetSubscriptionSubscriptionsPlan"
|
|
22
|
+
plan_version: "GetSubscriptionSubscriptionsPlanVersion"
|
|
21
23
|
|
|
22
24
|
|
|
23
25
|
class GetSubscriptionSubscriptionsPlan(BaseModel):
|
|
24
26
|
slug: str
|
|
25
27
|
name: str
|
|
26
|
-
monthly_credits: int
|
|
27
28
|
sort_order: int
|
|
28
29
|
|
|
29
30
|
|
|
31
|
+
class GetSubscriptionSubscriptionsPlanVersion(BaseModel):
|
|
32
|
+
id: Any
|
|
33
|
+
version: int
|
|
34
|
+
monthly_credits: int
|
|
35
|
+
price_cents: int
|
|
36
|
+
|
|
37
|
+
|
|
30
38
|
GetSubscription.model_rebuild()
|
|
31
39
|
GetSubscriptionSubscriptions.model_rebuild()
|