@pipe2-ai/sdk 0.1.2 → 0.3.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 +779 -57
- package/dist/generated/sdk.js +178 -23
- 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;
|
|
@@ -195,6 +213,8 @@ export var Pipelines_Select_Column;
|
|
|
195
213
|
/** column name */
|
|
196
214
|
Pipelines_Select_Column["IsActive"] = "is_active";
|
|
197
215
|
/** column name */
|
|
216
|
+
Pipelines_Select_Column["Models"] = "models";
|
|
217
|
+
/** column name */
|
|
198
218
|
Pipelines_Select_Column["Name"] = "name";
|
|
199
219
|
/** column name */
|
|
200
220
|
Pipelines_Select_Column["OutputSchema"] = "output_schema";
|
|
@@ -203,7 +223,7 @@ export var Pipelines_Select_Column;
|
|
|
203
223
|
/** column name */
|
|
204
224
|
Pipelines_Select_Column["Pricing"] = "pricing";
|
|
205
225
|
/** column name */
|
|
206
|
-
Pipelines_Select_Column["
|
|
226
|
+
Pipelines_Select_Column["Providers"] = "providers";
|
|
207
227
|
/** column name */
|
|
208
228
|
Pipelines_Select_Column["SeoContent"] = "seo_content";
|
|
209
229
|
/** column name */
|
|
@@ -217,6 +237,32 @@ export var Pipelines_Select_Column;
|
|
|
217
237
|
/** column name */
|
|
218
238
|
Pipelines_Select_Column["UiSchema"] = "ui_schema";
|
|
219
239
|
})(Pipelines_Select_Column || (Pipelines_Select_Column = {}));
|
|
240
|
+
/** select columns of table "plan_versions" */
|
|
241
|
+
export var Plan_Versions_Select_Column;
|
|
242
|
+
(function (Plan_Versions_Select_Column) {
|
|
243
|
+
/** column name */
|
|
244
|
+
Plan_Versions_Select_Column["CreatedAt"] = "created_at";
|
|
245
|
+
/** column name */
|
|
246
|
+
Plan_Versions_Select_Column["DeprecatedAt"] = "deprecated_at";
|
|
247
|
+
/** column name */
|
|
248
|
+
Plan_Versions_Select_Column["Id"] = "id";
|
|
249
|
+
/** column name */
|
|
250
|
+
Plan_Versions_Select_Column["IsCurrent"] = "is_current";
|
|
251
|
+
/** column name */
|
|
252
|
+
Plan_Versions_Select_Column["MaxStorageBytes"] = "max_storage_bytes";
|
|
253
|
+
/** column name */
|
|
254
|
+
Plan_Versions_Select_Column["MaxUploadBytes"] = "max_upload_bytes";
|
|
255
|
+
/** column name */
|
|
256
|
+
Plan_Versions_Select_Column["MonthlyCredits"] = "monthly_credits";
|
|
257
|
+
/** column name */
|
|
258
|
+
Plan_Versions_Select_Column["PlanId"] = "plan_id";
|
|
259
|
+
/** column name */
|
|
260
|
+
Plan_Versions_Select_Column["PriceCents"] = "price_cents";
|
|
261
|
+
/** column name */
|
|
262
|
+
Plan_Versions_Select_Column["Version"] = "version";
|
|
263
|
+
/** column name */
|
|
264
|
+
Plan_Versions_Select_Column["WhopPlanId"] = "whop_plan_id";
|
|
265
|
+
})(Plan_Versions_Select_Column || (Plan_Versions_Select_Column = {}));
|
|
220
266
|
/** select columns of table "plans" */
|
|
221
267
|
export var Plans_Select_Column;
|
|
222
268
|
(function (Plans_Select_Column) {
|
|
@@ -227,17 +273,11 @@ export var Plans_Select_Column;
|
|
|
227
273
|
/** column name */
|
|
228
274
|
Plans_Select_Column["Id"] = "id";
|
|
229
275
|
/** column name */
|
|
230
|
-
Plans_Select_Column["MonthlyCredits"] = "monthly_credits";
|
|
231
|
-
/** column name */
|
|
232
276
|
Plans_Select_Column["Name"] = "name";
|
|
233
277
|
/** column name */
|
|
234
|
-
Plans_Select_Column["PriceCents"] = "price_cents";
|
|
235
|
-
/** column name */
|
|
236
278
|
Plans_Select_Column["Slug"] = "slug";
|
|
237
279
|
/** column name */
|
|
238
280
|
Plans_Select_Column["SortOrder"] = "sort_order";
|
|
239
|
-
/** column name */
|
|
240
|
-
Plans_Select_Column["WhopPlanId"] = "whop_plan_id";
|
|
241
281
|
})(Plans_Select_Column || (Plans_Select_Column = {}));
|
|
242
282
|
/** select columns of table "subscriptions" */
|
|
243
283
|
export var Subscriptions_Select_Column;
|
|
@@ -255,6 +295,8 @@ export var Subscriptions_Select_Column;
|
|
|
255
295
|
/** column name */
|
|
256
296
|
Subscriptions_Select_Column["PlanId"] = "plan_id";
|
|
257
297
|
/** column name */
|
|
298
|
+
Subscriptions_Select_Column["PlanVersionId"] = "plan_version_id";
|
|
299
|
+
/** column name */
|
|
258
300
|
Subscriptions_Select_Column["Status"] = "status";
|
|
259
301
|
})(Subscriptions_Select_Column || (Subscriptions_Select_Column = {}));
|
|
260
302
|
export const ChangePasswordDocument = gql `
|
|
@@ -394,6 +436,18 @@ export const GetMyReferralsDocument = gql `
|
|
|
394
436
|
}
|
|
395
437
|
}
|
|
396
438
|
`;
|
|
439
|
+
export const GetMyStorageUsageDocument = gql `
|
|
440
|
+
query GetMyStorageUsage {
|
|
441
|
+
assets_aggregate {
|
|
442
|
+
aggregate {
|
|
443
|
+
sum {
|
|
444
|
+
size_bytes
|
|
445
|
+
}
|
|
446
|
+
count
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
`;
|
|
397
451
|
export const GetAssetThumbnailDocument = gql `
|
|
398
452
|
query GetAssetThumbnail($id: uuid!) {
|
|
399
453
|
assets_by_pk(id: $id) {
|
|
@@ -450,9 +504,52 @@ export const RequestUploadDocument = gql `
|
|
|
450
504
|
}
|
|
451
505
|
}
|
|
452
506
|
`;
|
|
507
|
+
export const RequestMultipartUploadDocument = gql `
|
|
508
|
+
mutation RequestMultipartUpload($filename: String!, $content_type: String!, $total_size: bigint!, $part_size: bigint) {
|
|
509
|
+
request_multipart_upload(
|
|
510
|
+
filename: $filename
|
|
511
|
+
content_type: $content_type
|
|
512
|
+
total_size: $total_size
|
|
513
|
+
part_size: $part_size
|
|
514
|
+
) {
|
|
515
|
+
upload_id
|
|
516
|
+
key
|
|
517
|
+
asset_url
|
|
518
|
+
part_size
|
|
519
|
+
part_urls {
|
|
520
|
+
part_number
|
|
521
|
+
url
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
`;
|
|
526
|
+
export const CompleteMultipartUploadDocument = gql `
|
|
527
|
+
mutation CompleteMultipartUpload($upload_id: String!, $key: String!, $content_type: String!, $parts: [multipart_part_input!]!, $tags: [String!] = []) {
|
|
528
|
+
complete_multipart_upload(
|
|
529
|
+
upload_id: $upload_id
|
|
530
|
+
key: $key
|
|
531
|
+
content_type: $content_type
|
|
532
|
+
parts: $parts
|
|
533
|
+
tags: $tags
|
|
534
|
+
) {
|
|
535
|
+
id
|
|
536
|
+
type
|
|
537
|
+
url
|
|
538
|
+
tags
|
|
539
|
+
created_at
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
`;
|
|
543
|
+
export const AbortMultipartUploadDocument = gql `
|
|
544
|
+
mutation AbortMultipartUpload($upload_id: String!, $key: String!) {
|
|
545
|
+
abort_multipart_upload(upload_id: $upload_id, key: $key) {
|
|
546
|
+
success
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
`;
|
|
453
550
|
export const CreateAssetDocument = gql `
|
|
454
|
-
mutation CreateAsset($
|
|
455
|
-
create_asset(
|
|
551
|
+
mutation CreateAsset($key: String!, $tags: [String!] = []) {
|
|
552
|
+
create_asset(key: $key, tags: $tags) {
|
|
456
553
|
id
|
|
457
554
|
type
|
|
458
555
|
url
|
|
@@ -583,6 +680,11 @@ export const GetCreditHistoryDocument = gql `
|
|
|
583
680
|
amount
|
|
584
681
|
description
|
|
585
682
|
created_at
|
|
683
|
+
pipeline_run_id
|
|
684
|
+
pipeline_slug
|
|
685
|
+
pipeline_name
|
|
686
|
+
status
|
|
687
|
+
reservation_mc
|
|
586
688
|
}
|
|
587
689
|
}
|
|
588
690
|
`;
|
|
@@ -629,7 +731,8 @@ export const GetPipelinesDocument = gql `
|
|
|
629
731
|
category
|
|
630
732
|
icon_url
|
|
631
733
|
preview_url
|
|
632
|
-
|
|
734
|
+
providers
|
|
735
|
+
models
|
|
633
736
|
input_schema
|
|
634
737
|
ui_schema
|
|
635
738
|
output_schema
|
|
@@ -642,6 +745,24 @@ export const GetPipelinesDocument = gql `
|
|
|
642
745
|
}
|
|
643
746
|
}
|
|
644
747
|
`;
|
|
748
|
+
export const GetPipelinesPricingDocument = gql `
|
|
749
|
+
query GetPipelinesPricing($slugs: [String!]!) {
|
|
750
|
+
pipelines(where: {slug: {_in: $slugs}}) {
|
|
751
|
+
slug
|
|
752
|
+
pricing
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
`;
|
|
756
|
+
export const EstimatePipelineCostDocument = gql `
|
|
757
|
+
query EstimatePipelineCost($pipeline_slug: String!, $input: jsonb!) {
|
|
758
|
+
estimate_pipeline_cost(pipeline_slug: $pipeline_slug, input: $input) {
|
|
759
|
+
pipeline_slug
|
|
760
|
+
reservation_mc
|
|
761
|
+
estimated_mc
|
|
762
|
+
is_metered
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
`;
|
|
645
766
|
export const RunPipelineDocument = gql `
|
|
646
767
|
mutation RunPipeline($pipeline_slug: String!, $input: jsonb!) {
|
|
647
768
|
run_pipeline(pipeline_slug: $pipeline_slug, input: $input) {
|
|
@@ -809,11 +930,16 @@ export const GetPlansDocument = gql `
|
|
|
809
930
|
slug
|
|
810
931
|
name
|
|
811
932
|
description
|
|
812
|
-
monthly_credits
|
|
813
|
-
price_cents
|
|
814
933
|
features
|
|
815
934
|
sort_order
|
|
816
|
-
|
|
935
|
+
versions(where: {is_current: {_eq: true}}, limit: 1) {
|
|
936
|
+
id
|
|
937
|
+
whop_plan_id
|
|
938
|
+
price_cents
|
|
939
|
+
monthly_credits
|
|
940
|
+
max_storage_bytes
|
|
941
|
+
max_upload_bytes
|
|
942
|
+
}
|
|
817
943
|
}
|
|
818
944
|
}
|
|
819
945
|
`;
|
|
@@ -823,10 +949,13 @@ export const GetCreditPacksDocument = gql `
|
|
|
823
949
|
id
|
|
824
950
|
slug
|
|
825
951
|
name
|
|
826
|
-
credits
|
|
827
|
-
price_cents
|
|
828
952
|
sort_order
|
|
829
|
-
|
|
953
|
+
versions(where: {is_current: {_eq: true}}, limit: 1) {
|
|
954
|
+
id
|
|
955
|
+
whop_plan_id
|
|
956
|
+
price_cents
|
|
957
|
+
credits
|
|
958
|
+
}
|
|
830
959
|
}
|
|
831
960
|
}
|
|
832
961
|
`;
|
|
@@ -835,6 +964,7 @@ export const GetSubscriptionDocument = gql `
|
|
|
835
964
|
subscriptions {
|
|
836
965
|
id
|
|
837
966
|
plan_id
|
|
967
|
+
plan_version_id
|
|
838
968
|
status
|
|
839
969
|
period_start
|
|
840
970
|
period_end
|
|
@@ -842,9 +972,16 @@ export const GetSubscriptionDocument = gql `
|
|
|
842
972
|
plan {
|
|
843
973
|
slug
|
|
844
974
|
name
|
|
845
|
-
monthly_credits
|
|
846
975
|
sort_order
|
|
847
976
|
}
|
|
977
|
+
plan_version {
|
|
978
|
+
id
|
|
979
|
+
version
|
|
980
|
+
monthly_credits
|
|
981
|
+
price_cents
|
|
982
|
+
max_storage_bytes
|
|
983
|
+
max_upload_bytes
|
|
984
|
+
}
|
|
848
985
|
}
|
|
849
986
|
}
|
|
850
987
|
`;
|
|
@@ -991,6 +1128,9 @@ export function getSdk(requester) {
|
|
|
991
1128
|
GetMyReferrals(variables, options) {
|
|
992
1129
|
return requester(GetMyReferralsDocument, variables, options);
|
|
993
1130
|
},
|
|
1131
|
+
GetMyStorageUsage(variables, options) {
|
|
1132
|
+
return requester(GetMyStorageUsageDocument, variables, options);
|
|
1133
|
+
},
|
|
994
1134
|
GetAssetThumbnail(variables, options) {
|
|
995
1135
|
return requester(GetAssetThumbnailDocument, variables, options);
|
|
996
1136
|
},
|
|
@@ -1003,6 +1143,15 @@ export function getSdk(requester) {
|
|
|
1003
1143
|
RequestUpload(variables, options) {
|
|
1004
1144
|
return requester(RequestUploadDocument, variables, options);
|
|
1005
1145
|
},
|
|
1146
|
+
RequestMultipartUpload(variables, options) {
|
|
1147
|
+
return requester(RequestMultipartUploadDocument, variables, options);
|
|
1148
|
+
},
|
|
1149
|
+
CompleteMultipartUpload(variables, options) {
|
|
1150
|
+
return requester(CompleteMultipartUploadDocument, variables, options);
|
|
1151
|
+
},
|
|
1152
|
+
AbortMultipartUpload(variables, options) {
|
|
1153
|
+
return requester(AbortMultipartUploadDocument, variables, options);
|
|
1154
|
+
},
|
|
1006
1155
|
CreateAsset(variables, options) {
|
|
1007
1156
|
return requester(CreateAssetDocument, variables, options);
|
|
1008
1157
|
},
|
|
@@ -1057,6 +1206,12 @@ export function getSdk(requester) {
|
|
|
1057
1206
|
GetPipelines(variables, options) {
|
|
1058
1207
|
return requester(GetPipelinesDocument, variables, options);
|
|
1059
1208
|
},
|
|
1209
|
+
GetPipelinesPricing(variables, options) {
|
|
1210
|
+
return requester(GetPipelinesPricingDocument, variables, options);
|
|
1211
|
+
},
|
|
1212
|
+
EstimatePipelineCost(variables, options) {
|
|
1213
|
+
return requester(EstimatePipelineCostDocument, variables, options);
|
|
1214
|
+
},
|
|
1060
1215
|
RunPipeline(variables, options) {
|
|
1061
1216
|
return requester(RunPipelineDocument, variables, options);
|
|
1062
1217
|
},
|