@superdurable/connector-atlassian-bitbucket 0.1.0 → 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.
package/dist/index.d.ts CHANGED
@@ -1,16 +1,526 @@
1
- import { L as ListPullRequestsInput, P as PullRequestPage, C as Connection, a as ListRepositoriesInput, R as RepositoryPage, b as Config, c as Credentials, O as Operations } from './connection-DbC0QPe8.js';
2
- export { d as ConfigSchema, e as CredentialSource, f as ListPullRequestsInputSchema, g as ListRepositoriesInputSchema, h as PullRequest, i as PullRequestPageSchema, j as PullRequestSchema, k as Repository, l as RepositoryPageSchema, m as RepositorySchema, n as newConnection, o as newConnectionWithOperations } from './connection-DbC0QPe8.js';
1
+ import { C as CreateBranchInput, B as Branch, a as Connection, b as CreatePullRequestCommentInput, P as PullRequestComment, c as CreatePullRequestInput, d as PullRequest, e as CreateRepositoryInput, R as Repository, f as PullRequestActionInput, g as BranchRefInput, D as DeletedBranch, h as PullRequestCommentIDInput, i as DeletedPullRequestComment, j as DeleteRepositoryInput, k as DeletedRepository, G as GetPullRequestInput, l as GetRepositoryInput, L as ListBranchesInput, m as BranchPage, n as PullRequestCommentPage, o as ListPullRequestsInput, p as PullRequestPage, q as ListRepositoriesInput, r as RepositoryPage, U as UpdatePullRequestCommentInput, s as UpdatePullRequestTitleInput, t as UpdateRepositoryInput, u as Credentials, v as Config, O as Operations } from './connection-DtDaG9sh.js';
2
+ export { w as BranchPageSchema, x as BranchRefInputSchema, y as BranchSchema, z as BranchTarget, A as BranchTargetSchema, E as ConfigSchema, F as CreateBranchInputSchema, H as CreatePullRequestCommentInputSchema, I as CreatePullRequestInputSchema, J as CreateRepositoryInputSchema, K as CredentialMaterialError, M as CredentialSource, N as DeleteRepositoryInputSchema, Q as DeletedBranchSchema, S as DeletedPullRequestCommentSchema, T as DeletedRepositorySchema, V as GetPullRequestInputSchema, W as GetRepositoryInputSchema, X as ListBranchesInputSchema, Y as ListPullRequestsInputSchema, Z as ListRepositoriesInputSchema, _ as PullRequestActionInputSchema, $ as PullRequestCommentContent, a0 as PullRequestCommentContentSchema, a1 as PullRequestCommentIDInputSchema, a2 as PullRequestCommentPageSchema, a3 as PullRequestCommentResolution, a4 as PullRequestCommentResolutionSchema, a5 as PullRequestCommentSchema, a6 as PullRequestPageSchema, a7 as PullRequestSchema, a8 as RepositoryPageSchema, a9 as RepositorySchema, aa as SignedInteger, ab as UpdatePullRequestCommentInputSchema, ac as UpdatePullRequestTitleInputSchema, ad as UpdateRepositoryInputSchema, ae as decodeCredentials, af as decodeSignedInteger, ag as exactIntegerJSONCodec, ah as isCredentialMaterialError, ai as newConnection, aj as newConnectionWithOperations, ak as parseExactIntegerJSON, al as parseJSONNumberTokens } from './connection-DtDaG9sh.js';
3
3
  import * as _superdurable_connectors_sdk from '@superdurable/connectors-sdk';
4
- import { QueryDefinition, QueryStepConfig, Query, QueryResult, QueryStep, Call, QueryAttempt, CredentialProvider, Failure } from '@superdurable/connectors-sdk';
5
- import { StepTarget } from '@superdurable/dex';
4
+ import { MutationDefinition, QueryDefinition, MutationStepConfig, Mutation, MutationResult, QueryStepConfig, Query, QueryResult, MutationStep, QueryStep, Call, QueryAttempt, Failure, CallID, IdempotencyKey, MutationAttempt, CredentialProvider, SecretString, TriggerLogger, TriggerTarget, TriggerRunner, TriggerContext, ConnectorConfigurationUI, TriggerDefinition, TriggerBindingDefinition } from '@superdurable/connectors-sdk';
5
+ import { StepTarget, Codec } from '@superdurable/dex';
6
6
  import { ProviderRequest, ProviderResponse } from '@superdurable/connectors-sdk/providerhttp';
7
7
  import { LoadedProject } from '@superdurable/connectors-sdk/projectconfig';
8
- import 'zod';
8
+ import { IncomingMessage, ServerResponse } from 'node:http';
9
+ import { WebhookEndpoint } from '@superdurable/connectors-sdk/webhooktrigger';
10
+ import { z } from 'zod';
9
11
 
10
12
  /** Stable connector identity. */
11
13
  declare const ConnectorID = "bitbucket";
12
14
  /** Provider identity for named connections. */
13
15
  declare const ProviderID = "bitbucket";
