@pipe2-ai/sdk 2026.7.6 → 2026.9.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 +1868 -213
- package/dist/generated/sdk.js +534 -22
- package/package.json +8 -1
package/dist/generated/sdk.js
CHANGED
|
@@ -55,6 +55,34 @@ export var Assets_Select_Column;
|
|
|
55
55
|
/** column name */
|
|
56
56
|
Assets_Select_Column["Url"] = "url";
|
|
57
57
|
})(Assets_Select_Column || (Assets_Select_Column = {}));
|
|
58
|
+
/** select columns of table "countries" */
|
|
59
|
+
export var Countries_Select_Column;
|
|
60
|
+
(function (Countries_Select_Column) {
|
|
61
|
+
/** column name */
|
|
62
|
+
Countries_Select_Column["Code"] = "code";
|
|
63
|
+
/** column name */
|
|
64
|
+
Countries_Select_Column["Currency"] = "currency";
|
|
65
|
+
/** column name */
|
|
66
|
+
Countries_Select_Column["Name"] = "name";
|
|
67
|
+
})(Countries_Select_Column || (Countries_Select_Column = {}));
|
|
68
|
+
/** select columns of table "credit_grants" */
|
|
69
|
+
export var Credit_Grants_Select_Column;
|
|
70
|
+
(function (Credit_Grants_Select_Column) {
|
|
71
|
+
/** column name */
|
|
72
|
+
Credit_Grants_Select_Column["CreatedAt"] = "created_at";
|
|
73
|
+
/** column name */
|
|
74
|
+
Credit_Grants_Select_Column["ExpiresAt"] = "expires_at";
|
|
75
|
+
/** column name */
|
|
76
|
+
Credit_Grants_Select_Column["Id"] = "id";
|
|
77
|
+
/** column name */
|
|
78
|
+
Credit_Grants_Select_Column["OriginalMc"] = "original_mc";
|
|
79
|
+
/** column name */
|
|
80
|
+
Credit_Grants_Select_Column["RemainingMc"] = "remaining_mc";
|
|
81
|
+
/** column name */
|
|
82
|
+
Credit_Grants_Select_Column["Source"] = "source";
|
|
83
|
+
/** column name */
|
|
84
|
+
Credit_Grants_Select_Column["Status"] = "status";
|
|
85
|
+
})(Credit_Grants_Select_Column || (Credit_Grants_Select_Column = {}));
|
|
58
86
|
/** select columns of table "credit_pack_translations" */
|
|
59
87
|
export var Credit_Pack_Translations_Select_Column;
|
|
60
88
|
(function (Credit_Pack_Translations_Select_Column) {
|
|
@@ -101,6 +129,28 @@ export var Credit_Packs_Select_Column;
|
|
|
101
129
|
/** column name */
|
|
102
130
|
Credit_Packs_Select_Column["SortOrder"] = "sort_order";
|
|
103
131
|
})(Credit_Packs_Select_Column || (Credit_Packs_Select_Column = {}));
|
|
132
|
+
/** select columns of table "crypto_payment_currencies" */
|
|
133
|
+
export var Crypto_Payment_Currencies_Select_Column;
|
|
134
|
+
(function (Crypto_Payment_Currencies_Select_Column) {
|
|
135
|
+
/** column name */
|
|
136
|
+
Crypto_Payment_Currencies_Select_Column["Asset"] = "asset";
|
|
137
|
+
/** column name */
|
|
138
|
+
Crypto_Payment_Currencies_Select_Column["CurrencyId"] = "currency_id";
|
|
139
|
+
/** column name */
|
|
140
|
+
Crypto_Payment_Currencies_Select_Column["Decimals"] = "decimals";
|
|
141
|
+
/** column name */
|
|
142
|
+
Crypto_Payment_Currencies_Select_Column["Enabled"] = "enabled";
|
|
143
|
+
/** column name */
|
|
144
|
+
Crypto_Payment_Currencies_Select_Column["Label"] = "label";
|
|
145
|
+
/** column name */
|
|
146
|
+
Crypto_Payment_Currencies_Select_Column["MinUsdt"] = "min_usdt";
|
|
147
|
+
/** column name */
|
|
148
|
+
Crypto_Payment_Currencies_Select_Column["Network"] = "network";
|
|
149
|
+
/** column name */
|
|
150
|
+
Crypto_Payment_Currencies_Select_Column["Provider"] = "provider";
|
|
151
|
+
/** column name */
|
|
152
|
+
Crypto_Payment_Currencies_Select_Column["SortOrder"] = "sort_order";
|
|
153
|
+
})(Crypto_Payment_Currencies_Select_Column || (Crypto_Payment_Currencies_Select_Column = {}));
|
|
104
154
|
/** ordering argument of a cursor */
|
|
105
155
|
export var Cursor_Ordering;
|
|
106
156
|
(function (Cursor_Ordering) {
|
|
@@ -109,24 +159,30 @@ export var Cursor_Ordering;
|
|
|
109
159
|
/** descending ordering of the cursor */
|
|
110
160
|
Cursor_Ordering["Desc"] = "DESC";
|
|
111
161
|
})(Cursor_Ordering || (Cursor_Ordering = {}));
|
|
112
|
-
/** select columns of table "
|
|
113
|
-
export var
|
|
114
|
-
(function (
|
|
162
|
+
/** select columns of table "dispatch_blocks" */
|
|
163
|
+
export var Dispatch_Blocks_Select_Column;
|
|
164
|
+
(function (Dispatch_Blocks_Select_Column) {
|
|
115
165
|
/** column name */
|
|
116
|
-
|
|
166
|
+
Dispatch_Blocks_Select_Column["CreatedAt"] = "created_at";
|
|
117
167
|
/** column name */
|
|
118
|
-
|
|
168
|
+
Dispatch_Blocks_Select_Column["Id"] = "id";
|
|
119
169
|
/** column name */
|
|
120
|
-
|
|
170
|
+
Dispatch_Blocks_Select_Column["PipelineSlug"] = "pipeline_slug";
|
|
121
171
|
/** column name */
|
|
122
|
-
|
|
172
|
+
Dispatch_Blocks_Select_Column["Reason"] = "reason";
|
|
123
173
|
/** column name */
|
|
124
|
-
|
|
174
|
+
Dispatch_Blocks_Select_Column["UserId"] = "user_id";
|
|
175
|
+
})(Dispatch_Blocks_Select_Column || (Dispatch_Blocks_Select_Column = {}));
|
|
176
|
+
/** select columns of table "fx_rates" */
|
|
177
|
+
export var Fx_Rates_Select_Column;
|
|
178
|
+
(function (Fx_Rates_Select_Column) {
|
|
125
179
|
/** column name */
|
|
126
|
-
|
|
180
|
+
Fx_Rates_Select_Column["Currency"] = "currency";
|
|
127
181
|
/** column name */
|
|
128
|
-
|
|
129
|
-
|
|
182
|
+
Fx_Rates_Select_Column["Rate"] = "rate";
|
|
183
|
+
/** column name */
|
|
184
|
+
Fx_Rates_Select_Column["UpdatedAt"] = "updated_at";
|
|
185
|
+
})(Fx_Rates_Select_Column || (Fx_Rates_Select_Column = {}));
|
|
130
186
|
/** select columns of table "locales" */
|
|
131
187
|
export var Locales_Select_Column;
|
|
132
188
|
(function (Locales_Select_Column) {
|
|
@@ -141,6 +197,22 @@ export var Locales_Select_Column;
|
|
|
141
197
|
/** column name */
|
|
142
198
|
Locales_Select_Column["SortOrder"] = "sort_order";
|
|
143
199
|
})(Locales_Select_Column || (Locales_Select_Column = {}));
|
|
200
|
+
/** select columns of table "localized_product_prices" */
|
|
201
|
+
export var Localized_Product_Prices_Select_Column;
|
|
202
|
+
(function (Localized_Product_Prices_Select_Column) {
|
|
203
|
+
/** column name */
|
|
204
|
+
Localized_Product_Prices_Select_Column["ConvertedPrice"] = "converted_price";
|
|
205
|
+
/** column name */
|
|
206
|
+
Localized_Product_Prices_Select_Column["Country"] = "country";
|
|
207
|
+
/** column name */
|
|
208
|
+
Localized_Product_Prices_Select_Column["Currency"] = "currency";
|
|
209
|
+
/** column name */
|
|
210
|
+
Localized_Product_Prices_Select_Column["ProductKind"] = "product_kind";
|
|
211
|
+
/** column name */
|
|
212
|
+
Localized_Product_Prices_Select_Column["ProductSlug"] = "product_slug";
|
|
213
|
+
/** column name */
|
|
214
|
+
Localized_Product_Prices_Select_Column["UsdPriceCents"] = "usd_price_cents";
|
|
215
|
+
})(Localized_Product_Prices_Select_Column || (Localized_Product_Prices_Select_Column = {}));
|
|
144
216
|
/** select columns of table "model_capabilities" */
|
|
145
217
|
export var Model_Capabilities_Select_Column;
|
|
146
218
|
(function (Model_Capabilities_Select_Column) {
|
|
@@ -173,16 +245,24 @@ export var Models_Select_Column;
|
|
|
173
245
|
/** column name */
|
|
174
246
|
Models_Select_Column["Featured"] = "featured";
|
|
175
247
|
/** column name */
|
|
248
|
+
Models_Select_Column["IconUrl"] = "icon_url";
|
|
249
|
+
/** column name */
|
|
176
250
|
Models_Select_Column["IsActive"] = "is_active";
|
|
177
251
|
/** column name */
|
|
178
252
|
Models_Select_Column["Label"] = "label";
|
|
179
253
|
/** column name */
|
|
180
254
|
Models_Select_Column["LongDescription"] = "long_description";
|
|
181
255
|
/** column name */
|
|
256
|
+
Models_Select_Column["MaxInputImages"] = "max_input_images";
|
|
257
|
+
/** column name */
|
|
258
|
+
Models_Select_Column["PosterUrl"] = "poster_url";
|
|
259
|
+
/** column name */
|
|
182
260
|
Models_Select_Column["Provider"] = "provider";
|
|
183
261
|
/** column name */
|
|
184
262
|
Models_Select_Column["PublicName"] = "public_name";
|
|
185
263
|
/** column name */
|
|
264
|
+
Models_Select_Column["QualityScore"] = "quality_score";
|
|
265
|
+
/** column name */
|
|
186
266
|
Models_Select_Column["Slug"] = "slug";
|
|
187
267
|
/** column name */
|
|
188
268
|
Models_Select_Column["SortOrder"] = "sort_order";
|
|
@@ -221,6 +301,48 @@ export var Order_By;
|
|
|
221
301
|
/** in descending order, nulls last */
|
|
222
302
|
Order_By["DescNullsLast"] = "desc_nulls_last";
|
|
223
303
|
})(Order_By || (Order_By = {}));
|
|
304
|
+
/** select columns of table "payment_provider_resolved_row" */
|
|
305
|
+
export var Payment_Provider_Resolved_Row_Select_Column;
|
|
306
|
+
(function (Payment_Provider_Resolved_Row_Select_Column) {
|
|
307
|
+
/** column name */
|
|
308
|
+
Payment_Provider_Resolved_Row_Select_Column["Description"] = "description";
|
|
309
|
+
/** column name */
|
|
310
|
+
Payment_Provider_Resolved_Row_Select_Column["FeeBps"] = "fee_bps";
|
|
311
|
+
/** column name */
|
|
312
|
+
Payment_Provider_Resolved_Row_Select_Column["Kind"] = "kind";
|
|
313
|
+
/** column name */
|
|
314
|
+
Payment_Provider_Resolved_Row_Select_Column["Label"] = "label";
|
|
315
|
+
/** column name */
|
|
316
|
+
Payment_Provider_Resolved_Row_Select_Column["PriceSource"] = "price_source";
|
|
317
|
+
/** column name */
|
|
318
|
+
Payment_Provider_Resolved_Row_Select_Column["Slug"] = "slug";
|
|
319
|
+
/** column name */
|
|
320
|
+
Payment_Provider_Resolved_Row_Select_Column["SortOrder"] = "sort_order";
|
|
321
|
+
/** column name */
|
|
322
|
+
Payment_Provider_Resolved_Row_Select_Column["SupportsRecurring"] = "supports_recurring";
|
|
323
|
+
})(Payment_Provider_Resolved_Row_Select_Column || (Payment_Provider_Resolved_Row_Select_Column = {}));
|
|
324
|
+
/** select columns of table "payment_providers" */
|
|
325
|
+
export var Payment_Providers_Select_Column;
|
|
326
|
+
(function (Payment_Providers_Select_Column) {
|
|
327
|
+
/** column name */
|
|
328
|
+
Payment_Providers_Select_Column["Description"] = "description";
|
|
329
|
+
/** column name */
|
|
330
|
+
Payment_Providers_Select_Column["Enabled"] = "enabled";
|
|
331
|
+
/** column name */
|
|
332
|
+
Payment_Providers_Select_Column["FeeBps"] = "fee_bps";
|
|
333
|
+
/** column name */
|
|
334
|
+
Payment_Providers_Select_Column["Kind"] = "kind";
|
|
335
|
+
/** column name */
|
|
336
|
+
Payment_Providers_Select_Column["Label"] = "label";
|
|
337
|
+
/** column name */
|
|
338
|
+
Payment_Providers_Select_Column["PriceSource"] = "price_source";
|
|
339
|
+
/** column name */
|
|
340
|
+
Payment_Providers_Select_Column["Slug"] = "slug";
|
|
341
|
+
/** column name */
|
|
342
|
+
Payment_Providers_Select_Column["SortOrder"] = "sort_order";
|
|
343
|
+
/** column name */
|
|
344
|
+
Payment_Providers_Select_Column["SupportsRecurring"] = "supports_recurring";
|
|
345
|
+
})(Payment_Providers_Select_Column || (Payment_Providers_Select_Column = {}));
|
|
224
346
|
/** select columns of table "personal_access_tokens" */
|
|
225
347
|
export var Personal_Access_Tokens_Select_Column;
|
|
226
348
|
(function (Personal_Access_Tokens_Select_Column) {
|
|
@@ -292,6 +414,10 @@ export var Pipeline_Examples_Translations_Select_Column;
|
|
|
292
414
|
/** select columns of table "pipeline_models" */
|
|
293
415
|
export var Pipeline_Models_Select_Column;
|
|
294
416
|
(function (Pipeline_Models_Select_Column) {
|
|
417
|
+
/** column name */
|
|
418
|
+
Pipeline_Models_Select_Column["AutoRouteOrder"] = "auto_route_order";
|
|
419
|
+
/** column name */
|
|
420
|
+
Pipeline_Models_Select_Column["InputSchema"] = "input_schema";
|
|
295
421
|
/** column name */
|
|
296
422
|
Pipeline_Models_Select_Column["ModelSlug"] = "model_slug";
|
|
297
423
|
/** column name */
|
|
@@ -459,6 +585,24 @@ export var Providers_Select_Column;
|
|
|
459
585
|
/** column name */
|
|
460
586
|
Providers_Select_Column["Slug"] = "slug";
|
|
461
587
|
})(Providers_Select_Column || (Providers_Select_Column = {}));
|
|
588
|
+
/** select columns of table "subscription_plan_changes" */
|
|
589
|
+
export var Subscription_Plan_Changes_Select_Column;
|
|
590
|
+
(function (Subscription_Plan_Changes_Select_Column) {
|
|
591
|
+
/** column name */
|
|
592
|
+
Subscription_Plan_Changes_Select_Column["ChargeCents"] = "charge_cents";
|
|
593
|
+
/** column name */
|
|
594
|
+
Subscription_Plan_Changes_Select_Column["CreatedAt"] = "created_at";
|
|
595
|
+
/** column name */
|
|
596
|
+
Subscription_Plan_Changes_Select_Column["EffectiveAt"] = "effective_at";
|
|
597
|
+
/** column name */
|
|
598
|
+
Subscription_Plan_Changes_Select_Column["GrantMc"] = "grant_mc";
|
|
599
|
+
/** column name */
|
|
600
|
+
Subscription_Plan_Changes_Select_Column["Id"] = "id";
|
|
601
|
+
/** column name */
|
|
602
|
+
Subscription_Plan_Changes_Select_Column["Kind"] = "kind";
|
|
603
|
+
/** column name */
|
|
604
|
+
Subscription_Plan_Changes_Select_Column["Status"] = "status";
|
|
605
|
+
})(Subscription_Plan_Changes_Select_Column || (Subscription_Plan_Changes_Select_Column = {}));
|
|
462
606
|
/** select columns of table "subscriptions" */
|
|
463
607
|
export var Subscriptions_Select_Column;
|
|
464
608
|
(function (Subscriptions_Select_Column) {
|
|
@@ -469,6 +613,8 @@ export var Subscriptions_Select_Column;
|
|
|
469
613
|
/** column name */
|
|
470
614
|
Subscriptions_Select_Column["Id"] = "id";
|
|
471
615
|
/** column name */
|
|
616
|
+
Subscriptions_Select_Column["Metadata"] = "metadata";
|
|
617
|
+
/** column name */
|
|
472
618
|
Subscriptions_Select_Column["PeriodEnd"] = "period_end";
|
|
473
619
|
/** column name */
|
|
474
620
|
Subscriptions_Select_Column["PeriodStart"] = "period_start";
|
|
@@ -479,6 +625,38 @@ export var Subscriptions_Select_Column;
|
|
|
479
625
|
/** column name */
|
|
480
626
|
Subscriptions_Select_Column["Status"] = "status";
|
|
481
627
|
})(Subscriptions_Select_Column || (Subscriptions_Select_Column = {}));
|
|
628
|
+
/** select columns of table "user_credit_balance_breakdown" */
|
|
629
|
+
export var User_Credit_Balance_Breakdown_Select_Column;
|
|
630
|
+
(function (User_Credit_Balance_Breakdown_Select_Column) {
|
|
631
|
+
/** column name */
|
|
632
|
+
User_Credit_Balance_Breakdown_Select_Column["ExpiringMc"] = "expiring_mc";
|
|
633
|
+
/** column name */
|
|
634
|
+
User_Credit_Balance_Breakdown_Select_Column["NextExpiryAt"] = "next_expiry_at";
|
|
635
|
+
/** column name */
|
|
636
|
+
User_Credit_Balance_Breakdown_Select_Column["RetryMc"] = "retry_mc";
|
|
637
|
+
/** column name */
|
|
638
|
+
User_Credit_Balance_Breakdown_Select_Column["SubscriptionMc"] = "subscription_mc";
|
|
639
|
+
/** column name */
|
|
640
|
+
User_Credit_Balance_Breakdown_Select_Column["UserId"] = "user_id";
|
|
641
|
+
})(User_Credit_Balance_Breakdown_Select_Column || (User_Credit_Balance_Breakdown_Select_Column = {}));
|
|
642
|
+
/** select columns of table "user_subscription_credits" */
|
|
643
|
+
export var User_Subscription_Credits_Select_Column;
|
|
644
|
+
(function (User_Subscription_Credits_Select_Column) {
|
|
645
|
+
/** column name */
|
|
646
|
+
User_Subscription_Credits_Select_Column["ExpiresAt"] = "expires_at";
|
|
647
|
+
/** column name */
|
|
648
|
+
User_Subscription_Credits_Select_Column["RemainingMc"] = "remaining_mc";
|
|
649
|
+
/** column name */
|
|
650
|
+
User_Subscription_Credits_Select_Column["UpdatedAt"] = "updated_at";
|
|
651
|
+
/** column name */
|
|
652
|
+
User_Subscription_Credits_Select_Column["UserId"] = "user_id";
|
|
653
|
+
})(User_Subscription_Credits_Select_Column || (User_Subscription_Credits_Select_Column = {}));
|
|
654
|
+
/** select columns of table "users" */
|
|
655
|
+
export var Users_Select_Column;
|
|
656
|
+
(function (Users_Select_Column) {
|
|
657
|
+
/** column name */
|
|
658
|
+
Users_Select_Column["UpdatedAt"] = "updated_at";
|
|
659
|
+
})(Users_Select_Column || (Users_Select_Column = {}));
|
|
482
660
|
export const ChangePasswordDocument = gql `
|
|
483
661
|
mutation ChangePassword($current_password: String!, $new_password: String!) {
|
|
484
662
|
change_password(
|
|
@@ -778,6 +956,29 @@ export const RegisterDocument = gql `
|
|
|
778
956
|
}
|
|
779
957
|
}
|
|
780
958
|
`;
|
|
959
|
+
export const CreateAuthHandoffCodeDocument = gql `
|
|
960
|
+
mutation CreateAuthHandoffCode($redirect_uri: String!, $code_challenge: String!) {
|
|
961
|
+
create_auth_handoff_code(
|
|
962
|
+
redirect_uri: $redirect_uri
|
|
963
|
+
code_challenge: $code_challenge
|
|
964
|
+
) {
|
|
965
|
+
code
|
|
966
|
+
expires_at
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
`;
|
|
970
|
+
export const ExchangeAuthHandoffCodeDocument = gql `
|
|
971
|
+
mutation ExchangeAuthHandoffCode($code: String!, $redirect_uri: String!, $code_verifier: String!) {
|
|
972
|
+
exchange_auth_handoff_code(
|
|
973
|
+
code: $code
|
|
974
|
+
redirect_uri: $redirect_uri
|
|
975
|
+
code_verifier: $code_verifier
|
|
976
|
+
) {
|
|
977
|
+
token
|
|
978
|
+
expires_at
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
`;
|
|
781
982
|
export const LogoutDocument = gql `
|
|
782
983
|
mutation Logout {
|
|
783
984
|
logout {
|
|
@@ -841,6 +1042,115 @@ export const GetCreditHistoryDocument = gql `
|
|
|
841
1042
|
}
|
|
842
1043
|
}
|
|
843
1044
|
`;
|
|
1045
|
+
export const CreatePaymentDocument = gql `
|
|
1046
|
+
mutation CreatePayment($provider: String!, $attempt_id: uuid!, $credit_pack_slug: String, $plan_slug: String, $currency_id: String, $country: String, $recurring_consent: Boolean) {
|
|
1047
|
+
create_payment(
|
|
1048
|
+
provider: $provider
|
|
1049
|
+
attempt_id: $attempt_id
|
|
1050
|
+
credit_pack_slug: $credit_pack_slug
|
|
1051
|
+
plan_slug: $plan_slug
|
|
1052
|
+
currency_id: $currency_id
|
|
1053
|
+
country: $country
|
|
1054
|
+
recurring_consent: $recurring_consent
|
|
1055
|
+
) {
|
|
1056
|
+
success
|
|
1057
|
+
payment_id
|
|
1058
|
+
deposit_address
|
|
1059
|
+
expected_usdt
|
|
1060
|
+
credits
|
|
1061
|
+
network
|
|
1062
|
+
currency_id
|
|
1063
|
+
expires_at
|
|
1064
|
+
provider
|
|
1065
|
+
status
|
|
1066
|
+
asset
|
|
1067
|
+
amount
|
|
1068
|
+
remaining_amount
|
|
1069
|
+
payment_uri
|
|
1070
|
+
qr_code_data_url
|
|
1071
|
+
top_up_payment_uri
|
|
1072
|
+
top_up_qr_code_data_url
|
|
1073
|
+
required_confirmations
|
|
1074
|
+
confirmations
|
|
1075
|
+
amount_paid_usdt
|
|
1076
|
+
granted_at
|
|
1077
|
+
tx_hash
|
|
1078
|
+
currency
|
|
1079
|
+
detail
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
`;
|
|
1083
|
+
export const GetUserSubscriptionCreditsDocument = gql `
|
|
1084
|
+
query GetUserSubscriptionCredits {
|
|
1085
|
+
user_credit_balance_breakdown {
|
|
1086
|
+
subscription_mc
|
|
1087
|
+
retry_mc
|
|
1088
|
+
expiring_mc
|
|
1089
|
+
next_expiry_at
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
`;
|
|
1093
|
+
export const GetCryptoPaymentCurrenciesDocument = gql `
|
|
1094
|
+
query GetCryptoPaymentCurrencies($provider: String!) {
|
|
1095
|
+
crypto_payment_currencies(
|
|
1096
|
+
where: {enabled: {_eq: true}, provider: {_eq: $provider}}
|
|
1097
|
+
order_by: {sort_order: asc}
|
|
1098
|
+
) {
|
|
1099
|
+
currency_id
|
|
1100
|
+
network
|
|
1101
|
+
asset
|
|
1102
|
+
label
|
|
1103
|
+
decimals
|
|
1104
|
+
min_usdt
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
`;
|
|
1108
|
+
export const GetPaymentDocument = gql `
|
|
1109
|
+
query GetPayment($provider: String!, $id: uuid!) {
|
|
1110
|
+
get_payment_status(provider: $provider, payment_id: $id) {
|
|
1111
|
+
success
|
|
1112
|
+
payment_id
|
|
1113
|
+
provider
|
|
1114
|
+
status
|
|
1115
|
+
credits
|
|
1116
|
+
expected_usdt
|
|
1117
|
+
amount_paid_usdt
|
|
1118
|
+
deposit_address
|
|
1119
|
+
currency_id
|
|
1120
|
+
network
|
|
1121
|
+
expires_at
|
|
1122
|
+
granted_at
|
|
1123
|
+
tx_hash
|
|
1124
|
+
asset
|
|
1125
|
+
amount
|
|
1126
|
+
remaining_amount
|
|
1127
|
+
payment_uri
|
|
1128
|
+
qr_code_data_url
|
|
1129
|
+
top_up_payment_uri
|
|
1130
|
+
top_up_qr_code_data_url
|
|
1131
|
+
required_confirmations
|
|
1132
|
+
confirmations
|
|
1133
|
+
currency
|
|
1134
|
+
detail
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
`;
|
|
1138
|
+
export const GetPaymentsDocument = gql `
|
|
1139
|
+
query GetPayments($limit: Int = 50, $offset: Int = 0) {
|
|
1140
|
+
payments(limit: $limit, offset: $offset) {
|
|
1141
|
+
payment_id
|
|
1142
|
+
provider
|
|
1143
|
+
kind
|
|
1144
|
+
status
|
|
1145
|
+
credits
|
|
1146
|
+
amount
|
|
1147
|
+
currency
|
|
1148
|
+
expires_at
|
|
1149
|
+
granted_at
|
|
1150
|
+
created_at
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
`;
|
|
844
1154
|
export const ModelsDocument = gql `
|
|
845
1155
|
query Models {
|
|
846
1156
|
models(order_by: {sort_order: asc, slug: asc}) {
|
|
@@ -854,7 +1164,11 @@ export const ModelsDocument = gql `
|
|
|
854
1164
|
}
|
|
855
1165
|
description
|
|
856
1166
|
long_description
|
|
1167
|
+
icon_url
|
|
1168
|
+
poster_url
|
|
1169
|
+
max_input_images
|
|
857
1170
|
featured
|
|
1171
|
+
quality_score
|
|
858
1172
|
sort_order
|
|
859
1173
|
capabilities {
|
|
860
1174
|
capability_slug
|
|
@@ -862,6 +1176,8 @@ export const ModelsDocument = gql `
|
|
|
862
1176
|
pipeline_models(order_by: {sort_order: asc}) {
|
|
863
1177
|
pipeline_slug
|
|
864
1178
|
sort_order
|
|
1179
|
+
input_schema
|
|
1180
|
+
auto_route_order
|
|
865
1181
|
}
|
|
866
1182
|
translations {
|
|
867
1183
|
locale
|
|
@@ -904,6 +1220,22 @@ export const MarkAllNotificationsReadDocument = gql `
|
|
|
904
1220
|
}
|
|
905
1221
|
}
|
|
906
1222
|
`;
|
|
1223
|
+
export const GetCheckoutProvidersDocument = gql `
|
|
1224
|
+
query GetCheckoutProviders($country: String!, $platform: String!, $locale: String!) {
|
|
1225
|
+
resolve_payment_providers(
|
|
1226
|
+
args: {p_country: $country, p_platform: $platform, p_locale: $locale}
|
|
1227
|
+
) {
|
|
1228
|
+
slug
|
|
1229
|
+
kind
|
|
1230
|
+
label
|
|
1231
|
+
description
|
|
1232
|
+
fee_bps
|
|
1233
|
+
price_source
|
|
1234
|
+
sort_order
|
|
1235
|
+
supports_recurring
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
`;
|
|
907
1239
|
export const GetPipelinesDocument = gql `
|
|
908
1240
|
query GetPipelines {
|
|
909
1241
|
pipelines(where: {is_active: {_eq: true}}, order_by: {sort_order: asc}) {
|
|
@@ -948,6 +1280,7 @@ export const GetPipelinesDocument = gql `
|
|
|
948
1280
|
model {
|
|
949
1281
|
slug
|
|
950
1282
|
label
|
|
1283
|
+
public_name
|
|
951
1284
|
}
|
|
952
1285
|
translations {
|
|
953
1286
|
locale
|
|
@@ -981,6 +1314,68 @@ export const GetPipelinesListDocument = gql `
|
|
|
981
1314
|
}
|
|
982
1315
|
}
|
|
983
1316
|
`;
|
|
1317
|
+
export const SearchPipelinesDocument = gql `
|
|
1318
|
+
query SearchPipelines($limit: Int = 20, $offset: Int = 0, $search: String = "%%") {
|
|
1319
|
+
pipelines(
|
|
1320
|
+
where: {_and: [{is_active: {_eq: true}}, {_or: [{name: {_ilike: $search}}, {description: {_ilike: $search}}, {category: {_ilike: $search}}, {translations: {_or: [{name: {_ilike: $search}}, {description: {_ilike: $search}}]}}]}]}
|
|
1321
|
+
order_by: [{sort_order: asc}, {slug: asc}]
|
|
1322
|
+
limit: $limit
|
|
1323
|
+
offset: $offset
|
|
1324
|
+
) {
|
|
1325
|
+
id
|
|
1326
|
+
slug
|
|
1327
|
+
name
|
|
1328
|
+
description
|
|
1329
|
+
category
|
|
1330
|
+
icon_url
|
|
1331
|
+
preview_url
|
|
1332
|
+
providers
|
|
1333
|
+
models
|
|
1334
|
+
tags
|
|
1335
|
+
hints
|
|
1336
|
+
cancellable
|
|
1337
|
+
translations {
|
|
1338
|
+
locale
|
|
1339
|
+
name
|
|
1340
|
+
description
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
pipelines_aggregate(
|
|
1344
|
+
where: {_and: [{is_active: {_eq: true}}, {_or: [{name: {_ilike: $search}}, {description: {_ilike: $search}}, {category: {_ilike: $search}}, {translations: {_or: [{name: {_ilike: $search}}, {description: {_ilike: $search}}]}}]}]}
|
|
1345
|
+
) {
|
|
1346
|
+
aggregate {
|
|
1347
|
+
count
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
`;
|
|
1352
|
+
export const GetPipelineBySlugDocument = gql `
|
|
1353
|
+
query GetPipelineBySlug($slug: String!) {
|
|
1354
|
+
pipelines(where: {slug: {_eq: $slug}, is_active: {_eq: true}}, limit: 1) {
|
|
1355
|
+
id
|
|
1356
|
+
slug
|
|
1357
|
+
name
|
|
1358
|
+
description
|
|
1359
|
+
category
|
|
1360
|
+
icon_url
|
|
1361
|
+
preview_url
|
|
1362
|
+
providers
|
|
1363
|
+
models
|
|
1364
|
+
input_schema
|
|
1365
|
+
ui_schema
|
|
1366
|
+
output_schema
|
|
1367
|
+
tags
|
|
1368
|
+
hints
|
|
1369
|
+
cancellable
|
|
1370
|
+
translations {
|
|
1371
|
+
locale
|
|
1372
|
+
name
|
|
1373
|
+
description
|
|
1374
|
+
form_i18n
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
`;
|
|
984
1379
|
export const EstimatePipelineCostDocument = gql `
|
|
985
1380
|
query EstimatePipelineCost($pipeline_slug: String!, $input: jsonb!) {
|
|
986
1381
|
estimate_pipeline_cost(pipeline_slug: $pipeline_slug, input: $input) {
|
|
@@ -992,7 +1387,7 @@ export const EstimatePipelineCostDocument = gql `
|
|
|
992
1387
|
routed_reason_code
|
|
993
1388
|
routed_reason_params
|
|
994
1389
|
incompatible_models
|
|
995
|
-
|
|
1390
|
+
model_input_schema
|
|
996
1391
|
}
|
|
997
1392
|
}
|
|
998
1393
|
`;
|
|
@@ -1004,9 +1399,12 @@ export const PipelineModelsDocument = gql `
|
|
|
1004
1399
|
) {
|
|
1005
1400
|
model_slug
|
|
1006
1401
|
sort_order
|
|
1402
|
+
input_schema
|
|
1403
|
+
auto_route_order
|
|
1007
1404
|
model {
|
|
1008
1405
|
slug
|
|
1009
1406
|
label
|
|
1407
|
+
public_name
|
|
1010
1408
|
description
|
|
1011
1409
|
provider
|
|
1012
1410
|
translations {
|
|
@@ -1062,6 +1460,10 @@ export const GetPipelineRunDocument = gql `
|
|
|
1062
1460
|
input_schema
|
|
1063
1461
|
ui_schema
|
|
1064
1462
|
cancellable
|
|
1463
|
+
translations {
|
|
1464
|
+
locale
|
|
1465
|
+
name
|
|
1466
|
+
}
|
|
1065
1467
|
}
|
|
1066
1468
|
assets {
|
|
1067
1469
|
id
|
|
@@ -1094,6 +1496,10 @@ export const GetPipelineRunsDocument = gql `
|
|
|
1094
1496
|
input_schema
|
|
1095
1497
|
ui_schema
|
|
1096
1498
|
cancellable
|
|
1499
|
+
translations {
|
|
1500
|
+
locale
|
|
1501
|
+
name
|
|
1502
|
+
}
|
|
1097
1503
|
}
|
|
1098
1504
|
status
|
|
1099
1505
|
input
|
|
@@ -1209,6 +1615,17 @@ export const SetRunShareDocument = gql `
|
|
|
1209
1615
|
}
|
|
1210
1616
|
}
|
|
1211
1617
|
`;
|
|
1618
|
+
export const GetDispatchBlocksDocument = gql `
|
|
1619
|
+
query GetDispatchBlocks {
|
|
1620
|
+
dispatch_blocks {
|
|
1621
|
+
id
|
|
1622
|
+
pipeline_slug
|
|
1623
|
+
user_id
|
|
1624
|
+
reason
|
|
1625
|
+
created_at
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
`;
|
|
1212
1629
|
export const GetPlansDocument = gql `
|
|
1213
1630
|
query GetPlans {
|
|
1214
1631
|
plans(order_by: {sort_order: asc}) {
|
|
@@ -1255,9 +1672,26 @@ export const GetCreditPacksDocument = gql `
|
|
|
1255
1672
|
}
|
|
1256
1673
|
}
|
|
1257
1674
|
`;
|
|
1675
|
+
export const GetLocalizedPricesDocument = gql `
|
|
1676
|
+
query GetLocalizedPrices($country: String!) {
|
|
1677
|
+
localized_product_prices(where: {country: {_eq: $country}}) {
|
|
1678
|
+
product_kind
|
|
1679
|
+
product_slug
|
|
1680
|
+
country
|
|
1681
|
+
currency
|
|
1682
|
+
usd_price_cents
|
|
1683
|
+
converted_price
|
|
1684
|
+
}
|
|
1685
|
+
countries(order_by: {name: asc}) {
|
|
1686
|
+
code
|
|
1687
|
+
name
|
|
1688
|
+
currency
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
`;
|
|
1258
1692
|
export const GetSubscriptionDocument = gql `
|
|
1259
1693
|
query GetSubscription {
|
|
1260
|
-
subscriptions {
|
|
1694
|
+
subscriptions(where: {status: {_in: ["active", "past_due"]}}, limit: 1) {
|
|
1261
1695
|
id
|
|
1262
1696
|
plan_id
|
|
1263
1697
|
plan_version_id
|
|
@@ -1265,6 +1699,7 @@ export const GetSubscriptionDocument = gql `
|
|
|
1265
1699
|
period_start
|
|
1266
1700
|
period_end
|
|
1267
1701
|
cancel_at_period_end
|
|
1702
|
+
metadata
|
|
1268
1703
|
plan {
|
|
1269
1704
|
slug
|
|
1270
1705
|
name
|
|
@@ -1281,14 +1716,39 @@ export const GetSubscriptionDocument = gql `
|
|
|
1281
1716
|
}
|
|
1282
1717
|
}
|
|
1283
1718
|
`;
|
|
1284
|
-
export const
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1719
|
+
export const GetPendingSubscriptionPlanChangeDocument = gql `
|
|
1720
|
+
query GetPendingSubscriptionPlanChange {
|
|
1721
|
+
subscription_plan_changes(where: {status: {_eq: "pending"}}, limit: 1) {
|
|
1722
|
+
id
|
|
1723
|
+
kind
|
|
1724
|
+
status
|
|
1725
|
+
effective_at
|
|
1726
|
+
to_plan_version {
|
|
1727
|
+
id
|
|
1728
|
+
plan {
|
|
1729
|
+
slug
|
|
1730
|
+
name
|
|
1731
|
+
sort_order
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
`;
|
|
1737
|
+
export const ScheduleSubscriptionPlanChangeDocument = gql `
|
|
1738
|
+
mutation ScheduleSubscriptionPlanChange($plan_slug: String!) {
|
|
1739
|
+
schedule_subscription_plan_change(plan_slug: $plan_slug) {
|
|
1290
1740
|
success
|
|
1291
|
-
|
|
1741
|
+
change_id
|
|
1742
|
+
status
|
|
1743
|
+
effective_at
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
`;
|
|
1747
|
+
export const CancelSubscriptionPlanChangeDocument = gql `
|
|
1748
|
+
mutation CancelSubscriptionPlanChange {
|
|
1749
|
+
cancel_subscription_plan_change {
|
|
1750
|
+
success
|
|
1751
|
+
cancelled
|
|
1292
1752
|
}
|
|
1293
1753
|
}
|
|
1294
1754
|
`;
|
|
@@ -1350,6 +1810,13 @@ export const WatchNotificationsDocument = gql `
|
|
|
1350
1810
|
}
|
|
1351
1811
|
}
|
|
1352
1812
|
`;
|
|
1813
|
+
export const WatchBillingUpdatesDocument = gql `
|
|
1814
|
+
subscription WatchBillingUpdates {
|
|
1815
|
+
users(limit: 1) {
|
|
1816
|
+
updated_at
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
`;
|
|
1353
1820
|
export const GetMyApiKeysDocument = gql `
|
|
1354
1821
|
query GetMyApiKeys {
|
|
1355
1822
|
personal_access_tokens(order_by: {created_at: desc}) {
|
|
@@ -1475,6 +1942,12 @@ export function getSdk(requester) {
|
|
|
1475
1942
|
Register(variables, options) {
|
|
1476
1943
|
return requester(RegisterDocument, variables, options);
|
|
1477
1944
|
},
|
|
1945
|
+
CreateAuthHandoffCode(variables, options) {
|
|
1946
|
+
return requester(CreateAuthHandoffCodeDocument, variables, options);
|
|
1947
|
+
},
|
|
1948
|
+
ExchangeAuthHandoffCode(variables, options) {
|
|
1949
|
+
return requester(ExchangeAuthHandoffCodeDocument, variables, options);
|
|
1950
|
+
},
|
|
1478
1951
|
Logout(variables, options) {
|
|
1479
1952
|
return requester(LogoutDocument, variables, options);
|
|
1480
1953
|
},
|
|
@@ -1496,6 +1969,21 @@ export function getSdk(requester) {
|
|
|
1496
1969
|
GetCreditHistory(variables, options) {
|
|
1497
1970
|
return requester(GetCreditHistoryDocument, variables, options);
|
|
1498
1971
|
},
|
|
1972
|
+
CreatePayment(variables, options) {
|
|
1973
|
+
return requester(CreatePaymentDocument, variables, options);
|
|
1974
|
+
},
|
|
1975
|
+
GetUserSubscriptionCredits(variables, options) {
|
|
1976
|
+
return requester(GetUserSubscriptionCreditsDocument, variables, options);
|
|
1977
|
+
},
|
|
1978
|
+
GetCryptoPaymentCurrencies(variables, options) {
|
|
1979
|
+
return requester(GetCryptoPaymentCurrenciesDocument, variables, options);
|
|
1980
|
+
},
|
|
1981
|
+
GetPayment(variables, options) {
|
|
1982
|
+
return requester(GetPaymentDocument, variables, options);
|
|
1983
|
+
},
|
|
1984
|
+
GetPayments(variables, options) {
|
|
1985
|
+
return requester(GetPaymentsDocument, variables, options);
|
|
1986
|
+
},
|
|
1499
1987
|
Models(variables, options) {
|
|
1500
1988
|
return requester(ModelsDocument, variables, options);
|
|
1501
1989
|
},
|
|
@@ -1508,12 +1996,21 @@ export function getSdk(requester) {
|
|
|
1508
1996
|
MarkAllNotificationsRead(variables, options) {
|
|
1509
1997
|
return requester(MarkAllNotificationsReadDocument, variables, options);
|
|
1510
1998
|
},
|
|
1999
|
+
GetCheckoutProviders(variables, options) {
|
|
2000
|
+
return requester(GetCheckoutProvidersDocument, variables, options);
|
|
2001
|
+
},
|
|
1511
2002
|
GetPipelines(variables, options) {
|
|
1512
2003
|
return requester(GetPipelinesDocument, variables, options);
|
|
1513
2004
|
},
|
|
1514
2005
|
GetPipelinesList(variables, options) {
|
|
1515
2006
|
return requester(GetPipelinesListDocument, variables, options);
|
|
1516
2007
|
},
|
|
2008
|
+
SearchPipelines(variables, options) {
|
|
2009
|
+
return requester(SearchPipelinesDocument, variables, options);
|
|
2010
|
+
},
|
|
2011
|
+
GetPipelineBySlug(variables, options) {
|
|
2012
|
+
return requester(GetPipelineBySlugDocument, variables, options);
|
|
2013
|
+
},
|
|
1517
2014
|
EstimatePipelineCost(variables, options) {
|
|
1518
2015
|
return requester(EstimatePipelineCostDocument, variables, options);
|
|
1519
2016
|
},
|
|
@@ -1544,17 +2041,29 @@ export function getSdk(requester) {
|
|
|
1544
2041
|
SetRunShare(variables, options) {
|
|
1545
2042
|
return requester(SetRunShareDocument, variables, options);
|
|
1546
2043
|
},
|
|
2044
|
+
GetDispatchBlocks(variables, options) {
|
|
2045
|
+
return requester(GetDispatchBlocksDocument, variables, options);
|
|
2046
|
+
},
|
|
1547
2047
|
GetPlans(variables, options) {
|
|
1548
2048
|
return requester(GetPlansDocument, variables, options);
|
|
1549
2049
|
},
|
|
1550
2050
|
GetCreditPacks(variables, options) {
|
|
1551
2051
|
return requester(GetCreditPacksDocument, variables, options);
|
|
1552
2052
|
},
|
|
2053
|
+
GetLocalizedPrices(variables, options) {
|
|
2054
|
+
return requester(GetLocalizedPricesDocument, variables, options);
|
|
2055
|
+
},
|
|
1553
2056
|
GetSubscription(variables, options) {
|
|
1554
2057
|
return requester(GetSubscriptionDocument, variables, options);
|
|
1555
2058
|
},
|
|
1556
|
-
|
|
1557
|
-
return requester(
|
|
2059
|
+
GetPendingSubscriptionPlanChange(variables, options) {
|
|
2060
|
+
return requester(GetPendingSubscriptionPlanChangeDocument, variables, options);
|
|
2061
|
+
},
|
|
2062
|
+
ScheduleSubscriptionPlanChange(variables, options) {
|
|
2063
|
+
return requester(ScheduleSubscriptionPlanChangeDocument, variables, options);
|
|
2064
|
+
},
|
|
2065
|
+
CancelSubscriptionPlanChange(variables, options) {
|
|
2066
|
+
return requester(CancelSubscriptionPlanChangeDocument, variables, options);
|
|
1558
2067
|
},
|
|
1559
2068
|
WatchPipelineRun(variables, options) {
|
|
1560
2069
|
return requester(WatchPipelineRunDocument, variables, options);
|
|
@@ -1565,6 +2074,9 @@ export function getSdk(requester) {
|
|
|
1565
2074
|
WatchNotifications(variables, options) {
|
|
1566
2075
|
return requester(WatchNotificationsDocument, variables, options);
|
|
1567
2076
|
},
|
|
2077
|
+
WatchBillingUpdates(variables, options) {
|
|
2078
|
+
return requester(WatchBillingUpdatesDocument, variables, options);
|
|
2079
|
+
},
|
|
1568
2080
|
GetMyApiKeys(variables, options) {
|
|
1569
2081
|
return requester(GetMyApiKeysDocument, variables, options);
|
|
1570
2082
|
},
|