@pipe2-ai/sdk 2026.7.0 → 2026.7.2
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 +1591 -145
- package/dist/generated/sdk.js +297 -70
- package/package.json +2 -4
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,6 +127,48 @@ 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_translations" */
|
|
145
|
+
export var Model_Translations_Select_Column;
|
|
146
|
+
(function (Model_Translations_Select_Column) {
|
|
147
|
+
/** column name */
|
|
148
|
+
Model_Translations_Select_Column["Description"] = "description";
|
|
149
|
+
/** column name */
|
|
150
|
+
Model_Translations_Select_Column["Locale"] = "locale";
|
|
151
|
+
/** column name */
|
|
152
|
+
Model_Translations_Select_Column["ModelSlug"] = "model_slug";
|
|
153
|
+
/** column name */
|
|
154
|
+
Model_Translations_Select_Column["UpdatedAt"] = "updated_at";
|
|
155
|
+
})(Model_Translations_Select_Column || (Model_Translations_Select_Column = {}));
|
|
156
|
+
/** select columns of table "models" */
|
|
157
|
+
export var Models_Select_Column;
|
|
158
|
+
(function (Models_Select_Column) {
|
|
159
|
+
/** column name */
|
|
160
|
+
Models_Select_Column["Description"] = "description";
|
|
161
|
+
/** column name */
|
|
162
|
+
Models_Select_Column["IsActive"] = "is_active";
|
|
163
|
+
/** column name */
|
|
164
|
+
Models_Select_Column["Label"] = "label";
|
|
165
|
+
/** column name */
|
|
166
|
+
Models_Select_Column["Provider"] = "provider";
|
|
167
|
+
/** column name */
|
|
168
|
+
Models_Select_Column["Slug"] = "slug";
|
|
169
|
+
/** column name */
|
|
170
|
+
Models_Select_Column["SortOrder"] = "sort_order";
|
|
171
|
+
})(Models_Select_Column || (Models_Select_Column = {}));
|
|
118
172
|
/** select columns of table "notifications" */
|
|
119
173
|
export var Notifications_Select_Column;
|
|
120
174
|
(function (Notifications_Select_Column) {
|
|
@@ -167,6 +221,66 @@ export var Personal_Access_Tokens_Select_Column;
|
|
|
167
221
|
/** column name */
|
|
168
222
|
Personal_Access_Tokens_Select_Column["Scopes"] = "scopes";
|
|
169
223
|
})(Personal_Access_Tokens_Select_Column || (Personal_Access_Tokens_Select_Column = {}));
|
|
224
|
+
/** select columns of table "pipeline_examples" */
|
|
225
|
+
export var Pipeline_Examples_Select_Column;
|
|
226
|
+
(function (Pipeline_Examples_Select_Column) {
|
|
227
|
+
/** column name */
|
|
228
|
+
Pipeline_Examples_Select_Column["Caption"] = "caption";
|
|
229
|
+
/** column name */
|
|
230
|
+
Pipeline_Examples_Select_Column["Content"] = "content";
|
|
231
|
+
/** column name */
|
|
232
|
+
Pipeline_Examples_Select_Column["CreatedAt"] = "created_at";
|
|
233
|
+
/** column name */
|
|
234
|
+
Pipeline_Examples_Select_Column["Id"] = "id";
|
|
235
|
+
/** column name */
|
|
236
|
+
Pipeline_Examples_Select_Column["InputKind"] = "input_kind";
|
|
237
|
+
/** column name */
|
|
238
|
+
Pipeline_Examples_Select_Column["InputUrl"] = "input_url";
|
|
239
|
+
/** column name */
|
|
240
|
+
Pipeline_Examples_Select_Column["Inputs"] = "inputs";
|
|
241
|
+
/** column name */
|
|
242
|
+
Pipeline_Examples_Select_Column["IsActive"] = "is_active";
|
|
243
|
+
/** column name */
|
|
244
|
+
Pipeline_Examples_Select_Column["ModelSlug"] = "model_slug";
|
|
245
|
+
/** column name */
|
|
246
|
+
Pipeline_Examples_Select_Column["OutputKind"] = "output_kind";
|
|
247
|
+
/** column name */
|
|
248
|
+
Pipeline_Examples_Select_Column["OutputUrl"] = "output_url";
|
|
249
|
+
/** column name */
|
|
250
|
+
Pipeline_Examples_Select_Column["PipelineId"] = "pipeline_id";
|
|
251
|
+
/** column name */
|
|
252
|
+
Pipeline_Examples_Select_Column["SortOrder"] = "sort_order";
|
|
253
|
+
/** column name */
|
|
254
|
+
Pipeline_Examples_Select_Column["ThumbnailUrl"] = "thumbnail_url";
|
|
255
|
+
/** column name */
|
|
256
|
+
Pipeline_Examples_Select_Column["Title"] = "title";
|
|
257
|
+
/** column name */
|
|
258
|
+
Pipeline_Examples_Select_Column["UpdatedAt"] = "updated_at";
|
|
259
|
+
})(Pipeline_Examples_Select_Column || (Pipeline_Examples_Select_Column = {}));
|
|
260
|
+
/** select columns of table "pipeline_examples_translations" */
|
|
261
|
+
export var Pipeline_Examples_Translations_Select_Column;
|
|
262
|
+
(function (Pipeline_Examples_Translations_Select_Column) {
|
|
263
|
+
/** column name */
|
|
264
|
+
Pipeline_Examples_Translations_Select_Column["Caption"] = "caption";
|
|
265
|
+
/** column name */
|
|
266
|
+
Pipeline_Examples_Translations_Select_Column["ExampleId"] = "example_id";
|
|
267
|
+
/** column name */
|
|
268
|
+
Pipeline_Examples_Translations_Select_Column["Locale"] = "locale";
|
|
269
|
+
/** column name */
|
|
270
|
+
Pipeline_Examples_Translations_Select_Column["Title"] = "title";
|
|
271
|
+
/** column name */
|
|
272
|
+
Pipeline_Examples_Translations_Select_Column["UpdatedAt"] = "updated_at";
|
|
273
|
+
})(Pipeline_Examples_Translations_Select_Column || (Pipeline_Examples_Translations_Select_Column = {}));
|
|
274
|
+
/** select columns of table "pipeline_models" */
|
|
275
|
+
export var Pipeline_Models_Select_Column;
|
|
276
|
+
(function (Pipeline_Models_Select_Column) {
|
|
277
|
+
/** column name */
|
|
278
|
+
Pipeline_Models_Select_Column["ModelSlug"] = "model_slug";
|
|
279
|
+
/** column name */
|
|
280
|
+
Pipeline_Models_Select_Column["PipelineSlug"] = "pipeline_slug";
|
|
281
|
+
/** column name */
|
|
282
|
+
Pipeline_Models_Select_Column["SortOrder"] = "sort_order";
|
|
283
|
+
})(Pipeline_Models_Select_Column || (Pipeline_Models_Select_Column = {}));
|
|
170
284
|
/** select columns of table "pipeline_runs" */
|
|
171
285
|
export var Pipeline_Runs_Select_Column;
|
|
172
286
|
(function (Pipeline_Runs_Select_Column) {
|
|
@@ -187,12 +301,38 @@ export var Pipeline_Runs_Select_Column;
|
|
|
187
301
|
/** column name */
|
|
188
302
|
Pipeline_Runs_Select_Column["PipelineId"] = "pipeline_id";
|
|
189
303
|
/** column name */
|
|
304
|
+
Pipeline_Runs_Select_Column["ShareToken"] = "share_token";
|
|
305
|
+
/** column name */
|
|
306
|
+
Pipeline_Runs_Select_Column["ShareWatermark"] = "share_watermark";
|
|
307
|
+
/** column name */
|
|
190
308
|
Pipeline_Runs_Select_Column["StartedAt"] = "started_at";
|
|
191
309
|
/** column name */
|
|
192
310
|
Pipeline_Runs_Select_Column["Status"] = "status";
|
|
193
311
|
/** column name */
|
|
194
312
|
Pipeline_Runs_Select_Column["TemporalWorkflowId"] = "temporal_workflow_id";
|
|
195
313
|
})(Pipeline_Runs_Select_Column || (Pipeline_Runs_Select_Column = {}));
|
|
314
|
+
/** select columns of table "pipeline_translations" */
|
|
315
|
+
export var Pipeline_Translations_Select_Column;
|
|
316
|
+
(function (Pipeline_Translations_Select_Column) {
|
|
317
|
+
/** column name */
|
|
318
|
+
Pipeline_Translations_Select_Column["Description"] = "description";
|
|
319
|
+
/** column name */
|
|
320
|
+
Pipeline_Translations_Select_Column["FormI18n"] = "form_i18n";
|
|
321
|
+
/** column name */
|
|
322
|
+
Pipeline_Translations_Select_Column["Hints"] = "hints";
|
|
323
|
+
/** column name */
|
|
324
|
+
Pipeline_Translations_Select_Column["Locale"] = "locale";
|
|
325
|
+
/** column name */
|
|
326
|
+
Pipeline_Translations_Select_Column["Name"] = "name";
|
|
327
|
+
/** column name */
|
|
328
|
+
Pipeline_Translations_Select_Column["PipelineId"] = "pipeline_id";
|
|
329
|
+
/** column name */
|
|
330
|
+
Pipeline_Translations_Select_Column["SeoContent"] = "seo_content";
|
|
331
|
+
/** column name */
|
|
332
|
+
Pipeline_Translations_Select_Column["SeoFaq"] = "seo_faq";
|
|
333
|
+
/** column name */
|
|
334
|
+
Pipeline_Translations_Select_Column["UpdatedAt"] = "updated_at";
|
|
335
|
+
})(Pipeline_Translations_Select_Column || (Pipeline_Translations_Select_Column = {}));
|
|
196
336
|
/** select columns of table "pipelines" */
|
|
197
337
|
export var Pipelines_Select_Column;
|
|
198
338
|
(function (Pipelines_Select_Column) {
|
|
@@ -221,8 +361,6 @@ export var Pipelines_Select_Column;
|
|
|
221
361
|
/** column name */
|
|
222
362
|
Pipelines_Select_Column["PreviewUrl"] = "preview_url";
|
|
223
363
|
/** column name */
|
|
224
|
-
Pipelines_Select_Column["Pricing"] = "pricing";
|
|
225
|
-
/** column name */
|
|
226
364
|
Pipelines_Select_Column["Providers"] = "providers";
|
|
227
365
|
/** column name */
|
|
228
366
|
Pipelines_Select_Column["SeoContent"] = "seo_content";
|
|
@@ -237,6 +375,22 @@ export var Pipelines_Select_Column;
|
|
|
237
375
|
/** column name */
|
|
238
376
|
Pipelines_Select_Column["UiSchema"] = "ui_schema";
|
|
239
377
|
})(Pipelines_Select_Column || (Pipelines_Select_Column = {}));
|
|
378
|
+
/** select columns of table "plan_translations" */
|
|
379
|
+
export var Plan_Translations_Select_Column;
|
|
380
|
+
(function (Plan_Translations_Select_Column) {
|
|
381
|
+
/** column name */
|
|
382
|
+
Plan_Translations_Select_Column["Description"] = "description";
|
|
383
|
+
/** column name */
|
|
384
|
+
Plan_Translations_Select_Column["Features"] = "features";
|
|
385
|
+
/** column name */
|
|
386
|
+
Plan_Translations_Select_Column["Locale"] = "locale";
|
|
387
|
+
/** column name */
|
|
388
|
+
Plan_Translations_Select_Column["Name"] = "name";
|
|
389
|
+
/** column name */
|
|
390
|
+
Plan_Translations_Select_Column["PlanId"] = "plan_id";
|
|
391
|
+
/** column name */
|
|
392
|
+
Plan_Translations_Select_Column["UpdatedAt"] = "updated_at";
|
|
393
|
+
})(Plan_Translations_Select_Column || (Plan_Translations_Select_Column = {}));
|
|
240
394
|
/** select columns of table "plan_versions" */
|
|
241
395
|
export var Plan_Versions_Select_Column;
|
|
242
396
|
(function (Plan_Versions_Select_Column) {
|
|
@@ -573,50 +727,28 @@ export const UpdateAssetTagsDocument = gql `
|
|
|
573
727
|
}
|
|
574
728
|
}
|
|
575
729
|
`;
|
|
576
|
-
export const
|
|
577
|
-
mutation
|
|
578
|
-
|
|
579
|
-
id
|
|
580
|
-
csrf_token
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
`;
|
|
584
|
-
export const SubmitLoginFlowDocument = gql `
|
|
585
|
-
mutation SubmitLoginFlow($flowId: String!, $email: String!, $password: String!, $csrf_token: String!, $referral_code: String) {
|
|
586
|
-
submit_login_flow(
|
|
587
|
-
flowId: $flowId
|
|
588
|
-
email: $email
|
|
589
|
-
password: $password
|
|
590
|
-
csrf_token: $csrf_token
|
|
591
|
-
referral_code: $referral_code
|
|
592
|
-
) {
|
|
730
|
+
export const LoginDocument = gql `
|
|
731
|
+
mutation Login($email: String!, $password: String!, $referral_code: String) {
|
|
732
|
+
login(email: $email, password: $password, referral_code: $referral_code) {
|
|
593
733
|
success
|
|
594
734
|
message
|
|
595
735
|
token
|
|
596
|
-
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
`;
|
|
600
|
-
export const InitSignupFlowDocument = gql `
|
|
601
|
-
mutation InitSignupFlow {
|
|
602
|
-
init_signup_flow {
|
|
603
|
-
id
|
|
604
|
-
csrf_token
|
|
736
|
+
affiliate_id
|
|
605
737
|
}
|
|
606
738
|
}
|
|
607
739
|
`;
|
|
608
|
-
export const
|
|
609
|
-
mutation
|
|
610
|
-
|
|
611
|
-
flowId: $flowId
|
|
740
|
+
export const RegisterDocument = gql `
|
|
741
|
+
mutation Register($email: String!, $password: String!, $name: String!, $referral_code: String) {
|
|
742
|
+
register(
|
|
612
743
|
email: $email
|
|
613
744
|
password: $password
|
|
614
745
|
name: $name
|
|
615
|
-
|
|
746
|
+
referral_code: $referral_code
|
|
616
747
|
) {
|
|
617
748
|
success
|
|
618
749
|
message
|
|
619
750
|
token
|
|
751
|
+
affiliate_id
|
|
620
752
|
}
|
|
621
753
|
}
|
|
622
754
|
`;
|
|
@@ -644,21 +776,17 @@ export const SubmitVerificationCodeDocument = gql `
|
|
|
644
776
|
}
|
|
645
777
|
}
|
|
646
778
|
`;
|
|
647
|
-
export const
|
|
648
|
-
mutation
|
|
649
|
-
|
|
779
|
+
export const RequestPasswordResetDocument = gql `
|
|
780
|
+
mutation RequestPasswordReset($email: String!) {
|
|
781
|
+
request_password_reset(email: $email) {
|
|
650
782
|
success
|
|
651
783
|
message
|
|
652
784
|
}
|
|
653
785
|
}
|
|
654
786
|
`;
|
|
655
|
-
export const
|
|
656
|
-
mutation
|
|
657
|
-
|
|
658
|
-
flowId: $flowId
|
|
659
|
-
password: $password
|
|
660
|
-
csrf_token: $csrf_token
|
|
661
|
-
) {
|
|
787
|
+
export const ResetPasswordDocument = gql `
|
|
788
|
+
mutation ResetPassword($email: String!, $code: String!, $newPassword: String!) {
|
|
789
|
+
reset_password(email: $email, code: $code, newPassword: $newPassword) {
|
|
662
790
|
success
|
|
663
791
|
message
|
|
664
792
|
}
|
|
@@ -740,8 +868,38 @@ export const GetPipelinesDocument = gql `
|
|
|
740
868
|
seo_faq
|
|
741
869
|
tags
|
|
742
870
|
hints
|
|
743
|
-
pricing
|
|
744
871
|
cancellable
|
|
872
|
+
translations {
|
|
873
|
+
locale
|
|
874
|
+
name
|
|
875
|
+
description
|
|
876
|
+
seo_content
|
|
877
|
+
seo_faq
|
|
878
|
+
hints
|
|
879
|
+
form_i18n
|
|
880
|
+
}
|
|
881
|
+
examples(order_by: [{sort_order: asc}, {created_at: asc}]) {
|
|
882
|
+
id
|
|
883
|
+
title
|
|
884
|
+
caption
|
|
885
|
+
output_url
|
|
886
|
+
output_kind
|
|
887
|
+
input_url
|
|
888
|
+
input_kind
|
|
889
|
+
content
|
|
890
|
+
inputs
|
|
891
|
+
thumbnail_url
|
|
892
|
+
model_slug
|
|
893
|
+
model {
|
|
894
|
+
slug
|
|
895
|
+
label
|
|
896
|
+
}
|
|
897
|
+
translations {
|
|
898
|
+
locale
|
|
899
|
+
title
|
|
900
|
+
caption
|
|
901
|
+
}
|
|
902
|
+
}
|
|
745
903
|
}
|
|
746
904
|
}
|
|
747
905
|
`;
|
|
@@ -764,19 +922,10 @@ export const GetPipelinesListDocument = gql `
|
|
|
764
922
|
models
|
|
765
923
|
tags
|
|
766
924
|
hints
|
|
767
|
-
pricing
|
|
768
925
|
cancellable
|
|
769
926
|
}
|
|
770
927
|
}
|
|
771
928
|
`;
|
|
772
|
-
export const GetPipelinesPricingDocument = gql `
|
|
773
|
-
query GetPipelinesPricing($slugs: [String!]!) {
|
|
774
|
-
pipelines(where: {slug: {_in: $slugs}}) {
|
|
775
|
-
slug
|
|
776
|
-
pricing
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
`;
|
|
780
929
|
export const EstimatePipelineCostDocument = gql `
|
|
781
930
|
query EstimatePipelineCost($pipeline_slug: String!, $input: jsonb!) {
|
|
782
931
|
estimate_pipeline_cost(pipeline_slug: $pipeline_slug, input: $input) {
|
|
@@ -784,6 +933,42 @@ export const EstimatePipelineCostDocument = gql `
|
|
|
784
933
|
reservation_mc
|
|
785
934
|
estimated_mc
|
|
786
935
|
is_metered
|
|
936
|
+
routed_model
|
|
937
|
+
routed_reason_code
|
|
938
|
+
routed_reason_params
|
|
939
|
+
incompatible_models
|
|
940
|
+
engine_caps
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
`;
|
|
944
|
+
export const PipelineModelsDocument = gql `
|
|
945
|
+
query PipelineModels($slug: String!) {
|
|
946
|
+
pipeline_models(
|
|
947
|
+
where: {pipeline_slug: {_eq: $slug}}
|
|
948
|
+
order_by: {sort_order: asc}
|
|
949
|
+
) {
|
|
950
|
+
model_slug
|
|
951
|
+
sort_order
|
|
952
|
+
model {
|
|
953
|
+
slug
|
|
954
|
+
label
|
|
955
|
+
description
|
|
956
|
+
provider
|
|
957
|
+
translations {
|
|
958
|
+
locale
|
|
959
|
+
description
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
`;
|
|
965
|
+
export const PipelinePricingDocument = gql `
|
|
966
|
+
query PipelinePricing {
|
|
967
|
+
pipeline_pricing {
|
|
968
|
+
slug
|
|
969
|
+
from_mc
|
|
970
|
+
to_mc
|
|
971
|
+
metered
|
|
787
972
|
}
|
|
788
973
|
}
|
|
789
974
|
`;
|
|
@@ -813,6 +998,8 @@ export const GetPipelineRunDocument = gql `
|
|
|
813
998
|
credits_charged
|
|
814
999
|
created_at
|
|
815
1000
|
completed_at
|
|
1001
|
+
share_token
|
|
1002
|
+
share_watermark
|
|
816
1003
|
pipeline {
|
|
817
1004
|
name
|
|
818
1005
|
slug
|
|
@@ -860,6 +1047,8 @@ export const GetPipelineRunsDocument = gql `
|
|
|
860
1047
|
credits_charged
|
|
861
1048
|
created_at
|
|
862
1049
|
completed_at
|
|
1050
|
+
share_token
|
|
1051
|
+
share_watermark
|
|
863
1052
|
workflow_execution {
|
|
864
1053
|
status
|
|
865
1054
|
start_time
|
|
@@ -907,6 +1096,8 @@ export const GetPipelineRunsBySlugDocument = gql `
|
|
|
907
1096
|
credits_charged
|
|
908
1097
|
created_at
|
|
909
1098
|
completed_at
|
|
1099
|
+
share_token
|
|
1100
|
+
share_watermark
|
|
910
1101
|
assets {
|
|
911
1102
|
id
|
|
912
1103
|
type
|
|
@@ -951,6 +1142,18 @@ export const GetActivePipelineRunsDocument = gql `
|
|
|
951
1142
|
}
|
|
952
1143
|
}
|
|
953
1144
|
`;
|
|
1145
|
+
export const SetRunShareDocument = gql `
|
|
1146
|
+
mutation SetRunShare($id: uuid!, $token: uuid, $watermark: Boolean!) {
|
|
1147
|
+
update_pipeline_runs_by_pk(
|
|
1148
|
+
pk_columns: {id: $id}
|
|
1149
|
+
_set: {share_token: $token, share_watermark: $watermark}
|
|
1150
|
+
) {
|
|
1151
|
+
id
|
|
1152
|
+
share_token
|
|
1153
|
+
share_watermark
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
`;
|
|
954
1157
|
export const GetPlansDocument = gql `
|
|
955
1158
|
query GetPlans {
|
|
956
1159
|
plans(order_by: {sort_order: asc}) {
|
|
@@ -960,6 +1163,12 @@ export const GetPlansDocument = gql `
|
|
|
960
1163
|
description
|
|
961
1164
|
features
|
|
962
1165
|
sort_order
|
|
1166
|
+
translations {
|
|
1167
|
+
locale
|
|
1168
|
+
name
|
|
1169
|
+
description
|
|
1170
|
+
features
|
|
1171
|
+
}
|
|
963
1172
|
versions(where: {is_current: {_eq: true}}, limit: 1) {
|
|
964
1173
|
id
|
|
965
1174
|
whop_plan_id
|
|
@@ -978,6 +1187,10 @@ export const GetCreditPacksDocument = gql `
|
|
|
978
1187
|
slug
|
|
979
1188
|
name
|
|
980
1189
|
sort_order
|
|
1190
|
+
translations {
|
|
1191
|
+
locale
|
|
1192
|
+
name
|
|
1193
|
+
}
|
|
981
1194
|
versions(where: {is_current: {_eq: true}}, limit: 1) {
|
|
982
1195
|
id
|
|
983
1196
|
whop_plan_id
|
|
@@ -1013,6 +1226,17 @@ export const GetSubscriptionDocument = gql `
|
|
|
1013
1226
|
}
|
|
1014
1227
|
}
|
|
1015
1228
|
`;
|
|
1229
|
+
export const CreateCheckoutSessionDocument = gql `
|
|
1230
|
+
mutation CreateCheckoutSession($whop_plan_id: String!, $affiliate_code: String) {
|
|
1231
|
+
create_checkout_session(
|
|
1232
|
+
whop_plan_id: $whop_plan_id
|
|
1233
|
+
affiliate_code: $affiliate_code
|
|
1234
|
+
) {
|
|
1235
|
+
success
|
|
1236
|
+
url
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
`;
|
|
1016
1240
|
export const WatchPipelineRunDocument = gql `
|
|
1017
1241
|
subscription WatchPipelineRun($run_id: uuid!) {
|
|
1018
1242
|
pipeline_runs_by_pk(id: $run_id) {
|
|
@@ -1190,17 +1414,11 @@ export function getSdk(requester) {
|
|
|
1190
1414
|
UpdateAssetTags(variables, options) {
|
|
1191
1415
|
return requester(UpdateAssetTagsDocument, variables, options);
|
|
1192
1416
|
},
|
|
1193
|
-
|
|
1194
|
-
return requester(
|
|
1417
|
+
Login(variables, options) {
|
|
1418
|
+
return requester(LoginDocument, variables, options);
|
|
1195
1419
|
},
|
|
1196
|
-
|
|
1197
|
-
return requester(
|
|
1198
|
-
},
|
|
1199
|
-
InitSignupFlow(variables, options) {
|
|
1200
|
-
return requester(InitSignupFlowDocument, variables, options);
|
|
1201
|
-
},
|
|
1202
|
-
SubmitSignupFlow(variables, options) {
|
|
1203
|
-
return requester(SubmitSignupFlowDocument, variables, options);
|
|
1420
|
+
Register(variables, options) {
|
|
1421
|
+
return requester(RegisterDocument, variables, options);
|
|
1204
1422
|
},
|
|
1205
1423
|
SubmitSocialLogin(variables, options) {
|
|
1206
1424
|
return requester(SubmitSocialLoginDocument, variables, options);
|
|
@@ -1211,11 +1429,11 @@ export function getSdk(requester) {
|
|
|
1211
1429
|
SubmitVerificationCode(variables, options) {
|
|
1212
1430
|
return requester(SubmitVerificationCodeDocument, variables, options);
|
|
1213
1431
|
},
|
|
1214
|
-
|
|
1215
|
-
return requester(
|
|
1432
|
+
RequestPasswordReset(variables, options) {
|
|
1433
|
+
return requester(RequestPasswordResetDocument, variables, options);
|
|
1216
1434
|
},
|
|
1217
|
-
|
|
1218
|
-
return requester(
|
|
1435
|
+
ResetPassword(variables, options) {
|
|
1436
|
+
return requester(ResetPasswordDocument, variables, options);
|
|
1219
1437
|
},
|
|
1220
1438
|
GetCreditBalance(variables, options) {
|
|
1221
1439
|
return requester(GetCreditBalanceDocument, variables, options);
|
|
@@ -1238,12 +1456,15 @@ export function getSdk(requester) {
|
|
|
1238
1456
|
GetPipelinesList(variables, options) {
|
|
1239
1457
|
return requester(GetPipelinesListDocument, variables, options);
|
|
1240
1458
|
},
|
|
1241
|
-
GetPipelinesPricing(variables, options) {
|
|
1242
|
-
return requester(GetPipelinesPricingDocument, variables, options);
|
|
1243
|
-
},
|
|
1244
1459
|
EstimatePipelineCost(variables, options) {
|
|
1245
1460
|
return requester(EstimatePipelineCostDocument, variables, options);
|
|
1246
1461
|
},
|
|
1462
|
+
PipelineModels(variables, options) {
|
|
1463
|
+
return requester(PipelineModelsDocument, variables, options);
|
|
1464
|
+
},
|
|
1465
|
+
PipelinePricing(variables, options) {
|
|
1466
|
+
return requester(PipelinePricingDocument, variables, options);
|
|
1467
|
+
},
|
|
1247
1468
|
RunPipeline(variables, options) {
|
|
1248
1469
|
return requester(RunPipelineDocument, variables, options);
|
|
1249
1470
|
},
|
|
@@ -1262,6 +1483,9 @@ export function getSdk(requester) {
|
|
|
1262
1483
|
GetActivePipelineRuns(variables, options) {
|
|
1263
1484
|
return requester(GetActivePipelineRunsDocument, variables, options);
|
|
1264
1485
|
},
|
|
1486
|
+
SetRunShare(variables, options) {
|
|
1487
|
+
return requester(SetRunShareDocument, variables, options);
|
|
1488
|
+
},
|
|
1265
1489
|
GetPlans(variables, options) {
|
|
1266
1490
|
return requester(GetPlansDocument, variables, options);
|
|
1267
1491
|
},
|
|
@@ -1271,6 +1495,9 @@ export function getSdk(requester) {
|
|
|
1271
1495
|
GetSubscription(variables, options) {
|
|
1272
1496
|
return requester(GetSubscriptionDocument, variables, options);
|
|
1273
1497
|
},
|
|
1498
|
+
CreateCheckoutSession(variables, options) {
|
|
1499
|
+
return requester(CreateCheckoutSessionDocument, variables, options);
|
|
1500
|
+
},
|
|
1274
1501
|
WatchPipelineRun(variables, options) {
|
|
1275
1502
|
return requester(WatchPipelineRunDocument, variables, options);
|
|
1276
1503
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipe2-ai/sdk",
|
|
3
|
-
"version": "2026.07.
|
|
3
|
+
"version": "2026.07.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -21,15 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"graphql": "^16.0.0",
|
|
23
23
|
"graphql-request": "^7.0.0",
|
|
24
|
-
"graphql-ws": "^6.0.0"
|
|
25
|
-
"ws": "^8.0.0"
|
|
24
|
+
"graphql-ws": "^6.0.0"
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
28
27
|
"@graphql-codegen/cli": "^5.0.0",
|
|
29
28
|
"@graphql-codegen/typescript": "^4.0.0",
|
|
30
29
|
"@graphql-codegen/typescript-generic-sdk": "^4.0.0",
|
|
31
30
|
"@graphql-codegen/typescript-operations": "^4.0.0",
|
|
32
|
-
"@types/ws": "^8.0.0",
|
|
33
31
|
"typescript": "^5.0.0"
|
|
34
32
|
}
|
|
35
33
|
}
|