16
+ /** Branch IDs for listBranches. */
17
+ declare const ListBranchesBranch: {
18
+ readonly Listed: "listed";
19
+ readonly NotFound: "notFound";
20
+ readonly ProviderRejected: "providerRejected";
21
+ readonly InvalidResponse: "invalidResponse";
22
+ readonly Defect: "defect";
23
+ };
24
+ /** Bitbucket returned the requested branch state. */
25
+ declare const ListBranchesBranchListed: "listed";
26
+ /** The repository or branch was not found. */
27
+ declare const ListBranchesBranchNotFound: "notFound";
28
+ /** Bitbucket rejected the branch request. */
29
+ declare const ListBranchesBranchProviderRejected: "providerRejected";
30
+ /** Bitbucket returned malformed or oversized JSON. */
31
+ declare const ListBranchesBranchInvalidResponse: "invalidResponse";
32
+ /** Local input or credentials are invalid. */
33
+ declare const ListBranchesBranchDefect: "defect";
34
+ /** Manifest definition for listBranches. */
35
+ declare const ListBranchesDefinition: QueryDefinition;
36
+ /** Manifest metadata for listBranches. */
37
+ declare const ListBranchesMetadata: {
38
+ readonly kind: "query";
39
+ readonly idempotency: "none";
40
+ readonly authorization: "required";
41
+ };
42
+ /** Branch IDs for getBranch. */
43
+ declare const GetBranchBranch: {
44
+ readonly Found: "found";
45
+ readonly NotFound: "notFound";
46
+ readonly ProviderRejected: "providerRejected";
47
+ readonly InvalidResponse: "invalidResponse";
48
+ readonly Defect: "defect";
49
+ };
50
+ /** Bitbucket returned the requested branch state. */
51
+ declare const GetBranchBranchFound: "found";
52
+ /** The repository or branch was not found. */
53
+ declare const GetBranchBranchNotFound: "notFound";
54
+ /** Bitbucket rejected the branch request. */
55
+ declare const GetBranchBranchProviderRejected: "providerRejected";
56
+ /** Bitbucket returned malformed or oversized JSON. */
57
+ declare const GetBranchBranchInvalidResponse: "invalidResponse";
58
+ /** Local input or credentials are invalid. */
59
+ declare const GetBranchBranchDefect: "defect";
60
+ /** Manifest definition for getBranch. */
61
+ declare const GetBranchDefinition: QueryDefinition;
62
+ /** Manifest metadata for getBranch. */
63
+ declare const GetBranchMetadata: {
64
+ readonly kind: "query";
65
+ readonly idempotency: "none";
66
+ readonly authorization: "required";
67
+ };
68
+ /** Branch IDs for createBranch. */
69
+ declare const CreateBranchBranch: {
70
+ readonly Created: "created";
71
+ readonly NotFound: "notFound";
72
+ readonly ProviderRejected: "providerRejected";
73
+ readonly InvalidResponse: "invalidResponse";
74
+ readonly Defect: "defect";
75
+ };
76
+ /** Bitbucket returned the requested branch state. */
77
+ declare const CreateBranchBranchCreated: "created";
78
+ /** The repository or branch was not found. */
79
+ declare const CreateBranchBranchNotFound: "notFound";
80
+ /** Bitbucket rejected the branch request. */
81
+ declare const CreateBranchBranchProviderRejected: "providerRejected";
82
+ /** Bitbucket returned malformed or oversized JSON. */
83
+ declare const CreateBranchBranchInvalidResponse: "invalidResponse";
84
+ /** Local input or credentials are invalid. */
85
+ declare const CreateBranchBranchDefect: "defect";
86
+ /** Manifest definition for createBranch. */
87
+ declare const CreateBranchDefinition: MutationDefinition;
88
+ /** Manifest metadata for createBranch. */
89
+ declare const CreateBranchMetadata: {
90
+ readonly kind: "mutation";
91
+ readonly idempotency: "required";
92
+ readonly authorization: "required";
93
+ };
94
+ /** Branch IDs for deleteBranch. */
95
+ declare const DeleteBranchBranch: {
96
+ readonly Deleted: "deleted";
97
+ readonly NotFound: "notFound";
98
+ readonly ProviderRejected: "providerRejected";
99
+ readonly Defect: "defect";
100
+ };
101
+ /** Bitbucket returned the requested branch state. */
102
+ declare const DeleteBranchBranchDeleted: "deleted";
103
+ /** The repository or branch was not found. */
104
+ declare const DeleteBranchBranchNotFound: "notFound";
105
+ /** Bitbucket rejected the branch request. */
106
+ declare const DeleteBranchBranchProviderRejected: "providerRejected";
107
+ /** Local input or credentials are invalid. */
108
+ declare const DeleteBranchBranchDefect: "defect";
109
+ /** Manifest definition for deleteBranch. */
110
+ declare const DeleteBranchDefinition: MutationDefinition;
111
+ /** Manifest metadata for deleteBranch. */
112
+ declare const DeleteBranchMetadata: {
113
+ readonly kind: "mutation";
114
+ readonly idempotency: "required";
115
+ readonly authorization: "required";
116
+ };
117
+ /** Branch IDs for listPullRequestComments. */
118
+ declare const ListPullRequestCommentsBranch: {
119
+ readonly Listed: "listed";
120
+ readonly NotFound: "notFound";
121
+ readonly ProviderRejected: "providerRejected";
122
+ readonly InvalidResponse: "invalidResponse";
123
+ readonly Defect: "defect";
124
+ };
125
+ /** Bitbucket returned the requested comment state. */
126
+ declare const ListPullRequestCommentsBranchListed: "listed";
127
+ /** The pull request or comment was not found. */
128
+ declare const ListPullRequestCommentsBranchNotFound: "notFound";
129
+ /** Bitbucket rejected the comment request. */
130
+ declare const ListPullRequestCommentsBranchProviderRejected: "providerRejected";
131
+ /** Bitbucket returned malformed or oversized JSON. */
132
+ declare const ListPullRequestCommentsBranchInvalidResponse: "invalidResponse";
133
+ /** Local input or credentials are invalid. */
134
+ declare const ListPullRequestCommentsBranchDefect: "defect";
135
+ /** Manifest definition for listPullRequestComments. */
136
+ declare const ListPullRequestCommentsDefinition: QueryDefinition;
137
+ /** Manifest metadata for listPullRequestComments. */
138
+ declare const ListPullRequestCommentsMetadata: {
139
+ readonly kind: "query";
140
+ readonly idempotency: "none";
141
+ readonly authorization: "required";
142
+ };
143
+ /** Branch IDs for getPullRequestComment. */
144
+ declare const GetPullRequestCommentBranch: {
145
+ readonly Found: "found";
146
+ readonly NotFound: "notFound";
147
+ readonly ProviderRejected: "providerRejected";
148
+ readonly InvalidResponse: "invalidResponse";
149
+ readonly Defect: "defect";
150
+ };
151
+ /** Bitbucket returned the requested comment state. */
152
+ declare const GetPullRequestCommentBranchFound: "found";
153
+ /** The pull request or comment was not found. */
154
+ declare const GetPullRequestCommentBranchNotFound: "notFound";
155
+ /** Bitbucket rejected the comment request. */
156
+ declare const GetPullRequestCommentBranchProviderRejected: "providerRejected";
157
+ /** Bitbucket returned malformed or oversized JSON. */
158
+ declare const GetPullRequestCommentBranchInvalidResponse: "invalidResponse";
159
+ /** Local input or credentials are invalid. */
160
+ declare const GetPullRequestCommentBranchDefect: "defect";
161
+ /** Manifest definition for getPullRequestComment. */
162
+ declare const GetPullRequestCommentDefinition: QueryDefinition;
163
+ /** Manifest metadata for getPullRequestComment. */
164
+ declare const GetPullRequestCommentMetadata: {
165
+ readonly kind: "query";
166
+ readonly idempotency: "none";
167
+ readonly authorization: "required";
168
+ };
169
+ /** Branch IDs for createPullRequestComment. */
170
+ declare const CreatePullRequestCommentBranch: {
171
+ readonly Created: "created";
172
+ readonly ProviderRejected: "providerRejected";
173
+ readonly Defect: "defect";
174
+ readonly Uncertain: "uncertain";
175
+ };
176
+ /** Bitbucket returned the requested comment state. */
177
+ declare const CreatePullRequestCommentBranchCreated: "created";
178
+ /** Bitbucket rejected the comment request. */
179
+ declare const CreatePullRequestCommentBranchProviderRejected: "providerRejected";
180
+ /** Local input or credentials are invalid. */
181
+ declare const CreatePullRequestCommentBranchDefect: "defect";
182
+ /** An earlier comment create could not be confirmed. */
183
+ declare const CreatePullRequestCommentBranchUncertain: "uncertain";
184
+ /** Manifest definition for createPullRequestComment. */
185
+ declare const CreatePullRequestCommentDefinition: MutationDefinition;
186
+ /** Manifest metadata for createPullRequestComment. */
187
+ declare const CreatePullRequestCommentMetadata: {
188
+ readonly kind: "mutation";
189
+ readonly idempotency: "required";
190
+ readonly authorization: "required";
191
+ };
192
+ /** Branch IDs for updatePullRequestComment. */
193
+ declare const UpdatePullRequestCommentBranch: {
194
+ readonly Updated: "updated";
195
+ readonly NotFound: "notFound";
196
+ readonly ProviderRejected: "providerRejected";
197
+ readonly InvalidResponse: "invalidResponse";
198
+ readonly Defect: "defect";
199
+ };
200
+ /** Bitbucket returned the requested comment state. */
201
+ declare const UpdatePullRequestCommentBranchUpdated: "updated";
202
+ /** The pull request or comment was not found. */
203
+ declare const UpdatePullRequestCommentBranchNotFound: "notFound";
204
+ /** Bitbucket rejected the comment request. */
205
+ declare const UpdatePullRequestCommentBranchProviderRejected: "providerRejected";
206
+ /** Bitbucket returned malformed or oversized JSON. */
207
+ declare const UpdatePullRequestCommentBranchInvalidResponse: "invalidResponse";
208
+ /** Local input or credentials are invalid. */
209
+ declare const UpdatePullRequestCommentBranchDefect: "defect";
210
+ /** Manifest definition for updatePullRequestComment. */
211
+ declare const UpdatePullRequestCommentDefinition: MutationDefinition;
212
+ /** Manifest metadata for updatePullRequestComment. */
213
+ declare const UpdatePullRequestCommentMetadata: {
214
+ readonly kind: "mutation";
215
+ readonly idempotency: "required";
216
+ readonly authorization: "required";
217
+ };
218
+ /** Branch IDs for deletePullRequestComment. */
219
+ declare const DeletePullRequestCommentBranch: {
220
+ readonly Deleted: "deleted";
221
+ readonly NotFound: "notFound";
222
+ readonly ProviderRejected: "providerRejected";
223
+ readonly Defect: "defect";
224
+ };
225
+ /** Bitbucket returned the requested comment state. */
226
+ declare const DeletePullRequestCommentBranchDeleted: "deleted";
227
+ /** The pull request or comment was not found. */
228
+ declare const DeletePullRequestCommentBranchNotFound: "notFound";
229
+ /** Bitbucket rejected the comment request. */
230
+ declare const DeletePullRequestCommentBranchProviderRejected: "providerRejected";
231
+ /** Local input or credentials are invalid. */
232
+ declare const DeletePullRequestCommentBranchDefect: "defect";
233
+ /** Manifest definition for deletePullRequestComment. */
234
+ declare const DeletePullRequestCommentDefinition: MutationDefinition;
235
+ /** Manifest metadata for deletePullRequestComment. */
236
+ declare const DeletePullRequestCommentMetadata: {
237
+ readonly kind: "mutation";
238
+ readonly idempotency: "required";
239
+ readonly authorization: "required";
240
+ };
241
+ /** Branch IDs for resolvePullRequestComment. */
242
+ declare const ResolvePullRequestCommentBranch: {
243
+ readonly Resolved: "resolved";
244
+ readonly NotFound: "notFound";
245
+ readonly ProviderRejected: "providerRejected";
246
+ readonly InvalidResponse: "invalidResponse";
247
+ readonly Defect: "defect";
248
+ };
249
+ /** Bitbucket returned the requested comment state. */
250
+ declare const ResolvePullRequestCommentBranchResolved: "resolved";
251
+ /** The pull request or comment was not found. */
252
+ declare const ResolvePullRequestCommentBranchNotFound: "notFound";
253
+ /** Bitbucket rejected the comment request. */
254
+ declare const ResolvePullRequestCommentBranchProviderRejected: "providerRejected";
255
+ /** Bitbucket returned malformed or oversized JSON. */
256
+ declare const ResolvePullRequestCommentBranchInvalidResponse: "invalidResponse";
257
+ /** Local input or credentials are invalid. */
258
+ declare const ResolvePullRequestCommentBranchDefect: "defect";
259
+ /** Manifest definition for resolvePullRequestComment. */
260
+ declare const ResolvePullRequestCommentDefinition: MutationDefinition;
261
+ /** Manifest metadata for resolvePullRequestComment. */
262
+ declare const ResolvePullRequestCommentMetadata: {
263
+ readonly kind: "mutation";
264
+ readonly idempotency: "required";
265
+ readonly authorization: "required";
266
+ };
267
+ /** Branch IDs for unresolvePullRequestComment. */
268
+ declare const UnresolvePullRequestCommentBranch: {
269
+ readonly Unresolved: "unresolved";
270
+ readonly NotFound: "notFound";
271
+ readonly ProviderRejected: "providerRejected";
272
+ readonly InvalidResponse: "invalidResponse";
273
+ readonly Defect: "defect";
274
+ };
275
+ /** Bitbucket returned the requested comment state. */
276
+ declare const UnresolvePullRequestCommentBranchUnresolved: "unresolved";
277
+ /** The pull request or comment was not found. */
278
+ declare const UnresolvePullRequestCommentBranchNotFound: "notFound";
279
+ /** Bitbucket rejected the comment request. */
280
+ declare const UnresolvePullRequestCommentBranchProviderRejected: "providerRejected";
281
+ /** Bitbucket returned malformed or oversized JSON. */
282
+ declare const UnresolvePullRequestCommentBranchInvalidResponse: "invalidResponse";
283
+ /** Local input or credentials are invalid. */
284
+ declare const UnresolvePullRequestCommentBranchDefect: "defect";
285
+ /** Manifest definition for unresolvePullRequestComment. */
286
+ declare const UnresolvePullRequestCommentDefinition: MutationDefinition;
287
+ /** Manifest metadata for unresolvePullRequestComment. */
288
+ declare const UnresolvePullRequestCommentMetadata: {
289
+ readonly kind: "mutation";
290
+ readonly idempotency: "required";
291
+ readonly authorization: "required";
292
+ };
293
+ /** Branch IDs for createPullRequest. */
294
+ declare const CreatePullRequestBranch: {
295
+ readonly Created: "created";
296
+ readonly ProviderRejected: "providerRejected";
297
+ readonly Defect: "defect";
298
+ readonly Uncertain: "uncertain";
299
+ };
300
+ /** Bitbucket created the pull request. */
301
+ declare const CreatePullRequestBranchCreated: "created";
302
+ /** Bitbucket conclusively rejected the request. */
303
+ declare const CreatePullRequestBranchProviderRejected: "providerRejected";
304
+ /** Local input or credentials are invalid. */
305
+ declare const CreatePullRequestBranchDefect: "defect";
306
+ /** An earlier creation could not be confirmed. */
307
+ declare const CreatePullRequestBranchUncertain: "uncertain";
308
+ /** Manifest definition for createPullRequest. */
309
+ declare const CreatePullRequestDefinition: MutationDefinition;
310
+ /** Manifest metadata for createPullRequest. */
311
+ declare const CreatePullRequestMetadata: {
312
+ readonly kind: "mutation";
313
+ readonly idempotency: "required";
314
+ readonly authorization: "required";
315
+ };
316
+ /** Branch IDs for mergePullRequest. */
317
+ declare const MergePullRequestBranch: {
318
+ readonly Merged: "merged";
319
+ readonly NotFound: "notFound";
320
+ readonly ProviderRejected: "providerRejected";
321
+ readonly InvalidResponse: "invalidResponse";
322
+ readonly Defect: "defect";
323
+ };
324
+ /** Bitbucket returned a merged pull request. */
325
+ declare const MergePullRequestBranchMerged: "merged";
326
+ /** The pull request does not exist or is not visible. */
327
+ declare const MergePullRequestBranchNotFound: "notFound";
328
+ /** Bitbucket conclusively rejected merging. */
329
+ declare const MergePullRequestBranchProviderRejected: "providerRejected";
330
+ /** Bitbucket returned malformed or oversized JSON. */
331
+ declare const MergePullRequestBranchInvalidResponse: "invalidResponse";
332
+ /** Local input or credentials are invalid. */
333
+ declare const MergePullRequestBranchDefect: "defect";
334
+ /** Manifest definition for mergePullRequest. */
335
+ declare const MergePullRequestDefinition: MutationDefinition;
336
+ /** Manifest metadata for mergePullRequest. */
337
+ declare const MergePullRequestMetadata: {
338
+ readonly kind: "mutation";
339
+ readonly idempotency: "required";
340
+ readonly authorization: "required";
341
+ };
342
+ /** Branch IDs for declinePullRequest. */
343
+ declare const DeclinePullRequestBranch: {
344
+ readonly Declined: "declined";
345
+ readonly NotFound: "notFound";
346
+ readonly ProviderRejected: "providerRejected";
347
+ readonly InvalidResponse: "invalidResponse";
348
+ readonly Defect: "defect";
349
+ };
350
+ /** Bitbucket returned a declined pull request. */
351
+ declare const DeclinePullRequestBranchDeclined: "declined";
352
+ /** The pull request does not exist or is not visible. */
353
+ declare const DeclinePullRequestBranchNotFound: "notFound";
354
+ /** Bitbucket conclusively rejected declining. */
355
+ declare const DeclinePullRequestBranchProviderRejected: "providerRejected";
356
+ /** Bitbucket returned malformed or oversized JSON. */
357
+ declare const DeclinePullRequestBranchInvalidResponse: "invalidResponse";
358
+ /** Local input or credentials are invalid. */
359
+ declare const DeclinePullRequestBranchDefect: "defect";
360
+ /** Manifest definition for declinePullRequest. */
361
+ declare const DeclinePullRequestDefinition: MutationDefinition;
362
+ /** Manifest metadata for declinePullRequest. */
363
+ declare const DeclinePullRequestMetadata: {
364
+ readonly kind: "mutation";
365
+ readonly idempotency: "required";
366
+ readonly authorization: "required";
367
+ };
368
+ /** Branch IDs for createRepository. */
369
+ declare const CreateRepositoryBranch: {
370
+ readonly Created: "created";
371
+ readonly NotFound: "notFound";
372
+ readonly ProviderRejected: "providerRejected";
373
+ readonly InvalidResponse: "invalidResponse";
374
+ readonly Defect: "defect";
375
+ };
376
+ /** Bitbucket returned the requested repository state. */
377
+ declare const CreateRepositoryBranchCreated: "created";
378
+ /** The repository does not exist or is not visible. */
379
+ declare const CreateRepositoryBranchNotFound: "notFound";
380
+ /** Bitbucket conclusively rejected the repository request. */
381
+ declare const CreateRepositoryBranchProviderRejected: "providerRejected";
382
+ /** Bitbucket returned malformed or oversized JSON. */
383
+ declare const CreateRepositoryBranchInvalidResponse: "invalidResponse";
384
+ /** Local repository input or credentials are invalid. */
385
+ declare const CreateRepositoryBranchDefect: "defect";
386
+ /** Manifest definition for createRepository. */
387
+ declare const CreateRepositoryDefinition: MutationDefinition;
388
+ /** Manifest metadata for createRepository. */
389
+ declare const CreateRepositoryMetadata: {
390
+ readonly kind: "mutation";
391
+ readonly idempotency: "required";
392
+ readonly authorization: "required";
393
+ };
394
+ /** Branch IDs for updateRepository. */
395
+ declare const UpdateRepositoryBranch: {
396
+ readonly Updated: "updated";
397
+ readonly NotFound: "notFound";
398
+ readonly ProviderRejected: "providerRejected";
399
+ readonly InvalidResponse: "invalidResponse";
400
+ readonly Defect: "defect";
401
+ };
402
+ /** Bitbucket returned the requested repository state. */
403
+ declare const UpdateRepositoryBranchUpdated: "updated";
404
+ /** The repository does not exist or is not visible. */
405
+ declare const UpdateRepositoryBranchNotFound: "notFound";
406
+ /** Bitbucket conclusively rejected the repository request. */
407
+ declare const UpdateRepositoryBranchProviderRejected: "providerRejected";
408
+ /** Bitbucket returned malformed or oversized JSON. */
409
+ declare const UpdateRepositoryBranchInvalidResponse: "invalidResponse";
410
+ /** Local repository input or credentials are invalid. */
411
+ declare const UpdateRepositoryBranchDefect: "defect";
412
+ /** Manifest definition for updateRepository. */
413
+ declare const UpdateRepositoryDefinition: MutationDefinition;
414
+ /** Manifest metadata for updateRepository. */
415
+ declare const UpdateRepositoryMetadata: {
416
+ readonly kind: "mutation";
417
+ readonly idempotency: "required";
418
+ readonly authorization: "required";
419
+ };
420
+ /** Branch IDs for deleteRepository. */
421
+ declare const DeleteRepositoryBranch: {
422
+ readonly Deleted: "deleted";
423
+ readonly NotFound: "notFound";
424
+ readonly ProviderRejected: "providerRejected";
425
+ readonly InvalidResponse: "invalidResponse";
426
+ readonly Defect: "defect";
427
+ };
428
+ /** Bitbucket returned the requested repository state. */
429
+ declare const DeleteRepositoryBranchDeleted: "deleted";
430
+ /** The repository does not exist or is not visible. */
431
+ declare const DeleteRepositoryBranchNotFound: "notFound";
432
+ /** Bitbucket conclusively rejected the repository request. */
433
+ declare const DeleteRepositoryBranchProviderRejected: "providerRejected";
434
+ /** Bitbucket returned malformed or oversized JSON. */
435
+ declare const DeleteRepositoryBranchInvalidResponse: "invalidResponse";
436
+ /** Local repository input or credentials are invalid. */
437
+ declare const DeleteRepositoryBranchDefect: "defect";
438
+ /** Manifest definition for deleteRepository. */
439
+ declare const DeleteRepositoryDefinition: MutationDefinition;
440
+ /** Manifest metadata for deleteRepository. */
441
+ declare const DeleteRepositoryMetadata: {
442
+ readonly kind: "mutation";
443
+ readonly idempotency: "required";
444
+ readonly authorization: "required";
445
+ };
446
+ /** Branch IDs for getRepository. */
447
+ declare const GetRepositoryBranch: {
448
+ readonly Found: "found";
449
+ readonly NotFound: "notFound";
450
+ readonly ProviderRejected: "providerRejected";
451
+ readonly InvalidResponse: "invalidResponse";
452
+ readonly Defect: "defect";
453
+ };
454
+ /** Bitbucket returned the repository. */
455
+ declare const GetRepositoryBranchFound: "found";
456
+ /** The repository does not exist or is not visible. */
457
+ declare const GetRepositoryBranchNotFound: "notFound";
458
+ /** Bitbucket conclusively rejected the read. */
459
+ declare const GetRepositoryBranchProviderRejected: "providerRejected";
460
+ /** Bitbucket returned malformed or oversized JSON. */
461
+ declare const GetRepositoryBranchInvalidResponse: "invalidResponse";
462
+ /** Local input or credentials are invalid. */
463
+ declare const GetRepositoryBranchDefect: "defect";
464
+ /** Manifest definition for getRepository. */
465
+ declare const GetRepositoryDefinition: QueryDefinition;
466
+ /** Manifest metadata for getRepository. */
467
+ declare const GetRepositoryMetadata: {
468
+ readonly kind: "query";
469
+ readonly idempotency: "none";
470
+ readonly authorization: "required";
471
+ };
472
+ /** Branch IDs for getPullRequest. */
473
+ declare const GetPullRequestBranch: {
474
+ readonly Found: "found";
475
+ readonly NotFound: "notFound";
476
+ readonly ProviderRejected: "providerRejected";
477
+ readonly InvalidResponse: "invalidResponse";
478
+ readonly Defect: "defect";
479
+ };
480
+ /** Bitbucket returned the pull request. */
481
+ declare const GetPullRequestBranchFound: "found";
482
+ /** The pull request does not exist or is not visible. */
483
+ declare const GetPullRequestBranchNotFound: "notFound";
484
+ /** Bitbucket conclusively rejected the read. */
485
+ declare const GetPullRequestBranchProviderRejected: "providerRejected";
486
+ /** Bitbucket returned malformed or oversized JSON. */
487
+ declare const GetPullRequestBranchInvalidResponse: "invalidResponse";
488
+ /** Local input or credentials are invalid. */
489
+ declare const GetPullRequestBranchDefect: "defect";
490
+ /** Manifest definition for getPullRequest. */
491
+ declare const GetPullRequestDefinition: QueryDefinition;
492
+ /** Manifest metadata for getPullRequest. */
493
+ declare const GetPullRequestMetadata: {
494
+ readonly kind: "query";
495
+ readonly idempotency: "none";
496
+ readonly authorization: "required";
497
+ };
498
+ /** Branch IDs for updatePullRequestTitle. */
499
+ declare const UpdatePullRequestTitleBranch: {
500
+ readonly Updated: "updated";
501
+ readonly NotFound: "notFound";
502
+ readonly ProviderRejected: "providerRejected";
503
+ readonly InvalidResponse: "invalidResponse";
504
+ readonly Defect: "defect";
505
+ };
506
+ /** Bitbucket returned the pull request with the new title. */
507
+ declare const UpdatePullRequestTitleBranchUpdated: "updated";
508
+ /** The pull request does not exist or is not visible. */
509
+ declare const UpdatePullRequestTitleBranchNotFound: "notFound";
510
+ /** Bitbucket conclusively rejected the update. */
511
+ declare const UpdatePullRequestTitleBranchProviderRejected: "providerRejected";
512
+ /** Bitbucket returned malformed or oversized JSON. */
513
+ declare const UpdatePullRequestTitleBranchInvalidResponse: "invalidResponse";
514
+ /** Local input or credentials are invalid. */
515
+ declare const UpdatePullRequestTitleBranchDefect: "defect";
516
+ /** Manifest definition for updatePullRequestTitle. */
517
+ declare const UpdatePullRequestTitleDefinition: MutationDefinition;
518
+ /** Manifest metadata for updatePullRequestTitle. */
519
+ declare const UpdatePullRequestTitleMetadata: {
520
+ readonly kind: "mutation";
521
+ readonly idempotency: "required";
522
+ readonly authorization: "required";
523
+ };
14
524
  /** Branch IDs for listRepositories. */
