@pipe2-ai/sdk 0.1.2 → 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 +714 -51
- package/dist/generated/sdk.js +144 -21
- package/package.json +1 -1
package/dist/generated/sdk.js
CHANGED
|
@@ -45,6 +45,8 @@ export var Assets_Select_Column;
|
|
|
45
45
|
/** column name */
|
|
46
46
|
Assets_Select_Column["PreviewFrames"] = "preview_frames";
|
|
47
47
|
/** column name */
|
|
48
|
+
Assets_Select_Column["SizeBytes"] = "size_bytes";
|
|
49
|
+
/** column name */
|
|
48
50
|
Assets_Select_Column["Tags"] = "tags";
|
|
49
51
|
/** column name */
|
|
50
52
|
Assets_Select_Column["ThumbnailUrl"] = "thumbnail_url";
|
|
@@ -53,23 +55,39 @@ export var Assets_Select_Column;
|
|
|
53
55
|
/** column name */
|
|
54
56
|
Assets_Select_Column["Url"] = "url";
|
|
55
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 = {}));
|
|
56
80
|
/** select columns of table "credit_packs" */
|
|
57
81
|
export var Credit_Packs_Select_Column;
|
|
58
82
|
(function (Credit_Packs_Select_Column) {
|
|
59
|
-
/** column name */
|
|
60
|
-
Credit_Packs_Select_Column["Credits"] = "credits";
|
|
61
83
|
/** column name */
|
|
62
84
|
Credit_Packs_Select_Column["Id"] = "id";
|
|
63
85
|
/** column name */
|
|
64
86
|
Credit_Packs_Select_Column["Name"] = "name";
|
|
65
87
|
/** column name */
|
|
66
|
-
Credit_Packs_Select_Column["PriceCents"] = "price_cents";
|
|
67
|
-
/** column name */
|
|
68
88
|
Credit_Packs_Select_Column["Slug"] = "slug";
|
|
69
89
|
/** column name */
|
|
70
90
|
Credit_Packs_Select_Column["SortOrder"] = "sort_order";
|
|
71
|
-
/** column name */
|
|
72
|
-
Credit_Packs_Select_Column["WhopPlanId"] = "whop_plan_id";
|
|
73
91
|
})(Credit_Packs_Select_Column || (Credit_Packs_Select_Column = {}));
|
|
74
92
|
/** ordering argument of a cursor */
|
|
75
93
|
export var Cursor_Ordering;
|
|
@@ -217,6 +235,32 @@ export var Pipelines_Select_Column;
|
|
|
217
235
|
/** column name */
|
|
218
236
|
Pipelines_Select_Column["UiSchema"] = "ui_schema";
|
|
219
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 = {}));
|
|
220
264
|
/** select columns of table "plans" */
|
|
221
265
|
export var Plans_Select_Column;
|
|
222
266
|
(function (Plans_Select_Column) {
|
|
@@ -227,17 +271,11 @@ export var Plans_Select_Column;
|
|
|
227
271
|
/** column name */
|
|
228
272
|
Plans_Select_Column["Id"] = "id";
|
|
229
273
|
/** column name */
|
|
230
|
-
Plans_Select_Column["MonthlyCredits"] = "monthly_credits";
|
|
231
|
-
/** column name */
|
|
232
274
|
Plans_Select_Column["Name"] = "name";
|
|
233
275
|
/** column name */
|
|
234
|
-
Plans_Select_Column["PriceCents"] = "price_cents";
|
|
235
|
-
/** column name */
|
|
236
276
|
Plans_Select_Column["Slug"] = "slug";
|
|
237
277
|
/** column name */
|
|
238
278
|
Plans_Select_Column["SortOrder"] = "sort_order";
|
|
239
|
-
/** column name */
|
|
240
|
-
Plans_Select_Column["WhopPlanId"] = "whop_plan_id";
|
|
241
279
|
})(Plans_Select_Column || (Plans_Select_Column = {}));
|
|
242
280
|
/** select columns of table "subscriptions" */
|
|
243
281
|
export var Subscriptions_Select_Column;
|
|
@@ -255,6 +293,8 @@ export var Subscriptions_Select_Column;
|
|
|
255
293
|
/** column name */
|
|
256
294
|
Subscriptions_Select_Column["PlanId"] = "plan_id";
|
|
257
295
|
/** column name */
|
|
296
|
+
Subscriptions_Select_Column["PlanVersionId"] = "plan_version_id";
|
|
297
|
+
/** column name */
|
|
258
298
|
Subscriptions_Select_Column["Status"] = "status";
|
|
259
299
|
})(Subscriptions_Select_Column || (Subscriptions_Select_Column = {}));
|
|
260
300
|
export const ChangePasswordDocument = gql `
|
|
@@ -394,6 +434,18 @@ export const GetMyReferralsDocument = gql `
|
|
|
394
434
|
}
|
|
395
435
|
}
|
|
396
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
|
+
`;
|
|
397
449
|
export const GetAssetThumbnailDocument = gql `
|
|
398
450
|
query GetAssetThumbnail($id: uuid!) {
|
|
399
451
|
assets_by_pk(id: $id) {
|
|
@@ -450,9 +502,52 @@ export const RequestUploadDocument = gql `
|
|
|
450
502
|
}
|
|
451
503
|
}
|
|
452
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
|
+
`;
|
|
453
548
|
export const CreateAssetDocument = gql `
|
|
454
|
-
mutation CreateAsset($
|
|
455
|
-
create_asset(
|
|
549
|
+
mutation CreateAsset($key: String!, $tags: [String!] = []) {
|
|
550
|
+
create_asset(key: $key, tags: $tags) {
|
|
456
551
|
id
|
|
457
552
|
type
|
|
458
553
|
url
|
|
@@ -809,11 +904,16 @@ export const GetPlansDocument = gql `
|
|
|
809
904
|
slug
|
|
810
905
|
name
|
|
811
906
|
description
|
|
812
|
-
monthly_credits
|
|
813
|
-
price_cents
|
|
814
907
|
features
|
|
815
908
|
sort_order
|
|
816
|
-
|
|
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
|
+
}
|
|
817
917
|
}
|
|
818
918
|
}
|
|
819
919
|
`;
|
|
@@ -823,10 +923,13 @@ export const GetCreditPacksDocument = gql `
|
|
|
823
923
|
id
|
|
824
924
|
slug
|
|
825
925
|
name
|
|
826
|
-
credits
|
|
827
|
-
price_cents
|
|
828
926
|
sort_order
|
|
829
|
-
|
|
927
|
+
versions(where: {is_current: {_eq: true}}, limit: 1) {
|
|
928
|
+
id
|
|
929
|
+
whop_plan_id
|
|
930
|
+
price_cents
|
|
931
|
+
credits
|
|
932
|
+
}
|
|
830
933
|
}
|
|
831
934
|
}
|
|
832
935
|
`;
|
|
@@ -835,6 +938,7 @@ export const GetSubscriptionDocument = gql `
|
|
|
835
938
|
subscriptions {
|
|
836
939
|
id
|
|
837
940
|
plan_id
|
|
941
|
+
plan_version_id
|
|
838
942
|
status
|
|
839
943
|
period_start
|
|
840
944
|
period_end
|
|
@@ -842,9 +946,16 @@ export const GetSubscriptionDocument = gql `
|
|
|
842
946
|
plan {
|
|
843
947
|
slug
|
|
844
948
|
name
|
|
845
|
-
monthly_credits
|
|
846
949
|
sort_order
|
|
847
950
|
}
|
|
951
|
+
plan_version {
|
|
952
|
+
id
|
|
953
|
+
version
|
|
954
|
+
monthly_credits
|
|
955
|
+
price_cents
|
|
956
|
+
max_storage_bytes
|
|
957
|
+
max_upload_bytes
|
|
958
|
+
}
|
|
848
959
|
}
|
|
849
960
|
}
|
|
850
961
|
`;
|
|
@@ -991,6 +1102,9 @@ export function getSdk(requester) {
|
|
|
991
1102
|
GetMyReferrals(variables, options) {
|
|
992
1103
|
return requester(GetMyReferralsDocument, variables, options);
|
|
993
1104
|
},
|
|
1105
|
+
GetMyStorageUsage(variables, options) {
|
|
1106
|
+
return requester(GetMyStorageUsageDocument, variables, options);
|
|
1107
|
+
},
|
|
994
1108
|
GetAssetThumbnail(variables, options) {
|
|
995
1109
|
return requester(GetAssetThumbnailDocument, variables, options);
|
|
996
1110
|
},
|
|
@@ -1003,6 +1117,15 @@ export function getSdk(requester) {
|
|
|
1003
1117
|
RequestUpload(variables, options) {
|
|
1004
1118
|
return requester(RequestUploadDocument, variables, options);
|
|
1005
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
|
+
},
|
|
1006
1129
|
CreateAsset(variables, options) {
|
|
1007
1130
|
return requester(CreateAssetDocument, variables, options);
|
|
1008
1131
|
},
|