@pipe2-ai/sdk 2026.8.0 → 2026.9.1
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 +721 -491
- package/dist/generated/sdk.js +251 -121
- package/package.json +1 -1
package/dist/generated/sdk.js
CHANGED
|
@@ -29,6 +29,34 @@ export var Affiliates_Select_Column;
|
|
|
29
29
|
/** column name */
|
|
30
30
|
Affiliates_Select_Column["WhopAffiliateId"] = "whop_affiliate_id";
|
|
31
31
|
})(Affiliates_Select_Column || (Affiliates_Select_Column = {}));
|
|
32
|
+
/** select columns of table "asset_imports" */
|
|
33
|
+
export var Asset_Imports_Select_Column;
|
|
34
|
+
(function (Asset_Imports_Select_Column) {
|
|
35
|
+
/** column name */
|
|
36
|
+
Asset_Imports_Select_Column["AssetId"] = "asset_id";
|
|
37
|
+
/** column name */
|
|
38
|
+
Asset_Imports_Select_Column["Bytes"] = "bytes";
|
|
39
|
+
/** column name */
|
|
40
|
+
Asset_Imports_Select_Column["Code"] = "code";
|
|
41
|
+
/** column name */
|
|
42
|
+
Asset_Imports_Select_Column["DismissedAt"] = "dismissed_at";
|
|
43
|
+
/** column name */
|
|
44
|
+
Asset_Imports_Select_Column["Error"] = "error";
|
|
45
|
+
/** column name */
|
|
46
|
+
Asset_Imports_Select_Column["FinishedAt"] = "finished_at";
|
|
47
|
+
/** column name */
|
|
48
|
+
Asset_Imports_Select_Column["Id"] = "id";
|
|
49
|
+
/** column name */
|
|
50
|
+
Asset_Imports_Select_Column["Phase"] = "phase";
|
|
51
|
+
/** column name */
|
|
52
|
+
Asset_Imports_Select_Column["SourceUrl"] = "source_url";
|
|
53
|
+
/** column name */
|
|
54
|
+
Asset_Imports_Select_Column["StartedAt"] = "started_at";
|
|
55
|
+
/** column name */
|
|
56
|
+
Asset_Imports_Select_Column["Status"] = "status";
|
|
57
|
+
/** column name */
|
|
58
|
+
Asset_Imports_Select_Column["TotalBytes"] = "total_bytes";
|
|
59
|
+
})(Asset_Imports_Select_Column || (Asset_Imports_Select_Column = {}));
|
|
32
60
|
/** select columns of table "assets" */
|
|
33
61
|
export var Assets_Select_Column;
|
|
34
62
|
(function (Assets_Select_Column) {
|
|
@@ -151,38 +179,6 @@ export var Crypto_Payment_Currencies_Select_Column;
|
|
|
151
179
|
/** column name */
|
|
152
180
|
Crypto_Payment_Currencies_Select_Column["SortOrder"] = "sort_order";
|
|
153
181
|
})(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 = {}));
|
|
186
182
|
/** ordering argument of a cursor */
|
|
187
183
|
export var Cursor_Ordering;
|
|
188
184
|
(function (Cursor_Ordering) {
|
|
@@ -205,24 +201,6 @@ export var Dispatch_Blocks_Select_Column;
|
|
|
205
201
|
/** column name */
|
|
206
202
|
Dispatch_Blocks_Select_Column["UserId"] = "user_id";
|
|
207
203
|
})(Dispatch_Blocks_Select_Column || (Dispatch_Blocks_Select_Column = {}));
|
|
208
|
-
/** select columns of table "executions_visibility" */
|
|
209
|
-
export var Executions_Visibility_Select_Column;
|
|
210
|
-
(function (Executions_Visibility_Select_Column) {
|
|
211
|
-
/** column name */
|
|
212
|
-
Executions_Visibility_Select_Column["CloseTime"] = "close_time";
|
|
213
|
-
/** column name */
|
|
214
|
-
Executions_Visibility_Select_Column["RunId"] = "run_id";
|
|
215
|
-
/** column name */
|
|
216
|
-
Executions_Visibility_Select_Column["StartTime"] = "start_time";
|
|
217
|
-
/** column name */
|
|
218
|
-
Executions_Visibility_Select_Column["Status"] = "status";
|
|
219
|
-
/** column name */
|
|
220
|
-
Executions_Visibility_Select_Column["TaskQueue"] = "task_queue";
|
|
221
|
-
/** column name */
|
|
222
|
-
Executions_Visibility_Select_Column["WorkflowId"] = "workflow_id";
|
|
223
|
-
/** column name */
|
|
224
|
-
Executions_Visibility_Select_Column["WorkflowTypeName"] = "workflow_type_name";
|
|
225
|
-
})(Executions_Visibility_Select_Column || (Executions_Visibility_Select_Column = {}));
|
|
226
204
|
/** select columns of table "fx_rates" */
|
|
227
205
|
export var Fx_Rates_Select_Column;
|
|
228
206
|
(function (Fx_Rates_Select_Column) {
|
|
@@ -295,16 +273,24 @@ export var Models_Select_Column;
|
|
|
295
273
|
/** column name */
|
|
296
274
|
Models_Select_Column["Featured"] = "featured";
|
|
297
275
|
/** column name */
|
|
276
|
+
Models_Select_Column["IconUrl"] = "icon_url";
|
|
277
|
+
/** column name */
|
|
298
278
|
Models_Select_Column["IsActive"] = "is_active";
|
|
299
279
|
/** column name */
|
|
300
280
|
Models_Select_Column["Label"] = "label";
|
|
301
281
|
/** column name */
|
|
302
282
|
Models_Select_Column["LongDescription"] = "long_description";
|
|
303
283
|
/** column name */
|
|
284
|
+
Models_Select_Column["MaxInputImages"] = "max_input_images";
|
|
285
|
+
/** column name */
|
|
286
|
+
Models_Select_Column["PosterUrl"] = "poster_url";
|
|
287
|
+
/** column name */
|
|
304
288
|
Models_Select_Column["Provider"] = "provider";
|
|
305
289
|
/** column name */
|
|
306
290
|
Models_Select_Column["PublicName"] = "public_name";
|
|
307
291
|
/** column name */
|
|
292
|
+
Models_Select_Column["QualityScore"] = "quality_score";
|
|
293
|
+
/** column name */
|
|
308
294
|
Models_Select_Column["Slug"] = "slug";
|
|
309
295
|
/** column name */
|
|
310
296
|
Models_Select_Column["SortOrder"] = "sort_order";
|
|
@@ -391,17 +377,29 @@ export var Personal_Access_Tokens_Select_Column;
|
|
|
391
377
|
/** column name */
|
|
392
378
|
Personal_Access_Tokens_Select_Column["CreatedAt"] = "created_at";
|
|
393
379
|
/** column name */
|
|
380
|
+
Personal_Access_Tokens_Select_Column["CreditLimitMc"] = "credit_limit_mc";
|
|
381
|
+
/** column name */
|
|
394
382
|
Personal_Access_Tokens_Select_Column["ExpiresAt"] = "expires_at";
|
|
395
383
|
/** column name */
|
|
396
384
|
Personal_Access_Tokens_Select_Column["Id"] = "id";
|
|
397
385
|
/** column name */
|
|
398
386
|
Personal_Access_Tokens_Select_Column["LastUsedAt"] = "last_used_at";
|
|
399
387
|
/** column name */
|
|
388
|
+
Personal_Access_Tokens_Select_Column["LifetimeUsedMc"] = "lifetime_used_mc";
|
|
389
|
+
/** column name */
|
|
400
390
|
Personal_Access_Tokens_Select_Column["Name"] = "name";
|
|
401
391
|
/** column name */
|
|
392
|
+
Personal_Access_Tokens_Select_Column["ResetPeriod"] = "reset_period";
|
|
393
|
+
/** column name */
|
|
402
394
|
Personal_Access_Tokens_Select_Column["RevokedAt"] = "revoked_at";
|
|
403
395
|
/** column name */
|
|
404
396
|
Personal_Access_Tokens_Select_Column["Scopes"] = "scopes";
|
|
397
|
+
/** column name */
|
|
398
|
+
Personal_Access_Tokens_Select_Column["WindowReservedMc"] = "window_reserved_mc";
|
|
399
|
+
/** column name */
|
|
400
|
+
Personal_Access_Tokens_Select_Column["WindowStart"] = "window_start";
|
|
401
|
+
/** column name */
|
|
402
|
+
Personal_Access_Tokens_Select_Column["WindowUsedMc"] = "window_used_mc";
|
|
405
403
|
})(Personal_Access_Tokens_Select_Column || (Personal_Access_Tokens_Select_Column = {}));
|
|
406
404
|
/** select columns of table "pipeline_examples" */
|
|
407
405
|
export var Pipeline_Examples_Select_Column;
|
|
@@ -470,6 +468,8 @@ export var Pipeline_Models_Select_Column;
|
|
|
470
468
|
/** select columns of table "pipeline_runs" */
|
|
471
469
|
export var Pipeline_Runs_Select_Column;
|
|
472
470
|
(function (Pipeline_Runs_Select_Column) {
|
|
471
|
+
/** column name */
|
|
472
|
+
Pipeline_Runs_Select_Column["AgentActualCreditsMc"] = "agent_actual_credits_mc";
|
|
473
473
|
/** column name */
|
|
474
474
|
Pipeline_Runs_Select_Column["CompletedAt"] = "completed_at";
|
|
475
475
|
/** column name */
|
|
@@ -485,6 +485,8 @@ export var Pipeline_Runs_Select_Column;
|
|
|
485
485
|
/** column name */
|
|
486
486
|
Pipeline_Runs_Select_Column["Output"] = "output";
|
|
487
487
|
/** column name */
|
|
488
|
+
Pipeline_Runs_Select_Column["ParentRunId"] = "parent_run_id";
|
|
489
|
+
/** column name */
|
|
488
490
|
Pipeline_Runs_Select_Column["PipelineId"] = "pipeline_id";
|
|
489
491
|
/** column name */
|
|
490
492
|
Pipeline_Runs_Select_Column["ShareToken"] = "share_token";
|
|
@@ -958,6 +960,65 @@ export const CreateAssetDocument = gql `
|
|
|
958
960
|
}
|
|
959
961
|
}
|
|
960
962
|
`;
|
|
963
|
+
export const ImportMediaUrlDocument = gql `
|
|
964
|
+
mutation ImportMediaURL($url: String!, $tags: [String!] = []) {
|
|
965
|
+
import_media_url(url: $url, tags: $tags) {
|
|
966
|
+
import_id
|
|
967
|
+
status
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
`;
|
|
971
|
+
export const CancelMediaImportDocument = gql `
|
|
972
|
+
mutation CancelMediaImport($importId: String!) {
|
|
973
|
+
cancel_media_import(import_id: $importId) {
|
|
974
|
+
import_id
|
|
975
|
+
status
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
`;
|
|
979
|
+
export const DismissAssetImportDocument = gql `
|
|
980
|
+
mutation DismissAssetImport($id: uuid!) {
|
|
981
|
+
update_asset_imports(where: {id: {_eq: $id}}, _set: {dismissed_at: "now()"}) {
|
|
982
|
+
affected_rows
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
`;
|
|
986
|
+
export const AssetImportStatusDocument = gql `
|
|
987
|
+
query AssetImportStatus($id: uuid!) {
|
|
988
|
+
asset_imports_by_pk(id: $id) {
|
|
989
|
+
id
|
|
990
|
+
status
|
|
991
|
+
phase
|
|
992
|
+
bytes
|
|
993
|
+
total_bytes
|
|
994
|
+
code
|
|
995
|
+
error
|
|
996
|
+
asset_id
|
|
997
|
+
finished_at
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
`;
|
|
1001
|
+
export const UserAssetImportsDocument = gql `
|
|
1002
|
+
query UserAssetImports($limit: Int = 10, $failedSince: timestamptz!) {
|
|
1003
|
+
asset_imports(
|
|
1004
|
+
where: {_or: [{finished_at: {_is_null: true}}, {status: {_eq: "failed"}, finished_at: {_gte: $failedSince}, dismissed_at: {_is_null: true}}]}
|
|
1005
|
+
order_by: {started_at: desc}
|
|
1006
|
+
limit: $limit
|
|
1007
|
+
) {
|
|
1008
|
+
id
|
|
1009
|
+
source_url
|
|
1010
|
+
status
|
|
1011
|
+
phase
|
|
1012
|
+
bytes
|
|
1013
|
+
total_bytes
|
|
1014
|
+
code
|
|
1015
|
+
error
|
|
1016
|
+
asset_id
|
|
1017
|
+
started_at
|
|
1018
|
+
finished_at
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
`;
|
|
961
1022
|
export const DeleteAssetActionDocument = gql `
|
|
962
1023
|
mutation DeleteAssetAction($id: uuid!) {
|
|
963
1024
|
delete_asset(id: $id) {
|
|
@@ -1084,15 +1145,16 @@ export const GetCreditHistoryDocument = gql `
|
|
|
1084
1145
|
}
|
|
1085
1146
|
}
|
|
1086
1147
|
`;
|
|
1087
|
-
export const
|
|
1088
|
-
mutation
|
|
1089
|
-
|
|
1148
|
+
export const CreatePaymentDocument = gql `
|
|
1149
|
+
mutation CreatePayment($provider: String!, $attempt_id: uuid!, $credit_pack_slug: String, $plan_slug: String, $currency_id: String, $country: String, $recurring_consent: Boolean) {
|
|
1150
|
+
create_payment(
|
|
1090
1151
|
provider: $provider
|
|
1091
1152
|
attempt_id: $attempt_id
|
|
1092
1153
|
credit_pack_slug: $credit_pack_slug
|
|
1093
1154
|
plan_slug: $plan_slug
|
|
1094
1155
|
currency_id: $currency_id
|
|
1095
1156
|
country: $country
|
|
1157
|
+
recurring_consent: $recurring_consent
|
|
1096
1158
|
) {
|
|
1097
1159
|
success
|
|
1098
1160
|
payment_id
|
|
@@ -1116,6 +1178,8 @@ export const CreateCryptoPaymentDocument = gql `
|
|
|
1116
1178
|
amount_paid_usdt
|
|
1117
1179
|
granted_at
|
|
1118
1180
|
tx_hash
|
|
1181
|
+
currency
|
|
1182
|
+
detail
|
|
1119
1183
|
}
|
|
1120
1184
|
}
|
|
1121
1185
|
`;
|
|
@@ -1144,9 +1208,9 @@ export const GetCryptoPaymentCurrenciesDocument = gql `
|
|
|
1144
1208
|
}
|
|
1145
1209
|
}
|
|
1146
1210
|
`;
|
|
1147
|
-
export const
|
|
1148
|
-
query
|
|
1149
|
-
|
|
1211
|
+
export const GetPaymentDocument = gql `
|
|
1212
|
+
query GetPayment($provider: String!, $id: uuid!) {
|
|
1213
|
+
get_payment_status(provider: $provider, payment_id: $id) {
|
|
1150
1214
|
success
|
|
1151
1215
|
payment_id
|
|
1152
1216
|
provider
|
|
@@ -1169,6 +1233,24 @@ export const GetCryptoPaymentDocument = gql `
|
|
|
1169
1233
|
top_up_qr_code_data_url
|
|
1170
1234
|
required_confirmations
|
|
1171
1235
|
confirmations
|
|
1236
|
+
currency
|
|
1237
|
+
detail
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
`;
|
|
1241
|
+
export const GetPaymentsDocument = gql `
|
|
1242
|
+
query GetPayments($limit: Int = 50, $offset: Int = 0) {
|
|
1243
|
+
payments(limit: $limit, offset: $offset) {
|
|
1244
|
+
payment_id
|
|
1245
|
+
provider
|
|
1246
|
+
kind
|
|
1247
|
+
status
|
|
1248
|
+
credits
|
|
1249
|
+
amount
|
|
1250
|
+
currency
|
|
1251
|
+
expires_at
|
|
1252
|
+
granted_at
|
|
1253
|
+
created_at
|
|
1172
1254
|
}
|
|
1173
1255
|
}
|
|
1174
1256
|
`;
|
|
@@ -1185,7 +1267,11 @@ export const ModelsDocument = gql `
|
|
|
1185
1267
|
}
|
|
1186
1268
|
description
|
|
1187
1269
|
long_description
|
|
1270
|
+
icon_url
|
|
1271
|
+
poster_url
|
|
1272
|
+
max_input_images
|
|
1188
1273
|
featured
|
|
1274
|
+
quality_score
|
|
1189
1275
|
sort_order
|
|
1190
1276
|
capabilities {
|
|
1191
1277
|
capability_slug
|
|
@@ -1424,6 +1510,10 @@ export const PipelineModelsDocument = gql `
|
|
|
1424
1510
|
public_name
|
|
1425
1511
|
description
|
|
1426
1512
|
provider
|
|
1513
|
+
provider_info {
|
|
1514
|
+
label
|
|
1515
|
+
}
|
|
1516
|
+
icon_url
|
|
1427
1517
|
translations {
|
|
1428
1518
|
locale
|
|
1429
1519
|
description
|
|
@@ -1466,6 +1556,8 @@ export const GetPipelineRunDocument = gql `
|
|
|
1466
1556
|
output
|
|
1467
1557
|
error_message
|
|
1468
1558
|
credits_charged
|
|
1559
|
+
parent_run_id
|
|
1560
|
+
agent_actual_credits_mc
|
|
1469
1561
|
created_at
|
|
1470
1562
|
completed_at
|
|
1471
1563
|
share_token
|
|
@@ -1523,6 +1615,8 @@ export const GetPipelineRunsDocument = gql `
|
|
|
1523
1615
|
output
|
|
1524
1616
|
error_message
|
|
1525
1617
|
credits_charged
|
|
1618
|
+
parent_run_id
|
|
1619
|
+
agent_actual_credits_mc
|
|
1526
1620
|
created_at
|
|
1527
1621
|
completed_at
|
|
1528
1622
|
share_token
|
|
@@ -1572,6 +1666,8 @@ export const GetPipelineRunsBySlugDocument = gql `
|
|
|
1572
1666
|
output
|
|
1573
1667
|
error_message
|
|
1574
1668
|
credits_charged
|
|
1669
|
+
parent_run_id
|
|
1670
|
+
agent_actual_credits_mc
|
|
1575
1671
|
created_at
|
|
1576
1672
|
completed_at
|
|
1577
1673
|
share_token
|
|
@@ -1769,54 +1865,6 @@ export const CancelSubscriptionPlanChangeDocument = gql `
|
|
|
1769
1865
|
}
|
|
1770
1866
|
}
|
|
1771
1867
|
`;
|
|
1772
|
-
export const CreateCheckoutSessionDocument = gql `
|
|
1773
|
-
mutation CreateCheckoutSession($whop_plan_id: String!, $affiliate_code: String) {
|
|
1774
|
-
create_checkout_session(
|
|
1775
|
-
whop_plan_id: $whop_plan_id
|
|
1776
|
-
affiliate_code: $affiliate_code
|
|
1777
|
-
) {
|
|
1778
|
-
success
|
|
1779
|
-
url
|
|
1780
|
-
}
|
|
1781
|
-
}
|
|
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
|
-
`;
|
|
1820
1868
|
export const WatchPipelineRunDocument = gql `
|
|
1821
1869
|
subscription WatchPipelineRun($run_id: uuid!) {
|
|
1822
1870
|
pipeline_runs_by_pk(id: $run_id) {
|
|
@@ -1826,6 +1874,8 @@ export const WatchPipelineRunDocument = gql `
|
|
|
1826
1874
|
output
|
|
1827
1875
|
error_message
|
|
1828
1876
|
credits_charged
|
|
1877
|
+
parent_run_id
|
|
1878
|
+
agent_actual_credits_mc
|
|
1829
1879
|
created_at
|
|
1830
1880
|
completed_at
|
|
1831
1881
|
pipeline {
|
|
@@ -1862,6 +1912,50 @@ export const WatchActivePipelineRunsDocument = gql `
|
|
|
1862
1912
|
}
|
|
1863
1913
|
}
|
|
1864
1914
|
`;
|
|
1915
|
+
export const WatchPipelineRunsBySlugDocument = gql `
|
|
1916
|
+
subscription WatchPipelineRunsBySlug($slug: String!, $limit: Int = 10, $offset: Int = 0) {
|
|
1917
|
+
pipeline_runs(
|
|
1918
|
+
where: {pipeline: {slug: {_eq: $slug}}}
|
|
1919
|
+
order_by: {created_at: desc}
|
|
1920
|
+
limit: $limit
|
|
1921
|
+
offset: $offset
|
|
1922
|
+
) {
|
|
1923
|
+
id
|
|
1924
|
+
status
|
|
1925
|
+
pipeline {
|
|
1926
|
+
name
|
|
1927
|
+
slug
|
|
1928
|
+
output_schema
|
|
1929
|
+
input_schema
|
|
1930
|
+
ui_schema
|
|
1931
|
+
cancellable
|
|
1932
|
+
}
|
|
1933
|
+
input
|
|
1934
|
+
output
|
|
1935
|
+
error_message
|
|
1936
|
+
credits_charged
|
|
1937
|
+
created_at
|
|
1938
|
+
completed_at
|
|
1939
|
+
share_token
|
|
1940
|
+
share_watermark
|
|
1941
|
+
assets {
|
|
1942
|
+
id
|
|
1943
|
+
type
|
|
1944
|
+
url
|
|
1945
|
+
thumbnail_url
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
`;
|
|
1950
|
+
export const WatchPipelineRunCountBySlugDocument = gql `
|
|
1951
|
+
subscription WatchPipelineRunCountBySlug($slug: String!) {
|
|
1952
|
+
pipeline_runs_aggregate(where: {pipeline: {slug: {_eq: $slug}}}) {
|
|
1953
|
+
aggregate {
|
|
1954
|
+
count
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
`;
|
|
1865
1959
|
export const WatchNotificationsDocument = gql `
|
|
1866
1960
|
subscription WatchNotifications($limit: Int!) {
|
|
1867
1961
|
notifications(order_by: {created_at: desc}, limit: $limit) {
|
|
@@ -1883,8 +1977,12 @@ export const WatchBillingUpdatesDocument = gql `
|
|
|
1883
1977
|
}
|
|
1884
1978
|
`;
|
|
1885
1979
|
export const GetMyApiKeysDocument = gql `
|
|
1886
|
-
query GetMyApiKeys {
|
|
1887
|
-
personal_access_tokens(
|
|
1980
|
+
query GetMyApiKeys($limit: Int!, $offset: Int!) {
|
|
1981
|
+
personal_access_tokens(
|
|
1982
|
+
order_by: [{created_at: desc}, {id: desc}]
|
|
1983
|
+
limit: $limit
|
|
1984
|
+
offset: $offset
|
|
1985
|
+
) {
|
|
1888
1986
|
id
|
|
1889
1987
|
name
|
|
1890
1988
|
scopes
|
|
@@ -1892,12 +1990,29 @@ export const GetMyApiKeysDocument = gql `
|
|
|
1892
1990
|
created_at
|
|
1893
1991
|
expires_at
|
|
1894
1992
|
revoked_at
|
|
1993
|
+
credit_limit_mc
|
|
1994
|
+
reset_period
|
|
1995
|
+
window_start
|
|
1996
|
+
window_used_mc
|
|
1997
|
+
window_reserved_mc
|
|
1998
|
+
lifetime_used_mc
|
|
1999
|
+
}
|
|
2000
|
+
personal_access_tokens_aggregate {
|
|
2001
|
+
aggregate {
|
|
2002
|
+
count
|
|
2003
|
+
}
|
|
1895
2004
|
}
|
|
1896
2005
|
}
|
|
1897
2006
|
`;
|
|
1898
2007
|
export const CreatePersonalAccessTokenDocument = gql `
|
|
1899
|
-
mutation CreatePersonalAccessToken($name: String!) {
|
|
1900
|
-
create_personal_access_token(
|
|
2008
|
+
mutation CreatePersonalAccessToken($name: String!, $scopes: [String!], $creditLimit: Int, $resetPeriod: String, $expiresInDays: Int) {
|
|
2009
|
+
create_personal_access_token(
|
|
2010
|
+
name: $name
|
|
2011
|
+
scopes: $scopes
|
|
2012
|
+
credit_limit: $creditLimit
|
|
2013
|
+
reset_period: $resetPeriod
|
|
2014
|
+
expires_in_days: $expiresInDays
|
|
2015
|
+
) {
|
|
1901
2016
|
success
|
|
1902
2017
|
id
|
|
1903
2018
|
token
|
|
@@ -1995,6 +2110,21 @@ export function getSdk(requester) {
|
|
|
1995
2110
|
CreateAsset(variables, options) {
|
|
1996
2111
|
return requester(CreateAssetDocument, variables, options);
|
|
1997
2112
|
},
|
|
2113
|
+
ImportMediaURL(variables, options) {
|
|
2114
|
+
return requester(ImportMediaUrlDocument, variables, options);
|
|
2115
|
+
},
|
|
2116
|
+
CancelMediaImport(variables, options) {
|
|
2117
|
+
return requester(CancelMediaImportDocument, variables, options);
|
|
2118
|
+
},
|
|
2119
|
+
DismissAssetImport(variables, options) {
|
|
2120
|
+
return requester(DismissAssetImportDocument, variables, options);
|
|
2121
|
+
},
|
|
2122
|
+
AssetImportStatus(variables, options) {
|
|
2123
|
+
return requester(AssetImportStatusDocument, variables, options);
|
|
2124
|
+
},
|
|
2125
|
+
UserAssetImports(variables, options) {
|
|
2126
|
+
return requester(UserAssetImportsDocument, variables, options);
|
|
2127
|
+
},
|
|
1998
2128
|
DeleteAssetAction(variables, options) {
|
|
1999
2129
|
return requester(DeleteAssetActionDocument, variables, options);
|
|
2000
2130
|
},
|
|
@@ -2034,8 +2164,8 @@ export function getSdk(requester) {
|
|
|
2034
2164
|
GetCreditHistory(variables, options) {
|
|
2035
2165
|
return requester(GetCreditHistoryDocument, variables, options);
|
|
2036
2166
|
},
|
|
2037
|
-
|
|
2038
|
-
return requester(
|
|
2167
|
+
CreatePayment(variables, options) {
|
|
2168
|
+
return requester(CreatePaymentDocument, variables, options);
|
|
2039
2169
|
},
|
|
2040
2170
|
GetUserSubscriptionCredits(variables, options) {
|
|
2041
2171
|
return requester(GetUserSubscriptionCreditsDocument, variables, options);
|
|
@@ -2043,8 +2173,11 @@ export function getSdk(requester) {
|
|
|
2043
2173
|
GetCryptoPaymentCurrencies(variables, options) {
|
|
2044
2174
|
return requester(GetCryptoPaymentCurrenciesDocument, variables, options);
|
|
2045
2175
|
},
|
|
2046
|
-
|
|
2047
|
-
return requester(
|
|
2176
|
+
GetPayment(variables, options) {
|
|
2177
|
+
return requester(GetPaymentDocument, variables, options);
|
|
2178
|
+
},
|
|
2179
|
+
GetPayments(variables, options) {
|
|
2180
|
+
return requester(GetPaymentsDocument, variables, options);
|
|
2048
2181
|
},
|
|
2049
2182
|
Models(variables, options) {
|
|
2050
2183
|
return requester(ModelsDocument, variables, options);
|
|
@@ -2127,21 +2260,18 @@ export function getSdk(requester) {
|
|
|
2127
2260
|
CancelSubscriptionPlanChange(variables, options) {
|
|
2128
2261
|
return requester(CancelSubscriptionPlanChangeDocument, variables, options);
|
|
2129
2262
|
},
|
|
2130
|
-
CreateCheckoutSession(variables, options) {
|
|
2131
|
-
return requester(CreateCheckoutSessionDocument, variables, options);
|
|
2132
|
-
},
|
|
2133
|
-
CreateSBPPayment(variables, options) {
|
|
2134
|
-
return requester(CreateSbpPaymentDocument, variables, options);
|
|
2135
|
-
},
|
|
2136
|
-
GetSBPPayment(variables, options) {
|
|
2137
|
-
return requester(GetSbpPaymentDocument, variables, options);
|
|
2138
|
-
},
|
|
2139
2263
|
WatchPipelineRun(variables, options) {
|
|
2140
2264
|
return requester(WatchPipelineRunDocument, variables, options);
|
|
2141
2265
|
},
|
|
2142
2266
|
WatchActivePipelineRuns(variables, options) {
|
|
2143
2267
|
return requester(WatchActivePipelineRunsDocument, variables, options);
|
|
2144
2268
|
},
|
|
2269
|
+
WatchPipelineRunsBySlug(variables, options) {
|
|
2270
|
+
return requester(WatchPipelineRunsBySlugDocument, variables, options);
|
|
2271
|
+
},
|
|
2272
|
+
WatchPipelineRunCountBySlug(variables, options) {
|
|
2273
|
+
return requester(WatchPipelineRunCountBySlugDocument, variables, options);
|
|
2274
|
+
},
|
|
2145
2275
|
WatchNotifications(variables, options) {
|
|
2146
2276
|
return requester(WatchNotificationsDocument, variables, options);
|
|
2147
2277
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipe2-ai/sdk",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.09.1",
|
|
4
4
|
"description": "Typed TypeScript client for the Pipe2.ai API — run AI media pipelines (video generation, image generation, text-to-speech, video reframing) and track their results.",
|
|
5
5
|
"homepage": "https://pipe2.ai",
|
|
6
6
|
"repository": {
|