15
525
  declare const ListRepositoriesBranch: {
16
526
  readonly Listed: "listed";
@@ -64,6 +574,442 @@ declare const ListPullRequestsMetadata: {
64
574
  readonly authorization: "required";
65
575
  };
66
576
 
577
+ /** Configuration for the listBranches connector Step. */
578
+ interface ListBranchesStepConfig<StepInput, OperationInput = ListBranchesInput, OperationOutput = BranchPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
579
+ /** Named connection supplying this operation. */
580
+ connection: Connection<{
581
+ listBranches(): Query<OperationInput, OperationOutput>;
582
+ }>;
583
+ /** Name matching the bound connection. */
584
+ connectionName: string;
585
+ /** Bitbucket returned the requested branch state. */
586
+ listed: StepTarget<QueryResult<OperationOutput>>;
587
+ /** The repository or branch was not found. */
588
+ notFound?: StepTarget<QueryResult<OperationOutput>>;
589
+ /** Bitbucket rejected the branch request. */
590
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
591
+ /** Bitbucket returned malformed or oversized JSON. */
592
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
593
+ /** Local input or credentials are invalid. */
594
+ defect?: StepTarget<QueryResult<OperationOutput>>;
595
+ }
596
+ /** Build the listBranches Step from a named connection. */
597
+ declare function newListBranchesStep<StepInput, OperationInput = ListBranchesInput, OperationOutput = BranchPage>(configuration: ListBranchesStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
598
+ /** Configuration for the getBranch connector Step. */
599
+ interface GetBranchStepConfig<StepInput, OperationInput = BranchRefInput, OperationOutput = Branch> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
600
+ /** Named connection supplying this operation. */
601
+ connection: Connection<{
602
+ getBranch(): Query<OperationInput, OperationOutput>;
603
+ }>;
604
+ /** Name matching the bound connection. */
605
+ connectionName: string;
606
+ /** Bitbucket returned the requested branch state. */
607
+ found: StepTarget<QueryResult<OperationOutput>>;
608
+ /** The repository or branch was not found. */
609
+ notFound?: StepTarget<QueryResult<OperationOutput>>;
610
+ /** Bitbucket rejected the branch request. */
611
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
612
+ /** Bitbucket returned malformed or oversized JSON. */
613
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
614
+ /** Local input or credentials are invalid. */
615
+ defect?: StepTarget<QueryResult<OperationOutput>>;
616
+ }
617
+ /** Build the getBranch Step from a named connection. */
618
+ declare function newGetBranchStep<StepInput, OperationInput = BranchRefInput, OperationOutput = Branch>(configuration: GetBranchStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
619
+ /** Configuration for the createBranch connector Step. */
620
+ interface CreateBranchStepConfig<StepInput, OperationInput = CreateBranchInput, OperationOutput = Branch> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
621
+ /** Named connection supplying this operation. */
622
+ connection: Connection<{
623
+ createBranch(): Mutation<OperationInput, OperationOutput>;
624
+ }>;
625
+ /** Name matching the bound connection. */
626
+ connectionName: string;
627
+ /** Bitbucket returned the requested branch state. */
628
+ created: StepTarget<MutationResult<OperationOutput>>;
629
+ /** The repository or branch was not found. */
630
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
631
+ /** Bitbucket rejected the branch request. */
632
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
633
+ /** Bitbucket returned malformed or oversized JSON. */
634
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
635
+ /** Local input or credentials are invalid. */
636
+ defect?: StepTarget<MutationResult<OperationOutput>>;
637
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
638
+ maxSends?: number;
639
+ }
640
+ /** Build the createBranch Step from a named connection. */
641
+ declare function newCreateBranchStep<StepInput, OperationInput = CreateBranchInput, OperationOutput = Branch>(configuration: CreateBranchStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
642
+ /** Configuration for the deleteBranch connector Step. */
643
+ interface DeleteBranchStepConfig<StepInput, OperationInput = BranchRefInput, OperationOutput = DeletedBranch> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
644
+ /** Named connection supplying this operation. */
645
+ connection: Connection<{
646
+ deleteBranch(): Mutation<OperationInput, OperationOutput>;
647
+ }>;
648
+ /** Name matching the bound connection. */
649
+ connectionName: string;
650
+ /** Bitbucket returned the requested branch state. */
651
+ deleted: StepTarget<MutationResult<OperationOutput>>;
652
+ /** The repository or branch was not found. */
653
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
654
+ /** Bitbucket rejected the branch request. */
655
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
656
+ /** Local input or credentials are invalid. */
657
+ defect?: StepTarget<MutationResult<OperationOutput>>;
658
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
659
+ maxSends?: number;
660
+ }
661
+ /** Build the deleteBranch Step from a named connection. */
662
+ declare function newDeleteBranchStep<StepInput, OperationInput = BranchRefInput, OperationOutput = DeletedBranch>(configuration: DeleteBranchStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
663
+ /** Configuration for the listPullRequestComments connector Step. */
664
+ interface ListPullRequestCommentsStepConfig<StepInput, OperationInput = PullRequestActionInput, OperationOutput = PullRequestCommentPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
665
+ /** Named connection supplying this operation. */
666
+ connection: Connection<{
667
+ listPullRequestComments(): Query<OperationInput, OperationOutput>;
668
+ }>;
669
+ /** Name matching the bound connection. */
670
+ connectionName: string;
671
+ /** Bitbucket returned the requested comment state. */
672
+ listed: StepTarget<QueryResult<OperationOutput>>;
673
+ /** The pull request or comment was not found. */
674
+ notFound?: StepTarget<QueryResult<OperationOutput>>;
675
+ /** Bitbucket rejected the comment request. */
676
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
677
+ /** Bitbucket returned malformed or oversized JSON. */
678
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
679
+ /** Local input or credentials are invalid. */
680
+ defect?: StepTarget<QueryResult<OperationOutput>>;
681
+ }
682
+ /** Build the listPullRequestComments Step from a named connection. */
683
+ declare function newListPullRequestCommentsStep<StepInput, OperationInput = PullRequestActionInput, OperationOutput = PullRequestCommentPage>(configuration: ListPullRequestCommentsStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
684
+ /** Configuration for the getPullRequestComment connector Step. */
685
+ interface GetPullRequestCommentStepConfig<StepInput, OperationInput = PullRequestCommentIDInput, OperationOutput = PullRequestComment> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
686
+ /** Named connection supplying this operation. */
687
+ connection: Connection<{
688
+ getPullRequestComment(): Query<OperationInput, OperationOutput>;
689
+ }>;
690
+ /** Name matching the bound connection. */
691
+ connectionName: string;
692
+ /** Bitbucket returned the requested comment state. */
693
+ found: StepTarget<QueryResult<OperationOutput>>;
694
+ /** The pull request or comment was not found. */
695
+ notFound?: StepTarget<QueryResult<OperationOutput>>;
696
+ /** Bitbucket rejected the comment request. */
697
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
698
+ /** Bitbucket returned malformed or oversized JSON. */
699
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
700
+ /** Local input or credentials are invalid. */
701
+ defect?: StepTarget<QueryResult<OperationOutput>>;
702
+ }
703
+ /** Build the getPullRequestComment Step from a named connection. */
704
+ declare function newGetPullRequestCommentStep<StepInput, OperationInput = PullRequestCommentIDInput, OperationOutput = PullRequestComment>(configuration: GetPullRequestCommentStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
705
+ /** Configuration for the createPullRequestComment connector Step. */
706
+ interface CreatePullRequestCommentStepConfig<StepInput, OperationInput = CreatePullRequestCommentInput, OperationOutput = PullRequestComment> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
707
+ /** Named connection supplying this operation. */
708
+ connection: Connection<{
709
+ createPullRequestComment(): Mutation<OperationInput, OperationOutput>;
710
+ }>;
711
+ /** Name matching the bound connection. */
712
+ connectionName: string;
713
+ /** Bitbucket returned the requested comment state. */
714
+ created: StepTarget<MutationResult<OperationOutput>>;
715
+ /** Bitbucket rejected the comment request. */
716
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
717
+ /** Local input or credentials are invalid. */
718
+ defect?: StepTarget<MutationResult<OperationOutput>>;
719
+ /** An earlier comment create could not be confirmed. */
720
+ uncertain?: StepTarget<MutationResult<OperationOutput>>;
721
+ }
722
+ /** Build the createPullRequestComment Step from a named connection. */
723
+ declare function newCreatePullRequestCommentStep<StepInput, OperationInput = CreatePullRequestCommentInput, OperationOutput = PullRequestComment>(configuration: CreatePullRequestCommentStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
724
+ /** Configuration for the updatePullRequestComment connector Step. */
725
+ interface UpdatePullRequestCommentStepConfig<StepInput, OperationInput = UpdatePullRequestCommentInput, OperationOutput = PullRequestComment> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
726
+ /** Named connection supplying this operation. */
727
+ connection: Connection<{
728
+ updatePullRequestComment(): Mutation<OperationInput, OperationOutput>;
729
+ }>;
730
+ /** Name matching the bound connection. */
731
+ connectionName: string;
732
+ /** Bitbucket returned the requested comment state. */
733
+ updated: StepTarget<MutationResult<OperationOutput>>;
734
+ /** The pull request or comment was not found. */
735
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
736
+ /** Bitbucket rejected the comment request. */
737
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
738
+ /** Bitbucket returned malformed or oversized JSON. */
739
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
740
+ /** Local input or credentials are invalid. */
741
+ defect?: StepTarget<MutationResult<OperationOutput>>;
742
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
743
+ maxSends?: number;
744
+ }
745
+ /** Build the updatePullRequestComment Step from a named connection. */
746
+ declare function newUpdatePullRequestCommentStep<StepInput, OperationInput = UpdatePullRequestCommentInput, OperationOutput = PullRequestComment>(configuration: UpdatePullRequestCommentStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
747
+ /** Configuration for the deletePullRequestComment connector Step. */
748
+ interface DeletePullRequestCommentStepConfig<StepInput, OperationInput = PullRequestCommentIDInput, OperationOutput = DeletedPullRequestComment> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
749
+ /** Named connection supplying this operation. */
750
+ connection: Connection<{
751
+ deletePullRequestComment(): Mutation<OperationInput, OperationOutput>;
752
+ }>;
753
+ /** Name matching the bound connection. */
754
+ connectionName: string;
755
+ /** Bitbucket returned the requested comment state. */
756
+ deleted: StepTarget<MutationResult<OperationOutput>>;
757
+ /** The pull request or comment was not found. */
758
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
759
+ /** Bitbucket rejected the comment request. */
760
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
761
+ /** Local input or credentials are invalid. */
762
+ defect?: StepTarget<MutationResult<OperationOutput>>;
763
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
764
+ maxSends?: number;
765
+ }
766
+ /** Build the deletePullRequestComment Step from a named connection. */
767
+ declare function newDeletePullRequestCommentStep<StepInput, OperationInput = PullRequestCommentIDInput, OperationOutput = DeletedPullRequestComment>(configuration: DeletePullRequestCommentStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
768
+ /** Configuration for the resolvePullRequestComment connector Step. */
769
+ interface ResolvePullRequestCommentStepConfig<StepInput, OperationInput = PullRequestCommentIDInput, OperationOutput = PullRequestComment> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
770
+ /** Named connection supplying this operation. */
771
+ connection: Connection<{
772
+ resolvePullRequestComment(): Mutation<OperationInput, OperationOutput>;
773
+ }>;
774
+ /** Name matching the bound connection. */
775
+ connectionName: string;
776
+ /** Bitbucket returned the requested comment state. */
777
+ resolved: StepTarget<MutationResult<OperationOutput>>;
778
+ /** The pull request or comment was not found. */
779
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
780
+ /** Bitbucket rejected the comment request. */
781
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
782
+ /** Bitbucket returned malformed or oversized JSON. */
783
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
784
+ /** Local input or credentials are invalid. */
785
+ defect?: StepTarget<MutationResult<OperationOutput>>;
786
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
787
+ maxSends?: number;
788
+ }
789
+ /** Build the resolvePullRequestComment Step from a named connection. */
790
+ declare function newResolvePullRequestCommentStep<StepInput, OperationInput = PullRequestCommentIDInput, OperationOutput = PullRequestComment>(configuration: ResolvePullRequestCommentStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
791
+ /** Configuration for the unresolvePullRequestComment connector Step. */
792
+ interface UnresolvePullRequestCommentStepConfig<StepInput, OperationInput = PullRequestCommentIDInput, OperationOutput = PullRequestComment> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
793
+ /** Named connection supplying this operation. */
794
+ connection: Connection<{
795
+ unresolvePullRequestComment(): Mutation<OperationInput, OperationOutput>;
796
+ }>;
797
+ /** Name matching the bound connection. */
798
+ connectionName: string;
799
+ /** Bitbucket returned the requested comment state. */
800
+ unresolved: StepTarget<MutationResult<OperationOutput>>;
801
+ /** The pull request or comment was not found. */
802
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
803
+ /** Bitbucket rejected the comment request. */
804
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
805
+ /** Bitbucket returned malformed or oversized JSON. */
806
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
807
+ /** Local input or credentials are invalid. */
808
+ defect?: StepTarget<MutationResult<OperationOutput>>;
809
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
810
+ maxSends?: number;
811
+ }
812
+ /** Build the unresolvePullRequestComment Step from a named connection. */
813
+ declare function newUnresolvePullRequestCommentStep<StepInput, OperationInput = PullRequestCommentIDInput, OperationOutput = PullRequestComment>(configuration: UnresolvePullRequestCommentStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
814
+ /** Configuration for the createPullRequest connector Step. */
815
+ interface CreatePullRequestStepConfig<StepInput, OperationInput = CreatePullRequestInput, OperationOutput = PullRequest> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
816
+ /** Named connection supplying this operation. */
817
+ connection: Connection<{
818
+ createPullRequest(): Mutation<OperationInput, OperationOutput>;
819
+ }>;
820
+ /** Name matching the bound connection. */
821
+ connectionName: string;
822
+ /** Bitbucket created the pull request. */
823
+ created: StepTarget<MutationResult<OperationOutput>>;
824
+ /** Bitbucket conclusively rejected the request. */
825
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
826
+ /** Local input or credentials are invalid. */
827
+ defect?: StepTarget<MutationResult<OperationOutput>>;
828
+ /** An earlier creation could not be confirmed. */
829
+ uncertain?: StepTarget<MutationResult<OperationOutput>>;
830
+ }
831
+ /** Build the createPullRequest Step from a named connection. */
832
+ declare function newCreatePullRequestStep<StepInput, OperationInput = CreatePullRequestInput, OperationOutput = PullRequest>(configuration: CreatePullRequestStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
833
+ /** Configuration for the mergePullRequest connector Step. */
834
+ interface MergePullRequestStepConfig<StepInput, OperationInput = PullRequestActionInput, OperationOutput = PullRequest> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
835
+ /** Named connection supplying this operation. */
836
+ connection: Connection<{
837
+ mergePullRequest(): Mutation<OperationInput, OperationOutput>;
838
+ }>;
839
+ /** Name matching the bound connection. */
840
+ connectionName: string;
841
+ /** Bitbucket returned a merged pull request. */
842
+ merged: StepTarget<MutationResult<OperationOutput>>;
843
+ /** The pull request does not exist or is not visible. */
844
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
845
+ /** Bitbucket conclusively rejected merging. */
846
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
847
+ /** Bitbucket returned malformed or oversized JSON. */
848
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
849
+ /** Local input or credentials are invalid. */
850
+ defect?: StepTarget<MutationResult<OperationOutput>>;
851
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
852
+ maxSends?: number;
853
+ }
854
+ /** Build the mergePullRequest Step from a named connection. */
855
+ declare function newMergePullRequestStep<StepInput, OperationInput = PullRequestActionInput, OperationOutput = PullRequest>(configuration: MergePullRequestStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
856
+ /** Configuration for the declinePullRequest connector Step. */
857
+ interface DeclinePullRequestStepConfig<StepInput, OperationInput = PullRequestActionInput, OperationOutput = PullRequest> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
858
+ /** Named connection supplying this operation. */
859
+ connection: Connection<{
860
+ declinePullRequest(): Mutation<OperationInput, OperationOutput>;
861
+ }>;
862
+ /** Name matching the bound connection. */
863
+ connectionName: string;
864
+ /** Bitbucket returned a declined pull request. */
865
+ declined: StepTarget<MutationResult<OperationOutput>>;
866
+ /** The pull request does not exist or is not visible. */
867
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
868
+ /** Bitbucket conclusively rejected declining. */
869
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
870
+ /** Bitbucket returned malformed or oversized JSON. */
871
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
872
+ /** Local input or credentials are invalid. */
873
+ defect?: StepTarget<MutationResult<OperationOutput>>;
874
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
875
+ maxSends?: number;
876
+ }
877
+ /** Build the declinePullRequest Step from a named connection. */
878
+ declare function newDeclinePullRequestStep<StepInput, OperationInput = PullRequestActionInput, OperationOutput = PullRequest>(configuration: DeclinePullRequestStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
879
+ /** Configuration for the createRepository connector Step. */
880
+ interface CreateRepositoryStepConfig<StepInput, OperationInput = CreateRepositoryInput, OperationOutput = Repository> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
881
+ /** Named connection supplying this operation. */
882
+ connection: Connection<{
883
+ createRepository(): Mutation<OperationInput, OperationOutput>;
884
+ }>;
885
+ /** Name matching the bound connection. */
886
+ connectionName: string;
887
+ /** Bitbucket returned the requested repository state. */
888
+ created: StepTarget<MutationResult<OperationOutput>>;
889
+ /** The repository does not exist or is not visible. */
890
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
891
+ /** Bitbucket conclusively rejected the repository request. */
892
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
893
+ /** Bitbucket returned malformed or oversized JSON. */
894
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
895
+ /** Local repository input or credentials are invalid. */
896
+ defect?: StepTarget<MutationResult<OperationOutput>>;
897
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
898
+ maxSends?: number;
899
+ }
900
+ /** Build the createRepository Step from a named connection. */
901
+ declare function newCreateRepositoryStep<StepInput, OperationInput = CreateRepositoryInput, OperationOutput = Repository>(configuration: CreateRepositoryStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
902
+ /** Configuration for the updateRepository connector Step. */
903
+ interface UpdateRepositoryStepConfig<StepInput, OperationInput = UpdateRepositoryInput, OperationOutput = Repository> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
904
+ /** Named connection supplying this operation. */
905
+ connection: Connection<{
906
+ updateRepository(): Mutation<OperationInput, OperationOutput>;
907
+ }>;
908
+ /** Name matching the bound connection. */
909
+ connectionName: string;
910
+ /** Bitbucket returned the requested repository state. */
911
+ updated: StepTarget<MutationResult<OperationOutput>>;
912
+ /** The repository does not exist or is not visible. */
913
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
914
+ /** Bitbucket conclusively rejected the repository request. */
915
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
916
+ /** Bitbucket returned malformed or oversized JSON. */
917
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
918
+ /** Local repository input or credentials are invalid. */
919
+ defect?: StepTarget<MutationResult<OperationOutput>>;
920
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
921
+ maxSends?: number;
922
+ }
923
+ /** Build the updateRepository Step from a named connection. */
924
+ declare function newUpdateRepositoryStep<StepInput, OperationInput = UpdateRepositoryInput, OperationOutput = Repository>(configuration: UpdateRepositoryStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
925
+ /** Configuration for the deleteRepository connector Step. */
926
+ interface DeleteRepositoryStepConfig<StepInput, OperationInput = DeleteRepositoryInput, OperationOutput = DeletedRepository> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
927
+ /** Named connection supplying this operation. */
928
+ connection: Connection<{
929
+ deleteRepository(): Mutation<OperationInput, OperationOutput>;
930
+ }>;
931
+ /** Name matching the bound connection. */
932
+ connectionName: string;
933
+ /** Bitbucket returned the requested repository state. */
934
+ deleted: StepTarget<MutationResult<OperationOutput>>;
935
+ /** The repository does not exist or is not visible. */
936
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
937
+ /** Bitbucket conclusively rejected the repository request. */
938
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
939
+ /** Bitbucket returned malformed or oversized JSON. */
940
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
941
+ /** Local repository input or credentials are invalid. */
942
+ defect?: StepTarget<MutationResult<OperationOutput>>;
943
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
944
+ maxSends?: number;
945
+ }
946
+ /** Build the deleteRepository Step from a named connection. */
947
+ declare function newDeleteRepositoryStep<StepInput, OperationInput = DeleteRepositoryInput, OperationOutput = DeletedRepository>(configuration: DeleteRepositoryStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
948
+ /** Configuration for the getRepository connector Step. */
949
+ interface GetRepositoryStepConfig<StepInput, OperationInput = GetRepositoryInput, OperationOutput = Repository> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
950
+ /** Named connection supplying this operation. */
951
+ connection: Connection<{
952
+ getRepository(): Query<OperationInput, OperationOutput>;
953
+ }>;
954
+ /** Name matching the bound connection. */
955
+ connectionName: string;
956
+ /** Bitbucket returned the repository. */
957
+ found: StepTarget<QueryResult<OperationOutput>>;
958
+ /** The repository does not exist or is not visible. */
959
+ notFound?: StepTarget<QueryResult<OperationOutput>>;
960
+ /** Bitbucket conclusively rejected the read. */
961
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
962
+ /** Bitbucket returned malformed or oversized JSON. */
963
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
964
+ /** Local input or credentials are invalid. */
965
+ defect?: StepTarget<QueryResult<OperationOutput>>;
966
+ }
967
+ /** Build the getRepository Step from a named connection. */
968
+ declare function newGetRepositoryStep<StepInput, OperationInput = GetRepositoryInput, OperationOutput = Repository>(configuration: GetRepositoryStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
969
+ /** Configuration for the getPullRequest connector Step. */
970
+ interface GetPullRequestStepConfig<StepInput, OperationInput = GetPullRequestInput, OperationOutput = PullRequest> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
971
+ /** Named connection supplying this operation. */
972
+ connection: Connection<{
973
+ getPullRequest(): Query<OperationInput, OperationOutput>;
974
+ }>;
975
+ /** Name matching the bound connection. */
976
+ connectionName: string;
977
+ /** Bitbucket returned the pull request. */
978
+ found: StepTarget<QueryResult<OperationOutput>>;
979
+ /** The pull request does not exist or is not visible. */
980
+ notFound?: StepTarget<QueryResult<OperationOutput>>;
981
+ /** Bitbucket conclusively rejected the read. */
982
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
983
+ /** Bitbucket returned malformed or oversized JSON. */
984
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
985
+ /** Local input or credentials are invalid. */
986
+ defect?: StepTarget<QueryResult<OperationOutput>>;
987
+ }
988
+ /** Build the getPullRequest Step from a named connection. */
989
+ declare function newGetPullRequestStep<StepInput, OperationInput = GetPullRequestInput, OperationOutput = PullRequest>(configuration: GetPullRequestStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
990
+ /** Configuration for the updatePullRequestTitle connector Step. */
991
+ interface UpdatePullRequestTitleStepConfig<StepInput, OperationInput = UpdatePullRequestTitleInput, OperationOutput = PullRequest> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
992
+ /** Named connection supplying this operation. */
993
+ connection: Connection<{
994
+ updatePullRequestTitle(): Mutation<OperationInput, OperationOutput>;
995
+ }>;
996
+ /** Name matching the bound connection. */
997
+ connectionName: string;
998
+ /** Bitbucket returned the pull request with the new title. */
999
+ updated: StepTarget<MutationResult<OperationOutput>>;
1000
+ /** The pull request does not exist or is not visible. */
1001
+ notFound?: StepTarget<MutationResult<OperationOutput>>;
1002
+ /** Bitbucket conclusively rejected the update. */
1003
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
1004
+ /** Bitbucket returned malformed or oversized JSON. */
1005
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
1006
+ /** Local input or credentials are invalid. */
1007
+ defect?: StepTarget<MutationResult<OperationOutput>>;
1008
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
1009
+ maxSends?: number;
1010
+ }
1011
+ /** Build the updatePullRequestTitle Step from a named connection. */
1012
+ declare function newUpdatePullRequestTitleStep<StepInput, OperationInput = UpdatePullRequestTitleInput, OperationOutput = PullRequest>(configuration: UpdatePullRequestTitleStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
67
1013
  /** Configuration for the listRepositories connector Step. */
68
1014
  interface ListRepositoriesStepConfig<StepInput, OperationInput = ListRepositoriesInput, OperationOutput = RepositoryPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
69
1015
  /** Named connection supplying this operation. */
@@ -124,10 +1070,237 @@ declare class ListPullRequestsOperation implements Query<ListPullRequestsInput,
124
1070
  invoke(call: Call, input: ListPullRequestsInput): Promise<QueryAttempt<PullRequestPage>>;
125
1071
  }
