@superdurable/connector-atlassian-bitbucket 0.0.0-stage → 0.2.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,1450 @@
1
+ {
2
+ "connectorId": "bitbucket",
3
+ "releaseTag": "connectors/atlassian/bitbucket/go/v0.3.0",
4
+ "package": {
5
+ "ecosystem": "npm",
6
+ "name": "@superdurable/connector-atlassian-bitbucket",
7
+ "version": "0.2.0"
8
+ },
9
+ "factories": [
10
+ {
11
+ "name": "newListBranchesStep",
12
+ "kind": "query",
13
+ "operationId": "listBranches",
14
+ "inputType": "ListBranchesInput",
15
+ "description": "List Branches in a Bitbucket repository.",
16
+ "fields": {
17
+ "stepType": "stepType",
18
+ "annotations": "annotations",
19
+ "connectionName": "connectionName",
20
+ "resultAttribute": "resultAttribute"
21
+ },
22
+ "branches": [
23
+ {
24
+ "id": "listed",
25
+ "field": "listed",
26
+ "optional": false
27
+ },
28
+ {
29
+ "id": "notFound",
30
+ "field": "notFound",
31
+ "optional": true
32
+ },
33
+ {
34
+ "id": "providerRejected",
35
+ "field": "providerRejected",
36
+ "optional": true
37
+ },
38
+ {
39
+ "id": "invalidResponse",
40
+ "field": "invalidResponse",
41
+ "optional": true
42
+ },
43
+ {
44
+ "id": "defect",
45
+ "field": "defect",
46
+ "optional": true
47
+ }
48
+ ],
49
+ "inputSchema": {
50
+ "additionalProperties": false,
51
+ "description": "ListBranchesInput identifies a Bitbucket repository.",
52
+ "properties": {
53
+ "repository": {
54
+ "description": "Repository is the repository slug.",
55
+ "type": "string"
56
+ },
57
+ "workspace": {
58
+ "description": "Workspace is the Bitbucket workspace slug.",
59
+ "type": "string"
60
+ }
61
+ },
62
+ "required": [
63
+ "repository",
64
+ "workspace"
65
+ ],
66
+ "type": "object"
67
+ }
68
+ },
69
+ {
70
+ "name": "newGetBranchStep",
71
+ "kind": "query",
72
+ "operationId": "getBranch",
73
+ "inputType": "BranchRefInput",
74
+ "description": "Get Branch in a Bitbucket repository.",
75
+ "fields": {
76
+ "stepType": "stepType",
77
+ "annotations": "annotations",
78
+ "connectionName": "connectionName",
79
+ "resultAttribute": "resultAttribute"
80
+ },
81
+ "branches": [
82
+ {
83
+ "id": "found",
84
+ "field": "found",
85
+ "optional": false
86
+ },
87
+ {
88
+ "id": "notFound",
89
+ "field": "notFound",
90
+ "optional": true
91
+ },
92
+ {
93
+ "id": "providerRejected",
94
+ "field": "providerRejected",
95
+ "optional": true
96
+ },
97
+ {
98
+ "id": "invalidResponse",
99
+ "field": "invalidResponse",
100
+ "optional": true
101
+ },
102
+ {
103
+ "id": "defect",
104
+ "field": "defect",
105
+ "optional": true
106
+ }
107
+ ],
108
+ "inputSchema": {
109
+ "additionalProperties": false,
110
+ "description": "BranchRefInput identifies one branch in a repository.",
111
+ "properties": {
112
+ "name": {
113
+ "description": "Name is the branch name without refs/heads/.",
114
+ "type": "string"
115
+ },
116
+ "repository": {
117
+ "description": "Repository is the repository slug.",
118
+ "type": "string"
119
+ },
120
+ "workspace": {
121
+ "description": "Workspace is the Bitbucket workspace slug.",
122
+ "type": "string"
123
+ }
124
+ },
125
+ "required": [
126
+ "name",
127
+ "repository",
128
+ "workspace"
129
+ ],
130
+ "type": "object"
131
+ }
132
+ },
133
+ {
134
+ "name": "newCreateBranchStep",
135
+ "kind": "mutation",
136
+ "operationId": "createBranch",
137
+ "inputType": "CreateBranchInput",
138
+ "description": "Create Branch in a Bitbucket repository.",
139
+ "fields": {
140
+ "stepType": "stepType",
141
+ "annotations": "annotations",
142
+ "connectionName": "connectionName",
143
+ "resultAttribute": "resultAttribute"
144
+ },
145
+ "branches": [
146
+ {
147
+ "id": "created",
148
+ "field": "created",
149
+ "optional": false
150
+ },
151
+ {
152
+ "id": "notFound",
153
+ "field": "notFound",
154
+ "optional": true
155
+ },
156
+ {
157
+ "id": "providerRejected",
158
+ "field": "providerRejected",
159
+ "optional": true
160
+ },
161
+ {
162
+ "id": "invalidResponse",
163
+ "field": "invalidResponse",
164
+ "optional": true
165
+ },
166
+ {
167
+ "id": "defect",
168
+ "field": "defect",
169
+ "optional": true
170
+ }
171
+ ],
172
+ "inputSchema": {
173
+ "additionalProperties": false,
174
+ "description": "CreateBranchInput selects a name and exact target commit.",
175
+ "properties": {
176
+ "name": {
177
+ "description": "Name is the new branch name without refs/heads/.",
178
+ "type": "string"
179
+ },
180
+ "repository": {
181
+ "description": "Repository is the repository slug.",
182
+ "type": "string"
183
+ },
184
+ "targetHash": {
185
+ "description": "TargetHash is the full 40-character target commit hash.",
186
+ "type": "string"
187
+ },
188
+ "workspace": {
189
+ "description": "Workspace is the Bitbucket workspace slug.",
190
+ "type": "string"
191
+ }
192
+ },
193
+ "required": [
194
+ "name",
195
+ "repository",
196
+ "targetHash",
197
+ "workspace"
198
+ ],
199
+ "type": "object"
200
+ }
201
+ },
202
+ {
203
+ "name": "newDeleteBranchStep",
204
+ "kind": "mutation",
205
+ "operationId": "deleteBranch",
206
+ "inputType": "BranchRefInput",
207
+ "description": "Delete Branch in a Bitbucket repository.",
208
+ "fields": {
209
+ "stepType": "stepType",
210
+ "annotations": "annotations",
211
+ "connectionName": "connectionName",
212
+ "resultAttribute": "resultAttribute"
213
+ },
214
+ "branches": [
215
+ {
216
+ "id": "deleted",
217
+ "field": "deleted",
218
+ "optional": false
219
+ },
220
+ {
221
+ "id": "notFound",
222
+ "field": "notFound",
223
+ "optional": true
224
+ },
225
+ {
226
+ "id": "providerRejected",
227
+ "field": "providerRejected",
228
+ "optional": true
229
+ },
230
+ {
231
+ "id": "defect",
232
+ "field": "defect",
233
+ "optional": true
234
+ }
235
+ ],
236
+ "inputSchema": {
237
+ "additionalProperties": false,
238
+ "description": "BranchRefInput identifies one branch in a repository.",
239
+ "properties": {
240
+ "name": {
241
+ "description": "Name is the branch name without refs/heads/.",
242
+ "type": "string"
243
+ },
244
+ "repository": {
245
+ "description": "Repository is the repository slug.",
246
+ "type": "string"
247
+ },
248
+ "workspace": {
249
+ "description": "Workspace is the Bitbucket workspace slug.",
250
+ "type": "string"
251
+ }
252
+ },
253
+ "required": [
254
+ "name",
255
+ "repository",
256
+ "workspace"
257
+ ],
258
+ "type": "object"
259
+ }
260
+ },
261
+ {
262
+ "name": "newListPullRequestCommentsStep",
263
+ "kind": "query",
264
+ "operationId": "listPullRequestComments",
265
+ "inputType": "PullRequestActionInput",
266
+ "description": "List comments on a pull request.",
267
+ "fields": {
268
+ "stepType": "stepType",
269
+ "annotations": "annotations",
270
+ "connectionName": "connectionName",
271
+ "resultAttribute": "resultAttribute"
272
+ },
273
+ "branches": [
274
+ {
275
+ "id": "listed",
276
+ "field": "listed",
277
+ "optional": false
278
+ },
279
+ {
280
+ "id": "notFound",
281
+ "field": "notFound",
282
+ "optional": true
283
+ },
284
+ {
285
+ "id": "providerRejected",
286
+ "field": "providerRejected",
287
+ "optional": true
288
+ },
289
+ {
290
+ "id": "invalidResponse",
291
+ "field": "invalidResponse",
292
+ "optional": true
293
+ },
294
+ {
295
+ "id": "defect",
296
+ "field": "defect",
297
+ "optional": true
298
+ }
299
+ ],
300
+ "inputSchema": {
301
+ "additionalProperties": false,
302
+ "description": "PullRequestActionInput identifies an existing pull request.",
303
+ "properties": {
304
+ "pullRequestId": {
305
+ "description": "PullRequestID is the positive repository-local ID.",
306
+ "type": "integer"
307
+ },
308
+ "repository": {
309
+ "description": "Repository is the repository slug.",
310
+ "type": "string"
311
+ },
312
+ "workspace": {
313
+ "description": "Workspace is the Bitbucket workspace slug.",
314
+ "type": "string"
315
+ }
316
+ },
317
+ "required": [
318
+ "pullRequestId",
319
+ "repository",
320
+ "workspace"
321
+ ],
322
+ "type": "object"
323
+ }
324
+ },
325
+ {
326
+ "name": "newGetPullRequestCommentStep",
327
+ "kind": "query",
328
+ "operationId": "getPullRequestComment",
329
+ "inputType": "PullRequestCommentIDInput",
330
+ "description": "Read one pull request comment.",
331
+ "fields": {
332
+ "stepType": "stepType",
333
+ "annotations": "annotations",
334
+ "connectionName": "connectionName",
335
+ "resultAttribute": "resultAttribute"
336
+ },
337
+ "branches": [
338
+ {
339
+ "id": "found",
340
+ "field": "found",
341
+ "optional": false
342
+ },
343
+ {
344
+ "id": "notFound",
345
+ "field": "notFound",
346
+ "optional": true
347
+ },
348
+ {
349
+ "id": "providerRejected",
350
+ "field": "providerRejected",
351
+ "optional": true
352
+ },
353
+ {
354
+ "id": "invalidResponse",
355
+ "field": "invalidResponse",
356
+ "optional": true
357
+ },
358
+ {
359
+ "id": "defect",
360
+ "field": "defect",
361
+ "optional": true
362
+ }
363
+ ],
364
+ "inputSchema": {
365
+ "additionalProperties": false,
366
+ "description": "PullRequestCommentIDInput identifies a comment in one pull request.",
367
+ "properties": {
368
+ "commentId": {
369
+ "description": "CommentID is the positive comment ID.",
370
+ "type": "integer"
371
+ },
372
+ "pullRequestId": {
373
+ "description": "PullRequestID is the repository-local pull request ID.",
374
+ "type": "integer"
375
+ },
376
+ "repository": {
377
+ "description": "Repository is the repository slug.",
378
+ "type": "string"
379
+ },
380
+ "workspace": {
381
+ "description": "Workspace is the Bitbucket workspace slug.",
382
+ "type": "string"
383
+ }
384
+ },
385
+ "required": [
386
+ "commentId",
387
+ "pullRequestId",
388
+ "repository",
389
+ "workspace"
390
+ ],
391
+ "type": "object"
392
+ }
393
+ },
394
+ {
395
+ "name": "newCreatePullRequestCommentStep",
396
+ "kind": "mutation",
397
+ "operationId": "createPullRequestComment",
398
+ "inputType": "CreatePullRequestCommentInput",
399
+ "description": "Create a pull request comment.",
400
+ "fields": {
401
+ "stepType": "stepType",
402
+ "annotations": "annotations",
403
+ "connectionName": "connectionName",
404
+ "resultAttribute": "resultAttribute"
405
+ },
406
+ "branches": [
407
+ {
408
+ "id": "created",
409
+ "field": "created",
410
+ "optional": false
411
+ },
412
+ {
413
+ "id": "providerRejected",
414
+ "field": "providerRejected",
415
+ "optional": true
416
+ },
417
+ {
418
+ "id": "defect",
419
+ "field": "defect",
420
+ "optional": true
421
+ },
422
+ {
423
+ "id": "uncertain",
424
+ "field": "uncertain",
425
+ "optional": true
426
+ }
427
+ ],
428
+ "inputSchema": {
429
+ "additionalProperties": false,
430
+ "description": "CreatePullRequestCommentInput supplies Markdown text for a new PR comment.",
431
+ "properties": {
432
+ "pullRequestId": {
433
+ "description": "PullRequestID is the repository-local pull request ID.",
434
+ "type": "integer"
435
+ },
436
+ "raw": {
437
+ "description": "Raw is the new comment's Markdown text.",
438
+ "type": "string"
439
+ },
440
+ "repository": {
441
+ "description": "Repository is the repository slug.",
442
+ "type": "string"
443
+ },
444
+ "workspace": {
445
+ "description": "Workspace is the Bitbucket workspace slug.",
446
+ "type": "string"
447
+ }
448
+ },
449
+ "required": [
450
+ "pullRequestId",
451
+ "raw",
452
+ "repository",
453
+ "workspace"
454
+ ],
455
+ "type": "object"
456
+ }
457
+ },
458
+ {
459
+ "name": "newUpdatePullRequestCommentStep",
460
+ "kind": "mutation",
461
+ "operationId": "updatePullRequestComment",
462
+ "inputType": "UpdatePullRequestCommentInput",
463
+ "description": "Replace pull request comment text.",
464
+ "fields": {
465
+ "stepType": "stepType",
466
+ "annotations": "annotations",
467
+ "connectionName": "connectionName",
468
+ "resultAttribute": "resultAttribute"
469
+ },
470
+ "branches": [
471
+ {
472
+ "id": "updated",
473
+ "field": "updated",
474
+ "optional": false
475
+ },
476
+ {
477
+ "id": "notFound",
478
+ "field": "notFound",
479
+ "optional": true
480
+ },
481
+ {
482
+ "id": "providerRejected",
483
+ "field": "providerRejected",
484
+ "optional": true
485
+ },
486
+ {
487
+ "id": "invalidResponse",
488
+ "field": "invalidResponse",
489
+ "optional": true
490
+ },
491
+ {
492
+ "id": "defect",
493
+ "field": "defect",
494
+ "optional": true
495
+ }
496
+ ],
497
+ "inputSchema": {
498
+ "additionalProperties": false,
499
+ "description": "UpdatePullRequestCommentInput replaces the Markdown text of one comment.",
500
+ "properties": {
501
+ "commentId": {
502
+ "description": "CommentID is the positive comment ID.",
503
+ "type": "integer"
504
+ },
505
+ "pullRequestId": {
506
+ "description": "PullRequestID is the repository-local pull request ID.",
507
+ "type": "integer"
508
+ },
509
+ "raw": {
510
+ "description": "Raw is the complete replacement Markdown text.",
511
+ "type": "string"
512
+ },
513
+ "repository": {
514
+ "description": "Repository is the repository slug.",
515
+ "type": "string"
516
+ },
517
+ "workspace": {
518
+ "description": "Workspace is the Bitbucket workspace slug.",
519
+ "type": "string"
520
+ }
521
+ },
522
+ "required": [
523
+ "commentId",
524
+ "pullRequestId",
525
+ "raw",
526
+ "repository",
527
+ "workspace"
528
+ ],
529
+ "type": "object"
530
+ }
531
+ },
532
+ {
533
+ "name": "newDeletePullRequestCommentStep",
534
+ "kind": "mutation",
535
+ "operationId": "deletePullRequestComment",
536
+ "inputType": "PullRequestCommentIDInput",
537
+ "description": "Delete a pull request comment.",
538
+ "fields": {
539
+ "stepType": "stepType",
540
+ "annotations": "annotations",
541
+ "connectionName": "connectionName",
542
+ "resultAttribute": "resultAttribute"
543
+ },
544
+ "branches": [
545
+ {
546
+ "id": "deleted",
547
+ "field": "deleted",
548
+ "optional": false
549
+ },
550
+ {
551
+ "id": "notFound",
552
+ "field": "notFound",
553
+ "optional": true
554
+ },
555
+ {
556
+ "id": "providerRejected",
557
+ "field": "providerRejected",
558
+ "optional": true
559
+ },
560
+ {
561
+ "id": "defect",
562
+ "field": "defect",
563
+ "optional": true
564
+ }
565
+ ],
566
+ "inputSchema": {
567
+ "additionalProperties": false,
568
+ "description": "PullRequestCommentIDInput identifies a comment in one pull request.",
569
+ "properties": {
570
+ "commentId": {
571
+ "description": "CommentID is the positive comment ID.",
572
+ "type": "integer"
573
+ },
574
+ "pullRequestId": {
575
+ "description": "PullRequestID is the repository-local pull request ID.",
576
+ "type": "integer"
577
+ },
578
+ "repository": {
579
+ "description": "Repository is the repository slug.",
580
+ "type": "string"
581
+ },
582
+ "workspace": {
583
+ "description": "Workspace is the Bitbucket workspace slug.",
584
+ "type": "string"
585
+ }
586
+ },
587
+ "required": [
588
+ "commentId",
589
+ "pullRequestId",
590
+ "repository",
591
+ "workspace"
592
+ ],
593
+ "type": "object"
594
+ }
595
+ },
596
+ {
597
+ "name": "newResolvePullRequestCommentStep",
598
+ "kind": "mutation",
599
+ "operationId": "resolvePullRequestComment",
600
+ "inputType": "PullRequestCommentIDInput",
601
+ "description": "Resolve a pull request comment.",
602
+ "fields": {
603
+ "stepType": "stepType",
604
+ "annotations": "annotations",
605
+ "connectionName": "connectionName",
606
+ "resultAttribute": "resultAttribute"
607
+ },
608
+ "branches": [
609
+ {
610
+ "id": "resolved",
611
+ "field": "resolved",
612
+ "optional": false
613
+ },
614
+ {
615
+ "id": "notFound",
616
+ "field": "notFound",
617
+ "optional": true
618
+ },
619
+ {
620
+ "id": "providerRejected",
621
+ "field": "providerRejected",
622
+ "optional": true
623
+ },
624
+ {
625
+ "id": "invalidResponse",
626
+ "field": "invalidResponse",
627
+ "optional": true
628
+ },
629
+ {
630
+ "id": "defect",
631
+ "field": "defect",
632
+ "optional": true
633
+ }
634
+ ],
635
+ "inputSchema": {
636
+ "additionalProperties": false,
637
+ "description": "PullRequestCommentIDInput identifies a comment in one pull request.",
638
+ "properties": {
639
+ "commentId": {
640
+ "description": "CommentID is the positive comment ID.",
641
+ "type": "integer"
642
+ },
643
+ "pullRequestId": {
644
+ "description": "PullRequestID is the repository-local pull request ID.",
645
+ "type": "integer"
646
+ },
647
+ "repository": {
648
+ "description": "Repository is the repository slug.",
649
+ "type": "string"
650
+ },
651
+ "workspace": {
652
+ "description": "Workspace is the Bitbucket workspace slug.",
653
+ "type": "string"
654
+ }
655
+ },
656
+ "required": [
657
+ "commentId",
658
+ "pullRequestId",
659
+ "repository",
660
+ "workspace"
661
+ ],
662
+ "type": "object"
663
+ }
664
+ },
665
+ {
666
+ "name": "newUnresolvePullRequestCommentStep",
667
+ "kind": "mutation",
668
+ "operationId": "unresolvePullRequestComment",
669
+ "inputType": "PullRequestCommentIDInput",
670
+ "description": "Reopen a resolved pull request comment.",
671
+ "fields": {
672
+ "stepType": "stepType",
673
+ "annotations": "annotations",
674
+ "connectionName": "connectionName",
675
+ "resultAttribute": "resultAttribute"
676
+ },
677
+ "branches": [
678
+ {
679
+ "id": "unresolved",
680
+ "field": "unresolved",
681
+ "optional": false
682
+ },
683
+ {
684
+ "id": "notFound",
685
+ "field": "notFound",
686
+ "optional": true
687
+ },
688
+ {
689
+ "id": "providerRejected",
690
+ "field": "providerRejected",
691
+ "optional": true
692
+ },
693
+ {
694
+ "id": "invalidResponse",
695
+ "field": "invalidResponse",
696
+ "optional": true
697
+ },
698
+ {
699
+ "id": "defect",
700
+ "field": "defect",
701
+ "optional": true
702
+ }
703
+ ],
704
+ "inputSchema": {
705
+ "additionalProperties": false,
706
+ "description": "PullRequestCommentIDInput identifies a comment in one pull request.",
707
+ "properties": {
708
+ "commentId": {
709
+ "description": "CommentID is the positive comment ID.",
710
+ "type": "integer"
711
+ },
712
+ "pullRequestId": {
713
+ "description": "PullRequestID is the repository-local pull request ID.",
714
+ "type": "integer"
715
+ },
716
+ "repository": {
717
+ "description": "Repository is the repository slug.",
718
+ "type": "string"
719
+ },
720
+ "workspace": {
721
+ "description": "Workspace is the Bitbucket workspace slug.",
722
+ "type": "string"
723
+ }
724
+ },
725
+ "required": [
726
+ "commentId",
727
+ "pullRequestId",
728
+ "repository",
729
+ "workspace"
730
+ ],
731
+ "type": "object"
732
+ }
733
+ },
734
+ {
735
+ "name": "newCreatePullRequestStep",
736
+ "kind": "mutation",
737
+ "operationId": "createPullRequest",
738
+ "inputType": "CreatePullRequestInput",
739
+ "description": "Create a pull request between two branches of one repository.",
740
+ "fields": {
741
+ "stepType": "stepType",
742
+ "annotations": "annotations",
743
+ "connectionName": "connectionName",
744
+ "resultAttribute": "resultAttribute"
745
+ },
746
+ "branches": [
747
+ {
748
+ "id": "created",
749
+ "field": "created",
750
+ "optional": false
751
+ },
752
+ {
753
+ "id": "providerRejected",
754
+ "field": "providerRejected",
755
+ "optional": true
756
+ },
757
+ {
758
+ "id": "defect",
759
+ "field": "defect",
760
+ "optional": true
761
+ },
762
+ {
763
+ "id": "uncertain",
764
+ "field": "uncertain",
765
+ "optional": true
766
+ }
767
+ ],
768
+ "inputSchema": {
769
+ "additionalProperties": false,
770
+ "description": "CreatePullRequestInput selects two branches of one repository.",
771
+ "properties": {
772
+ "destinationBranch": {
773
+ "description": "DestinationBranch is the destination branch name.",
774
+ "type": "string"
775
+ },
776
+ "repository": {
777
+ "description": "Repository is the repository slug.",
778
+ "type": "string"
779
+ },
780
+ "sourceBranch": {
781
+ "description": "SourceBranch is the source branch name.",
782
+ "type": "string"
783
+ },
784
+ "title": {
785
+ "description": "Title is the new pull request title.",
786
+ "type": "string"
787
+ },
788
+ "workspace": {
789
+ "description": "Workspace is the Bitbucket workspace slug.",
790
+ "type": "string"
791
+ }
792
+ },
793
+ "required": [
794
+ "destinationBranch",
795
+ "repository",
796
+ "sourceBranch",
797
+ "title",
798
+ "workspace"
799
+ ],
800
+ "type": "object"
801
+ }
802
+ },
803
+ {
804
+ "name": "newMergePullRequestStep",
805
+ "kind": "mutation",
806
+ "operationId": "mergePullRequest",
807
+ "inputType": "PullRequestActionInput",
808
+ "description": "Merge an open pull request into its destination branch.",
809
+ "fields": {
810
+ "stepType": "stepType",
811
+ "annotations": "annotations",
812
+ "connectionName": "connectionName",
813
+ "resultAttribute": "resultAttribute"
814
+ },
815
+ "branches": [
816
+ {
817
+ "id": "merged",
818
+ "field": "merged",
819
+ "optional": false
820
+ },
821
+ {
822
+ "id": "notFound",
823
+ "field": "notFound",
824
+ "optional": true
825
+ },
826
+ {
827
+ "id": "providerRejected",
828
+ "field": "providerRejected",
829
+ "optional": true
830
+ },
831
+ {
832
+ "id": "invalidResponse",
833
+ "field": "invalidResponse",
834
+ "optional": true
835
+ },
836
+ {
837
+ "id": "defect",
838
+ "field": "defect",
839
+ "optional": true
840
+ }
841
+ ],
842
+ "inputSchema": {
843
+ "additionalProperties": false,
844
+ "description": "PullRequestActionInput identifies an existing pull request.",
845
+ "properties": {
846
+ "pullRequestId": {
847
+ "description": "PullRequestID is the positive repository-local ID.",
848
+ "type": "integer"
849
+ },
850
+ "repository": {
851
+ "description": "Repository is the repository slug.",
852
+ "type": "string"
853
+ },
854
+ "workspace": {
855
+ "description": "Workspace is the Bitbucket workspace slug.",
856
+ "type": "string"
857
+ }
858
+ },
859
+ "required": [
860
+ "pullRequestId",
861
+ "repository",
862
+ "workspace"
863
+ ],
864
+ "type": "object"
865
+ }
866
+ },
867
+ {
868
+ "name": "newDeclinePullRequestStep",
869
+ "kind": "mutation",
870
+ "operationId": "declinePullRequest",
871
+ "inputType": "PullRequestActionInput",
872
+ "description": "Decline an open pull request.",
873
+ "fields": {
874
+ "stepType": "stepType",
875
+ "annotations": "annotations",
876
+ "connectionName": "connectionName",
877
+ "resultAttribute": "resultAttribute"
878
+ },
879
+ "branches": [
880
+ {
881
+ "id": "declined",
882
+ "field": "declined",
883
+ "optional": false
884
+ },
885
+ {
886
+ "id": "notFound",
887
+ "field": "notFound",
888
+ "optional": true
889
+ },
890
+ {
891
+ "id": "providerRejected",
892
+ "field": "providerRejected",
893
+ "optional": true
894
+ },
895
+ {
896
+ "id": "invalidResponse",
897
+ "field": "invalidResponse",
898
+ "optional": true
899
+ },
900
+ {
901
+ "id": "defect",
902
+ "field": "defect",
903
+ "optional": true
904
+ }
905
+ ],
906
+ "inputSchema": {
907
+ "additionalProperties": false,
908
+ "description": "PullRequestActionInput identifies an existing pull request.",
909
+ "properties": {
910
+ "pullRequestId": {
911
+ "description": "PullRequestID is the positive repository-local ID.",
912
+ "type": "integer"
913
+ },
914
+ "repository": {
915
+ "description": "Repository is the repository slug.",
916
+ "type": "string"
917
+ },
918
+ "workspace": {
919
+ "description": "Workspace is the Bitbucket workspace slug.",
920
+ "type": "string"
921
+ }
922
+ },
923
+ "required": [
924
+ "pullRequestId",
925
+ "repository",
926
+ "workspace"
927
+ ],
928
+ "type": "object"
929
+ }
930
+ },
931
+ {
932
+ "name": "newCreateRepositoryStep",
933
+ "kind": "mutation",
934
+ "operationId": "createRepository",
935
+ "inputType": "CreateRepositoryInput",
936
+ "description": "Create a private Bitbucket repository under a workspace.",
937
+ "fields": {
938
+ "stepType": "stepType",
939
+ "annotations": "annotations",
940
+ "connectionName": "connectionName",
941
+ "resultAttribute": "resultAttribute"
942
+ },
943
+ "branches": [
944
+ {
945
+ "id": "created",
946
+ "field": "created",
947
+ "optional": false
948
+ },
949
+ {
950
+ "id": "notFound",
951
+ "field": "notFound",
952
+ "optional": true
953
+ },
954
+ {
955
+ "id": "providerRejected",
956
+ "field": "providerRejected",
957
+ "optional": true
958
+ },
959
+ {
960
+ "id": "invalidResponse",
961
+ "field": "invalidResponse",
962
+ "optional": true
963
+ },
964
+ {
965
+ "id": "defect",
966
+ "field": "defect",
967
+ "optional": true
968
+ }
969
+ ],
970
+ "inputSchema": {
971
+ "additionalProperties": false,
972
+ "description": "CreateRepositoryInput selects a stable slug, name, and visibility.",
973
+ "properties": {
974
+ "is_private": {
975
+ "description": "IsPrivate selects private or public visibility; it must be supplied.",
976
+ "type": [
977
+ "boolean",
978
+ "null"
979
+ ]
980
+ },
981
+ "name": {
982
+ "description": "Name is the display name, up to 255 bytes.",
983
+ "type": "string"
984
+ },
985
+ "repository": {
986
+ "description": "Repository is the new repository slug.",
987
+ "type": "string"
988
+ },
989
+ "workspace": {
990
+ "description": "Workspace is the owning Bitbucket workspace slug.",
991
+ "type": "string"
992
+ }
993
+ },
994
+ "required": [
995
+ "is_private",
996
+ "name",
997
+ "repository",
998
+ "workspace"
999
+ ],
1000
+ "type": "object"
1001
+ }
1002
+ },
1003
+ {
1004
+ "name": "newUpdateRepositoryStep",
1005
+ "kind": "mutation",
1006
+ "operationId": "updateRepository",
1007
+ "inputType": "UpdateRepositoryInput",
1008
+ "description": "Replace a repository's name and visibility.",
1009
+ "fields": {
1010
+ "stepType": "stepType",
1011
+ "annotations": "annotations",
1012
+ "connectionName": "connectionName",
1013
+ "resultAttribute": "resultAttribute"
1014
+ },
1015
+ "branches": [
1016
+ {
1017
+ "id": "updated",
1018
+ "field": "updated",
1019
+ "optional": false
1020
+ },
1021
+ {
1022
+ "id": "notFound",
1023
+ "field": "notFound",
1024
+ "optional": true
1025
+ },
1026
+ {
1027
+ "id": "providerRejected",
1028
+ "field": "providerRejected",
1029
+ "optional": true
1030
+ },
1031
+ {
1032
+ "id": "invalidResponse",
1033
+ "field": "invalidResponse",
1034
+ "optional": true
1035
+ },
1036
+ {
1037
+ "id": "defect",
1038
+ "field": "defect",
1039
+ "optional": true
1040
+ }
1041
+ ],
1042
+ "inputSchema": {
1043
+ "additionalProperties": false,
1044
+ "description": "UpdateRepositoryInput replaces a repository name and visibility.",
1045
+ "properties": {
1046
+ "is_private": {
1047
+ "description": "IsPrivate selects private or public visibility; it must be supplied.",
1048
+ "type": [
1049
+ "boolean",
1050
+ "null"
1051
+ ]
1052
+ },
1053
+ "name": {
1054
+ "description": "Name is the complete replacement display name, up to 255 bytes.",
1055
+ "type": "string"
1056
+ },
1057
+ "repository": {
1058
+ "description": "Repository is the repository slug.",
1059
+ "type": "string"
1060
+ },
1061
+ "workspace": {
1062
+ "description": "Workspace is the owning Bitbucket workspace slug.",
1063
+ "type": "string"
1064
+ }
1065
+ },
1066
+ "required": [
1067
+ "is_private",
1068
+ "name",
1069
+ "repository",
1070
+ "workspace"
1071
+ ],
1072
+ "type": "object"
1073
+ }
1074
+ },
1075
+ {
1076
+ "name": "newDeleteRepositoryStep",
1077
+ "kind": "mutation",
1078
+ "operationId": "deleteRepository",
1079
+ "inputType": "DeleteRepositoryInput",
1080
+ "description": "Delete a repository by workspace and slug.",
1081
+ "fields": {
1082
+ "stepType": "stepType",
1083
+ "annotations": "annotations",
1084
+ "connectionName": "connectionName",
1085
+ "resultAttribute": "resultAttribute"
1086
+ },
1087
+ "branches": [
1088
+ {
1089
+ "id": "deleted",
1090
+ "field": "deleted",
1091
+ "optional": false
1092
+ },
1093
+ {
1094
+ "id": "notFound",
1095
+ "field": "notFound",
1096
+ "optional": true
1097
+ },
1098
+ {
1099
+ "id": "providerRejected",
1100
+ "field": "providerRejected",
1101
+ "optional": true
1102
+ },
1103
+ {
1104
+ "id": "invalidResponse",
1105
+ "field": "invalidResponse",
1106
+ "optional": true
1107
+ },
1108
+ {
1109
+ "id": "defect",
1110
+ "field": "defect",
1111
+ "optional": true
1112
+ }
1113
+ ],
1114
+ "inputSchema": {
1115
+ "additionalProperties": false,
1116
+ "description": "DeleteRepositoryInput identifies a repository to delete.",
1117
+ "properties": {
1118
+ "repository": {
1119
+ "description": "Repository is the repository slug.",
1120
+ "type": "string"
1121
+ },
1122
+ "workspace": {
1123
+ "description": "Workspace is the owning Bitbucket workspace slug.",
1124
+ "type": "string"
1125
+ }
1126
+ },
1127
+ "required": [
1128
+ "repository",
1129
+ "workspace"
1130
+ ],
1131
+ "type": "object"
1132
+ }
1133
+ },
1134
+ {
1135
+ "name": "newGetRepositoryStep",
1136
+ "kind": "query",
1137
+ "operationId": "getRepository",
1138
+ "inputType": "GetRepositoryInput",
1139
+ "description": "Read one repository by workspace and repository slug.",
1140
+ "fields": {
1141
+ "stepType": "stepType",
1142
+ "annotations": "annotations",
1143
+ "connectionName": "connectionName",
1144
+ "resultAttribute": "resultAttribute"
1145
+ },
1146
+ "branches": [
1147
+ {
1148
+ "id": "found",
1149
+ "field": "found",
1150
+ "optional": false
1151
+ },
1152
+ {
1153
+ "id": "notFound",
1154
+ "field": "notFound",
1155
+ "optional": true
1156
+ },
1157
+ {
1158
+ "id": "providerRejected",
1159
+ "field": "providerRejected",
1160
+ "optional": true
1161
+ },
1162
+ {
1163
+ "id": "invalidResponse",
1164
+ "field": "invalidResponse",
1165
+ "optional": true
1166
+ },
1167
+ {
1168
+ "id": "defect",
1169
+ "field": "defect",
1170
+ "optional": true
1171
+ }
1172
+ ],
1173
+ "inputSchema": {
1174
+ "additionalProperties": false,
1175
+ "description": "GetRepositoryInput identifies one repository within a workspace.",
1176
+ "properties": {
1177
+ "repository": {
1178
+ "description": "Repository is the repository slug in that workspace.",
1179
+ "type": "string"
1180
+ },
1181
+ "workspace": {
1182
+ "description": "Workspace is the Bitbucket workspace slug.",
1183
+ "type": "string"
1184
+ }
1185
+ },
1186
+ "required": [
1187
+ "repository",
1188
+ "workspace"
1189
+ ],
1190
+ "type": "object"
1191
+ }
1192
+ },
1193
+ {
1194
+ "name": "newGetPullRequestStep",
1195
+ "kind": "query",
1196
+ "operationId": "getPullRequest",
1197
+ "inputType": "GetPullRequestInput",
1198
+ "description": "Read one pull request by workspace, repository, and numeric ID.",
1199
+ "fields": {
1200
+ "stepType": "stepType",
1201
+ "annotations": "annotations",
1202
+ "connectionName": "connectionName",
1203
+ "resultAttribute": "resultAttribute"
1204
+ },
1205
+ "branches": [
1206
+ {
1207
+ "id": "found",
1208
+ "field": "found",
1209
+ "optional": false
1210
+ },
1211
+ {
1212
+ "id": "notFound",
1213
+ "field": "notFound",
1214
+ "optional": true
1215
+ },
1216
+ {
1217
+ "id": "providerRejected",
1218
+ "field": "providerRejected",
1219
+ "optional": true
1220
+ },
1221
+ {
1222
+ "id": "invalidResponse",
1223
+ "field": "invalidResponse",
1224
+ "optional": true
1225
+ },
1226
+ {
1227
+ "id": "defect",
1228
+ "field": "defect",
1229
+ "optional": true
1230
+ }
1231
+ ],
1232
+ "inputSchema": {
1233
+ "additionalProperties": false,
1234
+ "description": "GetPullRequestInput identifies one repository-local pull request.",
1235
+ "properties": {
1236
+ "pullRequestId": {
1237
+ "description": "PullRequestID is the positive numeric ID in that repository.",
1238
+ "type": "integer"
1239
+ },
1240
+ "repository": {
1241
+ "description": "Repository is the repository slug in that workspace.",
1242
+ "type": "string"
1243
+ },
1244
+ "workspace": {
1245
+ "description": "Workspace is the Bitbucket workspace slug.",
1246
+ "type": "string"
1247
+ }
1248
+ },
1249
+ "required": [
1250
+ "pullRequestId",
1251
+ "repository",
1252
+ "workspace"
1253
+ ],
1254
+ "type": "object"
1255
+ }
1256
+ },
1257
+ {
1258
+ "name": "newUpdatePullRequestTitleStep",
1259
+ "kind": "mutation",
1260
+ "operationId": "updatePullRequestTitle",
1261
+ "inputType": "UpdatePullRequestTitleInput",
1262
+ "description": "Replace one pull request title with an absolute value.",
1263
+ "fields": {
1264
+ "stepType": "stepType",
1265
+ "annotations": "annotations",
1266
+ "connectionName": "connectionName",
1267
+ "resultAttribute": "resultAttribute"
1268
+ },
1269
+ "branches": [
1270
+ {
1271
+ "id": "updated",
1272
+ "field": "updated",
1273
+ "optional": false
1274
+ },
1275
+ {
1276
+ "id": "notFound",
1277
+ "field": "notFound",
1278
+ "optional": true
1279
+ },
1280
+ {
1281
+ "id": "providerRejected",
1282
+ "field": "providerRejected",
1283
+ "optional": true
1284
+ },
1285
+ {
1286
+ "id": "invalidResponse",
1287
+ "field": "invalidResponse",
1288
+ "optional": true
1289
+ },
1290
+ {
1291
+ "id": "defect",
1292
+ "field": "defect",
1293
+ "optional": true
1294
+ }
1295
+ ],
1296
+ "inputSchema": {
1297
+ "additionalProperties": false,
1298
+ "description": "UpdatePullRequestTitleInput selects a pull request and supplies its complete new title.",
1299
+ "properties": {
1300
+ "pullRequestId": {
1301
+ "description": "PullRequestID is the positive numeric ID in that repository.",
1302
+ "type": "integer"
1303
+ },
1304
+ "repository": {
1305
+ "description": "Repository is the repository slug in that workspace.",
1306
+ "type": "string"
1307
+ },
1308
+ "title": {
1309
+ "description": "Title is the full replacement title; blank is invalid.",
1310
+ "type": "string"
1311
+ },
1312
+ "workspace": {
1313
+ "description": "Workspace is the Bitbucket workspace slug.",
1314
+ "type": "string"
1315
+ }
1316
+ },
1317
+ "required": [
1318
+ "pullRequestId",
1319
+ "repository",
1320
+ "title",
1321
+ "workspace"
1322
+ ],
1323
+ "type": "object"
1324
+ }
1325
+ },
1326
+ {
1327
+ "name": "newListRepositoriesStep",
1328
+ "kind": "query",
1329
+ "operationId": "listRepositories",
1330
+ "inputType": "ListRepositoriesInput",
1331
+ "description": "List repositories owned by a Bitbucket workspace.",
1332
+ "fields": {
1333
+ "stepType": "stepType",
1334
+ "annotations": "annotations",
1335
+ "connectionName": "connectionName",
1336
+ "resultAttribute": "resultAttribute"
1337
+ },
1338
+ "branches": [
1339
+ {
1340
+ "id": "listed",
1341
+ "field": "listed",
1342
+ "optional": false
1343
+ },
1344
+ {
1345
+ "id": "notFound",
1346
+ "field": "notFound",
1347
+ "optional": true
1348
+ },
1349
+ {
1350
+ "id": "providerRejected",
1351
+ "field": "providerRejected",
1352
+ "optional": true
1353
+ },
1354
+ {
1355
+ "id": "invalidResponse",
1356
+ "field": "invalidResponse",
1357
+ "optional": true
1358
+ },
1359
+ {
1360
+ "id": "defect",
1361
+ "field": "defect",
1362
+ "optional": true
1363
+ }
1364
+ ],
1365
+ "inputSchema": {
1366
+ "additionalProperties": false,
1367
+ "description": "ListRepositoriesInput identifies the workspace whose repositories are read.",
1368
+ "properties": {
1369
+ "workspace": {
1370
+ "description": "Workspace is the Bitbucket workspace slug.",
1371
+ "type": "string"
1372
+ }
1373
+ },
1374
+ "required": [
1375
+ "workspace"
1376
+ ],
1377
+ "type": "object"
1378
+ }
1379
+ },
1380
+ {
1381
+ "name": "newListPullRequestsStep",
1382
+ "kind": "query",
1383
+ "operationId": "listPullRequests",
1384
+ "inputType": "ListPullRequestsInput",
1385
+ "description": "List pull requests for a Bitbucket repository.",
1386
+ "fields": {
1387
+ "stepType": "stepType",
1388
+ "annotations": "annotations",
1389
+ "connectionName": "connectionName",
1390
+ "resultAttribute": "resultAttribute"
1391
+ },
1392
+ "branches": [
1393
+ {
1394
+ "id": "listed",
1395
+ "field": "listed",
1396
+ "optional": false
1397
+ },
1398
+ {
1399
+ "id": "notFound",
1400
+ "field": "notFound",
1401
+ "optional": true
1402
+ },
1403
+ {
1404
+ "id": "providerRejected",
1405
+ "field": "providerRejected",
1406
+ "optional": true
1407
+ },
1408
+ {
1409
+ "id": "invalidResponse",
1410
+ "field": "invalidResponse",
1411
+ "optional": true
1412
+ },
1413
+ {
1414
+ "id": "defect",
1415
+ "field": "defect",
1416
+ "optional": true
1417
+ }
1418
+ ],
1419
+ "inputSchema": {
1420
+ "additionalProperties": false,
1421
+ "description": "ListPullRequestsInput identifies a repository within a workspace.",
1422
+ "properties": {
1423
+ "repository": {
1424
+ "description": "Repository is the repository slug within the workspace.",
1425
+ "type": "string"
1426
+ },
1427
+ "workspace": {
1428
+ "description": "Workspace is the Bitbucket workspace slug.",
1429
+ "type": "string"
1430
+ }
1431
+ },
1432
+ "required": [
1433
+ "repository",
1434
+ "workspace"
1435
+ ],
1436
+ "type": "object"
1437
+ }
1438
+ },
1439
+ {
1440
+ "name": "defineRepositoryEventReceivedTriggerBinding",
1441
+ "kind": "trigger",
1442
+ "triggerName": "repositoryEventReceived",
1443
+ "fields": {
1444
+ "connectionName": "connectionName",
1445
+ "bindingName": "bindingName",
1446
+ "configurationUI": "configurationUI"
1447
+ }
1448
+ }
1449
+ ]
1450
+ }