@pipe2-ai/sdk 2026.7.1 → 2026.7.3
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 +1563 -137
- package/dist/generated/sdk.js +304 -61
- package/package.json +14 -1
package/dist/generated/sdk.js
CHANGED
|
@@ -55,6 +55,18 @@ 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 "credit_pack_translations" */
|
|
59
|
+
export var Credit_Pack_Translations_Select_Column;
|
|
60
|
+
(function (Credit_Pack_Translations_Select_Column) {
|
|
61
|
+
/** column name */
|
|
62
|
+
Credit_Pack_Translations_Select_Column["CreditPackId"] = "credit_pack_id";
|
|
63
|
+
/** column name */
|
|
64
|
+
Credit_Pack_Translations_Select_Column["Locale"] = "locale";
|
|
65
|
+
/** column name */
|
|
66
|
+
Credit_Pack_Translations_Select_Column["Name"] = "name";
|
|
67
|
+
/** column name */
|
|
68
|
+
Credit_Pack_Translations_Select_Column["UpdatedAt"] = "updated_at";
|
|
69
|
+
})(Credit_Pack_Translations_Select_Column || (Credit_Pack_Translations_Select_Column = {}));
|
|
58
70
|
/** select columns of table "credit_pack_versions" */
|
|
59
71
|
export var Credit_Pack_Versions_Select_Column;
|
|
60
72
|
(function (Credit_Pack_Versions_Select_Column) {
|
|
@@ -115,18 +127,62 @@ export var Executions_Visibility_Select_Column;
|
|
|
115
127
|
/** column name */
|
|
116
128
|
Executions_Visibility_Select_Column["WorkflowTypeName"] = "workflow_type_name";
|
|
117
129
|
})(Executions_Visibility_Select_Column || (Executions_Visibility_Select_Column = {}));
|
|
130
|
+
/** select columns of table "locales" */
|
|
131
|
+
export var Locales_Select_Column;
|
|
132
|
+
(function (Locales_Select_Column) {
|
|
133
|
+
/** column name */
|
|
134
|
+
Locales_Select_Column["Code"] = "code";
|
|
135
|
+
/** column name */
|
|
136
|
+
Locales_Select_Column["Dir"] = "dir";
|
|
137
|
+
/** column name */
|
|
138
|
+
Locales_Select_Column["Label"] = "label";
|
|
139
|
+
/** column name */
|
|
140
|
+
Locales_Select_Column["NativeName"] = "native_name";
|
|
141
|
+
/** column name */
|
|
142
|
+
Locales_Select_Column["SortOrder"] = "sort_order";
|
|
143
|
+
})(Locales_Select_Column || (Locales_Select_Column = {}));
|
|
144
|
+
/** select columns of table "model_capabilities" */
|
|
145
|
+
export var Model_Capabilities_Select_Column;
|
|
146
|
+
(function (Model_Capabilities_Select_Column) {
|
|
147
|
+
/** column name */
|
|
148
|
+
Model_Capabilities_Select_Column["CapabilitySlug"] = "capability_slug";
|
|
149
|
+
/** column name */
|
|
150
|
+
Model_Capabilities_Select_Column["ModelSlug"] = "model_slug";
|
|
151
|
+
})(Model_Capabilities_Select_Column || (Model_Capabilities_Select_Column = {}));
|
|
152
|
+
/** select columns of table "model_translations" */
|
|
153
|
+
export var Model_Translations_Select_Column;
|
|
154
|
+
(function (Model_Translations_Select_Column) {
|
|
155
|
+
/** column name */
|
|
156
|
+
Model_Translations_Select_Column["Description"] = "description";
|
|
157
|
+
/** column name */
|
|
158
|
+
Model_Translations_Select_Column["Locale"] = "locale";
|
|
159
|
+
/** column name */
|
|
160
|
+
Model_Translations_Select_Column["LongDescription"] = "long_description";
|
|
161
|
+
/** column name */
|
|
162
|
+
Model_Translations_Select_Column["ModelSlug"] = "model_slug";
|
|
163
|
+
/** column name */
|
|
164
|
+
Model_Translations_Select_Column["UpdatedAt"] = "updated_at";
|
|
165
|
+
})(Model_Translations_Select_Column || (Model_Translations_Select_Column = {}));
|
|
118
166
|
/** select columns of table "models" */
|
|
119
167
|
export var Models_Select_Column;
|
|
120
168
|
(function (Models_Select_Column) {
|
|
169
|
+
/** column name */
|
|
170
|
+
Models_Select_Column["Aliases"] = "aliases";
|
|
121
171
|
/** column name */
|
|
122
172
|
Models_Select_Column["Description"] = "description";
|
|
123
173
|
/** column name */
|
|
174
|
+
Models_Select_Column["Featured"] = "featured";
|
|
175
|
+
/** column name */
|
|
124
176
|
Models_Select_Column["IsActive"] = "is_active";
|
|
125
177
|
/** column name */
|
|
126
178
|
Models_Select_Column["Label"] = "label";
|
|
127
179
|
/** column name */
|
|
180
|
+
Models_Select_Column["LongDescription"] = "long_description";
|
|
181
|
+
/** column name */
|
|
128
182
|
Models_Select_Column["Provider"] = "provider";
|
|
129
183
|
/** column name */
|
|
184
|
+
Models_Select_Column["PublicName"] = "public_name";
|
|
185
|
+
/** column name */
|
|
130
186
|
Models_Select_Column["Slug"] = "slug";
|
|
131
187
|
/** column name */
|
|
132
188
|
Models_Select_Column["SortOrder"] = "sort_order";
|
|
@@ -183,6 +239,56 @@ export var Personal_Access_Tokens_Select_Column;
|
|
|
183
239
|
/** column name */
|
|
184
240
|
Personal_Access_Tokens_Select_Column["Scopes"] = "scopes";
|
|
185
241
|
})(Personal_Access_Tokens_Select_Column || (Personal_Access_Tokens_Select_Column = {}));
|
|
242
|
+
/** select columns of table "pipeline_examples" */
|
|
243
|
+
export var Pipeline_Examples_Select_Column;
|
|
244
|
+
(function (Pipeline_Examples_Select_Column) {
|
|
245
|
+
/** column name */
|
|
246
|
+
Pipeline_Examples_Select_Column["Caption"] = "caption";
|
|
247
|
+
/** column name */
|
|
248
|
+
Pipeline_Examples_Select_Column["Content"] = "content";
|
|
249
|
+
/** column name */
|
|
250
|
+
Pipeline_Examples_Select_Column["CreatedAt"] = "created_at";
|
|
251
|
+
/** column name */
|
|
252
|
+
Pipeline_Examples_Select_Column["Id"] = "id";
|
|
253
|
+
/** column name */
|
|
254
|
+
Pipeline_Examples_Select_Column["InputKind"] = "input_kind";
|
|
255
|
+
/** column name */
|
|
256
|
+
Pipeline_Examples_Select_Column["InputUrl"] = "input_url";
|
|
257
|
+
/** column name */
|
|
258
|
+
Pipeline_Examples_Select_Column["Inputs"] = "inputs";
|
|
259
|
+
/** column name */
|
|
260
|
+
Pipeline_Examples_Select_Column["IsActive"] = "is_active";
|
|
261
|
+
/** column name */
|
|
262
|
+
Pipeline_Examples_Select_Column["ModelSlug"] = "model_slug";
|
|
263
|
+
/** column name */
|
|
264
|
+
Pipeline_Examples_Select_Column["OutputKind"] = "output_kind";
|
|
265
|
+
/** column name */
|
|
266
|
+
Pipeline_Examples_Select_Column["OutputUrl"] = "output_url";
|
|
267
|
+
/** column name */
|
|
268
|
+
Pipeline_Examples_Select_Column["PipelineId"] = "pipeline_id";
|
|
269
|
+
/** column name */
|
|
270
|
+
Pipeline_Examples_Select_Column["SortOrder"] = "sort_order";
|
|
271
|
+
/** column name */
|
|
272
|
+
Pipeline_Examples_Select_Column["ThumbnailUrl"] = "thumbnail_url";
|
|
273
|
+
/** column name */
|
|
274
|
+
Pipeline_Examples_Select_Column["Title"] = "title";
|
|
275
|
+
/** column name */
|
|
276
|
+
Pipeline_Examples_Select_Column["UpdatedAt"] = "updated_at";
|
|
277
|
+
})(Pipeline_Examples_Select_Column || (Pipeline_Examples_Select_Column = {}));
|
|
278
|
+
/** select columns of table "pipeline_examples_translations" */
|
|
279
|
+
export var Pipeline_Examples_Translations_Select_Column;
|
|
280
|
+
(function (Pipeline_Examples_Translations_Select_Column) {
|
|
281
|
+
/** column name */
|
|
282
|
+
Pipeline_Examples_Translations_Select_Column["Caption"] = "caption";
|
|
283
|
+
/** column name */
|
|
284
|
+
Pipeline_Examples_Translations_Select_Column["ExampleId"] = "example_id";
|
|
285
|
+
/** column name */
|
|
286
|
+
Pipeline_Examples_Translations_Select_Column["Locale"] = "locale";
|
|
287
|
+
/** column name */
|
|
288
|
+
Pipeline_Examples_Translations_Select_Column["Title"] = "title";
|
|
289
|
+
/** column name */
|
|
290
|
+
Pipeline_Examples_Translations_Select_Column["UpdatedAt"] = "updated_at";
|
|
291
|
+
})(Pipeline_Examples_Translations_Select_Column || (Pipeline_Examples_Translations_Select_Column = {}));
|
|
186
292
|
/** select columns of table "pipeline_models" */
|
|
187
293
|
export var Pipeline_Models_Select_Column;
|
|
188
294
|
(function (Pipeline_Models_Select_Column) {
|
|
@@ -213,12 +319,38 @@ export var Pipeline_Runs_Select_Column;
|
|
|
213
319
|
/** column name */
|
|
214
320
|
Pipeline_Runs_Select_Column["PipelineId"] = "pipeline_id";
|
|
215
321
|
/** column name */
|
|
322
|
+
Pipeline_Runs_Select_Column["ShareToken"] = "share_token";
|
|
323
|
+
/** column name */
|
|
324
|
+
Pipeline_Runs_Select_Column["ShareWatermark"] = "share_watermark";
|
|
325
|
+
/** column name */
|
|
216
326
|
Pipeline_Runs_Select_Column["StartedAt"] = "started_at";
|
|
217
327
|
/** column name */
|
|
218
328
|
Pipeline_Runs_Select_Column["Status"] = "status";
|
|
219
329
|
/** column name */
|
|
220
330
|
Pipeline_Runs_Select_Column["TemporalWorkflowId"] = "temporal_workflow_id";
|
|
221
331
|
})(Pipeline_Runs_Select_Column || (Pipeline_Runs_Select_Column = {}));
|
|
332
|
+
/** select columns of table "pipeline_translations" */
|
|
333
|
+
export var Pipeline_Translations_Select_Column;
|
|
334
|
+
(function (Pipeline_Translations_Select_Column) {
|
|
335
|
+
/** column name */
|
|
336
|
+
Pipeline_Translations_Select_Column["Description"] = "description";
|
|
337
|
+
/** column name */
|
|
338
|
+
Pipeline_Translations_Select_Column["FormI18n"] = "form_i18n";
|
|
339
|
+
/** column name */
|
|
340
|
+
Pipeline_Translations_Select_Column["Hints"] = "hints";
|
|
341
|
+
/** column name */
|
|
342
|
+
Pipeline_Translations_Select_Column["Locale"] = "locale";
|
|
343
|
+
/** column name */
|
|
344
|
+
Pipeline_Translations_Select_Column["Name"] = "name";
|
|
345
|
+
/** column name */
|
|
346
|
+
Pipeline_Translations_Select_Column["PipelineId"] = "pipeline_id";
|
|
347
|
+
/** column name */
|
|
348
|
+
Pipeline_Translations_Select_Column["SeoContent"] = "seo_content";
|
|
349
|
+
/** column name */
|
|
350
|
+
Pipeline_Translations_Select_Column["SeoFaq"] = "seo_faq";
|
|
351
|
+
/** column name */
|
|
352
|
+
Pipeline_Translations_Select_Column["UpdatedAt"] = "updated_at";
|
|
353
|
+
})(Pipeline_Translations_Select_Column || (Pipeline_Translations_Select_Column = {}));
|
|
222
354
|
/** select columns of table "pipelines" */
|
|
223
355
|
export var Pipelines_Select_Column;
|
|
224
356
|
(function (Pipelines_Select_Column) {
|
|
@@ -261,6 +393,22 @@ export var Pipelines_Select_Column;
|
|
|
261
393
|
/** column name */
|
|
262
394
|
Pipelines_Select_Column["UiSchema"] = "ui_schema";
|
|
263
395
|
})(Pipelines_Select_Column || (Pipelines_Select_Column = {}));
|
|
396
|
+
/** select columns of table "plan_translations" */
|
|
397
|
+
export var Plan_Translations_Select_Column;
|
|
398
|
+
(function (Plan_Translations_Select_Column) {
|
|
399
|
+
/** column name */
|
|
400
|
+
Plan_Translations_Select_Column["Description"] = "description";
|
|
401
|
+
/** column name */
|
|
402
|
+
Plan_Translations_Select_Column["Features"] = "features";
|
|
403
|
+
/** column name */
|
|
404
|
+
Plan_Translations_Select_Column["Locale"] = "locale";
|
|
405
|
+
/** column name */
|
|
406
|
+
Plan_Translations_Select_Column["Name"] = "name";
|
|
407
|
+
/** column name */
|
|
408
|
+
Plan_Translations_Select_Column["PlanId"] = "plan_id";
|
|
409
|
+
/** column name */
|
|
410
|
+
Plan_Translations_Select_Column["UpdatedAt"] = "updated_at";
|
|
411
|
+
})(Plan_Translations_Select_Column || (Plan_Translations_Select_Column = {}));
|
|
264
412
|
/** select columns of table "plan_versions" */
|
|
265
413
|
export var Plan_Versions_Select_Column;
|
|
266
414
|
(function (Plan_Versions_Select_Column) {
|
|
@@ -303,6 +451,14 @@ export var Plans_Select_Column;
|
|
|
303
451
|
/** column name */
|
|
304
452
|
Plans_Select_Column["SortOrder"] = "sort_order";
|
|
305
453
|
})(Plans_Select_Column || (Plans_Select_Column = {}));
|
|
454
|
+
/** select columns of table "providers" */
|
|
455
|
+
export var Providers_Select_Column;
|
|
456
|
+
(function (Providers_Select_Column) {
|
|
457
|
+
/** column name */
|
|
458
|
+
Providers_Select_Column["Label"] = "label";
|
|
459
|
+
/** column name */
|
|
460
|
+
Providers_Select_Column["Slug"] = "slug";
|
|
461
|
+
})(Providers_Select_Column || (Providers_Select_Column = {}));
|
|
306
462
|
/** select columns of table "subscriptions" */
|
|
307
463
|
export var Subscriptions_Select_Column;
|
|
308
464
|
(function (Subscriptions_Select_Column) {
|
|
@@ -597,58 +753,35 @@ export const UpdateAssetTagsDocument = gql `
|
|
|
597
753
|
}
|
|
598
754
|
}
|
|
599
755
|
`;
|
|
600
|
-
export const
|
|
601
|
-
mutation
|
|
602
|
-
|
|
603
|
-
id
|
|
604
|
-
csrf_token
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
`;
|
|
608
|
-
export const SubmitLoginFlowDocument = gql `
|
|
609
|
-
mutation SubmitLoginFlow($flowId: String!, $email: String!, $password: String!, $csrf_token: String!, $referral_code: String) {
|
|
610
|
-
submit_login_flow(
|
|
611
|
-
flowId: $flowId
|
|
612
|
-
email: $email
|
|
613
|
-
password: $password
|
|
614
|
-
csrf_token: $csrf_token
|
|
615
|
-
referral_code: $referral_code
|
|
616
|
-
) {
|
|
756
|
+
export const LoginDocument = gql `
|
|
757
|
+
mutation Login($email: String!, $password: String!, $referral_code: String) {
|
|
758
|
+
login(email: $email, password: $password, referral_code: $referral_code) {
|
|
617
759
|
success
|
|
618
760
|
message
|
|
619
761
|
token
|
|
620
|
-
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
`;
|
|
624
|
-
export const InitSignupFlowDocument = gql `
|
|
625
|
-
mutation InitSignupFlow {
|
|
626
|
-
init_signup_flow {
|
|
627
|
-
id
|
|
628
|
-
csrf_token
|
|
762
|
+
affiliate_id
|
|
629
763
|
}
|
|
630
764
|
}
|
|
631
765
|
`;
|
|
632
|
-
export const
|
|
633
|
-
mutation
|
|
634
|
-
|
|
635
|
-
flowId: $flowId
|
|
766
|
+
export const RegisterDocument = gql `
|
|
767
|
+
mutation Register($email: String!, $password: String!, $name: String!, $referral_code: String) {
|
|
768
|
+
register(
|
|
636
769
|
email: $email
|
|
637
770
|
password: $password
|
|
638
771
|
name: $name
|
|
639
|
-
|
|
772
|
+
referral_code: $referral_code
|
|
640
773
|
) {
|
|
641
774
|
success
|
|
642
775
|
message
|
|
643
776
|
token
|
|
777
|
+
affiliate_id
|
|
644
778
|
}
|
|
645
779
|
}
|
|
646
780
|
`;
|
|
647
|
-
export const
|
|
648
|
-
mutation
|
|
649
|
-
|
|
781
|
+
export const LogoutDocument = gql `
|
|
782
|
+
mutation Logout {
|
|
783
|
+
logout {
|
|
650
784
|
success
|
|
651
|
-
redirect_url
|
|
652
785
|
}
|
|
653
786
|
}
|
|
654
787
|
`;
|
|
@@ -668,21 +801,17 @@ export const SubmitVerificationCodeDocument = gql `
|
|
|
668
801
|
}
|
|
669
802
|
}
|
|
670
803
|
`;
|
|
671
|
-
export const
|
|
672
|
-
mutation
|
|
673
|
-
|
|
804
|
+
export const RequestPasswordResetDocument = gql `
|
|
805
|
+
mutation RequestPasswordReset($email: String!) {
|
|
806
|
+
request_password_reset(email: $email) {
|
|
674
807
|
success
|
|
675
808
|
message
|
|
676
809
|
}
|
|
677
810
|
}
|
|
678
811
|
`;
|
|
679
|
-
export const
|
|
680
|
-
mutation
|
|
681
|
-
|
|
682
|
-
flowId: $flowId
|
|
683
|
-
password: $password
|
|
684
|
-
csrf_token: $csrf_token
|
|
685
|
-
) {
|
|
812
|
+
export const ResetPasswordDocument = gql `
|
|
813
|
+
mutation ResetPassword($email: String!, $code: String!, $newPassword: String!) {
|
|
814
|
+
reset_password(email: $email, code: $code, newPassword: $newPassword) {
|
|
686
815
|
success
|
|
687
816
|
message
|
|
688
817
|
}
|
|
@@ -712,6 +841,36 @@ export const GetCreditHistoryDocument = gql `
|
|
|
712
841
|
}
|
|
713
842
|
}
|
|
714
843
|
`;
|
|
844
|
+
export const ModelsDocument = gql `
|
|
845
|
+
query Models {
|
|
846
|
+
models(order_by: {sort_order: asc, slug: asc}) {
|
|
847
|
+
slug
|
|
848
|
+
provider
|
|
849
|
+
label
|
|
850
|
+
public_name
|
|
851
|
+
aliases
|
|
852
|
+
provider_info {
|
|
853
|
+
label
|
|
854
|
+
}
|
|
855
|
+
description
|
|
856
|
+
long_description
|
|
857
|
+
featured
|
|
858
|
+
sort_order
|
|
859
|
+
capabilities {
|
|
860
|
+
capability_slug
|
|
861
|
+
}
|
|
862
|
+
pipeline_models(order_by: {sort_order: asc}) {
|
|
863
|
+
pipeline_slug
|
|
864
|
+
sort_order
|
|
865
|
+
}
|
|
866
|
+
translations {
|
|
867
|
+
locale
|
|
868
|
+
description
|
|
869
|
+
long_description
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
`;
|
|
715
874
|
export const GetNotificationsDocument = gql `
|
|
716
875
|
query GetNotifications($limit: Int!, $offset: Int!) {
|
|
717
876
|
notifications(order_by: {created_at: desc}, limit: $limit, offset: $offset) {
|
|
@@ -765,6 +924,37 @@ export const GetPipelinesDocument = gql `
|
|
|
765
924
|
tags
|
|
766
925
|
hints
|
|
767
926
|
cancellable
|
|
927
|
+
translations {
|
|
928
|
+
locale
|
|
929
|
+
name
|
|
930
|
+
description
|
|
931
|
+
seo_content
|
|
932
|
+
seo_faq
|
|
933
|
+
hints
|
|
934
|
+
form_i18n
|
|
935
|
+
}
|
|
936
|
+
examples(order_by: [{sort_order: asc}, {created_at: asc}]) {
|
|
937
|
+
id
|
|
938
|
+
title
|
|
939
|
+
caption
|
|
940
|
+
output_url
|
|
941
|
+
output_kind
|
|
942
|
+
input_url
|
|
943
|
+
input_kind
|
|
944
|
+
content
|
|
945
|
+
inputs
|
|
946
|
+
thumbnail_url
|
|
947
|
+
model_slug
|
|
948
|
+
model {
|
|
949
|
+
slug
|
|
950
|
+
label
|
|
951
|
+
}
|
|
952
|
+
translations {
|
|
953
|
+
locale
|
|
954
|
+
title
|
|
955
|
+
caption
|
|
956
|
+
}
|
|
957
|
+
}
|
|
768
958
|
}
|
|
769
959
|
}
|
|
770
960
|
`;
|
|
@@ -798,6 +988,11 @@ export const EstimatePipelineCostDocument = gql `
|
|
|
798
988
|
reservation_mc
|
|
799
989
|
estimated_mc
|
|
800
990
|
is_metered
|
|
991
|
+
routed_model
|
|
992
|
+
routed_reason_code
|
|
993
|
+
routed_reason_params
|
|
994
|
+
incompatible_models
|
|
995
|
+
engine_caps
|
|
801
996
|
}
|
|
802
997
|
}
|
|
803
998
|
`;
|
|
@@ -808,10 +1003,16 @@ export const PipelineModelsDocument = gql `
|
|
|
808
1003
|
order_by: {sort_order: asc}
|
|
809
1004
|
) {
|
|
810
1005
|
model_slug
|
|
1006
|
+
sort_order
|
|
811
1007
|
model {
|
|
812
1008
|
slug
|
|
813
1009
|
label
|
|
814
1010
|
description
|
|
1011
|
+
provider
|
|
1012
|
+
translations {
|
|
1013
|
+
locale
|
|
1014
|
+
description
|
|
1015
|
+
}
|
|
815
1016
|
}
|
|
816
1017
|
}
|
|
817
1018
|
}
|
|
@@ -852,6 +1053,8 @@ export const GetPipelineRunDocument = gql `
|
|
|
852
1053
|
credits_charged
|
|
853
1054
|
created_at
|
|
854
1055
|
completed_at
|
|
1056
|
+
share_token
|
|
1057
|
+
share_watermark
|
|
855
1058
|
pipeline {
|
|
856
1059
|
name
|
|
857
1060
|
slug
|
|
@@ -899,6 +1102,8 @@ export const GetPipelineRunsDocument = gql `
|
|
|
899
1102
|
credits_charged
|
|
900
1103
|
created_at
|
|
901
1104
|
completed_at
|
|
1105
|
+
share_token
|
|
1106
|
+
share_watermark
|
|
902
1107
|
workflow_execution {
|
|
903
1108
|
status
|
|
904
1109
|
start_time
|
|
@@ -946,6 +1151,8 @@ export const GetPipelineRunsBySlugDocument = gql `
|
|
|
946
1151
|
credits_charged
|
|
947
1152
|
created_at
|
|
948
1153
|
completed_at
|
|
1154
|
+
share_token
|
|
1155
|
+
share_watermark
|
|
949
1156
|
assets {
|
|
950
1157
|
id
|
|
951
1158
|
type
|
|
@@ -990,6 +1197,18 @@ export const GetActivePipelineRunsDocument = gql `
|
|
|
990
1197
|
}
|
|
991
1198
|
}
|
|
992
1199
|
`;
|
|
1200
|
+
export const SetRunShareDocument = gql `
|
|
1201
|
+
mutation SetRunShare($id: uuid!, $token: uuid, $watermark: Boolean!) {
|
|
1202
|
+
update_pipeline_runs_by_pk(
|
|
1203
|
+
pk_columns: {id: $id}
|
|
1204
|
+
_set: {share_token: $token, share_watermark: $watermark}
|
|
1205
|
+
) {
|
|
1206
|
+
id
|
|
1207
|
+
share_token
|
|
1208
|
+
share_watermark
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
`;
|
|
993
1212
|
export const GetPlansDocument = gql `
|
|
994
1213
|
query GetPlans {
|
|
995
1214
|
plans(order_by: {sort_order: asc}) {
|
|
@@ -999,6 +1218,12 @@ export const GetPlansDocument = gql `
|
|
|
999
1218
|
description
|
|
1000
1219
|
features
|
|
1001
1220
|
sort_order
|
|
1221
|
+
translations {
|
|
1222
|
+
locale
|
|
1223
|
+
name
|
|
1224
|
+
description
|
|
1225
|
+
features
|
|
1226
|
+
}
|
|
1002
1227
|
versions(where: {is_current: {_eq: true}}, limit: 1) {
|
|
1003
1228
|
id
|
|
1004
1229
|
whop_plan_id
|
|
@@ -1017,6 +1242,10 @@ export const GetCreditPacksDocument = gql `
|
|
|
1017
1242
|
slug
|
|
1018
1243
|
name
|
|
1019
1244
|
sort_order
|
|
1245
|
+
translations {
|
|
1246
|
+
locale
|
|
1247
|
+
name
|
|
1248
|
+
}
|
|
1020
1249
|
versions(where: {is_current: {_eq: true}}, limit: 1) {
|
|
1021
1250
|
id
|
|
1022
1251
|
whop_plan_id
|
|
@@ -1052,6 +1281,17 @@ export const GetSubscriptionDocument = gql `
|
|
|
1052
1281
|
}
|
|
1053
1282
|
}
|
|
1054
1283
|
`;
|
|
1284
|
+
export const CreateCheckoutSessionDocument = gql `
|
|
1285
|
+
mutation CreateCheckoutSession($whop_plan_id: String!, $affiliate_code: String) {
|
|
1286
|
+
create_checkout_session(
|
|
1287
|
+
whop_plan_id: $whop_plan_id
|
|
1288
|
+
affiliate_code: $affiliate_code
|
|
1289
|
+
) {
|
|
1290
|
+
success
|
|
1291
|
+
url
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
`;
|
|
1055
1295
|
export const WatchPipelineRunDocument = gql `
|
|
1056
1296
|
subscription WatchPipelineRun($run_id: uuid!) {
|
|
1057
1297
|
pipeline_runs_by_pk(id: $run_id) {
|
|
@@ -1229,20 +1469,14 @@ export function getSdk(requester) {
|
|
|
1229
1469
|
UpdateAssetTags(variables, options) {
|
|
1230
1470
|
return requester(UpdateAssetTagsDocument, variables, options);
|
|
1231
1471
|
},
|
|
1232
|
-
|
|
1233
|
-
return requester(
|
|
1234
|
-
},
|
|
1235
|
-
SubmitLoginFlow(variables, options) {
|
|
1236
|
-
return requester(SubmitLoginFlowDocument, variables, options);
|
|
1237
|
-
},
|
|
1238
|
-
InitSignupFlow(variables, options) {
|
|
1239
|
-
return requester(InitSignupFlowDocument, variables, options);
|
|
1472
|
+
Login(variables, options) {
|
|
1473
|
+
return requester(LoginDocument, variables, options);
|
|
1240
1474
|
},
|
|
1241
|
-
|
|
1242
|
-
return requester(
|
|
1475
|
+
Register(variables, options) {
|
|
1476
|
+
return requester(RegisterDocument, variables, options);
|
|
1243
1477
|
},
|
|
1244
|
-
|
|
1245
|
-
return requester(
|
|
1478
|
+
Logout(variables, options) {
|
|
1479
|
+
return requester(LogoutDocument, variables, options);
|
|
1246
1480
|
},
|
|
1247
1481
|
InitVerificationFlow(variables, options) {
|
|
1248
1482
|
return requester(InitVerificationFlowDocument, variables, options);
|
|
@@ -1250,11 +1484,11 @@ export function getSdk(requester) {
|
|
|
1250
1484
|
SubmitVerificationCode(variables, options) {
|
|
1251
1485
|
return requester(SubmitVerificationCodeDocument, variables, options);
|
|
1252
1486
|
},
|
|
1253
|
-
|
|
1254
|
-
return requester(
|
|
1487
|
+
RequestPasswordReset(variables, options) {
|
|
1488
|
+
return requester(RequestPasswordResetDocument, variables, options);
|
|
1255
1489
|
},
|
|
1256
|
-
|
|
1257
|
-
return requester(
|
|
1490
|
+
ResetPassword(variables, options) {
|
|
1491
|
+
return requester(ResetPasswordDocument, variables, options);
|
|
1258
1492
|
},
|
|
1259
1493
|
GetCreditBalance(variables, options) {
|
|
1260
1494
|
return requester(GetCreditBalanceDocument, variables, options);
|
|
@@ -1262,6 +1496,9 @@ export function getSdk(requester) {
|
|
|
1262
1496
|
GetCreditHistory(variables, options) {
|
|
1263
1497
|
return requester(GetCreditHistoryDocument, variables, options);
|
|
1264
1498
|
},
|
|
1499
|
+
Models(variables, options) {
|
|
1500
|
+
return requester(ModelsDocument, variables, options);
|
|
1501
|
+
},
|
|
1265
1502
|
GetNotifications(variables, options) {
|
|
1266
1503
|
return requester(GetNotificationsDocument, variables, options);
|
|
1267
1504
|
},
|
|
@@ -1304,6 +1541,9 @@ export function getSdk(requester) {
|
|
|
1304
1541
|
GetActivePipelineRuns(variables, options) {
|
|
1305
1542
|
return requester(GetActivePipelineRunsDocument, variables, options);
|
|
1306
1543
|
},
|
|
1544
|
+
SetRunShare(variables, options) {
|
|
1545
|
+
return requester(SetRunShareDocument, variables, options);
|
|
1546
|
+
},
|
|
1307
1547
|
GetPlans(variables, options) {
|
|
1308
1548
|
return requester(GetPlansDocument, variables, options);
|
|
1309
1549
|
},
|
|
@@ -1313,6 +1553,9 @@ export function getSdk(requester) {
|
|
|
1313
1553
|
GetSubscription(variables, options) {
|
|
1314
1554
|
return requester(GetSubscriptionDocument, variables, options);
|
|
1315
1555
|
},
|
|
1556
|
+
CreateCheckoutSession(variables, options) {
|
|
1557
|
+
return requester(CreateCheckoutSessionDocument, variables, options);
|
|
1558
|
+
},
|
|
1316
1559
|
WatchPipelineRun(variables, options) {
|
|
1317
1560
|
return requester(WatchPipelineRunDocument, variables, options);
|
|
1318
1561
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipe2-ai/sdk",
|
|
3
|
-
"version": "2026.07.
|
|
3
|
+
"version": "2026.07.3",
|
|
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
|
+
"homepage": "https://pipe2.ai",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"pipe2",
|
|
8
|
+
"ai",
|
|
9
|
+
"api",
|
|
10
|
+
"sdk",
|
|
11
|
+
"text-to-video",
|
|
12
|
+
"video-generation",
|
|
13
|
+
"image-generation",
|
|
14
|
+
"text-to-speech",
|
|
15
|
+
"graphql"
|
|
16
|
+
],
|
|
4
17
|
"type": "module",
|
|
5
18
|
"main": "./dist/src/index.js",
|
|
6
19
|
"types": "./dist/src/index.d.ts",
|