126
1072
 
1073
+ type Kind = Failure['kind'];
1074
+ type Decoder<Output> = (document: unknown) => Output;
1075
+ type AuthorizationStatus = '' | 'repository' | 'title' | 'action';
1076
+ declare abstract class Operation<Output> {
1077
+ protected readonly client: BitbucketClient;
1078
+ protected abstract readonly operation: string;
1079
+ protected abstract empty(): Output;
1080
+ constructor(client: BitbucketClient);
1081
+ protected failure(kind: Kind, message: string): Failure;
1082
+ }
1083
+ declare abstract class QueryOperation<Output> extends Operation<Output> {
1084
+ protected abstract readonly contract: QueryDefinition;
1085
+ /** Return the generated Query contract. */
1086
+ definition(): QueryDefinition;
1087
+ protected defect(): QueryAttempt<Output>;
1088
+ protected read(call: Call, path: string, branch: string, decode: Decoder<Output>): Promise<QueryAttempt<Output>>;
1089
+ }
1090
+ interface Confirmation<Output> {
1091
+ path: string;
1092
+ statuses: readonly number[];
1093
+ comment?: boolean;
1094
+ identity?: (result: Output) => boolean;
1095
+ }
1096
+ interface Write<Output> {
1097
+ method: string;
1098
+ path: string;
1099
+ payload?: object;
1100
+ branch: string;
1101
+ decode: Decoder<Output>;
1102
+ matches: (output: Output) => boolean;
1103
+ statuses?: readonly number[];
1104
+ authStatus?: AuthorizationStatus;
1105
+ availabilityDelay?: boolean;
1106
+ confirmation?: Confirmation<Output>;
1107
+ }
1108
+ declare abstract class MutationOperation<Input, Output> extends Operation<Output> {
1109
+ protected abstract readonly contract: MutationDefinition;
1110
+ /** Return the generated Mutation contract. */
1111
+ definition(): MutationDefinition;
1112
+ /** Use the stable call identity across attempts. */
1113
+ idempotencyKey(callId: CallID, input: Input): IdempotencyKey;
1114
+ protected branch(branch: string, kind: Kind, message: string): MutationAttempt<Output>;
1115
+ protected defect(): MutationAttempt<Output>;
1116
+ private retry;
1117
+ private exchange;
1118
+ private transient;
1119
+ private refusal;
1120
+ protected write(call: Call, request: Write<Output>): Promise<MutationAttempt<Output>>;
1121
+ private confirm;
1122
+ protected delete(call: Call, path: string, value: Output, isRepository?: boolean): Promise<MutationAttempt<Output>>;
1123
+ protected createLimited(call: Call, path: string, payload: object, decode: Decoder<Output>, matches: (value: Output) => boolean): Promise<MutationAttempt<Output>>;
1124
+ }
1125
+ /** List branches in a Bitbucket repository. */
1126
+ declare class ListBranchesOperation extends QueryOperation<BranchPage> {
1127
+ protected readonly operation = "listBranches";
1128
+ protected readonly contract: QueryDefinition;
1129
+ protected empty(): BranchPage;
1130
+ /** List branches in a Bitbucket repository. */
1131
+ invoke(call: Call, input: ListBranchesInput): Promise<QueryAttempt<BranchPage>>;
1132
+ }
1133
+ /** Read a branch in a Bitbucket repository. */
1134
+ declare class GetBranchOperation extends QueryOperation<Branch> {
1135
+ protected readonly operation = "getBranch";
1136
+ protected readonly contract: QueryDefinition;
1137
+ protected empty(): Branch;
1138
+ /** Read a branch in a Bitbucket repository. */
1139
+ invoke(call: Call, input: BranchRefInput): Promise<QueryAttempt<Branch>>;
1140
+ }
1141
+ /** Create a branch in a Bitbucket repository. */
1142
+ declare class CreateBranchOperation extends MutationOperation<CreateBranchInput, Branch> {
1143
+ protected readonly operation = "createBranch";
1144
+ protected readonly contract: MutationDefinition;
1145
+ protected empty(): Branch;
1146
+ /** Create a branch in a Bitbucket repository. */
1147
+ invoke(call: Call, input: CreateBranchInput): Promise<MutationAttempt<Branch>>;
1148
+ }
1149
+ /** Delete a branch in a Bitbucket repository. */
1150
+ declare class DeleteBranchOperation extends MutationOperation<BranchRefInput, DeletedBranch> {
1151
+ protected readonly operation = "deleteBranch";
1152
+ protected readonly contract: MutationDefinition;
1153
+ protected empty(): DeletedBranch;
1154
+ /** Delete a branch in a Bitbucket repository. */
1155
+ invoke(call: Call, input: BranchRefInput): Promise<MutationAttempt<DeletedBranch>>;
1156
+ }
1157
+ /** List comments on a pull request. */
1158
+ declare class ListPullRequestCommentsOperation extends QueryOperation<PullRequestCommentPage> {
1159
+ protected readonly operation = "listPullRequestComments";
1160
+ protected readonly contract: QueryDefinition;
1161
+ protected empty(): PullRequestCommentPage;
1162
+ /** List comments on a pull request. */
1163
+ invoke(call: Call, input: PullRequestActionInput): Promise<QueryAttempt<PullRequestCommentPage>>;
1164
+ }
1165
+ /** Read one pull request comment. */
1166
+ declare class GetPullRequestCommentOperation extends QueryOperation<PullRequestComment> {
1167
+ protected readonly operation = "getPullRequestComment";
1168
+ protected readonly contract: QueryDefinition;
1169
+ protected empty(): PullRequestComment;
1170
+ /** Read one pull request comment. */
1171
+ invoke(call: Call, input: PullRequestCommentIDInput): Promise<QueryAttempt<PullRequestComment>>;
1172
+ }
1173
+ /** Create a pull request comment. */
1174
+ declare class CreatePullRequestCommentOperation extends MutationOperation<CreatePullRequestCommentInput, PullRequestComment> {
1175
+ protected readonly operation = "createPullRequestComment";
1176
+ protected readonly contract: MutationDefinition;
1177
+ protected empty(): PullRequestComment;
1178
+ /** Create a pull request comment. */
1179
+ invoke(call: Call, input: CreatePullRequestCommentInput): Promise<MutationAttempt<PullRequestComment>>;
1180
+ }
1181
+ /** Replace pull request comment text. */
1182
+ declare class UpdatePullRequestCommentOperation extends MutationOperation<UpdatePullRequestCommentInput, PullRequestComment> {
1183
+ protected readonly operation = "updatePullRequestComment";
1184
+ protected readonly contract: MutationDefinition;
1185
+ protected empty(): PullRequestComment;
1186
+ /** Replace pull request comment text. */
1187
+ invoke(call: Call, input: UpdatePullRequestCommentInput): Promise<MutationAttempt<PullRequestComment>>;
1188
+ }
1189
+ /** Delete a pull request comment. */
1190
+ declare class DeletePullRequestCommentOperation extends MutationOperation<PullRequestCommentIDInput, DeletedPullRequestComment> {
1191
+ protected readonly operation = "deletePullRequestComment";
1192
+ protected readonly contract: MutationDefinition;
1193
+ protected empty(): DeletedPullRequestComment;
1194
+ /** Delete a pull request comment. */
1195
+ invoke(call: Call, input: PullRequestCommentIDInput): Promise<MutationAttempt<DeletedPullRequestComment>>;
1196
+ }
1197
+ /** Resolve a pull request comment. */
1198
+ declare class ResolvePullRequestCommentOperation extends MutationOperation<PullRequestCommentIDInput, PullRequestComment> {
1199
+ protected readonly operation = "resolvePullRequestComment";
1200
+ protected readonly contract: MutationDefinition;
1201
+ protected empty(): PullRequestComment;
1202
+ /** Resolve a pull request comment. */
1203
+ invoke(call: Call, input: PullRequestCommentIDInput): Promise<MutationAttempt<PullRequestComment>>;
1204
+ }
1205
+ /** Reopen a resolved pull request comment. */
1206
+ declare class UnresolvePullRequestCommentOperation extends MutationOperation<PullRequestCommentIDInput, PullRequestComment> {
1207
+ protected readonly operation = "unresolvePullRequestComment";
1208
+ protected readonly contract: MutationDefinition;
1209
+ protected empty(): PullRequestComment;
1210
+ /** Reopen a resolved pull request comment. */
1211
+ invoke(call: Call, input: PullRequestCommentIDInput): Promise<MutationAttempt<PullRequestComment>>;
1212
+ }
1213
+ /** Create a pull request between two branches of one repository. */
1214
+ declare class CreatePullRequestOperation extends MutationOperation<CreatePullRequestInput, PullRequest> {
1215
+ protected readonly operation = "createPullRequest";
1216
+ protected readonly contract: MutationDefinition;
1217
+ protected empty(): PullRequest;
1218
+ /** Create a pull request between two branches of one repository. */
1219
+ invoke(call: Call, input: CreatePullRequestInput): Promise<MutationAttempt<PullRequest>>;
1220
+ }
1221
+ /** Merge an open pull request into its destination branch. */
1222
+ declare class MergePullRequestOperation extends MutationOperation<PullRequestActionInput, PullRequest> {
1223
+ protected readonly operation = "mergePullRequest";
1224
+ protected readonly contract: MutationDefinition;
1225
+ protected empty(): PullRequest;
1226
+ /** Merge an open pull request into its destination branch. */
1227
+ invoke(call: Call, input: PullRequestActionInput): Promise<MutationAttempt<PullRequest>>;
1228
+ }
1229
+ /** Decline an open pull request. */
1230
+ declare class DeclinePullRequestOperation extends MutationOperation<PullRequestActionInput, PullRequest> {
1231
+ protected readonly operation = "declinePullRequest";
1232
+ protected readonly contract: MutationDefinition;
1233
+ protected empty(): PullRequest;
1234
+ /** Decline an open pull request. */
1235
+ invoke(call: Call, input: PullRequestActionInput): Promise<MutationAttempt<PullRequest>>;
1236
+ }
1237
+ /** Create a private Bitbucket repository under a workspace. */
1238
+ declare class CreateRepositoryOperation extends MutationOperation<CreateRepositoryInput, Repository> {
1239
+ protected readonly operation = "createRepository";
1240
+ protected readonly contract: MutationDefinition;
1241
+ protected empty(): Repository;
1242
+ /** Create a private Bitbucket repository under a workspace. */
1243
+ invoke(call: Call, input: CreateRepositoryInput): Promise<MutationAttempt<Repository>>;
1244
+ }
1245
+ /** Replace a repository's name and visibility. */
1246
+ declare class UpdateRepositoryOperation extends MutationOperation<UpdateRepositoryInput, Repository> {
1247
+ protected readonly operation = "updateRepository";
1248
+ protected readonly contract: MutationDefinition;
1249
+ protected empty(): Repository;
1250
+ /** Replace a repository's name and visibility. */
1251
+ invoke(call: Call, input: UpdateRepositoryInput): Promise<MutationAttempt<Repository>>;
1252
+ }
1253
+ /** Delete a repository by workspace and slug. */
1254
+ declare class DeleteRepositoryOperation extends MutationOperation<DeleteRepositoryInput, DeletedRepository> {
1255
+ protected readonly operation = "deleteRepository";
1256
+ protected readonly contract: MutationDefinition;
1257
+ protected empty(): DeletedRepository;
1258
+ /** Delete a repository by workspace and slug. */
1259
+ invoke(call: Call, input: DeleteRepositoryInput): Promise<MutationAttempt<DeletedRepository>>;
1260
+ }
1261
+ /** Read one repository by workspace and repository slug. */
1262
+ declare class GetRepositoryOperation extends QueryOperation<Repository> {
1263
+ protected readonly operation = "getRepository";
1264
+ protected readonly contract: QueryDefinition;
1265
+ protected empty(): Repository;
1266
+ /** Read one repository by workspace and repository slug. */
1267
+ invoke(call: Call, input: GetRepositoryInput): Promise<QueryAttempt<Repository>>;
1268
+ }
1269
+ /** Read one pull request by workspace, repository, and numeric ID. */
1270
+ declare class GetPullRequestOperation extends QueryOperation<PullRequest> {
1271
+ protected readonly operation = "getPullRequest";
1272
+ protected readonly contract: QueryDefinition;
1273
+ protected empty(): PullRequest;
1274
+ /** Read one pull request by workspace, repository, and numeric ID. */
1275
+ invoke(call: Call, input: GetPullRequestInput): Promise<QueryAttempt<PullRequest>>;
1276
+ }
1277
+ /** Replace one pull request title with an absolute value. */
1278
+ declare class UpdatePullRequestTitleOperation extends MutationOperation<UpdatePullRequestTitleInput, PullRequest> {
1279
+ protected readonly operation = "updatePullRequestTitle";
1280
+ protected readonly contract: MutationDefinition;
1281
+ protected empty(): PullRequest;
1282
+ /** Replace one pull request title with an absolute value. */
1283
+ invoke(call: Call, input: UpdatePullRequestTitleInput): Promise<MutationAttempt<PullRequest>>;
1284
+ }
1285
+
1286
+ /** One bounded Bitbucket exchange or sanitized request failure. */
1287
+ interface WriteExchange {
1288
+ status: number;
1289
+ body: Uint8Array;
1290
+ retryAfterMs: number;
1291
+ error?: 'credential' | 'transport' | 'tooLarge' | 'read';
1292
+ }
1293
+ /** Internal transport for Bitbucket Mutations. */
1294
+ declare const prepareWrite: unique symbol;
1295
+
127
1296
  /** Injectable HTTP sender for deterministic Bitbucket provider tests. */
