@pipe2-ai/sdk 2026.7.1 → 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.
@@ -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,32 @@ 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 = {}));
118
156
  /** select columns of table "models" */
119
157
  export var Models_Select_Column;
120
158
  (function (Models_Select_Column) {
@@ -183,6 +221,56 @@ export var Personal_Access_Tokens_Select_Column;
183
221
  /** column name */
184
222
  Personal_Access_Tokens_Select_Column["Scopes"] = "scopes";
185
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 = {}));
186
274
  /** select columns of table "pipeline_models" */
187
275
  export var Pipeline_Models_Select_Column;
188
276
  (function (Pipeline_Models_Select_Column) {
@@ -213,12 +301,38 @@ export var Pipeline_Runs_Select_Column;
213
301
  /** column name */
214
302
  Pipeline_Runs_Select_Column["PipelineId"] = "pipeline_id";
215
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 */
216
308
  Pipeline_Runs_Select_Column["StartedAt"] = "started_at";
217
309
  /** column name */
218
310
  Pipeline_Runs_Select_Column["Status"] = "status";
219
311
  /** column name */
220
312
  Pipeline_Runs_Select_Column["TemporalWorkflowId"] = "temporal_workflow_id";
221
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 = {}));
222
336
  /** select columns of table "pipelines" */
223
337
  export var Pipelines_Select_Column;
224
338
  (function (Pipelines_Select_Column) {
@@ -261,6 +375,22 @@ export var Pipelines_Select_Column;
261
375
  /** column name */
262
376
  Pipelines_Select_Column["UiSchema"] = "ui_schema";
263
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 = {}));
264
394
  /** select columns of table "plan_versions" */
265
395
  export var Plan_Versions_Select_Column;
266
396
  (function (Plan_Versions_Select_Column) {
@@ -597,50 +727,28 @@ export const UpdateAssetTagsDocument = gql `
597
727
  }
598
728
  }
599
729
  `;
600
- export const InitLoginFlowDocument = gql `
601
- mutation InitLoginFlow {
602
- init_login_flow {
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
- ) {
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) {
617
733
  success
618
734
  message
619
735
  token
620
- whop_affiliate_id
621
- }
622
- }
623
- `;
624
- export const InitSignupFlowDocument = gql `
625
- mutation InitSignupFlow {
626
- init_signup_flow {
627
- id
628
- csrf_token
736
+ affiliate_id
629
737
  }
630
738
  }
631
739
  `;
632
- export const SubmitSignupFlowDocument = gql `
633
- mutation SubmitSignupFlow($flowId: String!, $email: String!, $password: String!, $name: String!, $csrf_token: String!) {
634
- submit_signup_flow(
635
- flowId: $flowId
740
+ export const RegisterDocument = gql `
741
+ mutation Register($email: String!, $password: String!, $name: String!, $referral_code: String) {
742
+ register(
636
743
  email: $email
637
744
  password: $password
638
745
  name: $name
639
- csrf_token: $csrf_token
746
+ referral_code: $referral_code
640
747
  ) {
641
748
  success
642
749
  message
643
750
  token
751
+ affiliate_id
644
752
  }
645
753
  }
646
754
  `;
@@ -668,21 +776,17 @@ export const SubmitVerificationCodeDocument = gql `
668
776
  }
669
777
  }
