@pipe2-ai/sdk 0.1.1 → 0.2.0
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.
- package/dist/generated/sdk.d.ts +1547 -105
- package/dist/generated/sdk.js +458 -31
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +9 -6
- package/package.json +11 -3
package/dist/generated/sdk.js
CHANGED
|
@@ -35,12 +35,18 @@ export var Assets_Select_Column;
|
|
|
35
35
|
/** column name */
|
|
36
36
|
Assets_Select_Column["CreatedAt"] = "created_at";
|
|
37
37
|
/** column name */
|
|
38
|
+
Assets_Select_Column["DurationSec"] = "duration_sec";
|
|
39
|
+
/** column name */
|
|
38
40
|
Assets_Select_Column["Id"] = "id";
|
|
39
41
|
/** column name */
|
|
40
42
|
Assets_Select_Column["Metadata"] = "metadata";
|
|
41
43
|
/** column name */
|
|
42
44
|
Assets_Select_Column["PipelineRunId"] = "pipeline_run_id";
|
|
43
45
|
/** column name */
|
|
46
|
+
Assets_Select_Column["PreviewFrames"] = "preview_frames";
|
|
47
|
+
/** column name */
|
|
48
|
+
Assets_Select_Column["SizeBytes"] = "size_bytes";
|
|
49
|
+
/** column name */
|
|
44
50
|
Assets_Select_Column["Tags"] = "tags";
|
|
45
51
|
/** column name */
|
|
46
52
|
Assets_Select_Column["ThumbnailUrl"] = "thumbnail_url";
|
|
@@ -49,23 +55,39 @@ export var Assets_Select_Column;
|
|
|
49
55
|
/** column name */
|
|
50
56
|
Assets_Select_Column["Url"] = "url";
|
|
51
57
|
})(Assets_Select_Column || (Assets_Select_Column = {}));
|
|
58
|
+
/** select columns of table "credit_pack_versions" */
|
|
59
|
+
export var Credit_Pack_Versions_Select_Column;
|
|
60
|
+
(function (Credit_Pack_Versions_Select_Column) {
|
|
61
|
+
/** column name */
|
|
62
|
+
Credit_Pack_Versions_Select_Column["CreatedAt"] = "created_at";
|
|
63
|
+
/** column name */
|
|
64
|
+
Credit_Pack_Versions_Select_Column["CreditPackId"] = "credit_pack_id";
|
|
65
|
+
/** column name */
|
|
66
|
+
Credit_Pack_Versions_Select_Column["Credits"] = "credits";
|
|
67
|
+
/** column name */
|
|
68
|
+
Credit_Pack_Versions_Select_Column["DeprecatedAt"] = "deprecated_at";
|
|
69
|
+
/** column name */
|
|
70
|
+
Credit_Pack_Versions_Select_Column["Id"] = "id";
|
|
71
|
+
/** column name */
|
|
72
|
+
Credit_Pack_Versions_Select_Column["IsCurrent"] = "is_current";
|
|
73
|
+
/** column name */
|
|
74
|
+
Credit_Pack_Versions_Select_Column["PriceCents"] = "price_cents";
|
|
75
|
+
/** column name */
|
|
76
|
+
Credit_Pack_Versions_Select_Column["Version"] = "version";
|
|
77
|
+
/** column name */
|
|
78
|
+
Credit_Pack_Versions_Select_Column["WhopPlanId"] = "whop_plan_id";
|
|
79
|
+
})(Credit_Pack_Versions_Select_Column || (Credit_Pack_Versions_Select_Column = {}));
|
|
52
80
|
/** select columns of table "credit_packs" */
|
|
53
81
|
export var Credit_Packs_Select_Column;
|
|
54
82
|
(function (Credit_Packs_Select_Column) {
|
|
55
|
-
/** column name */
|
|
56
|
-
Credit_Packs_Select_Column["Credits"] = "credits";
|
|
57
83
|
/** column name */
|
|
58
84
|
Credit_Packs_Select_Column["Id"] = "id";
|
|
59
85
|
/** column name */
|
|
60
86
|
Credit_Packs_Select_Column["Name"] = "name";
|
|
61
87
|
/** column name */
|
|
62
|
-
Credit_Packs_Select_Column["PriceCents"] = "price_cents";
|
|
63
|
-
/** column name */
|
|
64
88
|
Credit_Packs_Select_Column["Slug"] = "slug";
|
|
65
89
|
/** column name */
|
|
66
90
|
Credit_Packs_Select_Column["SortOrder"] = "sort_order";
|
|
67
|
-
/** column name */
|
|
68
|
-
Credit_Packs_Select_Column["WhopPlanId"] = "whop_plan_id";
|
|
69
91
|
})(Credit_Packs_Select_Column || (Credit_Packs_Select_Column = {}));
|
|
70
92
|
/** ordering argument of a cursor */
|
|
71
93
|
export var Cursor_Ordering;
|
|
@@ -93,6 +115,24 @@ export var Executions_Visibility_Select_Column;
|
|
|
93
115
|
/** column name */
|
|
94
116
|
Executions_Visibility_Select_Column["WorkflowTypeName"] = "workflow_type_name";
|
|
95
117
|
})(Executions_Visibility_Select_Column || (Executions_Visibility_Select_Column = {}));
|
|
118
|
+
/** select columns of table "notifications" */
|
|
119
|
+
export var Notifications_Select_Column;
|
|
120
|
+
(function (Notifications_Select_Column) {
|
|
121
|
+
/** column name */
|
|
122
|
+
Notifications_Select_Column["Body"] = "body";
|
|
123
|
+
/** column name */
|
|
124
|
+
Notifications_Select_Column["CreatedAt"] = "created_at";
|
|
125
|
+
/** column name */
|
|
126
|
+
Notifications_Select_Column["Id"] = "id";
|
|
127
|
+
/** column name */
|
|
128
|
+
Notifications_Select_Column["Metadata"] = "metadata";
|
|
129
|
+
/** column name */
|
|
130
|
+
Notifications_Select_Column["Read"] = "read";
|
|
131
|
+
/** column name */
|
|
132
|
+
Notifications_Select_Column["Title"] = "title";
|
|
133
|
+
/** column name */
|
|
134
|
+
Notifications_Select_Column["Type"] = "type";
|
|
135
|
+
})(Notifications_Select_Column || (Notifications_Select_Column = {}));
|
|
96
136
|
/** column ordering options */
|
|
97
137
|
export var Order_By;
|
|
98
138
|
(function (Order_By) {
|
|
@@ -157,24 +197,30 @@ export var Pipeline_Runs_Select_Column;
|
|
|
157
197
|
export var Pipelines_Select_Column;
|
|
158
198
|
(function (Pipelines_Select_Column) {
|
|
159
199
|
/** column name */
|
|
160
|
-
Pipelines_Select_Column["
|
|
200
|
+
Pipelines_Select_Column["Cancellable"] = "cancellable";
|
|
161
201
|
/** column name */
|
|
162
|
-
Pipelines_Select_Column["
|
|
202
|
+
Pipelines_Select_Column["Category"] = "category";
|
|
163
203
|
/** column name */
|
|
164
204
|
Pipelines_Select_Column["Description"] = "description";
|
|
165
205
|
/** column name */
|
|
206
|
+
Pipelines_Select_Column["Hints"] = "hints";
|
|
207
|
+
/** column name */
|
|
166
208
|
Pipelines_Select_Column["IconUrl"] = "icon_url";
|
|
167
209
|
/** column name */
|
|
168
210
|
Pipelines_Select_Column["Id"] = "id";
|
|
169
211
|
/** column name */
|
|
170
212
|
Pipelines_Select_Column["InputSchema"] = "input_schema";
|
|
171
213
|
/** column name */
|
|
214
|
+
Pipelines_Select_Column["IsActive"] = "is_active";
|
|
215
|
+
/** column name */
|
|
172
216
|
Pipelines_Select_Column["Name"] = "name";
|
|
173
217
|
/** column name */
|
|
174
218
|
Pipelines_Select_Column["OutputSchema"] = "output_schema";
|
|
175
219
|
/** column name */
|
|
176
220
|
Pipelines_Select_Column["PreviewUrl"] = "preview_url";
|
|
177
221
|
/** column name */
|
|
222
|
+
Pipelines_Select_Column["Pricing"] = "pricing";
|
|
223
|
+
/** column name */
|
|
178
224
|
Pipelines_Select_Column["RequiredProviders"] = "required_providers";
|
|
179
225
|
/** column name */
|
|
180
226
|
Pipelines_Select_Column["SeoContent"] = "seo_content";
|
|
@@ -185,8 +231,36 @@ export var Pipelines_Select_Column;
|
|
|
185
231
|
/** column name */
|
|
186
232
|
Pipelines_Select_Column["SortOrder"] = "sort_order";
|
|
187
233
|
/** column name */
|
|
234
|
+
Pipelines_Select_Column["Tags"] = "tags";
|
|
235
|
+
/** column name */
|
|
188
236
|
Pipelines_Select_Column["UiSchema"] = "ui_schema";
|
|
189
237
|
})(Pipelines_Select_Column || (Pipelines_Select_Column = {}));
|
|
238
|
+
/** select columns of table "plan_versions" */
|
|
239
|
+
export var Plan_Versions_Select_Column;
|
|
240
|
+
(function (Plan_Versions_Select_Column) {
|
|
241
|
+
/** column name */
|
|
242
|
+
Plan_Versions_Select_Column["CreatedAt"] = "created_at";
|
|
243
|
+
/** column name */
|
|
244
|
+
Plan_Versions_Select_Column["DeprecatedAt"] = "deprecated_at";
|
|
245
|
+
/** column name */
|
|
246
|
+
Plan_Versions_Select_Column["Id"] = "id";
|
|
247
|
+
/** column name */
|
|
248
|
+
Plan_Versions_Select_Column["IsCurrent"] = "is_current";
|
|
249
|
+
/** column name */
|
|
250
|
+
Plan_Versions_Select_Column["MaxStorageBytes"] = "max_storage_bytes";
|
|
251
|
+
/** column name */
|
|
252
|
+
Plan_Versions_Select_Column["MaxUploadBytes"] = "max_upload_bytes";
|
|
253
|
+
/** column name */
|
|
254
|
+
Plan_Versions_Select_Column["MonthlyCredits"] = "monthly_credits";
|
|
255
|
+
/** column name */
|
|
256
|
+
Plan_Versions_Select_Column["PlanId"] = "plan_id";
|
|
257
|
+
/** column name */
|
|
258
|
+
Plan_Versions_Select_Column["PriceCents"] = "price_cents";
|
|
259
|
+
/** column name */
|
|
260
|
+
Plan_Versions_Select_Column["Version"] = "version";
|
|
261
|
+
/** column name */
|
|
262
|
+
Plan_Versions_Select_Column["WhopPlanId"] = "whop_plan_id";
|
|
263
|
+
})(Plan_Versions_Select_Column || (Plan_Versions_Select_Column = {}));
|
|
190
264
|
/** select columns of table "plans" */
|
|
191
265
|
export var Plans_Select_Column;
|
|
192
266
|
(function (Plans_Select_Column) {
|
|
@@ -197,17 +271,11 @@ export var Plans_Select_Column;
|
|
|
197
271
|
/** column name */
|
|
198
272
|
Plans_Select_Column["Id"] = "id";
|
|
199
273
|
/** column name */
|
|
200
|
-
Plans_Select_Column["MonthlyCredits"] = "monthly_credits";
|
|
201
|
-
/** column name */
|
|
202
274
|
Plans_Select_Column["Name"] = "name";
|
|
203
275
|
/** column name */
|
|
204
|
-
Plans_Select_Column["PriceCents"] = "price_cents";
|
|
205
|
-
/** column name */
|
|
206
276
|
Plans_Select_Column["Slug"] = "slug";
|
|
207
277
|
/** column name */
|
|
208
278
|
Plans_Select_Column["SortOrder"] = "sort_order";
|
|
209
|
-
/** column name */
|
|
210
|
-
Plans_Select_Column["WhopPlanId"] = "whop_plan_id";
|
|
211
279
|
})(Plans_Select_Column || (Plans_Select_Column = {}));
|
|
212
280
|
/** select columns of table "subscriptions" */
|
|
213
281
|
export var Subscriptions_Select_Column;
|
|
@@ -225,8 +293,85 @@ export var Subscriptions_Select_Column;
|
|
|
225
293
|
/** column name */
|
|
226
294
|
Subscriptions_Select_Column["PlanId"] = "plan_id";
|
|
227
295
|
/** column name */
|
|
296
|
+
Subscriptions_Select_Column["PlanVersionId"] = "plan_version_id";
|
|
297
|
+
/** column name */
|
|
228
298
|
Subscriptions_Select_Column["Status"] = "status";
|
|
229
299
|
})(Subscriptions_Select_Column || (Subscriptions_Select_Column = {}));
|
|
300
|
+
export const ChangePasswordDocument = gql `
|
|
301
|
+
mutation ChangePassword($current_password: String!, $new_password: String!) {
|
|
302
|
+
change_password(
|
|
303
|
+
current_password: $current_password
|
|
304
|
+
new_password: $new_password
|
|
305
|
+
) {
|
|
306
|
+
success
|
|
307
|
+
message
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
`;
|
|
311
|
+
export const ChangeNameDocument = gql `
|
|
312
|
+
mutation ChangeName($name: String!) {
|
|
313
|
+
change_name(name: $name) {
|
|
314
|
+
success
|
|
315
|
+
message
|
|
316
|
+
name
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
`;
|
|
320
|
+
export const CancelSubscriptionDocument = gql `
|
|
321
|
+
mutation CancelSubscription {
|
|
322
|
+
cancel_subscription {
|
|
323
|
+
success
|
|
324
|
+
message
|
|
325
|
+
cancel_at_period_end
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
`;
|
|
329
|
+
export const RequestAvatarUploadDocument = gql `
|
|
330
|
+
mutation RequestAvatarUpload($filename: String!, $content_type: String!) {
|
|
331
|
+
request_avatar_upload(filename: $filename, content_type: $content_type) {
|
|
332
|
+
success
|
|
333
|
+
upload_url
|
|
334
|
+
asset_url
|
|
335
|
+
key
|
|
336
|
+
max_size
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
`;
|
|
340
|
+
export const ChangeAvatarDocument = gql `
|
|
341
|
+
mutation ChangeAvatar($avatar_url: String!) {
|
|
342
|
+
change_avatar(avatar_url: $avatar_url) {
|
|
343
|
+
success
|
|
344
|
+
message
|
|
345
|
+
avatar_url
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
`;
|
|
349
|
+
export const RequestAccountDeletionDocument = gql `
|
|
350
|
+
mutation RequestAccountDeletion {
|
|
351
|
+
request_account_deletion {
|
|
352
|
+
success
|
|
353
|
+
message
|
|
354
|
+
expires_at
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
`;
|
|
358
|
+
export const ConfirmAccountDeletionDocument = gql `
|
|
359
|
+
mutation ConfirmAccountDeletion($token: String!) {
|
|
360
|
+
confirm_account_deletion(token: $token) {
|
|
361
|
+
success
|
|
362
|
+
message
|
|
363
|
+
effective_at
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
`;
|
|
367
|
+
export const CancelAccountDeletionDocument = gql `
|
|
368
|
+
mutation CancelAccountDeletion {
|
|
369
|
+
cancel_account_deletion {
|
|
370
|
+
success
|
|
371
|
+
message
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
`;
|
|
230
375
|
export const GetMyAffiliateCodesDocument = gql `
|
|
231
376
|
query GetMyAffiliateCodes {
|
|
232
377
|
affiliate_codes(order_by: {created_at: desc}) {
|
|
@@ -289,6 +434,40 @@ export const GetMyReferralsDocument = gql `
|
|
|
289
434
|
}
|
|
290
435
|
}
|
|
291
436
|
`;
|
|
437
|
+
export const GetMyStorageUsageDocument = gql `
|
|
438
|
+
query GetMyStorageUsage {
|
|
439
|
+
assets_aggregate {
|
|
440
|
+
aggregate {
|
|
441
|
+
sum {
|
|
442
|
+
size_bytes
|
|
443
|
+
}
|
|
444
|
+
count
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
`;
|
|
449
|
+
export const GetAssetThumbnailDocument = gql `
|
|
450
|
+
query GetAssetThumbnail($id: uuid!) {
|
|
451
|
+
assets_by_pk(id: $id) {
|
|
452
|
+
id
|
|
453
|
+
type
|
|
454
|
+
url
|
|
455
|
+
thumbnail_url
|
|
456
|
+
preview_frames
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
`;
|
|
460
|
+
export const GetAssetThumbnailsByIdsDocument = gql `
|
|
461
|
+
query GetAssetThumbnailsByIds($ids: [uuid!]!) {
|
|
462
|
+
assets(where: {id: {_in: $ids}}) {
|
|
463
|
+
id
|
|
464
|
+
type
|
|
465
|
+
url
|
|
466
|
+
thumbnail_url
|
|
467
|
+
preview_frames
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
`;
|
|
292
471
|
export const GetUserAssetsDocument = gql `
|
|
293
472
|
query GetUserAssets($where: assets_bool_exp = {}, $limit: Int = 20, $offset: Int = 0) {
|
|
294
473
|
assets(
|
|
@@ -301,6 +480,7 @@ export const GetUserAssetsDocument = gql `
|
|
|
301
480
|
type
|
|
302
481
|
url
|
|
303
482
|
thumbnail_url
|
|
483
|
+
preview_frames
|
|
304
484
|
metadata
|
|
305
485
|
tags
|
|
306
486
|
created_at
|
|
@@ -322,9 +502,52 @@ export const RequestUploadDocument = gql `
|
|
|
322
502
|
}
|
|
323
503
|
}
|
|
324
504
|
`;
|
|
505
|
+
export const RequestMultipartUploadDocument = gql `
|
|
506
|
+
mutation RequestMultipartUpload($filename: String!, $content_type: String!, $total_size: bigint!, $part_size: bigint) {
|
|
507
|
+
request_multipart_upload(
|
|
508
|
+
filename: $filename
|
|
509
|
+
content_type: $content_type
|
|
510
|
+
total_size: $total_size
|
|
511
|
+
part_size: $part_size
|
|
512
|
+
) {
|
|
513
|
+
upload_id
|
|
514
|
+
key
|
|
515
|
+
asset_url
|
|
516
|
+
part_size
|
|
517
|
+
part_urls {
|
|
518
|
+
part_number
|
|
519
|
+
url
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
`;
|
|
524
|
+
export const CompleteMultipartUploadDocument = gql `
|
|
525
|
+
mutation CompleteMultipartUpload($upload_id: String!, $key: String!, $content_type: String!, $parts: [multipart_part_input!]!, $tags: [String!] = []) {
|
|
526
|
+
complete_multipart_upload(
|
|
527
|
+
upload_id: $upload_id
|
|
528
|
+
key: $key
|
|
529
|
+
content_type: $content_type
|
|
530
|
+
parts: $parts
|
|
531
|
+
tags: $tags
|
|
532
|
+
) {
|
|
533
|
+
id
|
|
534
|
+
type
|
|
535
|
+
url
|
|
536
|
+
tags
|
|
537
|
+
created_at
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
`;
|
|
541
|
+
export const AbortMultipartUploadDocument = gql `
|
|
542
|
+
mutation AbortMultipartUpload($upload_id: String!, $key: String!) {
|
|
543
|
+
abort_multipart_upload(upload_id: $upload_id, key: $key) {
|
|
544
|
+
success
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
`;
|
|
325
548
|
export const CreateAssetDocument = gql `
|
|
326
|
-
mutation CreateAsset($
|
|
327
|
-
create_asset(
|
|
549
|
+
mutation CreateAsset($key: String!, $tags: [String!] = []) {
|
|
550
|
+
create_asset(key: $key, tags: $tags) {
|
|
328
551
|
id
|
|
329
552
|
type
|
|
330
553
|
url
|
|
@@ -404,8 +627,8 @@ export const SubmitSocialLoginDocument = gql `
|
|
|
404
627
|
}
|
|
405
628
|
`;
|
|
406
629
|
export const InitVerificationFlowDocument = gql `
|
|
407
|
-
mutation InitVerificationFlow($email: String) {
|
|
408
|
-
init_verification_flow(email: $email) {
|
|
630
|
+
mutation InitVerificationFlow($email: String, $force: Boolean) {
|
|
631
|
+
init_verification_flow(email: $email, force: $force) {
|
|
409
632
|
id
|
|
410
633
|
csrf_token
|
|
411
634
|
}
|
|
@@ -458,9 +681,42 @@ export const GetCreditHistoryDocument = gql `
|
|
|
458
681
|
}
|
|
459
682
|
}
|
|
460
683
|
`;
|
|
684
|
+
export const GetNotificationsDocument = gql `
|
|
685
|
+
query GetNotifications($limit: Int!, $offset: Int!) {
|
|
686
|
+
notifications(order_by: {created_at: desc}, limit: $limit, offset: $offset) {
|
|
687
|
+
id
|
|
688
|
+
type
|
|
689
|
+
title
|
|
690
|
+
body
|
|
691
|
+
metadata
|
|
692
|
+
read
|
|
693
|
+
created_at
|
|
694
|
+
}
|
|
695
|
+
unread: notifications_aggregate(where: {read: {_eq: false}}) {
|
|
696
|
+
aggregate {
|
|
697
|
+
count
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
`;
|
|
702
|
+
export const MarkNotificationReadDocument = gql `
|
|
703
|
+
mutation MarkNotificationRead($id: uuid!) {
|
|
704
|
+
update_notifications_by_pk(pk_columns: {id: $id}, _set: {read: true}) {
|
|
705
|
+
id
|
|
706
|
+
read
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
`;
|
|
710
|
+
export const MarkAllNotificationsReadDocument = gql `
|
|
711
|
+
mutation MarkAllNotificationsRead {
|
|
712
|
+
update_notifications(where: {read: {_eq: false}}, _set: {read: true}) {
|
|
713
|
+
affected_rows
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
`;
|
|
461
717
|
export const GetPipelinesDocument = gql `
|
|
462
718
|
query GetPipelines {
|
|
463
|
-
pipelines(order_by: {sort_order: asc}) {
|
|
719
|
+
pipelines(where: {is_active: {_eq: true}}, order_by: {sort_order: asc}) {
|
|
464
720
|
id
|
|
465
721
|
slug
|
|
466
722
|
name
|
|
@@ -469,12 +725,15 @@ export const GetPipelinesDocument = gql `
|
|
|
469
725
|
icon_url
|
|
470
726
|
preview_url
|
|
471
727
|
required_providers
|
|
472
|
-
credit_cost
|
|
473
728
|
input_schema
|
|
474
729
|
ui_schema
|
|
475
730
|
output_schema
|
|
476
731
|
seo_content
|
|
477
732
|
seo_faq
|
|
733
|
+
tags
|
|
734
|
+
hints
|
|
735
|
+
pricing
|
|
736
|
+
cancellable
|
|
478
737
|
}
|
|
479
738
|
}
|
|
480
739
|
`;
|
|
@@ -486,11 +745,19 @@ export const RunPipelineDocument = gql `
|
|
|
486
745
|
}
|
|
487
746
|
}
|
|
488
747
|
`;
|
|
748
|
+
export const CancelPipelineRunDocument = gql `
|
|
749
|
+
mutation CancelPipelineRun($run_id: String!) {
|
|
750
|
+
cancel_pipeline_run(run_id: $run_id) {
|
|
751
|
+
success
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
`;
|
|
489
755
|
export const GetPipelineRunDocument = gql `
|
|
490
756
|
query GetPipelineRun($id: uuid!) {
|
|
491
757
|
pipeline_runs_by_pk(id: $id) {
|
|
492
758
|
id
|
|
493
759
|
status
|
|
760
|
+
input
|
|
494
761
|
output
|
|
495
762
|
error_message
|
|
496
763
|
credits_charged
|
|
@@ -500,6 +767,8 @@ export const GetPipelineRunDocument = gql `
|
|
|
500
767
|
name
|
|
501
768
|
slug
|
|
502
769
|
output_schema
|
|
770
|
+
input_schema
|
|
771
|
+
ui_schema
|
|
503
772
|
}
|
|
504
773
|
assets {
|
|
505
774
|
id
|
|
@@ -529,27 +798,35 @@ export const GetPipelineRunsDocument = gql `
|
|
|
529
798
|
name
|
|
530
799
|
slug
|
|
531
800
|
output_schema
|
|
801
|
+
input_schema
|
|
802
|
+
ui_schema
|
|
532
803
|
}
|
|
533
804
|
status
|
|
805
|
+
input
|
|
534
806
|
output
|
|
535
807
|
error_message
|
|
536
808
|
credits_charged
|
|
537
809
|
created_at
|
|
538
810
|
completed_at
|
|
811
|
+
workflow_execution {
|
|
812
|
+
status
|
|
813
|
+
start_time
|
|
814
|
+
close_time
|
|
815
|
+
}
|
|
539
816
|
}
|
|
540
817
|
pipeline_runs_aggregate(where: $where) {
|
|
541
818
|
aggregate {
|
|
542
819
|
count
|
|
543
|
-
sum {
|
|
544
|
-
credits_charged
|
|
545
|
-
}
|
|
546
820
|
}
|
|
547
821
|
}
|
|
548
822
|
completed: pipeline_runs_aggregate(
|
|
549
|
-
where: {_and: [$where, {
|
|
823
|
+
where: {_and: [$where, {status: {_eq: "completed"}}]}
|
|
550
824
|
) {
|
|
551
825
|
aggregate {
|
|
552
826
|
count
|
|
827
|
+
sum {
|
|
828
|
+
credits_charged
|
|
829
|
+
}
|
|
553
830
|
}
|
|
554
831
|
}
|
|
555
832
|
}
|
|
@@ -568,12 +845,21 @@ export const GetPipelineRunsBySlugDocument = gql `
|
|
|
568
845
|
name
|
|
569
846
|
slug
|
|
570
847
|
output_schema
|
|
848
|
+
input_schema
|
|
849
|
+
ui_schema
|
|
571
850
|
}
|
|
851
|
+
input
|
|
572
852
|
output
|
|
573
853
|
error_message
|
|
574
854
|
credits_charged
|
|
575
855
|
created_at
|
|
576
856
|
completed_at
|
|
857
|
+
assets {
|
|
858
|
+
id
|
|
859
|
+
type
|
|
860
|
+
url
|
|
861
|
+
thumbnail_url
|
|
862
|
+
}
|
|
577
863
|
workflow_execution {
|
|
578
864
|
status
|
|
579
865
|
start_time
|
|
@@ -587,6 +873,30 @@ export const GetPipelineRunsBySlugDocument = gql `
|
|
|
587
873
|
}
|
|
588
874
|
}
|
|
589
875
|
`;
|
|
876
|
+
export const GetActivePipelineRunsDocument = gql `
|
|
877
|
+
query GetActivePipelineRuns {
|
|
878
|
+
pipeline_runs(
|
|
879
|
+
where: {status: {_in: ["pending", "running"]}}
|
|
880
|
+
order_by: {created_at: desc}
|
|
881
|
+
limit: 10
|
|
882
|
+
) {
|
|
883
|
+
id
|
|
884
|
+
status
|
|
885
|
+
created_at
|
|
886
|
+
pipeline {
|
|
887
|
+
name
|
|
888
|
+
slug
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
active_count: pipeline_runs_aggregate(
|
|
892
|
+
where: {status: {_in: ["pending", "running"]}}
|
|
893
|
+
) {
|
|
894
|
+
aggregate {
|
|
895
|
+
count
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
`;
|
|
590
900
|
export const GetPlansDocument = gql `
|
|
591
901
|
query GetPlans {
|
|
592
902
|
plans(order_by: {sort_order: asc}) {
|
|
@@ -594,11 +904,16 @@ export const GetPlansDocument = gql `
|
|
|
594
904
|
slug
|
|
595
905
|
name
|
|
596
906
|
description
|
|
597
|
-
monthly_credits
|
|
598
|
-
price_cents
|
|
599
907
|
features
|
|
600
908
|
sort_order
|
|
601
|
-
|
|
909
|
+
versions(where: {is_current: {_eq: true}}, limit: 1) {
|
|
910
|
+
id
|
|
911
|
+
whop_plan_id
|
|
912
|
+
price_cents
|
|
913
|
+
monthly_credits
|
|
914
|
+
max_storage_bytes
|
|
915
|
+
max_upload_bytes
|
|
916
|
+
}
|
|
602
917
|
}
|
|
603
918
|
}
|
|
604
919
|
`;
|
|
@@ -608,10 +923,13 @@ export const GetCreditPacksDocument = gql `
|
|
|
608
923
|
id
|
|
609
924
|
slug
|
|
610
925
|
name
|
|
611
|
-
credits
|
|
612
|
-
price_cents
|
|
613
926
|
sort_order
|
|
614
|
-
|
|
927
|
+
versions(where: {is_current: {_eq: true}}, limit: 1) {
|
|
928
|
+
id
|
|
929
|
+
whop_plan_id
|
|
930
|
+
price_cents
|
|
931
|
+
credits
|
|
932
|
+
}
|
|
615
933
|
}
|
|
616
934
|
}
|
|
617
935
|
`;
|
|
@@ -620,6 +938,7 @@ export const GetSubscriptionDocument = gql `
|
|
|
620
938
|
subscriptions {
|
|
621
939
|
id
|
|
622
940
|
plan_id
|
|
941
|
+
plan_version_id
|
|
623
942
|
status
|
|
624
943
|
period_start
|
|
625
944
|
period_end
|
|
@@ -627,9 +946,16 @@ export const GetSubscriptionDocument = gql `
|
|
|
627
946
|
plan {
|
|
628
947
|
slug
|
|
629
948
|
name
|
|
630
|
-
monthly_credits
|
|
631
949
|
sort_order
|
|
632
950
|
}
|
|
951
|
+
plan_version {
|
|
952
|
+
id
|
|
953
|
+
version
|
|
954
|
+
monthly_credits
|
|
955
|
+
price_cents
|
|
956
|
+
max_storage_bytes
|
|
957
|
+
max_upload_bytes
|
|
958
|
+
}
|
|
633
959
|
}
|
|
634
960
|
}
|
|
635
961
|
`;
|
|
@@ -638,12 +964,18 @@ export const WatchPipelineRunDocument = gql `
|
|
|
638
964
|
pipeline_runs_by_pk(id: $run_id) {
|
|
639
965
|
id
|
|
640
966
|
status
|
|
967
|
+
input
|
|
641
968
|
output
|
|
642
969
|
error_message
|
|
970
|
+
credits_charged
|
|
971
|
+
created_at
|
|
643
972
|
completed_at
|
|
644
973
|
pipeline {
|
|
645
974
|
name
|
|
646
975
|
slug
|
|
976
|
+
output_schema
|
|
977
|
+
input_schema
|
|
978
|
+
ui_schema
|
|
647
979
|
}
|
|
648
980
|
assets {
|
|
649
981
|
id
|
|
@@ -654,6 +986,36 @@ export const WatchPipelineRunDocument = gql `
|
|
|
654
986
|
}
|
|
655
987
|
}
|
|
656
988
|
`;
|
|
989
|
+
export const WatchActivePipelineRunsDocument = gql `
|
|
990
|
+
subscription WatchActivePipelineRuns {
|
|
991
|
+
pipeline_runs(
|
|
992
|
+
where: {status: {_in: ["pending", "running"]}}
|
|
993
|
+
order_by: {created_at: desc}
|
|
994
|
+
limit: 10
|
|
995
|
+
) {
|
|
996
|
+
id
|
|
997
|
+
status
|
|
998
|
+
created_at
|
|
999
|
+
pipeline {
|
|
1000
|
+
name
|
|
1001
|
+
slug
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
`;
|
|
1006
|
+
export const WatchNotificationsDocument = gql `
|
|
1007
|
+
subscription WatchNotifications($limit: Int!) {
|
|
1008
|
+
notifications(order_by: {created_at: desc}, limit: $limit) {
|
|
1009
|
+
id
|
|
1010
|
+
type
|
|
1011
|
+
title
|
|
1012
|
+
body
|
|
1013
|
+
metadata
|
|
1014
|
+
read
|
|
1015
|
+
created_at
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
`;
|
|
657
1019
|
export const GetMyApiKeysDocument = gql `
|
|
658
1020
|
query GetMyApiKeys {
|
|
659
1021
|
personal_access_tokens(order_by: {created_at: desc}) {
|
|
@@ -694,11 +1056,37 @@ export const GetCurrentUserDocument = gql `
|
|
|
694
1056
|
name
|
|
695
1057
|
email_verified
|
|
696
1058
|
avatar_url
|
|
1059
|
+
deletion_scheduled_at
|
|
1060
|
+
deletion_effective_at
|
|
697
1061
|
}
|
|
698
1062
|
}
|
|
699
1063
|
`;
|
|
700
1064
|
export function getSdk(requester) {
|
|
701
1065
|
return {
|
|
1066
|
+
ChangePassword(variables, options) {
|
|
1067
|
+
return requester(ChangePasswordDocument, variables, options);
|
|
1068
|
+
},
|
|
1069
|
+
ChangeName(variables, options) {
|
|
1070
|
+
return requester(ChangeNameDocument, variables, options);
|
|
1071
|
+
},
|
|
1072
|
+
CancelSubscription(variables, options) {
|
|
1073
|
+
return requester(CancelSubscriptionDocument, variables, options);
|
|
1074
|
+
},
|
|
1075
|
+
RequestAvatarUpload(variables, options) {
|
|
1076
|
+
return requester(RequestAvatarUploadDocument, variables, options);
|
|
1077
|
+
},
|
|
1078
|
+
ChangeAvatar(variables, options) {
|
|
1079
|
+
return requester(ChangeAvatarDocument, variables, options);
|
|
1080
|
+
},
|
|
1081
|
+
RequestAccountDeletion(variables, options) {
|
|
1082
|
+
return requester(RequestAccountDeletionDocument, variables, options);
|
|
1083
|
+
},
|
|
1084
|
+
ConfirmAccountDeletion(variables, options) {
|
|
1085
|
+
return requester(ConfirmAccountDeletionDocument, variables, options);
|
|
1086
|
+
},
|
|
1087
|
+
CancelAccountDeletion(variables, options) {
|
|
1088
|
+
return requester(CancelAccountDeletionDocument, variables, options);
|
|
1089
|
+
},
|
|
702
1090
|
GetMyAffiliateCodes(variables, options) {
|
|
703
1091
|
return requester(GetMyAffiliateCodesDocument, variables, options);
|
|
704
1092
|
},
|
|
@@ -714,12 +1102,30 @@ export function getSdk(requester) {
|
|
|
714
1102
|
GetMyReferrals(variables, options) {
|
|
715
1103
|
return requester(GetMyReferralsDocument, variables, options);
|
|
716
1104
|
},
|
|
1105
|
+
GetMyStorageUsage(variables, options) {
|
|
1106
|
+
return requester(GetMyStorageUsageDocument, variables, options);
|
|
1107
|
+
},
|
|
1108
|
+
GetAssetThumbnail(variables, options) {
|
|
1109
|
+
return requester(GetAssetThumbnailDocument, variables, options);
|
|
1110
|
+
},
|
|
1111
|
+
GetAssetThumbnailsByIds(variables, options) {
|
|
1112
|
+
return requester(GetAssetThumbnailsByIdsDocument, variables, options);
|
|
1113
|
+
},
|
|
717
1114
|
GetUserAssets(variables, options) {
|
|
718
1115
|
return requester(GetUserAssetsDocument, variables, options);
|
|
719
1116
|
},
|
|
720
1117
|
RequestUpload(variables, options) {
|
|
721
1118
|
return requester(RequestUploadDocument, variables, options);
|
|
722
1119
|
},
|
|
1120
|
+
RequestMultipartUpload(variables, options) {
|
|
1121
|
+
return requester(RequestMultipartUploadDocument, variables, options);
|
|
1122
|
+
},
|
|
1123
|
+
CompleteMultipartUpload(variables, options) {
|
|
1124
|
+
return requester(CompleteMultipartUploadDocument, variables, options);
|
|
1125
|
+
},
|
|
1126
|
+
AbortMultipartUpload(variables, options) {
|
|
1127
|
+
return requester(AbortMultipartUploadDocument, variables, options);
|
|
1128
|
+
},
|
|
723
1129
|
CreateAsset(variables, options) {
|
|
724
1130
|
return requester(CreateAssetDocument, variables, options);
|
|
725
1131
|
},
|
|
@@ -762,12 +1168,24 @@ export function getSdk(requester) {
|
|
|
762
1168
|
GetCreditHistory(variables, options) {
|
|
763
1169
|
return requester(GetCreditHistoryDocument, variables, options);
|
|
764
1170
|
},
|
|
1171
|
+
GetNotifications(variables, options) {
|
|
1172
|
+
return requester(GetNotificationsDocument, variables, options);
|
|
1173
|
+
},
|
|
1174
|
+
MarkNotificationRead(variables, options) {
|
|
1175
|
+
return requester(MarkNotificationReadDocument, variables, options);
|
|
1176
|
+
},
|
|
1177
|
+
MarkAllNotificationsRead(variables, options) {
|
|
1178
|
+
return requester(MarkAllNotificationsReadDocument, variables, options);
|
|
1179
|
+
},
|
|
765
1180
|
GetPipelines(variables, options) {
|
|
766
1181
|
return requester(GetPipelinesDocument, variables, options);
|
|
767
1182
|
},
|
|
768
1183
|
RunPipeline(variables, options) {
|
|
769
1184
|
return requester(RunPipelineDocument, variables, options);
|
|
770
1185
|
},
|
|
1186
|
+
CancelPipelineRun(variables, options) {
|
|
1187
|
+
return requester(CancelPipelineRunDocument, variables, options);
|
|
1188
|
+
},
|
|
771
1189
|
GetPipelineRun(variables, options) {
|
|
772
1190
|
return requester(GetPipelineRunDocument, variables, options);
|
|
773
1191
|
},
|
|
@@ -777,6 +1195,9 @@ export function getSdk(requester) {
|
|
|
777
1195
|
GetPipelineRunsBySlug(variables, options) {
|
|
778
1196
|
return requester(GetPipelineRunsBySlugDocument, variables, options);
|
|
779
1197
|
},
|
|
1198
|
+
GetActivePipelineRuns(variables, options) {
|
|
1199
|
+
return requester(GetActivePipelineRunsDocument, variables, options);
|
|
1200
|
+
},
|
|
780
1201
|
GetPlans(variables, options) {
|
|
781
1202
|
return requester(GetPlansDocument, variables, options);
|
|
782
1203
|
},
|
|
@@ -789,6 +1210,12 @@ export function getSdk(requester) {
|
|
|
789
1210
|
WatchPipelineRun(variables, options) {
|
|
790
1211
|
return requester(WatchPipelineRunDocument, variables, options);
|
|
791
1212
|
},
|
|
1213
|
+
WatchActivePipelineRuns(variables, options) {
|
|
1214
|
+
return requester(WatchActivePipelineRunsDocument, variables, options);
|
|
1215
|
+
},
|
|
1216
|
+
WatchNotifications(variables, options) {
|
|
1217
|
+
return requester(WatchNotificationsDocument, variables, options);
|
|
1218
|
+
},
|
|
792
1219
|
GetMyApiKeys(variables, options) {
|
|
793
1220
|
return requester(GetMyApiKeysDocument, variables, options);
|
|
794
1221
|
},
|