128
1297
  type BitbucketRequestSender = (request: ProviderRequest) => Promise<ProviderResponse>;
129
1298
  /** Dependencies for provider tests. */
130
1299
  interface BitbucketClientOptions {
1300
+ /** Secret configured on the Bitbucket webhook. It stays outside the API credential store. */
1301
+ webhookSecret?: SecretString;
1302
+ /** Destination for Trigger delivery diagnostics. */
1303
+ logger?: TriggerLogger;
131
1304
  /** Sender; defaults to the SDK's bounded, no redirect transport. */
132
1305
  send?: BitbucketRequestSender;
133
1306
  /** Clock for Retry-After parsing. */
@@ -147,25 +1320,177 @@ type ReadResult = {
147
1320
  /** Bitbucket client with immutable settings and call-time credential resolution. */
148
1321
  declare class BitbucketClient {
149
1322
  private readonly baseURL;
150
- private readonly maxResponseBytes;
1323
+ /** Maximum webhook and API response size in bytes. */ readonly maxResponseBytes: number;
151
1324
  private readonly timeoutMs;
152
- private readonly credentials;
1325
+ /** Call-time API credentials shared by operations and webhooks. */ readonly credentials: CredentialProvider<Credentials>;
1326
+ /** Process-local webhook signing secret. */ readonly webhookSecret: SecretString | undefined;
1327
+ /** Trigger logger shared by bindings. */ readonly triggerLogger: TriggerLogger;
153
1328
  private readonly send;
154
- private readonly now;
1329
+ /** Clock for webhook receipt and retry delays. */ readonly now: () => Date;
155
1330
  /** Validate settings without contacting Bitbucket. */
156
1331
  constructor(config: Config, credentials: CredentialProvider<Credentials>, options?: BitbucketClientOptions);
157
1332
  /** Bind the repository listing Query. */
158
1333
  listRepositories(): ListRepositoriesOperation;
159
1334
  /** Bind the pull request listing Query. */
160
1335
  listPullRequests(): ListPullRequestsOperation;
1336
+ /** Bind the listBranches operation. */
1337
+ listBranches(): ListBranchesOperation;
1338
+ /** Bind the getBranch operation. */
1339
+ getBranch(): GetBranchOperation;
1340
+ /** Bind the createBranch operation. */
1341
+ createBranch(): CreateBranchOperation;
1342
+ /** Bind the deleteBranch operation. */
1343
+ deleteBranch(): DeleteBranchOperation;
1344
+ /** Bind the listPullRequestComments operation. */
1345
+ listPullRequestComments(): ListPullRequestCommentsOperation;
1346
+ /** Bind the getPullRequestComment operation. */
1347
+ getPullRequestComment(): GetPullRequestCommentOperation;
1348
+ /** Bind the createPullRequestComment operation. */
1349
+ createPullRequestComment(): CreatePullRequestCommentOperation;
1350
+ /** Bind the updatePullRequestComment operation. */
1351
+ updatePullRequestComment(): UpdatePullRequestCommentOperation;
1352
+ /** Bind the deletePullRequestComment operation. */
1353
+ deletePullRequestComment(): DeletePullRequestCommentOperation;
1354
+ /** Bind the resolvePullRequestComment operation. */
1355
+ resolvePullRequestComment(): ResolvePullRequestCommentOperation;
1356
+ /** Bind the unresolvePullRequestComment operation. */
1357
+ unresolvePullRequestComment(): UnresolvePullRequestCommentOperation;
1358
+ /** Bind the createPullRequest operation. */
1359
+ createPullRequest(): CreatePullRequestOperation;
1360
+ /** Bind the mergePullRequest operation. */
1361
+ mergePullRequest(): MergePullRequestOperation;
1362
+ /** Bind the declinePullRequest operation. */
1363
+ declinePullRequest(): DeclinePullRequestOperation;
1364
+ /** Bind the createRepository operation. */
1365
+ createRepository(): CreateRepositoryOperation;
1366
+ /** Bind the updateRepository operation. */
1367
+ updateRepository(): UpdateRepositoryOperation;
1368
+ /** Bind the deleteRepository operation. */
1369
+ deleteRepository(): DeleteRepositoryOperation;
1370
+ /** Bind the getRepository operation. */
1371
+ getRepository(): GetRepositoryOperation;
1372
+ /** Bind the getPullRequest operation. */
1373
+ getPullRequest(): GetPullRequestOperation;
1374
+ /** Bind the updatePullRequestTitle operation. */
1375
+ updatePullRequestTitle(): UpdatePullRequestTitleOperation;
161
1376
  /** Resolve credentials, send one bounded GET, and classify the exchange. */
162
1377
  read(call: Call, operation: string, path: string): Promise<ReadResult>;
1378
+ /** Resolve OAuth credentials before a Mutation claims a send. */
1379
+ [prepareWrite](call: Call, method: string, path: string, payload?: object): Promise<((signal: AbortSignal) => Promise<WriteExchange>) | WriteExchange>;
1380
+ private resolveToken;
1381
+ private sendWrite;
163
1382
  private retryAfter;
164
1383
  private branch;
165
1384
  private retry;
166
1385
  }
167
1386
 
168
1387
  /** Open a static Bitbucket connection declared in a Dex project. */
169
- declare function newProjectConnection(project: LoadedProject, connectionName: string): Connection<Operations>;
1388
+ declare function newProjectConnection(project: LoadedProject, connectionName: string, options?: BitbucketClientOptions): Connection<Operations>;
1389
+
1390
+ /** Bitbucket repository and workspace event keys, in provider order. */
1391
+ declare const RepositoryEventKeys: readonly ["repo:push", "repo:fork", "repo:updated", "repo:commit_comment_created", "repo:commit_status_created", "repo:commit_status_updated", "pullrequest:created", "pullrequest:push", "pullrequest:updated", "pullrequest:fulfilled", "pullrequest:rejected", "pullrequest:changes_request_created", "pullrequest:changes_request_removed", "pullrequest:approved", "pullrequest:unapproved", "pullrequest:comment_created", "pullrequest:comment_updated", "pullrequest:comment_deleted", "pullrequest:comment_resolved", "pullrequest:comment_reopened", "issue:created", "issue:updated", "issue:comment_created", "pipeline:span_created", "project:updated", "repo:created", "repo:deleted", "repo:imported", "repo:transfer"];
1392
+ /** Event filter of one repositoryEventReceived binding; an empty list accepts every supported event. */
1393
+ declare const RepositoryEventReceivedTriggerConfigurationSchema: z.ZodObject<{
1394
+ eventKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1395
+ }, z.core.$strict>;
1396
+ /** One repositoryEventReceived binding's event filter. */
1397
+ type RepositoryEventReceivedTriggerConfiguration = z.infer<typeof RepositoryEventReceivedTriggerConfigurationSchema>;
1398
+ /** Old and new branch or tag targets for one change in a Bitbucket push. */
1399
+ declare const RepositoryPushChangeSchema: z.ZodObject<{
1400
+ oldRefType: z.ZodOptional<z.ZodString>;
1401
+ oldBranch: z.ZodOptional<z.ZodString>;
1402
+ oldTag: z.ZodOptional<z.ZodString>;
1403
+ oldTargetHash: z.ZodOptional<z.ZodString>;
1404
+ newRefType: z.ZodOptional<z.ZodString>;
1405
+ newBranch: z.ZodOptional<z.ZodString>;
1406
+ newTag: z.ZodOptional<z.ZodString>;
1407
+ newTargetHash: z.ZodOptional<z.ZodString>;
1408
+ }, z.core.$strip>;
1409
+ /** Ref names and commit hashes projected from one push change. */
1410
+ type RepositoryPushChange = z.infer<typeof RepositoryPushChangeSchema>;
1411
+ /** Identifier-only payload of a verified Bitbucket repository or workspace webhook. */
1412
+ declare const RepositoryEventSchema: z.ZodObject<{
1413
+ eventKey: z.ZodString;
1414
+ repositoryUuid: z.ZodString;
1415
+ repositoryFullName: z.ZodString;
1416
+ workspaceSlug: z.ZodOptional<z.ZodString>;
1417
+ projectKey: z.ZodOptional<z.ZodString>;
1418
+ issueId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodCustom<Readonly<{
1419
+ rawJSON: string;
1420
+ }>, Readonly<{
1421
+ rawJSON: string;
1422
+ }>>]>>;
1423
+ pullRequestId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodCustom<Readonly<{
1424
+ rawJSON: string;
1425
+ }>, Readonly<{
1426
+ rawJSON: string;
1427
+ }>>]>>;
1428
+ commentId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodCustom<Readonly<{
1429
+ rawJSON: string;
1430
+ }>, Readonly<{
1431
+ rawJSON: string;
1432
+ }>>]>>;
1433
+ pushChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1434
+ oldRefType: z.ZodOptional<z.ZodString>;
1435
+ oldBranch: z.ZodOptional<z.ZodString>;
1436
+ oldTag: z.ZodOptional<z.ZodString>;
1437
+ oldTargetHash: z.ZodOptional<z.ZodString>;
1438
+ newRefType: z.ZodOptional<z.ZodString>;
1439
+ newBranch: z.ZodOptional<z.ZodString>;
1440
+ newTag: z.ZodOptional<z.ZodString>;
1441
+ newTargetHash: z.ZodOptional<z.ZodString>;
1442
+ }, z.core.$strip>>>;
1443
+ }, z.core.$strip>;
1444
+ /** Verified repository event carried through a Trigger binding. */
1445
+ type RepositoryEvent = z.infer<typeof RepositoryEventSchema>;
1446
+ /** Preserve signed 64-bit Bitbucket identifiers across Dex Steps, Attributes and Flow outputs. */
1447
+ declare const repositoryEventCodec: Codec<RepositoryEvent>;
1448
+ /** Manifest definition of repositoryEventReceived. */
1449
+ declare const RepositoryEventReceivedTriggerDefinition: TriggerDefinition;
1450
+ /** Static repositoryEventReceived binding shown in Dex Web. */
1451
+ interface RepositoryEventReceivedTriggerBindingConfig {
1452
+ /** Connection name. */ connectionName: string;
1453
+ /** Binding name. */ bindingName: string;
1454
+ /** Connector Studio units. */ configurationUI?: ConnectorConfigurationUI;
1455
+ }
1456
+ /** Declare a static repositoryEventReceived binding. */
1457
+ declare function defineRepositoryEventReceivedTriggerBinding(config: RepositoryEventReceivedTriggerBindingConfig): TriggerBindingDefinition;
1458
+ /** One repositoryEventReceived binding and its target. */
1459
+ interface RepositoryEventReceivedTriggerConfig {
1460
+ /** Bitbucket connection. */ connection: Connection;
1461
+ /** Static connection name. */ connectionName: string;
1462
+ /** Static binding name. */ bindingName: string;
1463
+ /** Event filter. */ configuration: RepositoryEventReceivedTriggerConfiguration;
1464
+ /** Delivery target. */ target: TriggerTarget<RepositoryEvent>;
1465
+ }
1466
+ /** Create a repositoryEventReceived Trigger from a connection's shared webhook endpoint. */
1467
+ declare function newRepositoryEventReceivedTrigger(config: RepositoryEventReceivedTriggerConfig): TriggerRunner;
1468
+ /** HTTP handler of one Bitbucket connection; it answers 503 while no binding receives events. */
1469
+ interface RepositoryEventWebhookHandler {
1470
+ /** Verify and acknowledge a delivery. */ serveHTTP(request: IncomingMessage, response: ServerResponse): Promise<void>;
1471
+ /** Running bindings. */ runningSourceCount(): number;
1472
+ }
1473
+ /** Return the endpoint shared by every repositoryEventReceived binding of a connection. */
1474
+ declare function repositoryEventReceivedWebhookHandler(connection: Connection): RepositoryEventWebhookHandler;
1475
+ /** One stored repositoryEventReceived binding routed through its durable inbox. */
1476
+ interface ProjectRepositoryEventReceivedTriggerRoute {
1477
+ /** Stored binding name. */ bindingName: string;
1478
+ /** Application target. */ target: TriggerTarget<RepositoryEvent>;
1479
+ }
1480
+ /** Serve and run a connection's repositoryEventReceived bindings. */
1481
+ declare class RepositoryEventReceivedEndpointRunner {
1482
+ #private;
1483
+ private readonly endpoint;
1484
+ /** @internal Construct through newProjectRepositoryEventReceivedEndpointRunner. */
1485
+ constructor(endpoint: WebhookEndpoint<Credentials, RepositoryEvent>, runners: readonly TriggerRunner[]);
1486
+ /** Verify, record, and acknowledge one delivery, or answer 503 until pending events have replayed. */
1487
+ serveHTTP(request: IncomingMessage, response: ServerResponse): Promise<void>;
1488
+ /** Replay durable inboxes, then deliver new events until stopped. */
1489
+ run(context: TriggerContext): Promise<void>;
1490
+ /** Number of bindings ready to receive. */
1491
+ runningSourceCount(): number;
1492
+ }
1493
+ /** Load stored bindings and wrap every target in a durable project inbox before webhook acknowledgement. */
1494
+ declare function newProjectRepositoryEventReceivedEndpointRunner(project: LoadedProject, connectionName: string, routes: readonly ProjectRepositoryEventReceivedTriggerRoute[], options?: BitbucketClientOptions): RepositoryEventReceivedEndpointRunner;
170
1495
 