670
778
  `;
671
- export const InitRecoveryFlowDocument = gql `
672
- mutation InitRecoveryFlow($email: String!) {
673
- init_recovery_flow(email: $email) {
779
+ export const RequestPasswordResetDocument = gql `
780
+ mutation RequestPasswordReset($email: String!) {
781
+ request_password_reset(email: $email) {
674
782
  success
675
783
  message
676
784
  }
677
785
  }
678
786
  `;
679
- export const SubmitRecoveryFlowDocument = gql `
680
- mutation SubmitRecoveryFlow($flowId: String!, $password: String!, $csrf_token: String!) {
681
- submit_recovery_flow(
682
- flowId: $flowId
683
- password: $password
684
- csrf_token: $csrf_token
685
- ) {
787
+ export const ResetPasswordDocument = gql `
788
+ mutation ResetPassword($email: String!, $code: String!, $newPassword: String!) {
789
+ reset_password(email: $email, code: $code, newPassword: $newPassword) {
686
790
  success
687
791
  message
688
792
  }
@@ -765,6 +869,37 @@ export const GetPipelinesDocument = gql `
765
869
  tags
766
870
  hints
767
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
+ }
768
903
  }
769
904
  }
770
905
  `;
@@ -798,6 +933,11 @@ export const EstimatePipelineCostDocument = gql `
798
933
  reservation_mc
799
934
  estimated_mc
800
935
  is_metered
936
+ routed_model
937
+ routed_reason_code
938
+ routed_reason_params
939
+ incompatible_models
940
+ engine_caps
801
941
  }
802
942
  }
803
943
  `;
@@ -808,10 +948,16 @@ export const PipelineModelsDocument = gql `
808
948
  order_by: {sort_order: asc}
809
949
  ) {
810
950
  model_slug
951
+ sort_order
811
952
  model {
812
953
  slug
813
954
  label
814
955
  description
956
+ provider
957
+ translations {
958
+ locale
959
+ description
960
+ }
815
961
  }
816
962
  }
817
963
  }
@@ -852,6 +998,8 @@ export const GetPipelineRunDocument = gql `
852
998
  credits_charged
853
999
  created_at
854
1000
  completed_at
1001
+ share_token
1002
+ share_watermark
855
1003
  pipeline {
856
1004
  name
857
1005
  slug
@@ -899,6 +1047,8 @@ export const GetPipelineRunsDocument = gql `
899
1047
  credits_charged
900
1048
  created_at
901
1049
  completed_at
1050
+ share_token
1051
+ share_watermark
902
1052
  workflow_execution {
903
1053
  status
904
1054
  start_time
@@ -946,6 +1096,8 @@ export const GetPipelineRunsBySlugDocument = gql `
946
1096
  credits_charged
947
1097
  created_at
948
1098
  completed_at
1099
+ share_token
1100
+ share_watermark
949
1101
  assets {
950
1102
  id
951
1103
  type
@@ -990,6 +1142,18 @@ export const GetActivePipelineRunsDocument = gql `
990
1142
  }
991
1143
  }
992
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
+ `;
993
1157
  export const GetPlansDocument = gql `
994
1158
  query GetPlans {
995
1159
  plans(order_by: {sort_order: asc}) {
@@ -999,6 +1163,12 @@ export const GetPlansDocument = gql `
999
1163
  description
1000
1164
  features
1001
1165
  sort_order
1166
+ translations {
1167
+ locale
1168
+ name
1169
+ description
1170
+ features
1171
+ }
1002
1172
  versions(where: {is_current: {_eq: true}}, limit: 1) {
1003
1173
  id
1004
1174
  whop_plan_id
@@ -1017,6 +1187,10 @@ export const GetCreditPacksDocument = gql `
1017
1187
  slug
1018
1188
  name
1019
1189
  sort_order
1190
+ translations {
1191
+ locale
1192
+ name
1193
+ }
1020
1194
  versions(where: {is_current: {_eq: true}}, limit: 1) {
1021
1195
  id
1022
1196
  whop_plan_id
@@ -1052,6 +1226,17 @@ export const GetSubscriptionDocument = gql `
1052
1226
  }
1053
1227
  }
1054
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
+ `;
1055
1240
  export const WatchPipelineRunDocument = gql `
1056
1241
  subscription WatchPipelineRun($run_id: uuid!) {
1057
1242
  pipeline_runs_by_pk(id: $run_id) {
@@ -1229,17 +1414,11 @@ export function getSdk(requester) {
1229
1414
  UpdateAssetTags(variables, options) {
1230
1415
  return requester(UpdateAssetTagsDocument, variables, options);
1231
1416
  },
1232
- InitLoginFlow(variables, options) {
1233
- return requester(InitLoginFlowDocument, variables, options);
1234
- },
1235
- SubmitLoginFlow(variables, options) {
1236
- return requester(SubmitLoginFlowDocument, variables, options);
1417
+ Login(variables, options) {
1418
+ return requester(LoginDocument, variables, options);
1237
1419
  },
1238
- InitSignupFlow(variables, options) {
1239
- return requester(InitSignupFlowDocument, variables, options);
1240
- },
1241
- SubmitSignupFlow(variables, options) {
1242
- return requester(SubmitSignupFlowDocument, variables, options);
1420
+ Register(variables, options) {
1421
+ return requester(RegisterDocument, variables, options);
1243
1422
  },
1244
1423
  SubmitSocialLogin(variables, options) {
1245
1424
  return requester(SubmitSocialLoginDocument, variables, options);
@@ -1250,11 +1429,11 @@ export function getSdk(requester) {
1250
1429
  SubmitVerificationCode(variables, options) {
1251
1430
  return requester(SubmitVerificationCodeDocument, variables, options);
1252
1431
  },
1253
- InitRecoveryFlow(variables, options) {
1254
- return requester(InitRecoveryFlowDocument, variables, options);
1432
+ RequestPasswordReset(variables, options) {
1433
+ return requester(RequestPasswordResetDocument, variables, options);
1255
1434
  },
1256
- SubmitRecoveryFlow(variables, options) {
1257
- return requester(SubmitRecoveryFlowDocument, variables, options);
1435
+ ResetPassword(variables, options) {
1436
+ return requester(ResetPasswordDocument, variables, options);
1258
1437
  },
1259
1438
  GetCreditBalance(variables, options) {
1260
1439
  return requester(GetCreditBalanceDocument, variables, options);
@@ -1304,6 +1483,9 @@ export function getSdk(requester) {
1304
1483
  GetActivePipelineRuns(variables, options) {
1305
1484
  return requester(GetActivePipelineRunsDocument, variables, options);
1306
1485
  },
1486
+ SetRunShare(variables, options) {
1487
+ return requester(SetRunShareDocument, variables, options);
1488
+ },
1307
1489
  GetPlans(variables, options) {
1308
1490
  return requester(GetPlansDocument, variables, options);
1309
1491
  },
@@ -1313,6 +1495,9 @@ export function getSdk(requester) {
1313
1495
  GetSubscription(variables, options) {
1314
1496
  return requester(GetSubscriptionDocument, variables, options);
1315
1497
  },
1498
+ CreateCheckoutSession(variables, options) {
1499
+ return requester(CreateCheckoutSessionDocument, variables, options);
1500
+ },
1316
1501
  WatchPipelineRun(variables, options) {
1317
1502
  return requester(WatchPipelineRunDocument, variables, options);
1318
1503
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipe2-ai/sdk",
3
- "version": "2026.07.1",
3
+ "version": "2026.07.2",
4
4
  "type": "module",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",