@pipe2-ai/sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,805 @@
1
+ import gql from 'graphql-tag';
2
+ /** select columns of table "affiliate_codes" */
3
+ export var Affiliate_Codes_Select_Column;
4
+ (function (Affiliate_Codes_Select_Column) {
5
+ /** column name */
6
+ Affiliate_Codes_Select_Column["AffiliateId"] = "affiliate_id";
7
+ /** column name */
8
+ Affiliate_Codes_Select_Column["Code"] = "code";
9
+ /** column name */
10
+ Affiliate_Codes_Select_Column["CreatedAt"] = "created_at";
11
+ /** column name */
12
+ Affiliate_Codes_Select_Column["Id"] = "id";
13
+ /** column name */
14
+ Affiliate_Codes_Select_Column["IsPrimary"] = "is_primary";
15
+ /** column name */
16
+ Affiliate_Codes_Select_Column["RedirectPath"] = "redirect_path";
17
+ })(Affiliate_Codes_Select_Column || (Affiliate_Codes_Select_Column = {}));
18
+ /** select columns of table "affiliates" */
19
+ export var Affiliates_Select_Column;
20
+ (function (Affiliates_Select_Column) {
21
+ /** column name */
22
+ Affiliates_Select_Column["CommissionPercent"] = "commission_percent";
23
+ /** column name */
24
+ Affiliates_Select_Column["CreatedAt"] = "created_at";
25
+ /** column name */
26
+ Affiliates_Select_Column["Id"] = "id";
27
+ /** column name */
28
+ Affiliates_Select_Column["IsActive"] = "is_active";
29
+ /** column name */
30
+ Affiliates_Select_Column["WhopAffiliateId"] = "whop_affiliate_id";
31
+ })(Affiliates_Select_Column || (Affiliates_Select_Column = {}));
32
+ /** select columns of table "assets" */
33
+ export var Assets_Select_Column;
34
+ (function (Assets_Select_Column) {
35
+ /** column name */
36
+ Assets_Select_Column["CreatedAt"] = "created_at";
37
+ /** column name */
38
+ Assets_Select_Column["Id"] = "id";
39
+ /** column name */
40
+ Assets_Select_Column["Metadata"] = "metadata";
41
+ /** column name */
42
+ Assets_Select_Column["PipelineRunId"] = "pipeline_run_id";
43
+ /** column name */
44
+ Assets_Select_Column["Tags"] = "tags";
45
+ /** column name */
46
+ Assets_Select_Column["ThumbnailUrl"] = "thumbnail_url";
47
+ /** column name */
48
+ Assets_Select_Column["Type"] = "type";
49
+ /** column name */
50
+ Assets_Select_Column["Url"] = "url";
51
+ })(Assets_Select_Column || (Assets_Select_Column = {}));
52
+ /** select columns of table "credit_packs" */
53
+ export var Credit_Packs_Select_Column;
54
+ (function (Credit_Packs_Select_Column) {
55
+ /** column name */
56
+ Credit_Packs_Select_Column["Credits"] = "credits";
57
+ /** column name */
58
+ Credit_Packs_Select_Column["Id"] = "id";
59
+ /** column name */
60
+ Credit_Packs_Select_Column["Name"] = "name";
61
+ /** column name */
62
+ Credit_Packs_Select_Column["PriceCents"] = "price_cents";
63
+ /** column name */
64
+ Credit_Packs_Select_Column["Slug"] = "slug";
65
+ /** column name */
66
+ Credit_Packs_Select_Column["SortOrder"] = "sort_order";
67
+ /** column name */
68
+ Credit_Packs_Select_Column["WhopPlanId"] = "whop_plan_id";
69
+ })(Credit_Packs_Select_Column || (Credit_Packs_Select_Column = {}));
70
+ /** ordering argument of a cursor */
71
+ export var Cursor_Ordering;
72
+ (function (Cursor_Ordering) {
73
+ /** ascending ordering of the cursor */
74
+ Cursor_Ordering["Asc"] = "ASC";
75
+ /** descending ordering of the cursor */
76
+ Cursor_Ordering["Desc"] = "DESC";
77
+ })(Cursor_Ordering || (Cursor_Ordering = {}));
78
+ /** select columns of table "executions_visibility" */
79
+ export var Executions_Visibility_Select_Column;
80
+ (function (Executions_Visibility_Select_Column) {
81
+ /** column name */
82
+ Executions_Visibility_Select_Column["CloseTime"] = "close_time";
83
+ /** column name */
84
+ Executions_Visibility_Select_Column["RunId"] = "run_id";
85
+ /** column name */
86
+ Executions_Visibility_Select_Column["StartTime"] = "start_time";
87
+ /** column name */
88
+ Executions_Visibility_Select_Column["Status"] = "status";
89
+ /** column name */
90
+ Executions_Visibility_Select_Column["TaskQueue"] = "task_queue";
91
+ /** column name */
92
+ Executions_Visibility_Select_Column["WorkflowId"] = "workflow_id";
93
+ /** column name */
94
+ Executions_Visibility_Select_Column["WorkflowTypeName"] = "workflow_type_name";
95
+ })(Executions_Visibility_Select_Column || (Executions_Visibility_Select_Column = {}));
96
+ /** column ordering options */
97
+ export var Order_By;
98
+ (function (Order_By) {
99
+ /** in ascending order, nulls last */
100
+ Order_By["Asc"] = "asc";
101
+ /** in ascending order, nulls first */
102
+ Order_By["AscNullsFirst"] = "asc_nulls_first";
103
+ /** in ascending order, nulls last */
104
+ Order_By["AscNullsLast"] = "asc_nulls_last";
105
+ /** in descending order, nulls first */
106
+ Order_By["Desc"] = "desc";
107
+ /** in descending order, nulls first */
108
+ Order_By["DescNullsFirst"] = "desc_nulls_first";
109
+ /** in descending order, nulls last */
110
+ Order_By["DescNullsLast"] = "desc_nulls_last";
111
+ })(Order_By || (Order_By = {}));
112
+ /** select columns of table "personal_access_tokens" */
113
+ export var Personal_Access_Tokens_Select_Column;
114
+ (function (Personal_Access_Tokens_Select_Column) {
115
+ /** column name */
116
+ Personal_Access_Tokens_Select_Column["CreatedAt"] = "created_at";
117
+ /** column name */
118
+ Personal_Access_Tokens_Select_Column["ExpiresAt"] = "expires_at";
119
+ /** column name */
120
+ Personal_Access_Tokens_Select_Column["Id"] = "id";
121
+ /** column name */
122
+ Personal_Access_Tokens_Select_Column["LastUsedAt"] = "last_used_at";
123
+ /** column name */
124
+ Personal_Access_Tokens_Select_Column["Name"] = "name";
125
+ /** column name */
126
+ Personal_Access_Tokens_Select_Column["RevokedAt"] = "revoked_at";
127
+ /** column name */
128
+ Personal_Access_Tokens_Select_Column["Scopes"] = "scopes";
129
+ })(Personal_Access_Tokens_Select_Column || (Personal_Access_Tokens_Select_Column = {}));
130
+ /** select columns of table "pipeline_runs" */
131
+ export var Pipeline_Runs_Select_Column;
132
+ (function (Pipeline_Runs_Select_Column) {
133
+ /** column name */
134
+ Pipeline_Runs_Select_Column["CompletedAt"] = "completed_at";
135
+ /** column name */
136
+ Pipeline_Runs_Select_Column["CreatedAt"] = "created_at";
137
+ /** column name */
138
+ Pipeline_Runs_Select_Column["CreditsCharged"] = "credits_charged";
139
+ /** column name */
140
+ Pipeline_Runs_Select_Column["ErrorMessage"] = "error_message";
141
+ /** column name */
142
+ Pipeline_Runs_Select_Column["Id"] = "id";
143
+ /** column name */
144
+ Pipeline_Runs_Select_Column["Input"] = "input";
145
+ /** column name */
146
+ Pipeline_Runs_Select_Column["Output"] = "output";
147
+ /** column name */
148
+ Pipeline_Runs_Select_Column["PipelineId"] = "pipeline_id";
149
+ /** column name */
150
+ Pipeline_Runs_Select_Column["StartedAt"] = "started_at";
151
+ /** column name */
152
+ Pipeline_Runs_Select_Column["Status"] = "status";
153
+ /** column name */
154
+ Pipeline_Runs_Select_Column["TemporalWorkflowId"] = "temporal_workflow_id";
155
+ })(Pipeline_Runs_Select_Column || (Pipeline_Runs_Select_Column = {}));
156
+ /** select columns of table "pipelines" */
157
+ export var Pipelines_Select_Column;
158
+ (function (Pipelines_Select_Column) {
159
+ /** column name */
160
+ Pipelines_Select_Column["Category"] = "category";
161
+ /** column name */
162
+ Pipelines_Select_Column["CreditCost"] = "credit_cost";
163
+ /** column name */
164
+ Pipelines_Select_Column["Description"] = "description";
165
+ /** column name */
166
+ Pipelines_Select_Column["IconUrl"] = "icon_url";
167
+ /** column name */
168
+ Pipelines_Select_Column["Id"] = "id";
169
+ /** column name */
170
+ Pipelines_Select_Column["InputSchema"] = "input_schema";
171
+ /** column name */
172
+ Pipelines_Select_Column["Name"] = "name";
173
+ /** column name */
174
+ Pipelines_Select_Column["OutputSchema"] = "output_schema";
175
+ /** column name */
176
+ Pipelines_Select_Column["PreviewUrl"] = "preview_url";
177
+ /** column name */
178
+ Pipelines_Select_Column["RequiredProviders"] = "required_providers";
179
+ /** column name */
180
+ Pipelines_Select_Column["SeoContent"] = "seo_content";
181
+ /** column name */
182
+ Pipelines_Select_Column["SeoFaq"] = "seo_faq";
183
+ /** column name */
184
+ Pipelines_Select_Column["Slug"] = "slug";
185
+ /** column name */
186
+ Pipelines_Select_Column["SortOrder"] = "sort_order";
187
+ /** column name */
188
+ Pipelines_Select_Column["UiSchema"] = "ui_schema";
189
+ })(Pipelines_Select_Column || (Pipelines_Select_Column = {}));
190
+ /** select columns of table "plans" */
191
+ export var Plans_Select_Column;
192
+ (function (Plans_Select_Column) {
193
+ /** column name */
194
+ Plans_Select_Column["Description"] = "description";
195
+ /** column name */
196
+ Plans_Select_Column["Features"] = "features";
197
+ /** column name */
198
+ Plans_Select_Column["Id"] = "id";
199
+ /** column name */
200
+ Plans_Select_Column["MonthlyCredits"] = "monthly_credits";
201
+ /** column name */
202
+ Plans_Select_Column["Name"] = "name";
203
+ /** column name */
204
+ Plans_Select_Column["PriceCents"] = "price_cents";
205
+ /** column name */
206
+ Plans_Select_Column["Slug"] = "slug";
207
+ /** column name */
208
+ Plans_Select_Column["SortOrder"] = "sort_order";
209
+ /** column name */
210
+ Plans_Select_Column["WhopPlanId"] = "whop_plan_id";
211
+ })(Plans_Select_Column || (Plans_Select_Column = {}));
212
+ /** select columns of table "subscriptions" */
213
+ export var Subscriptions_Select_Column;
214
+ (function (Subscriptions_Select_Column) {
215
+ /** column name */
216
+ Subscriptions_Select_Column["CancelAtPeriodEnd"] = "cancel_at_period_end";
217
+ /** column name */
218
+ Subscriptions_Select_Column["CreatedAt"] = "created_at";
219
+ /** column name */
220
+ Subscriptions_Select_Column["Id"] = "id";
221
+ /** column name */
222
+ Subscriptions_Select_Column["PeriodEnd"] = "period_end";
223
+ /** column name */
224
+ Subscriptions_Select_Column["PeriodStart"] = "period_start";
225
+ /** column name */
226
+ Subscriptions_Select_Column["PlanId"] = "plan_id";
227
+ /** column name */
228
+ Subscriptions_Select_Column["Status"] = "status";
229
+ })(Subscriptions_Select_Column || (Subscriptions_Select_Column = {}));
230
+ export const GetMyAffiliateCodesDocument = gql `
231
+ query GetMyAffiliateCodes {
232
+ affiliate_codes(order_by: {created_at: desc}) {
233
+ id
234
+ code
235
+ is_primary
236
+ redirect_path
237
+ created_at
238
+ }
239
+ }
240
+ `;
241
+ export const GetMyAffiliateDocument = gql `
242
+ query GetMyAffiliate {
243
+ affiliates(limit: 1) {
244
+ id
245
+ whop_affiliate_id
246
+ commission_percent
247
+ is_active
248
+ codes(order_by: {created_at: desc}) {
249
+ id
250
+ code
251
+ is_primary
252
+ redirect_path
253
+ created_at
254
+ }
255
+ }
256
+ }
257
+ `;
258
+ export const AddAffiliateCodeDocument = gql `
259
+ mutation AddAffiliateCode($code: String!, $redirect_path: String) {
260
+ add_affiliate_code(code: $code, redirect_path: $redirect_path) {
261
+ success
262
+ code_id
263
+ }
264
+ }
265
+ `;
266
+ export const EnsureAffiliateDocument = gql `
267
+ mutation EnsureAffiliate {
268
+ ensure_affiliate {
269
+ success
270
+ affiliate_id
271
+ }
272
+ }
273
+ `;
274
+ export const GetMyReferralsDocument = gql `
275
+ query GetMyReferrals {
276
+ get_my_referrals {
277
+ total_referrals
278
+ active_referrals
279
+ total_commission_cents
280
+ referrals {
281
+ user_id
282
+ email
283
+ name
284
+ signed_up_at
285
+ subscription_status
286
+ plan_name
287
+ commission_cents
288
+ }
289
+ }
290
+ }
291
+ `;
292
+ export const GetUserAssetsDocument = gql `
293
+ query GetUserAssets($where: assets_bool_exp = {}, $limit: Int = 20, $offset: Int = 0) {
294
+ assets(
295
+ where: $where
296
+ order_by: {created_at: desc}
297
+ limit: $limit
298
+ offset: $offset
299
+ ) {
300
+ id
301
+ type
302
+ url
303
+ thumbnail_url
304
+ metadata
305
+ tags
306
+ created_at
307
+ pipeline_run_id
308
+ }
309
+ assets_aggregate(where: $where) {
310
+ aggregate {
311
+ count
312
+ }
313
+ }
314
+ }
315
+ `;
316
+ export const RequestUploadDocument = gql `
317
+ mutation RequestUpload($filename: String!, $content_type: String!) {
318
+ request_upload(filename: $filename, content_type: $content_type) {
319
+ upload_url
320
+ asset_url
321
+ key
322
+ }
323
+ }
324
+ `;
325
+ export const CreateAssetDocument = gql `
326
+ mutation CreateAsset($asset_type: String!, $url: String!, $tags: [String!] = []) {
327
+ create_asset(type: $asset_type, url: $url, tags: $tags) {
328
+ id
329
+ type
330
+ url
331
+ tags
332
+ created_at
333
+ }
334
+ }
335
+ `;
336
+ export const DeleteAssetActionDocument = gql `
337
+ mutation DeleteAssetAction($id: uuid!) {
338
+ delete_asset(id: $id) {
339
+ success
340
+ }
341
+ }
342
+ `;
343
+ export const UpdateAssetTagsDocument = gql `
344
+ mutation UpdateAssetTags($id: uuid!, $tags: [String!]!) {
345
+ update_assets_by_pk(pk_columns: {id: $id}, _set: {tags: $tags}) {
346
+ id
347
+ tags
348
+ }
349
+ }
350
+ `;
351
+ export const InitLoginFlowDocument = gql `
352
+ mutation InitLoginFlow {
353
+ init_login_flow {
354
+ id
355
+ csrf_token
356
+ }
357
+ }
358
+ `;
359
+ export const SubmitLoginFlowDocument = gql `
360
+ mutation SubmitLoginFlow($flowId: String!, $email: String!, $password: String!, $csrf_token: String!, $referral_code: String) {
361
+ submit_login_flow(
362
+ flowId: $flowId
363
+ email: $email
364
+ password: $password
365
+ csrf_token: $csrf_token
366
+ referral_code: $referral_code
367
+ ) {
368
+ success
369
+ message
370
+ token
371
+ whop_affiliate_id
372
+ }
373
+ }
374
+ `;
375
+ export const InitSignupFlowDocument = gql `
376
+ mutation InitSignupFlow {
377
+ init_signup_flow {
378
+ id
379
+ csrf_token
380
+ }
381
+ }
382
+ `;
383
+ export const SubmitSignupFlowDocument = gql `
384
+ mutation SubmitSignupFlow($flowId: String!, $email: String!, $password: String!, $name: String!, $csrf_token: String!) {
385
+ submit_signup_flow(
386
+ flowId: $flowId
387
+ email: $email
388
+ password: $password
389
+ name: $name
390
+ csrf_token: $csrf_token
391
+ ) {
392
+ success
393
+ message
394
+ token
395
+ }
396
+ }
397
+ `;
398
+ export const SubmitSocialLoginDocument = gql `
399
+ mutation SubmitSocialLogin($provider: String!) {
400
+ submit_social_login(provider: $provider) {
401
+ success
402
+ redirect_url
403
+ }
404
+ }
405
+ `;
406
+ export const InitVerificationFlowDocument = gql `
407
+ mutation InitVerificationFlow($email: String) {
408
+ init_verification_flow(email: $email) {
409
+ id
410
+ csrf_token
411
+ }
412
+ }
413
+ `;
414
+ export const SubmitVerificationCodeDocument = gql `
415
+ mutation SubmitVerificationCode($flowId: String!, $code: String!, $csrf_token: String!) {
416
+ submit_verification_code(flowId: $flowId, code: $code, csrf_token: $csrf_token) {
417
+ success
418
+ message
419
+ }
420
+ }
421
+ `;
422
+ export const InitRecoveryFlowDocument = gql `
423
+ mutation InitRecoveryFlow($email: String!) {
424
+ init_recovery_flow(email: $email) {
425
+ success
426
+ message
427
+ }
428
+ }
429
+ `;
430
+ export const SubmitRecoveryFlowDocument = gql `
431
+ mutation SubmitRecoveryFlow($flowId: String!, $password: String!, $csrf_token: String!) {
432
+ submit_recovery_flow(
433
+ flowId: $flowId
434
+ password: $password
435
+ csrf_token: $csrf_token
436
+ ) {
437
+ success
438
+ message
439
+ }
440
+ }
441
+ `;
442
+ export const GetCreditBalanceDocument = gql `
443
+ query GetCreditBalance {
444
+ get_credit_balance {
445
+ balance
446
+ reserved
447
+ available
448
+ }
449
+ }
450
+ `;
451
+ export const GetCreditHistoryDocument = gql `
452
+ query GetCreditHistory {
453
+ get_credit_history {
454
+ type
455
+ amount
456
+ description
457
+ created_at
458
+ }
459
+ }
460
+ `;
461
+ export const GetPipelinesDocument = gql `
462
+ query GetPipelines {
463
+ pipelines(order_by: {sort_order: asc}) {
464
+ id
465
+ slug
466
+ name
467
+ description
468
+ category
469
+ icon_url
470
+ preview_url
471
+ required_providers
472
+ credit_cost
473
+ input_schema
474
+ ui_schema
475
+ output_schema
476
+ seo_content
477
+ seo_faq
478
+ }
479
+ }
480
+ `;
481
+ export const RunPipelineDocument = gql `
482
+ mutation RunPipeline($pipeline_slug: String!, $input: jsonb!) {
483
+ run_pipeline(pipeline_slug: $pipeline_slug, input: $input) {
484
+ run_id
485
+ workflow_id
486
+ }
487
+ }
488
+ `;
489
+ export const GetPipelineRunDocument = gql `
490
+ query GetPipelineRun($id: uuid!) {
491
+ pipeline_runs_by_pk(id: $id) {
492
+ id
493
+ status
494
+ output
495
+ error_message
496
+ credits_charged
497
+ created_at
498
+ completed_at
499
+ pipeline {
500
+ name
501
+ slug
502
+ output_schema
503
+ }
504
+ assets {
505
+ id
506
+ type
507
+ url
508
+ thumbnail_url
509
+ created_at
510
+ }
511
+ workflow_execution {
512
+ status
513
+ start_time
514
+ close_time
515
+ }
516
+ }
517
+ }
518
+ `;
519
+ export const GetPipelineRunsDocument = gql `
520
+ query GetPipelineRuns($limit: Int = 12, $offset: Int = 0, $where: pipeline_runs_bool_exp = {}) {
521
+ pipeline_runs(
522
+ order_by: {created_at: desc}
523
+ limit: $limit
524
+ offset: $offset
525
+ where: $where
526
+ ) {
527
+ id
528
+ pipeline {
529
+ name
530
+ slug
531
+ output_schema
532
+ }
533
+ status
534
+ output
535
+ error_message
536
+ credits_charged
537
+ created_at
538
+ completed_at
539
+ }
540
+ pipeline_runs_aggregate(where: $where) {
541
+ aggregate {
542
+ count
543
+ sum {
544
+ credits_charged
545
+ }
546
+ }
547
+ }
548
+ completed: pipeline_runs_aggregate(
549
+ where: {_and: [$where, {completed_at: {_is_null: false}}]}
550
+ ) {
551
+ aggregate {
552
+ count
553
+ }
554
+ }
555
+ }
556
+ `;
557
+ export const GetPipelineRunsBySlugDocument = gql `
558
+ query GetPipelineRunsBySlug($slug: String!, $limit: Int = 10, $offset: Int = 0) {
559
+ pipeline_runs(
560
+ where: {pipeline: {slug: {_eq: $slug}}}
561
+ order_by: {created_at: desc}
562
+ limit: $limit
563
+ offset: $offset
564
+ ) {
565
+ id
566
+ status
567
+ pipeline {
568
+ name
569
+ slug
570
+ output_schema
571
+ }
572
+ output
573
+ error_message
574
+ credits_charged
575
+ created_at
576
+ completed_at
577
+ workflow_execution {
578
+ status
579
+ start_time
580
+ close_time
581
+ }
582
+ }
583
+ pipeline_runs_aggregate(where: {pipeline: {slug: {_eq: $slug}}}) {
584
+ aggregate {
585
+ count
586
+ }
587
+ }
588
+ }
589
+ `;
590
+ export const GetPlansDocument = gql `
591
+ query GetPlans {
592
+ plans(order_by: {sort_order: asc}) {
593
+ id
594
+ slug
595
+ name
596
+ description
597
+ monthly_credits
598
+ price_cents
599
+ features
600
+ sort_order
601
+ whop_plan_id
602
+ }
603
+ }
604
+ `;
605
+ export const GetCreditPacksDocument = gql `
606
+ query GetCreditPacks {
607
+ credit_packs(order_by: {sort_order: asc}) {
608
+ id
609
+ slug
610
+ name
611
+ credits
612
+ price_cents
613
+ sort_order
614
+ whop_plan_id
615
+ }
616
+ }
617
+ `;
618
+ export const GetSubscriptionDocument = gql `
619
+ query GetSubscription {
620
+ subscriptions {
621
+ id
622
+ plan_id
623
+ status
624
+ period_start
625
+ period_end
626
+ cancel_at_period_end
627
+ plan {
628
+ slug
629
+ name
630
+ monthly_credits
631
+ sort_order
632
+ }
633
+ }
634
+ }
635
+ `;
636
+ export const WatchPipelineRunDocument = gql `
637
+ subscription WatchPipelineRun($run_id: uuid!) {
638
+ pipeline_runs_by_pk(id: $run_id) {
639
+ id
640
+ status
641
+ output
642
+ error_message
643
+ completed_at
644
+ pipeline {
645
+ name
646
+ slug
647
+ }
648
+ assets {
649
+ id
650
+ type
651
+ url
652
+ thumbnail_url
653
+ }
654
+ }
655
+ }
656
+ `;
657
+ export const GetMyApiKeysDocument = gql `
658
+ query GetMyApiKeys {
659
+ personal_access_tokens(order_by: {created_at: desc}) {
660
+ id
661
+ name
662
+ scopes
663
+ last_used_at
664
+ created_at
665
+ expires_at
666
+ revoked_at
667
+ }
668
+ }
669
+ `;
670
+ export const CreatePersonalAccessTokenDocument = gql `
671
+ mutation CreatePersonalAccessToken($name: String!) {
672
+ create_personal_access_token(name: $name) {
673
+ success
674
+ id
675
+ token
676
+ jti
677
+ expires_at
678
+ }
679
+ }
680
+ `;
681
+ export const RevokePersonalAccessTokenDocument = gql `
682
+ mutation RevokePersonalAccessToken($id: uuid!) {
683
+ revoke_personal_access_token(id: $id) {
684
+ success
685
+ revoked_at
686
+ }
687
+ }
688
+ `;
689
+ export const GetCurrentUserDocument = gql `
690
+ query GetCurrentUser {
691
+ current_user {
692
+ id
693
+ email
694
+ name
695
+ email_verified
696
+ avatar_url
697
+ }
698
+ }
699
+ `;
700
+ export function getSdk(requester) {
701
+ return {
702
+ GetMyAffiliateCodes(variables, options) {
703
+ return requester(GetMyAffiliateCodesDocument, variables, options);
704
+ },
705
+ GetMyAffiliate(variables, options) {
706
+ return requester(GetMyAffiliateDocument, variables, options);
707
+ },
708
+ AddAffiliateCode(variables, options) {
709
+ return requester(AddAffiliateCodeDocument, variables, options);
710
+ },
711
+ EnsureAffiliate(variables, options) {
712
+ return requester(EnsureAffiliateDocument, variables, options);
713
+ },
714
+ GetMyReferrals(variables, options) {
715
+ return requester(GetMyReferralsDocument, variables, options);
716
+ },
717
+ GetUserAssets(variables, options) {
718
+ return requester(GetUserAssetsDocument, variables, options);
719
+ },
720
+ RequestUpload(variables, options) {
721
+ return requester(RequestUploadDocument, variables, options);
722
+ },
723
+ CreateAsset(variables, options) {
724
+ return requester(CreateAssetDocument, variables, options);
725
+ },
726
+ DeleteAssetAction(variables, options) {
727
+ return requester(DeleteAssetActionDocument, variables, options);
728
+ },
729
+ UpdateAssetTags(variables, options) {
730
+ return requester(UpdateAssetTagsDocument, variables, options);
731
+ },
732
+ InitLoginFlow(variables, options) {
733
+ return requester(InitLoginFlowDocument, variables, options);
734
+ },
735
+ SubmitLoginFlow(variables, options) {
736
+ return requester(SubmitLoginFlowDocument, variables, options);
737
+ },
738
+ InitSignupFlow(variables, options) {
739
+ return requester(InitSignupFlowDocument, variables, options);
740
+ },
741
+ SubmitSignupFlow(variables, options) {
742
+ return requester(SubmitSignupFlowDocument, variables, options);
743
+ },
744
+ SubmitSocialLogin(variables, options) {
745
+ return requester(SubmitSocialLoginDocument, variables, options);
746
+ },
747
+ InitVerificationFlow(variables, options) {
748
+ return requester(InitVerificationFlowDocument, variables, options);
749
+ },
750
+ SubmitVerificationCode(variables, options) {
751
+ return requester(SubmitVerificationCodeDocument, variables, options);
752
+ },
753
+ InitRecoveryFlow(variables, options) {
754
+ return requester(InitRecoveryFlowDocument, variables, options);
755
+ },
756
+ SubmitRecoveryFlow(variables, options) {
757
+ return requester(SubmitRecoveryFlowDocument, variables, options);
758
+ },
759
+ GetCreditBalance(variables, options) {
760
+ return requester(GetCreditBalanceDocument, variables, options);
761
+ },
762
+ GetCreditHistory(variables, options) {
763
+ return requester(GetCreditHistoryDocument, variables, options);
764
+ },
765
+ GetPipelines(variables, options) {
766
+ return requester(GetPipelinesDocument, variables, options);
767
+ },
768
+ RunPipeline(variables, options) {
769
+ return requester(RunPipelineDocument, variables, options);
770
+ },
771
+ GetPipelineRun(variables, options) {
772
+ return requester(GetPipelineRunDocument, variables, options);
773
+ },
774
+ GetPipelineRuns(variables, options) {
775
+ return requester(GetPipelineRunsDocument, variables, options);
776
+ },
777
+ GetPipelineRunsBySlug(variables, options) {
778
+ return requester(GetPipelineRunsBySlugDocument, variables, options);
779
+ },
780
+ GetPlans(variables, options) {
781
+ return requester(GetPlansDocument, variables, options);
782
+ },
783
+ GetCreditPacks(variables, options) {
784
+ return requester(GetCreditPacksDocument, variables, options);
785
+ },
786
+ GetSubscription(variables, options) {
787
+ return requester(GetSubscriptionDocument, variables, options);
788
+ },
789
+ WatchPipelineRun(variables, options) {
790
+ return requester(WatchPipelineRunDocument, variables, options);
791
+ },
792
+ GetMyApiKeys(variables, options) {
793
+ return requester(GetMyApiKeysDocument, variables, options);
794
+ },
795
+ CreatePersonalAccessToken(variables, options) {
796
+ return requester(CreatePersonalAccessTokenDocument, variables, options);
797
+ },
798
+ RevokePersonalAccessToken(variables, options) {
799
+ return requester(RevokePersonalAccessTokenDocument, variables, options);
800
+ },
801
+ GetCurrentUser(variables, options) {
802
+ return requester(GetCurrentUserDocument, variables, options);
803
+ }
804
+ };
805
+ }