171
- export { BitbucketClient, type BitbucketClientOptions, type BitbucketRequestSender, Config, Connection, ConnectorID, Credentials, ListPullRequestsBranch, ListPullRequestsBranchDefect, ListPullRequestsBranchInvalidResponse, ListPullRequestsBranchListed, ListPullRequestsBranchNotFound, ListPullRequestsBranchProviderRejected, ListPullRequestsDefinition, ListPullRequestsInput, ListPullRequestsMetadata, ListPullRequestsOperation, type ListPullRequestsStepConfig, ListRepositoriesBranch, ListRepositoriesBranchDefect, ListRepositoriesBranchInvalidResponse, ListRepositoriesBranchListed, ListRepositoriesBranchNotFound, ListRepositoriesBranchProviderRejected, ListRepositoriesDefinition, ListRepositoriesInput, ListRepositoriesMetadata, ListRepositoriesOperation, type ListRepositoriesStepConfig, ProviderID, PullRequestPage, RepositoryPage, newListPullRequestsStep, newListRepositoriesStep, newProjectConnection };
1496
+ export { BitbucketClient, type BitbucketClientOptions, type BitbucketRequestSender, Branch, BranchPage, BranchRefInput, Config, Connection, ConnectorID, CreateBranchBranch, CreateBranchBranchCreated, CreateBranchBranchDefect, CreateBranchBranchInvalidResponse, CreateBranchBranchNotFound, CreateBranchBranchProviderRejected, CreateBranchDefinition, CreateBranchInput, CreateBranchMetadata, CreateBranchOperation, type CreateBranchStepConfig, CreatePullRequestBranch, CreatePullRequestBranchCreated, CreatePullRequestBranchDefect, CreatePullRequestBranchProviderRejected, CreatePullRequestBranchUncertain, CreatePullRequestCommentBranch, CreatePullRequestCommentBranchCreated, CreatePullRequestCommentBranchDefect, CreatePullRequestCommentBranchProviderRejected, CreatePullRequestCommentBranchUncertain, CreatePullRequestCommentDefinition, CreatePullRequestCommentInput, CreatePullRequestCommentMetadata, CreatePullRequestCommentOperation, type CreatePullRequestCommentStepConfig, CreatePullRequestDefinition, CreatePullRequestInput, CreatePullRequestMetadata, CreatePullRequestOperation, type CreatePullRequestStepConfig, CreateRepositoryBranch, CreateRepositoryBranchCreated, CreateRepositoryBranchDefect, CreateRepositoryBranchInvalidResponse, CreateRepositoryBranchNotFound, CreateRepositoryBranchProviderRejected, CreateRepositoryDefinition, CreateRepositoryInput, CreateRepositoryMetadata, CreateRepositoryOperation, type CreateRepositoryStepConfig, Credentials, DeclinePullRequestBranch, DeclinePullRequestBranchDeclined, DeclinePullRequestBranchDefect, DeclinePullRequestBranchInvalidResponse, DeclinePullRequestBranchNotFound, DeclinePullRequestBranchProviderRejected, DeclinePullRequestDefinition, DeclinePullRequestMetadata, DeclinePullRequestOperation, type DeclinePullRequestStepConfig, DeleteBranchBranch, DeleteBranchBranchDefect, DeleteBranchBranchDeleted, DeleteBranchBranchNotFound, DeleteBranchBranchProviderRejected, DeleteBranchDefinition, DeleteBranchMetadata, DeleteBranchOperation, type DeleteBranchStepConfig, DeletePullRequestCommentBranch, DeletePullRequestCommentBranchDefect, DeletePullRequestCommentBranchDeleted, DeletePullRequestCommentBranchNotFound, DeletePullRequestCommentBranchProviderRejected, DeletePullRequestCommentDefinition, DeletePullRequestCommentMetadata, DeletePullRequestCommentOperation, type DeletePullRequestCommentStepConfig, DeleteRepositoryBranch, DeleteRepositoryBranchDefect, DeleteRepositoryBranchDeleted, DeleteRepositoryBranchInvalidResponse, DeleteRepositoryBranchNotFound, DeleteRepositoryBranchProviderRejected, DeleteRepositoryDefinition, DeleteRepositoryInput, DeleteRepositoryMetadata, DeleteRepositoryOperation, type DeleteRepositoryStepConfig, DeletedBranch, DeletedPullRequestComment, DeletedRepository, GetBranchBranch, GetBranchBranchDefect, GetBranchBranchFound, GetBranchBranchInvalidResponse, GetBranchBranchNotFound, GetBranchBranchProviderRejected, GetBranchDefinition, GetBranchMetadata, GetBranchOperation, type GetBranchStepConfig, GetPullRequestBranch, GetPullRequestBranchDefect, GetPullRequestBranchFound, GetPullRequestBranchInvalidResponse, GetPullRequestBranchNotFound, GetPullRequestBranchProviderRejected, GetPullRequestCommentBranch, GetPullRequestCommentBranchDefect, GetPullRequestCommentBranchFound, GetPullRequestCommentBranchInvalidResponse, GetPullRequestCommentBranchNotFound, GetPullRequestCommentBranchProviderRejected, GetPullRequestCommentDefinition, GetPullRequestCommentMetadata, GetPullRequestCommentOperation, type GetPullRequestCommentStepConfig, GetPullRequestDefinition, GetPullRequestInput, GetPullRequestMetadata, GetPullRequestOperation, type GetPullRequestStepConfig, GetRepositoryBranch, GetRepositoryBranchDefect, GetRepositoryBranchFound, GetRepositoryBranchInvalidResponse, GetRepositoryBranchNotFound, GetRepositoryBranchProviderRejected, GetRepositoryDefinition, GetRepositoryInput, GetRepositoryMetadata, GetRepositoryOperation, type GetRepositoryStepConfig, ListBranchesBranch, ListBranchesBranchDefect, ListBranchesBranchInvalidResponse, ListBranchesBranchListed, ListBranchesBranchNotFound, ListBranchesBranchProviderRejected, ListBranchesDefinition, ListBranchesInput, ListBranchesMetadata, ListBranchesOperation, type ListBranchesStepConfig, ListPullRequestCommentsBranch, ListPullRequestCommentsBranchDefect, ListPullRequestCommentsBranchInvalidResponse, ListPullRequestCommentsBranchListed, ListPullRequestCommentsBranchNotFound, ListPullRequestCommentsBranchProviderRejected, ListPullRequestCommentsDefinition, ListPullRequestCommentsMetadata, ListPullRequestCommentsOperation, type ListPullRequestCommentsStepConfig, ListPullRequestsBranch, ListPullRequestsBranchDefect, ListPullRequestsBranchInvalidResponse, ListPullRequestsBranchListed, ListPullRequestsBranchNotFound, ListPullRequestsBranchProviderRejected, ListPullRequestsDefinition, ListPullRequestsInput, ListPullRequestsMetadata, ListPullRequestsOperation, type ListPullRequestsStepConfig, ListRepositoriesBranch, ListRepositoriesBranchDefect, ListRepositoriesBranchInvalidResponse, ListRepositoriesBranchListed, ListRepositoriesBranchNotFound, ListRepositoriesBranchProviderRejected, ListRepositoriesDefinition, ListRepositoriesInput, ListRepositoriesMetadata, ListRepositoriesOperation, type ListRepositoriesStepConfig, MergePullRequestBranch, MergePullRequestBranchDefect, MergePullRequestBranchInvalidResponse, MergePullRequestBranchMerged, MergePullRequestBranchNotFound, MergePullRequestBranchProviderRejected, MergePullRequestDefinition, MergePullRequestMetadata, MergePullRequestOperation, type MergePullRequestStepConfig, type ProjectRepositoryEventReceivedTriggerRoute, ProviderID, PullRequest, PullRequestActionInput, PullRequestComment, PullRequestCommentIDInput, PullRequestCommentPage, PullRequestPage, Repository, type RepositoryEvent, RepositoryEventKeys, RepositoryEventReceivedEndpointRunner, type RepositoryEventReceivedTriggerBindingConfig, type RepositoryEventReceivedTriggerConfig, type RepositoryEventReceivedTriggerConfiguration, RepositoryEventReceivedTriggerConfigurationSchema, RepositoryEventReceivedTriggerDefinition, RepositoryEventSchema, type RepositoryEventWebhookHandler, RepositoryPage, type RepositoryPushChange, RepositoryPushChangeSchema, ResolvePullRequestCommentBranch, ResolvePullRequestCommentBranchDefect, ResolvePullRequestCommentBranchInvalidResponse, ResolvePullRequestCommentBranchNotFound, ResolvePullRequestCommentBranchProviderRejected, ResolvePullRequestCommentBranchResolved, ResolvePullRequestCommentDefinition, ResolvePullRequestCommentMetadata, ResolvePullRequestCommentOperation, type ResolvePullRequestCommentStepConfig, UnresolvePullRequestCommentBranch, UnresolvePullRequestCommentBranchDefect, UnresolvePullRequestCommentBranchInvalidResponse, UnresolvePullRequestCommentBranchNotFound, UnresolvePullRequestCommentBranchProviderRejected, UnresolvePullRequestCommentBranchUnresolved, UnresolvePullRequestCommentDefinition, UnresolvePullRequestCommentMetadata, UnresolvePullRequestCommentOperation, type UnresolvePullRequestCommentStepConfig, UpdatePullRequestCommentBranch, UpdatePullRequestCommentBranchDefect, UpdatePullRequestCommentBranchInvalidResponse, UpdatePullRequestCommentBranchNotFound, UpdatePullRequestCommentBranchProviderRejected, UpdatePullRequestCommentBranchUpdated, UpdatePullRequestCommentDefinition, UpdatePullRequestCommentInput, UpdatePullRequestCommentMetadata, UpdatePullRequestCommentOperation, type UpdatePullRequestCommentStepConfig, UpdatePullRequestTitleBranch, UpdatePullRequestTitleBranchDefect, UpdatePullRequestTitleBranchInvalidResponse, UpdatePullRequestTitleBranchNotFound, UpdatePullRequestTitleBranchProviderRejected, UpdatePullRequestTitleBranchUpdated, UpdatePullRequestTitleDefinition, UpdatePullRequestTitleInput, UpdatePullRequestTitleMetadata, UpdatePullRequestTitleOperation, type UpdatePullRequestTitleStepConfig, UpdateRepositoryBranch, UpdateRepositoryBranchDefect, UpdateRepositoryBranchInvalidResponse, UpdateRepositoryBranchNotFound, UpdateRepositoryBranchProviderRejected, UpdateRepositoryBranchUpdated, UpdateRepositoryDefinition, UpdateRepositoryInput, UpdateRepositoryMetadata, UpdateRepositoryOperation, type UpdateRepositoryStepConfig, defineRepositoryEventReceivedTriggerBinding, newCreateBranchStep, newCreatePullRequestCommentStep, newCreatePullRequestStep, newCreateRepositoryStep, newDeclinePullRequestStep, newDeleteBranchStep, newDeletePullRequestCommentStep, newDeleteRepositoryStep, newGetBranchStep, newGetPullRequestCommentStep, newGetPullRequestStep, newGetRepositoryStep, newListBranchesStep, newListPullRequestCommentsStep, newListPullRequestsStep, newListRepositoriesStep, newMergePullRequestStep, newProjectConnection, newProjectRepositoryEventReceivedEndpointRunner, newRepositoryEventReceivedTrigger, newResolvePullRequestCommentStep, newUnresolvePullRequestCommentStep, newUpdatePullRequestCommentStep, newUpdatePullRequestTitleStep, newUpdateRepositoryStep, repositoryEventCodec, repositoryEventReceivedWebhookHandler };