@pipe2-ai/sdk 2026.7.6 → 2026.8.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 +2016 -17
- package/dist/generated/sdk.js +585 -2
- 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,60 @@ 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 = {}));
|
|
154
|
+
/** select columns of table "crypto_payments" */
|
|
155
|
+
export var Crypto_Payments_Select_Column;
|
|
156
|
+
(function (Crypto_Payments_Select_Column) {
|
|
157
|
+
/** column name */
|
|
158
|
+
Crypto_Payments_Select_Column["AmountPaidUsdt"] = "amount_paid_usdt";
|
|
159
|
+
/** column name */
|
|
160
|
+
Crypto_Payments_Select_Column["CreatedAt"] = "created_at";
|
|
161
|
+
/** column name */
|
|
162
|
+
Crypto_Payments_Select_Column["Credits"] = "credits";
|
|
163
|
+
/** column name */
|
|
164
|
+
Crypto_Payments_Select_Column["CurrencyId"] = "currency_id";
|
|
165
|
+
/** column name */
|
|
166
|
+
Crypto_Payments_Select_Column["DepositAddress"] = "deposit_address";
|
|
167
|
+
/** column name */
|
|
168
|
+
Crypto_Payments_Select_Column["ExpectedUsdt"] = "expected_usdt";
|
|
169
|
+
/** column name */
|
|
170
|
+
Crypto_Payments_Select_Column["ExpiresAt"] = "expires_at";
|
|
171
|
+
/** column name */
|
|
172
|
+
Crypto_Payments_Select_Column["GrantedAt"] = "granted_at";
|
|
173
|
+
/** column name */
|
|
174
|
+
Crypto_Payments_Select_Column["Id"] = "id";
|
|
175
|
+
/** column name */
|
|
176
|
+
Crypto_Payments_Select_Column["Kind"] = "kind";
|
|
177
|
+
/** column name */
|
|
178
|
+
Crypto_Payments_Select_Column["Network"] = "network";
|
|
179
|
+
/** column name */
|
|
180
|
+
Crypto_Payments_Select_Column["Provider"] = "provider";
|
|
181
|
+
/** column name */
|
|
182
|
+
Crypto_Payments_Select_Column["Status"] = "status";
|
|
183
|
+
/** column name */
|
|
184
|
+
Crypto_Payments_Select_Column["TxHash"] = "tx_hash";
|
|
185
|
+
})(Crypto_Payments_Select_Column || (Crypto_Payments_Select_Column = {}));
|
|
104
186
|
/** ordering argument of a cursor */
|
|
105
187
|
export var Cursor_Ordering;
|
|
106
188
|
(function (Cursor_Ordering) {
|
|
@@ -109,6 +191,20 @@ export var Cursor_Ordering;
|
|
|
109
191
|
/** descending ordering of the cursor */
|
|
110
192
|
Cursor_Ordering["Desc"] = "DESC";
|
|
111
193
|
})(Cursor_Ordering || (Cursor_Ordering = {}));
|
|
194
|
+
/** select columns of table "dispatch_blocks" */
|
|
195
|
+
export var Dispatch_Blocks_Select_Column;
|
|
196
|
+
(function (Dispatch_Blocks_Select_Column) {
|
|
197
|
+
/** column name */
|
|
198
|
+
Dispatch_Blocks_Select_Column["CreatedAt"] = "created_at";
|
|
199
|
+
/** column name */
|
|
200
|
+
Dispatch_Blocks_Select_Column["Id"] = "id";
|
|
201
|
+
/** column name */
|
|
202
|
+
Dispatch_Blocks_Select_Column["PipelineSlug"] = "pipeline_slug";
|
|
203
|
+
/** column name */
|
|
204
|
+
Dispatch_Blocks_Select_Column["Reason"] = "reason";
|
|
205
|
+
/** column name */
|
|
206
|
+
Dispatch_Blocks_Select_Column["UserId"] = "user_id";
|
|
207
|
+
})(Dispatch_Blocks_Select_Column || (Dispatch_Blocks_Select_Column = {}));
|
|
112
208
|
/** select columns of table "executions_visibility" */
|
|
113
209
|
export var Executions_Visibility_Select_Column;
|
|
114
210
|
(function (Executions_Visibility_Select_Column) {
|
|
@@ -127,6 +223,16 @@ export var Executions_Visibility_Select_Column;
|
|
|
127
223
|
/** column name */
|
|
128
224
|
Executions_Visibility_Select_Column["WorkflowTypeName"] = "workflow_type_name";
|
|
129
225
|
})(Executions_Visibility_Select_Column || (Executions_Visibility_Select_Column = {}));
|
|
226
|
+
/** select columns of table "fx_rates" */
|
|
227
|
+
export var Fx_Rates_Select_Column;
|
|
228
|
+
(function (Fx_Rates_Select_Column) {
|
|
229
|
+
/** column name */
|
|
230
|
+
Fx_Rates_Select_Column["Currency"] = "currency";
|
|
231
|
+
/** column name */
|
|
232
|
+
Fx_Rates_Select_Column["Rate"] = "rate";
|
|
233
|
+
/** column name */
|
|
234
|
+
Fx_Rates_Select_Column["UpdatedAt"] = "updated_at";
|
|
235
|
+
})(Fx_Rates_Select_Column || (Fx_Rates_Select_Column = {}));
|
|
130
236
|
/** select columns of table "locales" */
|
|
131
237
|
export var Locales_Select_Column;
|
|
132
238
|
(function (Locales_Select_Column) {
|
|
@@ -141,6 +247,22 @@ export var Locales_Select_Column;
|
|
|
141
247
|
/** column name */
|
|
142
248
|
Locales_Select_Column["SortOrder"] = "sort_order";
|
|
143
249
|
})(Locales_Select_Column || (Locales_Select_Column = {}));
|
|
250
|
+
/** select columns of table "localized_product_prices" */
|
|
251
|
+
export var Localized_Product_Prices_Select_Column;
|
|
252
|
+
(function (Localized_Product_Prices_Select_Column) {
|
|
253
|
+
/** column name */
|
|
254
|
+
Localized_Product_Prices_Select_Column["ConvertedPrice"] = "converted_price";
|
|
255
|
+
/** column name */
|
|
256
|
+
Localized_Product_Prices_Select_Column["Country"] = "country";
|
|
257
|
+
/** column name */
|
|
258
|
+
Localized_Product_Prices_Select_Column["Currency"] = "currency";
|
|
259
|
+
/** column name */
|
|
260
|
+
Localized_Product_Prices_Select_Column["ProductKind"] = "product_kind";
|
|
261
|
+
/** column name */
|
|
262
|
+
Localized_Product_Prices_Select_Column["ProductSlug"] = "product_slug";
|
|
263
|
+
/** column name */
|
|
264
|
+
Localized_Product_Prices_Select_Column["UsdPriceCents"] = "usd_price_cents";
|
|
265
|
+
})(Localized_Product_Prices_Select_Column || (Localized_Product_Prices_Select_Column = {}));
|
|
144
266
|
/** select columns of table "model_capabilities" */
|
|
145
267
|
export var Model_Capabilities_Select_Column;
|
|
146
268
|
(function (Model_Capabilities_Select_Column) {
|
|
@@ -221,6 +343,48 @@ export var Order_By;
|
|
|
221
343
|
/** in descending order, nulls last */
|
|
222
344
|
Order_By["DescNullsLast"] = "desc_nulls_last";
|
|
223
345
|
})(Order_By || (Order_By = {}));
|
|
346
|
+
/** select columns of table "payment_provider_resolved_row" */
|
|
347
|
+
export var Payment_Provider_Resolved_Row_Select_Column;
|
|
348
|
+
(function (Payment_Provider_Resolved_Row_Select_Column) {
|
|
349
|
+
/** column name */
|
|
350
|
+
Payment_Provider_Resolved_Row_Select_Column["Description"] = "description";
|
|
351
|
+
/** column name */
|
|
352
|
+
Payment_Provider_Resolved_Row_Select_Column["FeeBps"] = "fee_bps";
|
|
353
|
+
/** column name */
|
|
354
|
+
Payment_Provider_Resolved_Row_Select_Column["Kind"] = "kind";
|
|
355
|
+
/** column name */
|
|
356
|
+
Payment_Provider_Resolved_Row_Select_Column["Label"] = "label";
|
|
357
|
+
/** column name */
|
|
358
|
+
Payment_Provider_Resolved_Row_Select_Column["PriceSource"] = "price_source";
|
|
359
|
+
/** column name */
|
|
360
|
+
Payment_Provider_Resolved_Row_Select_Column["Slug"] = "slug";
|
|
361
|
+
/** column name */
|
|
362
|
+
Payment_Provider_Resolved_Row_Select_Column["SortOrder"] = "sort_order";
|
|
363
|
+
/** column name */
|
|
364
|
+
Payment_Provider_Resolved_Row_Select_Column["SupportsRecurring"] = "supports_recurring";
|
|
365
|
+
})(Payment_Provider_Resolved_Row_Select_Column || (Payment_Provider_Resolved_Row_Select_Column = {}));
|
|
366
|
+
/** select columns of table "payment_providers" */
|
|
367
|
+
export var Payment_Providers_Select_Column;
|
|
368
|
+
(function (Payment_Providers_Select_Column) {
|
|
369
|
+
/** column name */
|
|
370
|
+
Payment_Providers_Select_Column["Description"] = "description";
|
|
371
|
+
/** column name */
|
|
372
|
+
Payment_Providers_Select_Column["Enabled"] = "enabled";
|
|
373
|
+
/** column name */
|
|
374
|
+
Payment_Providers_Select_Column["FeeBps"] = "fee_bps";
|
|
375
|
+
/** column name */
|
|
376
|
+
Payment_Providers_Select_Column["Kind"] = "kind";
|
|
377
|
+
/** column name */
|
|
378
|
+
Payment_Providers_Select_Column["Label"] = "label";
|
|
379
|
+
/** column name */
|
|
380
|
+
Payment_Providers_Select_Column["PriceSource"] = "price_source";
|
|
381
|
+
/** column name */
|
|
382
|
+
Payment_Providers_Select_Column["Slug"] = "slug";
|
|
383
|
+
/** column name */
|
|
384
|
+
Payment_Providers_Select_Column["SortOrder"] = "sort_order";
|
|
385
|
+
/** column name */
|
|
386
|
+
Payment_Providers_Select_Column["SupportsRecurring"] = "supports_recurring";
|
|
387
|
+
})(Payment_Providers_Select_Column || (Payment_Providers_Select_Column = {}));
|
|
224
388
|
/** select columns of table "personal_access_tokens" */
|
|
225
389
|
export var Personal_Access_Tokens_Select_Column;
|
|
226
390
|
(function (Personal_Access_Tokens_Select_Column) {
|
|
@@ -292,6 +456,10 @@ export var Pipeline_Examples_Translations_Select_Column;
|
|
|
292
456
|
/** select columns of table "pipeline_models" */
|
|
293
457
|
export var Pipeline_Models_Select_Column;
|
|
294
458
|
(function (Pipeline_Models_Select_Column) {
|
|
459
|
+
/** column name */
|
|
460
|
+
Pipeline_Models_Select_Column["AutoRouteOrder"] = "auto_route_order";
|
|
461
|
+
/** column name */
|
|
462
|
+
Pipeline_Models_Select_Column["InputSchema"] = "input_schema";
|
|
295
463
|
/** column name */
|
|
296
464
|
Pipeline_Models_Select_Column["ModelSlug"] = "model_slug";
|
|
297
465
|
/** column name */
|
|
@@ -459,6 +627,24 @@ export var Providers_Select_Column;
|
|
|
459
627
|
/** column name */
|
|
460
628
|
Providers_Select_Column["Slug"] = "slug";
|
|
461
629
|
})(Providers_Select_Column || (Providers_Select_Column = {}));
|
|
630
|
+
/** select columns of table "subscription_plan_changes" */
|
|
631
|
+
export var Subscription_Plan_Changes_Select_Column;
|
|
632
|
+
(function (Subscription_Plan_Changes_Select_Column) {
|
|
633
|
+
/** column name */
|
|
634
|
+
Subscription_Plan_Changes_Select_Column["ChargeCents"] = "charge_cents";
|
|
635
|
+
/** column name */
|
|
636
|
+
Subscription_Plan_Changes_Select_Column["CreatedAt"] = "created_at";
|
|
637
|
+
/** column name */
|
|
638
|
+
Subscription_Plan_Changes_Select_Column["EffectiveAt"] = "effective_at";
|
|
639
|
+
/** column name */
|
|
640
|
+
Subscription_Plan_Changes_Select_Column["GrantMc"] = "grant_mc";
|
|
641
|
+
/** column name */
|
|
642
|
+
Subscription_Plan_Changes_Select_Column["Id"] = "id";
|
|
643
|
+
/** column name */
|
|
644
|
+
Subscription_Plan_Changes_Select_Column["Kind"] = "kind";
|
|
645
|
+
/** column name */
|
|
646
|
+
Subscription_Plan_Changes_Select_Column["Status"] = "status";
|
|
647
|
+
})(Subscription_Plan_Changes_Select_Column || (Subscription_Plan_Changes_Select_Column = {}));
|
|
462
648
|
/** select columns of table "subscriptions" */
|
|
463
649
|
export var Subscriptions_Select_Column;
|
|
464
650
|
(function (Subscriptions_Select_Column) {
|
|
@@ -469,6 +655,8 @@ export var Subscriptions_Select_Column;
|
|
|
469
655
|
/** column name */
|
|
470
656
|
Subscriptions_Select_Column["Id"] = "id";
|
|
471
657
|
/** column name */
|
|
658
|
+
Subscriptions_Select_Column["Metadata"] = "metadata";
|
|
659
|
+
/** column name */
|
|
472
660
|
Subscriptions_Select_Column["PeriodEnd"] = "period_end";
|
|
473
661
|
/** column name */
|
|
474
662
|
Subscriptions_Select_Column["PeriodStart"] = "period_start";
|
|
@@ -479,6 +667,38 @@ export var Subscriptions_Select_Column;
|
|
|
479
667
|
/** column name */
|
|
480
668
|
Subscriptions_Select_Column["Status"] = "status";
|
|
481
669
|
})(Subscriptions_Select_Column || (Subscriptions_Select_Column = {}));
|
|
670
|
+
/** select columns of table "user_credit_balance_breakdown" */
|
|
671
|
+
export var User_Credit_Balance_Breakdown_Select_Column;
|
|
672
|
+
(function (User_Credit_Balance_Breakdown_Select_Column) {
|
|
673
|
+
/** column name */
|
|
674
|
+
User_Credit_Balance_Breakdown_Select_Column["ExpiringMc"] = "expiring_mc";
|
|
675
|
+
/** column name */
|
|
676
|
+
User_Credit_Balance_Breakdown_Select_Column["NextExpiryAt"] = "next_expiry_at";
|
|
677
|
+
/** column name */
|
|
678
|
+
User_Credit_Balance_Breakdown_Select_Column["RetryMc"] = "retry_mc";
|
|
679
|
+
/** column name */
|
|
680
|
+
User_Credit_Balance_Breakdown_Select_Column["SubscriptionMc"] = "subscription_mc";
|
|
681
|
+
/** column name */
|
|
682
|
+
User_Credit_Balance_Breakdown_Select_Column["UserId"] = "user_id";
|
|
683
|
+
})(User_Credit_Balance_Breakdown_Select_Column || (User_Credit_Balance_Breakdown_Select_Column = {}));
|
|
684
|
+
/** select columns of table "user_subscription_credits" */
|
|
685
|
+
export var User_Subscription_Credits_Select_Column;
|
|
686
|
+
(function (User_Subscription_Credits_Select_Column) {
|
|
687
|
+
/** column name */
|
|
688
|
+
User_Subscription_Credits_Select_Column["ExpiresAt"] = "expires_at";
|
|
689
|
+
/** column name */
|
|
690
|
+
User_Subscription_Credits_Select_Column["RemainingMc"] = "remaining_mc";
|
|
691
|
+
/** column name */
|
|
692
|
+
User_Subscription_Credits_Select_Column["UpdatedAt"] = "updated_at";
|
|
693
|
+
/** column name */
|
|
694
|
+
User_Subscription_Credits_Select_Column["UserId"] = "user_id";
|
|
695
|
+
})(User_Subscription_Credits_Select_Column || (User_Subscription_Credits_Select_Column = {}));
|
|
696
|
+
/** select columns of table "users" */
|
|
697
|
+
export var Users_Select_Column;
|
|
698
|
+
(function (Users_Select_Column) {
|
|
699
|
+
/** column name */
|
|
700
|
+
Users_Select_Column["UpdatedAt"] = "updated_at";
|
|
701
|
+
})(Users_Select_Column || (Users_Select_Column = {}));
|
|
482
702
|
export const ChangePasswordDocument = gql `
|
|
483
703
|
mutation ChangePassword($current_password: String!, $new_password: String!) {
|
|
484
704
|
change_password(
|
|
@@ -778,6 +998,29 @@ export const RegisterDocument = gql `
|
|
|
778
998
|
}
|
|
779
999
|
}
|
|
780
1000
|
`;
|
|
1001
|
+
export const CreateAuthHandoffCodeDocument = gql `
|
|
1002
|
+
mutation CreateAuthHandoffCode($redirect_uri: String!, $code_challenge: String!) {
|
|
1003
|
+
create_auth_handoff_code(
|
|
1004
|
+
redirect_uri: $redirect_uri
|
|
1005
|
+
code_challenge: $code_challenge
|
|
1006
|
+
) {
|
|
1007
|
+
code
|
|
1008
|
+
expires_at
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
`;
|
|
1012
|
+
export const ExchangeAuthHandoffCodeDocument = gql `
|
|
1013
|
+
mutation ExchangeAuthHandoffCode($code: String!, $redirect_uri: String!, $code_verifier: String!) {
|
|
1014
|
+
exchange_auth_handoff_code(
|
|
1015
|
+
code: $code
|
|
1016
|
+
redirect_uri: $redirect_uri
|
|
1017
|
+
code_verifier: $code_verifier
|
|
1018
|
+
) {
|
|
1019
|
+
token
|
|
1020
|
+
expires_at
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
`;
|
|
781
1024
|
export const LogoutDocument = gql `
|
|
782
1025
|
mutation Logout {
|
|
783
1026
|
logout {
|
|
@@ -841,6 +1084,94 @@ export const GetCreditHistoryDocument = gql `
|
|
|
841
1084
|
}
|
|
842
1085
|
}
|
|
843
1086
|
`;
|
|
1087
|
+
export const CreateCryptoPaymentDocument = gql `
|
|
1088
|
+
mutation CreateCryptoPayment($provider: String!, $attempt_id: uuid!, $credit_pack_slug: String, $plan_slug: String, $currency_id: String!, $country: String) {
|
|
1089
|
+
create_crypto_payment(
|
|
1090
|
+
provider: $provider
|
|
1091
|
+
attempt_id: $attempt_id
|
|
1092
|
+
credit_pack_slug: $credit_pack_slug
|
|
1093
|
+
plan_slug: $plan_slug
|
|
1094
|
+
currency_id: $currency_id
|
|
1095
|
+
country: $country
|
|
1096
|
+
) {
|
|
1097
|
+
success
|
|
1098
|
+
payment_id
|
|
1099
|
+
deposit_address
|
|
1100
|
+
expected_usdt
|
|
1101
|
+
credits
|
|
1102
|
+
network
|
|
1103
|
+
currency_id
|
|
1104
|
+
expires_at
|
|
1105
|
+
provider
|
|
1106
|
+
status
|
|
1107
|
+
asset
|
|
1108
|
+
amount
|
|
1109
|
+
remaining_amount
|
|
1110
|
+
payment_uri
|
|
1111
|
+
qr_code_data_url
|
|
1112
|
+
top_up_payment_uri
|
|
1113
|
+
top_up_qr_code_data_url
|
|
1114
|
+
required_confirmations
|
|
1115
|
+
confirmations
|
|
1116
|
+
amount_paid_usdt
|
|
1117
|
+
granted_at
|
|
1118
|
+
tx_hash
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
`;
|
|
1122
|
+
export const GetUserSubscriptionCreditsDocument = gql `
|
|
1123
|
+
query GetUserSubscriptionCredits {
|
|
1124
|
+
user_credit_balance_breakdown {
|
|
1125
|
+
subscription_mc
|
|
1126
|
+
retry_mc
|
|
1127
|
+
expiring_mc
|
|
1128
|
+
next_expiry_at
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
`;
|
|
1132
|
+
export const GetCryptoPaymentCurrenciesDocument = gql `
|
|
1133
|
+
query GetCryptoPaymentCurrencies($provider: String!) {
|
|
1134
|
+
crypto_payment_currencies(
|
|
1135
|
+
where: {enabled: {_eq: true}, provider: {_eq: $provider}}
|
|
1136
|
+
order_by: {sort_order: asc}
|
|
1137
|
+
) {
|
|
1138
|
+
currency_id
|
|
1139
|
+
network
|
|
1140
|
+
asset
|
|
1141
|
+
label
|
|
1142
|
+
decimals
|
|
1143
|
+
min_usdt
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
`;
|
|
1147
|
+
export const GetCryptoPaymentDocument = gql `
|
|
1148
|
+
query GetCryptoPayment($id: uuid!) {
|
|
1149
|
+
get_crypto_payment_status(payment_id: $id) {
|
|
1150
|
+
success
|
|
1151
|
+
payment_id
|
|
1152
|
+
provider
|
|
1153
|
+
status
|
|
1154
|
+
credits
|
|
1155
|
+
expected_usdt
|
|
1156
|
+
amount_paid_usdt
|
|
1157
|
+
deposit_address
|
|
1158
|
+
currency_id
|
|
1159
|
+
network
|
|
1160
|
+
expires_at
|
|
1161
|
+
granted_at
|
|
1162
|
+
tx_hash
|
|
1163
|
+
asset
|
|
1164
|
+
amount
|
|
1165
|
+
remaining_amount
|
|
1166
|
+
payment_uri
|
|
1167
|
+
qr_code_data_url
|
|
1168
|
+
top_up_payment_uri
|
|
1169
|
+
top_up_qr_code_data_url
|
|
1170
|
+
required_confirmations
|
|
1171
|
+
confirmations
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
`;
|
|
844
1175
|
export const ModelsDocument = gql `
|
|
845
1176
|
query Models {
|
|
846
1177
|
models(order_by: {sort_order: asc, slug: asc}) {
|
|
@@ -862,6 +1193,8 @@ export const ModelsDocument = gql `
|
|
|
862
1193
|
pipeline_models(order_by: {sort_order: asc}) {
|
|
863
1194
|
pipeline_slug
|
|
864
1195
|
sort_order
|
|
1196
|
+
input_schema
|
|
1197
|
+
auto_route_order
|
|
865
1198
|
}
|
|
866
1199
|
translations {
|
|
867
1200
|
locale
|
|
@@ -904,6 +1237,22 @@ export const MarkAllNotificationsReadDocument = gql `
|
|
|
904
1237
|
}
|
|
905
1238
|
}
|
|
906
1239
|
`;
|
|
1240
|
+
export const GetCheckoutProvidersDocument = gql `
|
|
1241
|
+
query GetCheckoutProviders($country: String!, $platform: String!, $locale: String!) {
|
|
1242
|
+
resolve_payment_providers(
|
|
1243
|
+
args: {p_country: $country, p_platform: $platform, p_locale: $locale}
|
|
1244
|
+
) {
|
|
1245
|
+
slug
|
|
1246
|
+
kind
|
|
1247
|
+
label
|
|
1248
|
+
description
|
|
1249
|
+
fee_bps
|
|
1250
|
+
price_source
|
|
1251
|
+
sort_order
|
|
1252
|
+
supports_recurring
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
`;
|
|
907
1256
|
export const GetPipelinesDocument = gql `
|
|
908
1257
|
query GetPipelines {
|
|
909
1258
|
pipelines(where: {is_active: {_eq: true}}, order_by: {sort_order: asc}) {
|
|
@@ -948,6 +1297,7 @@ export const GetPipelinesDocument = gql `
|
|
|
948
1297
|
model {
|
|
949
1298
|
slug
|
|
950
1299
|
label
|
|
1300
|
+
public_name
|
|
951
1301
|
}
|
|
952
1302
|
translations {
|
|
953
1303
|
locale
|
|
@@ -981,6 +1331,68 @@ export const GetPipelinesListDocument = gql `
|
|
|
981
1331
|
}
|
|
982
1332
|
}
|
|
983
1333
|
`;
|
|
1334
|
+
export const SearchPipelinesDocument = gql `
|
|
1335
|
+
query SearchPipelines($limit: Int = 20, $offset: Int = 0, $search: String = "%%") {
|
|
1336
|
+
pipelines(
|
|
1337
|
+
where: {_and: [{is_active: {_eq: true}}, {_or: [{name: {_ilike: $search}}, {description: {_ilike: $search}}, {category: {_ilike: $search}}, {translations: {_or: [{name: {_ilike: $search}}, {description: {_ilike: $search}}]}}]}]}
|
|
1338
|
+
order_by: [{sort_order: asc}, {slug: asc}]
|
|
1339
|
+
limit: $limit
|
|
1340
|
+
offset: $offset
|
|
1341
|
+
) {
|
|
1342
|
+
id
|
|
1343
|
+
slug
|
|
1344
|
+
name
|
|
1345
|
+
description
|
|
1346
|
+
category
|
|
1347
|
+
icon_url
|
|
1348
|
+
preview_url
|
|
1349
|
+
providers
|
|
1350
|
+
models
|
|
1351
|
+
tags
|
|
1352
|
+
hints
|
|
1353
|
+
cancellable
|
|
1354
|
+
translations {
|
|
1355
|
+
locale
|
|
1356
|
+
name
|
|
1357
|
+
description
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
pipelines_aggregate(
|
|
1361
|
+
where: {_and: [{is_active: {_eq: true}}, {_or: [{name: {_ilike: $search}}, {description: {_ilike: $search}}, {category: {_ilike: $search}}, {translations: {_or: [{name: {_ilike: $search}}, {description: {_ilike: $search}}]}}]}]}
|
|
1362
|
+
) {
|
|
1363
|
+
aggregate {
|
|
1364
|
+
count
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
`;
|
|
1369
|
+
export const GetPipelineBySlugDocument = gql `
|
|
1370
|
+
query GetPipelineBySlug($slug: String!) {
|
|
1371
|
+
pipelines(where: {slug: {_eq: $slug}, is_active: {_eq: true}}, limit: 1) {
|
|
1372
|
+
id
|
|
1373
|
+
slug
|
|
1374
|
+
name
|
|
1375
|
+
description
|
|
1376
|
+
category
|
|
1377
|
+
icon_url
|
|
1378
|
+
preview_url
|
|
1379
|
+
providers
|
|
1380
|
+
models
|
|
1381
|
+
input_schema
|
|
1382
|
+
ui_schema
|
|
1383
|
+
output_schema
|
|
1384
|
+
tags
|
|
1385
|
+
hints
|
|
1386
|
+
cancellable
|
|
1387
|
+
translations {
|
|
1388
|
+
locale
|
|
1389
|
+
name
|
|
1390
|
+
description
|
|
1391
|
+
form_i18n
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
`;
|
|
984
1396
|
export const EstimatePipelineCostDocument = gql `
|
|
985
1397
|
query EstimatePipelineCost($pipeline_slug: String!, $input: jsonb!) {
|
|
986
1398
|
estimate_pipeline_cost(pipeline_slug: $pipeline_slug, input: $input) {
|
|
@@ -992,7 +1404,7 @@ export const EstimatePipelineCostDocument = gql `
|
|
|
992
1404
|
routed_reason_code
|
|
993
1405
|
routed_reason_params
|
|
994
1406
|
incompatible_models
|
|
995
|
-
|
|
1407
|
+
model_input_schema
|
|
996
1408
|
}
|
|
997
1409
|
}
|
|
998
1410
|
`;
|
|
@@ -1004,9 +1416,12 @@ export const PipelineModelsDocument = gql `
|
|
|
1004
1416
|
) {
|
|
1005
1417
|
model_slug
|
|
1006
1418
|
sort_order
|
|
1419
|
+
input_schema
|
|
1420
|
+
auto_route_order
|
|
1007
1421
|
model {
|
|
1008
1422
|
slug
|
|
1009
1423
|
label
|
|
1424
|
+
public_name
|
|
1010
1425
|
description
|
|
1011
1426
|
provider
|
|
1012
1427
|
translations {
|
|
@@ -1062,6 +1477,10 @@ export const GetPipelineRunDocument = gql `
|
|
|
1062
1477
|
input_schema
|
|
1063
1478
|
ui_schema
|
|
1064
1479
|
cancellable
|
|
1480
|
+
translations {
|
|
1481
|
+
locale
|
|
1482
|
+
name
|
|
1483
|
+
}
|
|
1065
1484
|
}
|
|
1066
1485
|
assets {
|
|
1067
1486
|
id
|
|
@@ -1094,6 +1513,10 @@ export const GetPipelineRunsDocument = gql `
|
|
|
1094
1513
|
input_schema
|
|
1095
1514
|
ui_schema
|
|
1096
1515
|
cancellable
|
|
1516
|
+
translations {
|
|
1517
|
+
locale
|
|
1518
|
+
name
|
|
1519
|
+
}
|
|
1097
1520
|
}
|
|
1098
1521
|
status
|
|
1099
1522
|
input
|
|
@@ -1209,6 +1632,17 @@ export const SetRunShareDocument = gql `
|
|
|
1209
1632
|
}
|
|
1210
1633
|
}
|
|
1211
1634
|
`;
|
|
1635
|
+
export const GetDispatchBlocksDocument = gql `
|
|
1636
|
+
query GetDispatchBlocks {
|
|
1637
|
+
dispatch_blocks {
|
|
1638
|
+
id
|
|
1639
|
+
pipeline_slug
|
|
1640
|
+
user_id
|
|
1641
|
+
reason
|
|
1642
|
+
created_at
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
`;
|
|
1212
1646
|
export const GetPlansDocument = gql `
|
|
1213
1647
|
query GetPlans {
|
|
1214
1648
|
plans(order_by: {sort_order: asc}) {
|
|
@@ -1255,9 +1689,26 @@ export const GetCreditPacksDocument = gql `
|
|
|
1255
1689
|
}
|
|
1256
1690
|
}
|
|
1257
1691
|
`;
|
|
1692
|
+
export const GetLocalizedPricesDocument = gql `
|
|
1693
|
+
query GetLocalizedPrices($country: String!) {
|
|
1694
|
+
localized_product_prices(where: {country: {_eq: $country}}) {
|
|
1695
|
+
product_kind
|
|
1696
|
+
product_slug
|
|
1697
|
+
country
|
|
1698
|
+
currency
|
|
1699
|
+
usd_price_cents
|
|
1700
|
+
converted_price
|
|
1701
|
+
}
|
|
1702
|
+
countries(order_by: {name: asc}) {
|
|
1703
|
+
code
|
|
1704
|
+
name
|
|
1705
|
+
currency
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
`;
|
|
1258
1709
|
export const GetSubscriptionDocument = gql `
|
|
1259
1710
|
query GetSubscription {
|
|
1260
|
-
subscriptions {
|
|
1711
|
+
subscriptions(where: {status: {_in: ["active", "past_due"]}}, limit: 1) {
|
|
1261
1712
|
id
|
|
1262
1713
|
plan_id
|
|
1263
1714
|
plan_version_id
|
|
@@ -1265,6 +1716,7 @@ export const GetSubscriptionDocument = gql `
|
|
|
1265
1716
|
period_start
|
|
1266
1717
|
period_end
|
|
1267
1718
|
cancel_at_period_end
|
|
1719
|
+
metadata
|
|
1268
1720
|
plan {
|
|
1269
1721
|
slug
|
|
1270
1722
|
name
|
|
@@ -1281,6 +1733,42 @@ export const GetSubscriptionDocument = gql `
|
|
|
1281
1733
|
}
|
|
1282
1734
|
}
|
|
1283
1735
|
`;
|
|
1736
|
+
export const GetPendingSubscriptionPlanChangeDocument = gql `
|
|
1737
|
+
query GetPendingSubscriptionPlanChange {
|
|
1738
|
+
subscription_plan_changes(where: {status: {_eq: "pending"}}, limit: 1) {
|
|
1739
|
+
id
|
|
1740
|
+
kind
|
|
1741
|
+
status
|
|
1742
|
+
effective_at
|
|
1743
|
+
to_plan_version {
|
|
1744
|
+
id
|
|
1745
|
+
plan {
|
|
1746
|
+
slug
|
|
1747
|
+
name
|
|
1748
|
+
sort_order
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
`;
|
|
1754
|
+
export const ScheduleSubscriptionPlanChangeDocument = gql `
|
|
1755
|
+
mutation ScheduleSubscriptionPlanChange($plan_slug: String!) {
|
|
1756
|
+
schedule_subscription_plan_change(plan_slug: $plan_slug) {
|
|
1757
|
+
success
|
|
1758
|
+
change_id
|
|
1759
|
+
status
|
|
1760
|
+
effective_at
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
`;
|
|
1764
|
+
export const CancelSubscriptionPlanChangeDocument = gql `
|
|
1765
|
+
mutation CancelSubscriptionPlanChange {
|
|
1766
|
+
cancel_subscription_plan_change {
|
|
1767
|
+
success
|
|
1768
|
+
cancelled
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
`;
|
|
1284
1772
|
export const CreateCheckoutSessionDocument = gql `
|
|
1285
1773
|
mutation CreateCheckoutSession($whop_plan_id: String!, $affiliate_code: String) {
|
|
1286
1774
|
create_checkout_session(
|
|
@@ -1292,6 +1780,43 @@ export const CreateCheckoutSessionDocument = gql `
|
|
|
1292
1780
|
}
|
|
1293
1781
|
}
|
|
1294
1782
|
`;
|
|
1783
|
+
export const CreateSbpPaymentDocument = gql `
|
|
1784
|
+
mutation CreateSBPPayment($provider: String!, $attempt_id: uuid!, $credit_pack_slug: String, $plan_slug: String, $country: String, $recurring_consent: Boolean) {
|
|
1785
|
+
create_sbp_payment(
|
|
1786
|
+
provider: $provider
|
|
1787
|
+
attempt_id: $attempt_id
|
|
1788
|
+
credit_pack_slug: $credit_pack_slug
|
|
1789
|
+
plan_slug: $plan_slug
|
|
1790
|
+
country: $country
|
|
1791
|
+
recurring_consent: $recurring_consent
|
|
1792
|
+
) {
|
|
1793
|
+
success
|
|
1794
|
+
payment_id
|
|
1795
|
+
status
|
|
1796
|
+
payment_uri
|
|
1797
|
+
amount
|
|
1798
|
+
currency
|
|
1799
|
+
credits
|
|
1800
|
+
expires_at
|
|
1801
|
+
detail
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
`;
|
|
1805
|
+
export const GetSbpPaymentDocument = gql `
|
|
1806
|
+
query GetSBPPayment($id: uuid!) {
|
|
1807
|
+
get_sbp_payment_status(payment_id: $id) {
|
|
1808
|
+
success
|
|
1809
|
+
payment_id
|
|
1810
|
+
status
|
|
1811
|
+
payment_uri
|
|
1812
|
+
amount
|
|
1813
|
+
currency
|
|
1814
|
+
credits
|
|
1815
|
+
expires_at
|
|
1816
|
+
detail
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
`;
|
|
1295
1820
|
export const WatchPipelineRunDocument = gql `
|
|
1296
1821
|
subscription WatchPipelineRun($run_id: uuid!) {
|
|
1297
1822
|
pipeline_runs_by_pk(id: $run_id) {
|
|
@@ -1350,6 +1875,13 @@ export const WatchNotificationsDocument = gql `
|
|
|
1350
1875
|
}
|
|
1351
1876
|
}
|
|
1352
1877
|
`;
|
|
1878
|
+
export const WatchBillingUpdatesDocument = gql `
|
|
1879
|
+
subscription WatchBillingUpdates {
|
|
1880
|
+
users(limit: 1) {
|
|
1881
|
+
updated_at
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
`;
|
|
1353
1885
|
export const GetMyApiKeysDocument = gql `
|
|
1354
1886
|
query GetMyApiKeys {
|
|
1355
1887
|
personal_access_tokens(order_by: {created_at: desc}) {
|
|
@@ -1475,6 +2007,12 @@ export function getSdk(requester) {
|
|
|
1475
2007
|
Register(variables, options) {
|
|
1476
2008
|
return requester(RegisterDocument, variables, options);
|
|
1477
2009
|
},
|
|
2010
|
+
CreateAuthHandoffCode(variables, options) {
|
|
2011
|
+
return requester(CreateAuthHandoffCodeDocument, variables, options);
|
|
2012
|
+
},
|
|
2013
|
+
ExchangeAuthHandoffCode(variables, options) {
|
|
2014
|
+
return requester(ExchangeAuthHandoffCodeDocument, variables, options);
|
|
2015
|
+
},
|
|
1478
2016
|
Logout(variables, options) {
|
|
1479
2017
|
return requester(LogoutDocument, variables, options);
|
|
1480
2018
|
},
|
|
@@ -1496,6 +2034,18 @@ export function getSdk(requester) {
|
|
|
1496
2034
|
GetCreditHistory(variables, options) {
|
|
1497
2035
|
return requester(GetCreditHistoryDocument, variables, options);
|
|
1498
2036
|
},
|
|
2037
|
+
CreateCryptoPayment(variables, options) {
|
|
2038
|
+
return requester(CreateCryptoPaymentDocument, variables, options);
|
|
2039
|
+
},
|
|
2040
|
+
GetUserSubscriptionCredits(variables, options) {
|
|
2041
|
+
return requester(GetUserSubscriptionCreditsDocument, variables, options);
|
|
2042
|
+
},
|
|
2043
|
+
GetCryptoPaymentCurrencies(variables, options) {
|
|
2044
|
+
return requester(GetCryptoPaymentCurrenciesDocument, variables, options);
|
|
2045
|
+
},
|
|
2046
|
+
GetCryptoPayment(variables, options) {
|
|
2047
|
+
return requester(GetCryptoPaymentDocument, variables, options);
|
|
2048
|
+
},
|
|
1499
2049
|
Models(variables, options) {
|
|
1500
2050
|
return requester(ModelsDocument, variables, options);
|
|
1501
2051
|
},
|
|
@@ -1508,12 +2058,21 @@ export function getSdk(requester) {
|
|
|
1508
2058
|
MarkAllNotificationsRead(variables, options) {
|
|
1509
2059
|
return requester(MarkAllNotificationsReadDocument, variables, options);
|
|
1510
2060
|
},
|
|
2061
|
+
GetCheckoutProviders(variables, options) {
|
|
2062
|
+
return requester(GetCheckoutProvidersDocument, variables, options);
|
|
2063
|
+
},
|
|
1511
2064
|
GetPipelines(variables, options) {
|
|
1512
2065
|
return requester(GetPipelinesDocument, variables, options);
|
|
1513
2066
|
},
|
|
1514
2067
|
GetPipelinesList(variables, options) {
|
|
1515
2068
|
return requester(GetPipelinesListDocument, variables, options);
|
|
1516
2069
|
},
|
|
2070
|
+
SearchPipelines(variables, options) {
|
|
2071
|
+
return requester(SearchPipelinesDocument, variables, options);
|
|
2072
|
+
},
|
|
2073
|
+
GetPipelineBySlug(variables, options) {
|
|
2074
|
+
return requester(GetPipelineBySlugDocument, variables, options);
|
|
2075
|
+
},
|
|
1517
2076
|
EstimatePipelineCost(variables, options) {
|
|
1518
2077
|
return requester(EstimatePipelineCostDocument, variables, options);
|
|
1519
2078
|
},
|
|
@@ -1544,18 +2103,39 @@ export function getSdk(requester) {
|
|
|
1544
2103
|
SetRunShare(variables, options) {
|
|
1545
2104
|
return requester(SetRunShareDocument, variables, options);
|
|
1546
2105
|
},
|
|
2106
|
+
GetDispatchBlocks(variables, options) {
|
|
2107
|
+
return requester(GetDispatchBlocksDocument, variables, options);
|
|
2108
|
+
},
|
|
1547
2109
|
GetPlans(variables, options) {
|
|
1548
2110
|
return requester(GetPlansDocument, variables, options);
|
|
1549
2111
|
},
|
|
1550
2112
|
GetCreditPacks(variables, options) {
|
|
1551
2113
|
return requester(GetCreditPacksDocument, variables, options);
|
|
1552
2114
|
},
|
|
2115
|
+
GetLocalizedPrices(variables, options) {
|
|
2116
|
+
return requester(GetLocalizedPricesDocument, variables, options);
|
|
2117
|
+
},
|
|
1553
2118
|
GetSubscription(variables, options) {
|
|
1554
2119
|
return requester(GetSubscriptionDocument, variables, options);
|
|
1555
2120
|
},
|
|
2121
|
+
GetPendingSubscriptionPlanChange(variables, options) {
|
|
2122
|
+
return requester(GetPendingSubscriptionPlanChangeDocument, variables, options);
|
|
2123
|
+
},
|
|
2124
|
+
ScheduleSubscriptionPlanChange(variables, options) {
|
|
2125
|
+
return requester(ScheduleSubscriptionPlanChangeDocument, variables, options);
|
|
2126
|
+
},
|
|
2127
|
+
CancelSubscriptionPlanChange(variables, options) {
|
|
2128
|
+
return requester(CancelSubscriptionPlanChangeDocument, variables, options);
|
|
2129
|
+
},
|
|
1556
2130
|
CreateCheckoutSession(variables, options) {
|
|
1557
2131
|
return requester(CreateCheckoutSessionDocument, variables, options);
|
|
1558
2132
|
},
|
|
2133
|
+
CreateSBPPayment(variables, options) {
|
|
2134
|
+
return requester(CreateSbpPaymentDocument, variables, options);
|
|
2135
|
+
},
|
|
2136
|
+
GetSBPPayment(variables, options) {
|
|
2137
|
+
return requester(GetSbpPaymentDocument, variables, options);
|
|
2138
|
+
},
|
|
1559
2139
|
WatchPipelineRun(variables, options) {
|
|
1560
2140
|
return requester(WatchPipelineRunDocument, variables, options);
|
|
1561
2141
|
},
|
|
@@ -1565,6 +2145,9 @@ export function getSdk(requester) {
|
|
|
1565
2145
|
WatchNotifications(variables, options) {
|
|
1566
2146
|
return requester(WatchNotificationsDocument, variables, options);
|
|
1567
2147
|
},
|
|
2148
|
+
WatchBillingUpdates(variables, options) {
|
|
2149
|
+
return requester(WatchBillingUpdatesDocument, variables, options);
|
|
2150
|
+
},
|
|
1568
2151
|
GetMyApiKeys(variables, options) {
|
|
1569
2152
|
return requester(GetMyApiKeysDocument, variables, options);
|
|
1570
2153
|
},
|