@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.
@@ -0,0 +1,1020 @@
1
+ // src/generated/models.ts
2
+ import { z } from "zod";
3
+ import { SecretString } from "@superdurable/connectors-sdk";
4
+ var nativeJSON = JSON;
5
+ var signedIntegerToken = /^-?(?:0|[1-9][0-9]*)$/;
6
+ var minimumSignedInteger = -(1n << 63n);
7
+ var maximumSignedInteger = (1n << 63n) - 1n;
8
+ function decodeSignedInteger(value) {
9
+ if (typeof value === "number" && Number.isSafeInteger(value)) return value === 0 ? 0 : value;
10
+ if (!nativeJSON.isRawJSON(value) || value.rawJSON.length > 20 || !signedIntegerToken.test(value.rawJSON)) {
11
+ throw new TypeError("expected a signed 64-bit integer");
12
+ }
13
+ const integer = BigInt(value.rawJSON);
14
+ if (integer < minimumSignedInteger || integer > maximumSignedInteger) throw new RangeError("signed 64-bit integer out of range");
15
+ const number = Number(integer);
16
+ return Number.isSafeInteger(number) ? number : value;
17
+ }
18
+ var signedIntegerSchema = z.unknown().transform((value, context) => {
19
+ try {
20
+ return decodeSignedInteger(value);
21
+ } catch {
22
+ context.addIssue({ code: "custom", message: "expected a signed 64-bit integer" });
23
+ return z.NEVER;
24
+ }
25
+ });
26
+ function parseJSONNumberTokens(text) {
27
+ return JSON.parse(text, (_key, value, context) => typeof value === "number" && context?.source !== void 0 ? nativeJSON.rawJSON(context.source) : value);
28
+ }
29
+ function parseExactIntegerJSON(text) {
30
+ return JSON.parse(text, (_key, field, context) => typeof field === "number" && !Number.isSafeInteger(field) && context?.source && signedIntegerToken.test(context.source) ? nativeJSON.rawJSON(context.source) : field);
31
+ }
32
+ function exactIntegerJSONCodec(decode) {
33
+ return {
34
+ typeName: "json",
35
+ wireKind: "json",
36
+ encode(value) {
37
+ const data = JSON.stringify(value, (_key, field) => {
38
+ if (typeof field === "number" && Number.isInteger(field) && !Number.isSafeInteger(field)) {
39
+ throw new RangeError("use a raw JSON token for integers outside the safe number range");
40
+ }
41
+ return field;
42
+ });
43
+ if (data === void 0) throw new TypeError("value cannot be encoded as JSON");
44
+ return { kind: "json", data };
45
+ },
46
+ decode(wire) {
47
+ if (wire.kind !== "json" || typeof wire.data !== "string") throw new TypeError("expected Dex JSON wire data");
48
+ const value = parseExactIntegerJSON(wire.data);
49
+ return decode ? decode(value) : value;
50
+ }
51
+ };
52
+ }
53
+ var ConfigSchema = z.object({
54
+ "baseUrl": z.string().optional(),
55
+ "timeoutMs": z.number().int().optional(),
56
+ "maxResponseBytes": z.number().int().optional()
57
+ });
58
+ var CredentialMaterialError = class extends TypeError {
59
+ constructor(message) {
60
+ super(message);
61
+ this.name = "CredentialMaterialError";
62
+ }
63
+ };
64
+ var sdkCredentialDecodingFailureMessages = /* @__PURE__ */ new Set([
65
+ "project credential decoding failed",
66
+ "shared project credential decoding failed",
67
+ "project credential decoding failed: this connector version does not support shared credentials"
68
+ ]);
69
+ function isCredentialMaterialError(error) {
70
+ return error instanceof CredentialMaterialError || error instanceof TypeError && sdkCredentialDecodingFailureMessages.has(error.message);
71
+ }
72
+ function decodeCredentials(value) {
73
+ if (!value || typeof value !== "object" || Array.isArray(value)) throw new CredentialMaterialError("credential fields are invalid");
74
+ const fields = value;
75
+ const allowed = /* @__PURE__ */ new Set(["access_token"]);
76
+ if (Object.keys(fields).some((key) => !allowed.has(key))) throw new CredentialMaterialError("stored credential does not match the connector credential fields");
77
+ if (fields["access_token"] != null && !(typeof fields["access_token"] === "string")) throw new CredentialMaterialError("credential access_token has an invalid type");
78
+ const credentials = {};
79
+ if (!fields["access_token"]) throw new CredentialMaterialError("credential access_token is required");
80
+ credentials.accessToken = new SecretString(fields["access_token"] ?? "");
81
+ return credentials;
82
+ }
83
+ var ListBranchesInputSchema = z.strictObject({
84
+ "workspace": z.string(),
85
+ "repository": z.string()
86
+ });
87
+ var BranchTargetSchema = z.strictObject({
88
+ "hash": z.string()
89
+ });
90
+ var BranchSchema = z.strictObject({
91
+ "name": z.string(),
92
+ "target": BranchTargetSchema
93
+ });
94
+ var BranchPageSchema = z.strictObject({
95
+ "values": z.array(BranchSchema).nullable(),
96
+ "next": z.string(),
97
+ "page": signedIntegerSchema,
98
+ "pagelen": signedIntegerSchema
99
+ });
100
+ var BranchRefInputSchema = z.strictObject({
101
+ "workspace": z.string(),
102
+ "repository": z.string(),
103
+ "name": z.string()
104
+ });
105
+ var CreateBranchInputSchema = z.strictObject({
106
+ "workspace": z.string(),
107
+ "repository": z.string(),
108
+ "name": z.string(),
109
+ "targetHash": z.string()
110
+ });
111
+ var DeletedBranchSchema = z.strictObject({
112
+ "workspace": z.string(),
113
+ "repository": z.string(),
114
+ "name": z.string()
115
+ });
116
+ var PullRequestActionInputSchema = z.strictObject({
117
+ "workspace": z.string(),
118
+ "repository": z.string(),
119
+ "pullRequestId": signedIntegerSchema
120
+ });
121
+ var PullRequestCommentContentSchema = z.strictObject({
122
+ "raw": z.string()
123
+ });
124
+ var PullRequestCommentResolutionSchema = z.strictObject({
125
+ "created_on": z.string()
126
+ });
127
+ var PullRequestCommentSchema = z.strictObject({
128
+ "id": signedIntegerSchema,
129
+ "content": PullRequestCommentContentSchema,
130
+ "deleted": z.boolean(),
131
+ "resolution": PullRequestCommentResolutionSchema.optional()
132
+ });
133
+ var PullRequestCommentPageSchema = z.strictObject({
134
+ "values": z.array(PullRequestCommentSchema).nullable(),
135
+ "next": z.string(),
136
+ "page": signedIntegerSchema,
137
+ "pagelen": signedIntegerSchema
138
+ });
139
+ var PullRequestCommentIDInputSchema = z.strictObject({
140
+ "workspace": z.string(),
141
+ "repository": z.string(),
142
+ "pullRequestId": signedIntegerSchema,
143
+ "commentId": signedIntegerSchema
144
+ });
145
+ var CreatePullRequestCommentInputSchema = z.strictObject({
146
+ "workspace": z.string(),
147
+ "repository": z.string(),
148
+ "pullRequestId": signedIntegerSchema,
149
+ "raw": z.string()
150
+ });
151
+ var UpdatePullRequestCommentInputSchema = z.strictObject({
152
+ "workspace": z.string(),
153
+ "repository": z.string(),
154
+ "pullRequestId": signedIntegerSchema,
155
+ "commentId": signedIntegerSchema,
156
+ "raw": z.string()
157
+ });
158
+ var DeletedPullRequestCommentSchema = z.strictObject({
159
+ "workspace": z.string(),
160
+ "repository": z.string(),
161
+ "pullRequestId": signedIntegerSchema,
162
+ "commentId": signedIntegerSchema
163
+ });
164
+ var CreatePullRequestInputSchema = z.strictObject({
165
+ "workspace": z.string(),
166
+ "repository": z.string(),
167
+ "title": z.string(),
168
+ "sourceBranch": z.string(),
169
+ "destinationBranch": z.string()
170
+ });
171
+ var PullRequestSchema = z.strictObject({
172
+ "id": signedIntegerSchema,
173
+ "title": z.string(),
174
+ "state": z.string()
175
+ });
176
+ var CreateRepositoryInputSchema = z.strictObject({
177
+ "workspace": z.string(),
178
+ "repository": z.string(),
179
+ "name": z.string(),
180
+ "is_private": z.boolean().nullable()
181
+ });
182
+ var RepositorySchema = z.strictObject({
183
+ "uuid": z.string(),
184
+ "name": z.string(),
185
+ "full_name": z.string(),
186
+ "is_private": z.boolean()
187
+ });
188
+ var UpdateRepositoryInputSchema = z.strictObject({
189
+ "workspace": z.string(),
190
+ "repository": z.string(),
191
+ "name": z.string(),
192
+ "is_private": z.boolean().nullable()
193
+ });
194
+ var DeleteRepositoryInputSchema = z.strictObject({
195
+ "workspace": z.string(),
196
+ "repository": z.string()
197
+ });
198
+ var DeletedRepositorySchema = z.strictObject({
199
+ "workspace": z.string(),
200
+ "repository": z.string()
201
+ });
202
+ var GetRepositoryInputSchema = z.strictObject({
203
+ "workspace": z.string(),
204
+ "repository": z.string()
205
+ });
206
+ var GetPullRequestInputSchema = z.strictObject({
207
+ "workspace": z.string(),
208
+ "repository": z.string(),
209
+ "pullRequestId": signedIntegerSchema
210
+ });
211
+ var UpdatePullRequestTitleInputSchema = z.strictObject({
212
+ "workspace": z.string(),
213
+ "repository": z.string(),
214
+ "pullRequestId": signedIntegerSchema,
215
+ "title": z.string()
216
+ });
217
+ var ListRepositoriesInputSchema = z.strictObject({
218
+ "workspace": z.string()
219
+ });
220
+ var RepositoryPageSchema = z.strictObject({
221
+ "values": z.array(RepositorySchema).nullable(),
222
+ "next": z.string(),
223
+ "page": signedIntegerSchema,
224
+ "pagelen": signedIntegerSchema
225
+ });
226
+ var ListPullRequestsInputSchema = z.strictObject({
227
+ "workspace": z.string(),
228
+ "repository": z.string()
229
+ });
230
+ var PullRequestPageSchema = z.strictObject({
231
+ "values": z.array(PullRequestSchema).nullable(),
232
+ "next": z.string(),
233
+ "page": signedIntegerSchema,
234
+ "pagelen": signedIntegerSchema
235
+ });
236
+
237
+ // src/generated/definitions.ts
238
+ var ConnectorID = "bitbucket";
239
+ var ProviderID = "bitbucket";
240
+ var ListBranchesBranch = {
241
+ Listed: "listed",
242
+ NotFound: "notFound",
243
+ ProviderRejected: "providerRejected",
244
+ InvalidResponse: "invalidResponse",
245
+ Defect: "defect"
246
+ };
247
+ var ListBranchesBranchListed = ListBranchesBranch.Listed;
248
+ var ListBranchesBranchNotFound = ListBranchesBranch.NotFound;
249
+ var ListBranchesBranchProviderRejected = ListBranchesBranch.ProviderRejected;
250
+ var ListBranchesBranchInvalidResponse = ListBranchesBranch.InvalidResponse;
251
+ var ListBranchesBranchDefect = ListBranchesBranch.Defect;
252
+ var ListBranchesDefinition = {
253
+ operation: { connectorId: ConnectorID, operationId: "listBranches" },
254
+ branches: [
255
+ { id: "listed", description: "Bitbucket returned the requested branch state." },
256
+ { id: "notFound", description: "The repository or branch was not found.", optional: true },
257
+ { id: "providerRejected", description: "Bitbucket rejected the branch request.", optional: true },
258
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
259
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
260
+ ],
261
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
262
+ };
263
+ var ListBranchesMetadata = { kind: "query", idempotency: "none", authorization: "required" };
264
+ var GetBranchBranch = {
265
+ Found: "found",
266
+ NotFound: "notFound",
267
+ ProviderRejected: "providerRejected",
268
+ InvalidResponse: "invalidResponse",
269
+ Defect: "defect"
270
+ };
271
+ var GetBranchBranchFound = GetBranchBranch.Found;
272
+ var GetBranchBranchNotFound = GetBranchBranch.NotFound;
273
+ var GetBranchBranchProviderRejected = GetBranchBranch.ProviderRejected;
274
+ var GetBranchBranchInvalidResponse = GetBranchBranch.InvalidResponse;
275
+ var GetBranchBranchDefect = GetBranchBranch.Defect;
276
+ var GetBranchDefinition = {
277
+ operation: { connectorId: ConnectorID, operationId: "getBranch" },
278
+ branches: [
279
+ { id: "found", description: "Bitbucket returned the requested branch state." },
280
+ { id: "notFound", description: "The repository or branch was not found.", optional: true },
281
+ { id: "providerRejected", description: "Bitbucket rejected the branch request.", optional: true },
282
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
283
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
284
+ ],
285
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
286
+ };
287
+ var GetBranchMetadata = { kind: "query", idempotency: "none", authorization: "required" };
288
+ var CreateBranchBranch = {
289
+ Created: "created",
290
+ NotFound: "notFound",
291
+ ProviderRejected: "providerRejected",
292
+ InvalidResponse: "invalidResponse",
293
+ Defect: "defect"
294
+ };
295
+ var CreateBranchBranchCreated = CreateBranchBranch.Created;
296
+ var CreateBranchBranchNotFound = CreateBranchBranch.NotFound;
297
+ var CreateBranchBranchProviderRejected = CreateBranchBranch.ProviderRejected;
298
+ var CreateBranchBranchInvalidResponse = CreateBranchBranch.InvalidResponse;
299
+ var CreateBranchBranchDefect = CreateBranchBranch.Defect;
300
+ var CreateBranchDefinition = {
301
+ operation: { connectorId: ConnectorID, operationId: "createBranch" },
302
+ branches: [
303
+ { id: "created", description: "Bitbucket returned the requested branch state." },
304
+ { id: "notFound", description: "The repository or branch was not found.", optional: true },
305
+ { id: "providerRejected", description: "Bitbucket rejected the branch request.", optional: true },
306
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
307
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
308
+ ],
309
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
310
+ repeatOnUnknown: "safe"
311
+ };
312
+ var CreateBranchMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
313
+ var DeleteBranchBranch = {
314
+ Deleted: "deleted",
315
+ NotFound: "notFound",
316
+ ProviderRejected: "providerRejected",
317
+ Defect: "defect"
318
+ };
319
+ var DeleteBranchBranchDeleted = DeleteBranchBranch.Deleted;
320
+ var DeleteBranchBranchNotFound = DeleteBranchBranch.NotFound;
321
+ var DeleteBranchBranchProviderRejected = DeleteBranchBranch.ProviderRejected;
322
+ var DeleteBranchBranchDefect = DeleteBranchBranch.Defect;
323
+ var DeleteBranchDefinition = {
324
+ operation: { connectorId: ConnectorID, operationId: "deleteBranch" },
325
+ branches: [
326
+ { id: "deleted", description: "Bitbucket returned the requested branch state." },
327
+ { id: "notFound", description: "The repository or branch was not found.", optional: true },
328
+ { id: "providerRejected", description: "Bitbucket rejected the branch request.", optional: true },
329
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
330
+ ],
331
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
332
+ repeatOnUnknown: "safe"
333
+ };
334
+ var DeleteBranchMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
335
+ var ListPullRequestCommentsBranch = {
336
+ Listed: "listed",
337
+ NotFound: "notFound",
338
+ ProviderRejected: "providerRejected",
339
+ InvalidResponse: "invalidResponse",
340
+ Defect: "defect"
341
+ };
342
+ var ListPullRequestCommentsBranchListed = ListPullRequestCommentsBranch.Listed;
343
+ var ListPullRequestCommentsBranchNotFound = ListPullRequestCommentsBranch.NotFound;
344
+ var ListPullRequestCommentsBranchProviderRejected = ListPullRequestCommentsBranch.ProviderRejected;
345
+ var ListPullRequestCommentsBranchInvalidResponse = ListPullRequestCommentsBranch.InvalidResponse;
346
+ var ListPullRequestCommentsBranchDefect = ListPullRequestCommentsBranch.Defect;
347
+ var ListPullRequestCommentsDefinition = {
348
+ operation: { connectorId: ConnectorID, operationId: "listPullRequestComments" },
349
+ branches: [
350
+ { id: "listed", description: "Bitbucket returned the requested comment state." },
351
+ { id: "notFound", description: "The pull request or comment was not found.", optional: true },
352
+ { id: "providerRejected", description: "Bitbucket rejected the comment request.", optional: true },
353
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
354
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
355
+ ],
356
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
357
+ };
358
+ var ListPullRequestCommentsMetadata = { kind: "query", idempotency: "none", authorization: "required" };
359
+ var GetPullRequestCommentBranch = {
360
+ Found: "found",
361
+ NotFound: "notFound",
362
+ ProviderRejected: "providerRejected",
363
+ InvalidResponse: "invalidResponse",
364
+ Defect: "defect"
365
+ };
366
+ var GetPullRequestCommentBranchFound = GetPullRequestCommentBranch.Found;
367
+ var GetPullRequestCommentBranchNotFound = GetPullRequestCommentBranch.NotFound;
368
+ var GetPullRequestCommentBranchProviderRejected = GetPullRequestCommentBranch.ProviderRejected;
369
+ var GetPullRequestCommentBranchInvalidResponse = GetPullRequestCommentBranch.InvalidResponse;
370
+ var GetPullRequestCommentBranchDefect = GetPullRequestCommentBranch.Defect;
371
+ var GetPullRequestCommentDefinition = {
372
+ operation: { connectorId: ConnectorID, operationId: "getPullRequestComment" },
373
+ branches: [
374
+ { id: "found", description: "Bitbucket returned the requested comment state." },
375
+ { id: "notFound", description: "The pull request or comment was not found.", optional: true },
376
+ { id: "providerRejected", description: "Bitbucket rejected the comment request.", optional: true },
377
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
378
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
379
+ ],
380
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
381
+ };
382
+ var GetPullRequestCommentMetadata = { kind: "query", idempotency: "none", authorization: "required" };
383
+ var CreatePullRequestCommentBranch = {
384
+ Created: "created",
385
+ ProviderRejected: "providerRejected",
386
+ Defect: "defect",
387
+ Uncertain: "uncertain"
388
+ };
389
+ var CreatePullRequestCommentBranchCreated = CreatePullRequestCommentBranch.Created;
390
+ var CreatePullRequestCommentBranchProviderRejected = CreatePullRequestCommentBranch.ProviderRejected;
391
+ var CreatePullRequestCommentBranchDefect = CreatePullRequestCommentBranch.Defect;
392
+ var CreatePullRequestCommentBranchUncertain = CreatePullRequestCommentBranch.Uncertain;
393
+ var CreatePullRequestCommentDefinition = {
394
+ operation: { connectorId: ConnectorID, operationId: "createPullRequestComment" },
395
+ branches: [
396
+ { id: "created", description: "Bitbucket returned the requested comment state." },
397
+ { id: "providerRejected", description: "Bitbucket rejected the comment request.", optional: true },
398
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true },
399
+ { id: "uncertain", description: "An earlier comment create could not be confirmed.", optional: true }
400
+ ],
401
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync" },
402
+ repeatOnUnknown: "limited",
403
+ maxSends: 3
404
+ };
405
+ var CreatePullRequestCommentMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
406
+ var UpdatePullRequestCommentBranch = {
407
+ Updated: "updated",
408
+ NotFound: "notFound",
409
+ ProviderRejected: "providerRejected",
410
+ InvalidResponse: "invalidResponse",
411
+ Defect: "defect"
412
+ };
413
+ var UpdatePullRequestCommentBranchUpdated = UpdatePullRequestCommentBranch.Updated;
414
+ var UpdatePullRequestCommentBranchNotFound = UpdatePullRequestCommentBranch.NotFound;
415
+ var UpdatePullRequestCommentBranchProviderRejected = UpdatePullRequestCommentBranch.ProviderRejected;
416
+ var UpdatePullRequestCommentBranchInvalidResponse = UpdatePullRequestCommentBranch.InvalidResponse;
417
+ var UpdatePullRequestCommentBranchDefect = UpdatePullRequestCommentBranch.Defect;
418
+ var UpdatePullRequestCommentDefinition = {
419
+ operation: { connectorId: ConnectorID, operationId: "updatePullRequestComment" },
420
+ branches: [
421
+ { id: "updated", description: "Bitbucket returned the requested comment state." },
422
+ { id: "notFound", description: "The pull request or comment was not found.", optional: true },
423
+ { id: "providerRejected", description: "Bitbucket rejected the comment request.", optional: true },
424
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
425
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
426
+ ],
427
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
428
+ repeatOnUnknown: "safe"
429
+ };
430
+ var UpdatePullRequestCommentMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
431
+ var DeletePullRequestCommentBranch = {
432
+ Deleted: "deleted",
433
+ NotFound: "notFound",
434
+ ProviderRejected: "providerRejected",
435
+ Defect: "defect"
436
+ };
437
+ var DeletePullRequestCommentBranchDeleted = DeletePullRequestCommentBranch.Deleted;
438
+ var DeletePullRequestCommentBranchNotFound = DeletePullRequestCommentBranch.NotFound;
439
+ var DeletePullRequestCommentBranchProviderRejected = DeletePullRequestCommentBranch.ProviderRejected;
440
+ var DeletePullRequestCommentBranchDefect = DeletePullRequestCommentBranch.Defect;
441
+ var DeletePullRequestCommentDefinition = {
442
+ operation: { connectorId: ConnectorID, operationId: "deletePullRequestComment" },
443
+ branches: [
444
+ { id: "deleted", description: "Bitbucket returned the requested comment state." },
445
+ { id: "notFound", description: "The pull request or comment was not found.", optional: true },
446
+ { id: "providerRejected", description: "Bitbucket rejected the comment request.", optional: true },
447
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
448
+ ],
449
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
450
+ repeatOnUnknown: "safe"
451
+ };
452
+ var DeletePullRequestCommentMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
453
+ var ResolvePullRequestCommentBranch = {
454
+ Resolved: "resolved",
455
+ NotFound: "notFound",
456
+ ProviderRejected: "providerRejected",
457
+ InvalidResponse: "invalidResponse",
458
+ Defect: "defect"
459
+ };
460
+ var ResolvePullRequestCommentBranchResolved = ResolvePullRequestCommentBranch.Resolved;
461
+ var ResolvePullRequestCommentBranchNotFound = ResolvePullRequestCommentBranch.NotFound;
462
+ var ResolvePullRequestCommentBranchProviderRejected = ResolvePullRequestCommentBranch.ProviderRejected;
463
+ var ResolvePullRequestCommentBranchInvalidResponse = ResolvePullRequestCommentBranch.InvalidResponse;
464
+ var ResolvePullRequestCommentBranchDefect = ResolvePullRequestCommentBranch.Defect;
465
+ var ResolvePullRequestCommentDefinition = {
466
+ operation: { connectorId: ConnectorID, operationId: "resolvePullRequestComment" },
467
+ branches: [
468
+ { id: "resolved", description: "Bitbucket returned the requested comment state." },
469
+ { id: "notFound", description: "The pull request or comment was not found.", optional: true },
470
+ { id: "providerRejected", description: "Bitbucket rejected the comment request.", optional: true },
471
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
472
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
473
+ ],
474
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
475
+ repeatOnUnknown: "safe"
476
+ };
477
+ var ResolvePullRequestCommentMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
478
+ var UnresolvePullRequestCommentBranch = {
479
+ Unresolved: "unresolved",
480
+ NotFound: "notFound",
481
+ ProviderRejected: "providerRejected",
482
+ InvalidResponse: "invalidResponse",
483
+ Defect: "defect"
484
+ };
485
+ var UnresolvePullRequestCommentBranchUnresolved = UnresolvePullRequestCommentBranch.Unresolved;
486
+ var UnresolvePullRequestCommentBranchNotFound = UnresolvePullRequestCommentBranch.NotFound;
487
+ var UnresolvePullRequestCommentBranchProviderRejected = UnresolvePullRequestCommentBranch.ProviderRejected;
488
+ var UnresolvePullRequestCommentBranchInvalidResponse = UnresolvePullRequestCommentBranch.InvalidResponse;
489
+ var UnresolvePullRequestCommentBranchDefect = UnresolvePullRequestCommentBranch.Defect;
490
+ var UnresolvePullRequestCommentDefinition = {
491
+ operation: { connectorId: ConnectorID, operationId: "unresolvePullRequestComment" },
492
+ branches: [
493
+ { id: "unresolved", description: "Bitbucket returned the requested comment state." },
494
+ { id: "notFound", description: "The pull request or comment was not found.", optional: true },
495
+ { id: "providerRejected", description: "Bitbucket rejected the comment request.", optional: true },
496
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
497
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
498
+ ],
499
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
500
+ repeatOnUnknown: "safe"
501
+ };
502
+ var UnresolvePullRequestCommentMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
503
+ var CreatePullRequestBranch = {
504
+ Created: "created",
505
+ ProviderRejected: "providerRejected",
506
+ Defect: "defect",
507
+ Uncertain: "uncertain"
508
+ };
509
+ var CreatePullRequestBranchCreated = CreatePullRequestBranch.Created;
510
+ var CreatePullRequestBranchProviderRejected = CreatePullRequestBranch.ProviderRejected;
511
+ var CreatePullRequestBranchDefect = CreatePullRequestBranch.Defect;
512
+ var CreatePullRequestBranchUncertain = CreatePullRequestBranch.Uncertain;
513
+ var CreatePullRequestDefinition = {
514
+ operation: { connectorId: ConnectorID, operationId: "createPullRequest" },
515
+ branches: [
516
+ { id: "created", description: "Bitbucket created the pull request." },
517
+ { id: "providerRejected", description: "Bitbucket conclusively rejected the request.", optional: true },
518
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true },
519
+ { id: "uncertain", description: "An earlier creation could not be confirmed.", optional: true }
520
+ ],
521
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync" },
522
+ repeatOnUnknown: "limited",
523
+ maxSends: 3
524
+ };
525
+ var CreatePullRequestMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
526
+ var MergePullRequestBranch = {
527
+ Merged: "merged",
528
+ NotFound: "notFound",
529
+ ProviderRejected: "providerRejected",
530
+ InvalidResponse: "invalidResponse",
531
+ Defect: "defect"
532
+ };
533
+ var MergePullRequestBranchMerged = MergePullRequestBranch.Merged;
534
+ var MergePullRequestBranchNotFound = MergePullRequestBranch.NotFound;
535
+ var MergePullRequestBranchProviderRejected = MergePullRequestBranch.ProviderRejected;
536
+ var MergePullRequestBranchInvalidResponse = MergePullRequestBranch.InvalidResponse;
537
+ var MergePullRequestBranchDefect = MergePullRequestBranch.Defect;
538
+ var MergePullRequestDefinition = {
539
+ operation: { connectorId: ConnectorID, operationId: "mergePullRequest" },
540
+ branches: [
541
+ { id: "merged", description: "Bitbucket returned a merged pull request." },
542
+ { id: "notFound", description: "The pull request does not exist or is not visible.", optional: true },
543
+ { id: "providerRejected", description: "Bitbucket conclusively rejected merging.", optional: true },
544
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
545
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
546
+ ],
547
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
548
+ repeatOnUnknown: "safe"
549
+ };
550
+ var MergePullRequestMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
551
+ var DeclinePullRequestBranch = {
552
+ Declined: "declined",
553
+ NotFound: "notFound",
554
+ ProviderRejected: "providerRejected",
555
+ InvalidResponse: "invalidResponse",
556
+ Defect: "defect"
557
+ };
558
+ var DeclinePullRequestBranchDeclined = DeclinePullRequestBranch.Declined;
559
+ var DeclinePullRequestBranchNotFound = DeclinePullRequestBranch.NotFound;
560
+ var DeclinePullRequestBranchProviderRejected = DeclinePullRequestBranch.ProviderRejected;
561
+ var DeclinePullRequestBranchInvalidResponse = DeclinePullRequestBranch.InvalidResponse;
562
+ var DeclinePullRequestBranchDefect = DeclinePullRequestBranch.Defect;
563
+ var DeclinePullRequestDefinition = {
564
+ operation: { connectorId: ConnectorID, operationId: "declinePullRequest" },
565
+ branches: [
566
+ { id: "declined", description: "Bitbucket returned a declined pull request." },
567
+ { id: "notFound", description: "The pull request does not exist or is not visible.", optional: true },
568
+ { id: "providerRejected", description: "Bitbucket conclusively rejected declining.", optional: true },
569
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
570
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
571
+ ],
572
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
573
+ repeatOnUnknown: "safe"
574
+ };
575
+ var DeclinePullRequestMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
576
+ var CreateRepositoryBranch = {
577
+ Created: "created",
578
+ NotFound: "notFound",
579
+ ProviderRejected: "providerRejected",
580
+ InvalidResponse: "invalidResponse",
581
+ Defect: "defect"
582
+ };
583
+ var CreateRepositoryBranchCreated = CreateRepositoryBranch.Created;
584
+ var CreateRepositoryBranchNotFound = CreateRepositoryBranch.NotFound;
585
+ var CreateRepositoryBranchProviderRejected = CreateRepositoryBranch.ProviderRejected;
586
+ var CreateRepositoryBranchInvalidResponse = CreateRepositoryBranch.InvalidResponse;
587
+ var CreateRepositoryBranchDefect = CreateRepositoryBranch.Defect;
588
+ var CreateRepositoryDefinition = {
589
+ operation: { connectorId: ConnectorID, operationId: "createRepository" },
590
+ branches: [
591
+ { id: "created", description: "Bitbucket returned the requested repository state." },
592
+ { id: "notFound", description: "The repository does not exist or is not visible.", optional: true },
593
+ { id: "providerRejected", description: "Bitbucket conclusively rejected the repository request.", optional: true },
594
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
595
+ { id: "defect", description: "Local repository input or credentials are invalid.", optional: true }
596
+ ],
597
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
598
+ repeatOnUnknown: "safe"
599
+ };
600
+ var CreateRepositoryMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
601
+ var UpdateRepositoryBranch = {
602
+ Updated: "updated",
603
+ NotFound: "notFound",
604
+ ProviderRejected: "providerRejected",
605
+ InvalidResponse: "invalidResponse",
606
+ Defect: "defect"
607
+ };
608
+ var UpdateRepositoryBranchUpdated = UpdateRepositoryBranch.Updated;
609
+ var UpdateRepositoryBranchNotFound = UpdateRepositoryBranch.NotFound;
610
+ var UpdateRepositoryBranchProviderRejected = UpdateRepositoryBranch.ProviderRejected;
611
+ var UpdateRepositoryBranchInvalidResponse = UpdateRepositoryBranch.InvalidResponse;
612
+ var UpdateRepositoryBranchDefect = UpdateRepositoryBranch.Defect;
613
+ var UpdateRepositoryDefinition = {
614
+ operation: { connectorId: ConnectorID, operationId: "updateRepository" },
615
+ branches: [
616
+ { id: "updated", description: "Bitbucket returned the requested repository state." },
617
+ { id: "notFound", description: "The repository does not exist or is not visible.", optional: true },
618
+ { id: "providerRejected", description: "Bitbucket conclusively rejected the repository request.", optional: true },
619
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
620
+ { id: "defect", description: "Local repository input or credentials are invalid.", optional: true }
621
+ ],
622
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
623
+ repeatOnUnknown: "safe"
624
+ };
625
+ var UpdateRepositoryMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
626
+ var DeleteRepositoryBranch = {
627
+ Deleted: "deleted",
628
+ NotFound: "notFound",
629
+ ProviderRejected: "providerRejected",
630
+ InvalidResponse: "invalidResponse",
631
+ Defect: "defect"
632
+ };
633
+ var DeleteRepositoryBranchDeleted = DeleteRepositoryBranch.Deleted;
634
+ var DeleteRepositoryBranchNotFound = DeleteRepositoryBranch.NotFound;
635
+ var DeleteRepositoryBranchProviderRejected = DeleteRepositoryBranch.ProviderRejected;
636
+ var DeleteRepositoryBranchInvalidResponse = DeleteRepositoryBranch.InvalidResponse;
637
+ var DeleteRepositoryBranchDefect = DeleteRepositoryBranch.Defect;
638
+ var DeleteRepositoryDefinition = {
639
+ operation: { connectorId: ConnectorID, operationId: "deleteRepository" },
640
+ branches: [
641
+ { id: "deleted", description: "Bitbucket returned the requested repository state." },
642
+ { id: "notFound", description: "The repository does not exist or is not visible.", optional: true },
643
+ { id: "providerRejected", description: "Bitbucket conclusively rejected the repository request.", optional: true },
644
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
645
+ { id: "defect", description: "Local repository input or credentials are invalid.", optional: true }
646
+ ],
647
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
648
+ repeatOnUnknown: "safe"
649
+ };
650
+ var DeleteRepositoryMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
651
+ var GetRepositoryBranch = {
652
+ Found: "found",
653
+ NotFound: "notFound",
654
+ ProviderRejected: "providerRejected",
655
+ InvalidResponse: "invalidResponse",
656
+ Defect: "defect"
657
+ };
658
+ var GetRepositoryBranchFound = GetRepositoryBranch.Found;
659
+ var GetRepositoryBranchNotFound = GetRepositoryBranch.NotFound;
660
+ var GetRepositoryBranchProviderRejected = GetRepositoryBranch.ProviderRejected;
661
+ var GetRepositoryBranchInvalidResponse = GetRepositoryBranch.InvalidResponse;
662
+ var GetRepositoryBranchDefect = GetRepositoryBranch.Defect;
663
+ var GetRepositoryDefinition = {
664
+ operation: { connectorId: ConnectorID, operationId: "getRepository" },
665
+ branches: [
666
+ { id: "found", description: "Bitbucket returned the repository." },
667
+ { id: "notFound", description: "The repository does not exist or is not visible.", optional: true },
668
+ { id: "providerRejected", description: "Bitbucket conclusively rejected the read.", optional: true },
669
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
670
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
671
+ ],
672
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
673
+ };
674
+ var GetRepositoryMetadata = { kind: "query", idempotency: "none", authorization: "required" };
675
+ var GetPullRequestBranch = {
676
+ Found: "found",
677
+ NotFound: "notFound",
678
+ ProviderRejected: "providerRejected",
679
+ InvalidResponse: "invalidResponse",
680
+ Defect: "defect"
681
+ };
682
+ var GetPullRequestBranchFound = GetPullRequestBranch.Found;
683
+ var GetPullRequestBranchNotFound = GetPullRequestBranch.NotFound;
684
+ var GetPullRequestBranchProviderRejected = GetPullRequestBranch.ProviderRejected;
685
+ var GetPullRequestBranchInvalidResponse = GetPullRequestBranch.InvalidResponse;
686
+ var GetPullRequestBranchDefect = GetPullRequestBranch.Defect;
687
+ var GetPullRequestDefinition = {
688
+ operation: { connectorId: ConnectorID, operationId: "getPullRequest" },
689
+ branches: [
690
+ { id: "found", description: "Bitbucket returned the pull request." },
691
+ { id: "notFound", description: "The pull request does not exist or is not visible.", optional: true },
692
+ { id: "providerRejected", description: "Bitbucket conclusively rejected the read.", optional: true },
693
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
694
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
695
+ ],
696
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
697
+ };
698
+ var GetPullRequestMetadata = { kind: "query", idempotency: "none", authorization: "required" };
699
+ var UpdatePullRequestTitleBranch = {
700
+ Updated: "updated",
701
+ NotFound: "notFound",
702
+ ProviderRejected: "providerRejected",
703
+ InvalidResponse: "invalidResponse",
704
+ Defect: "defect"
705
+ };
706
+ var UpdatePullRequestTitleBranchUpdated = UpdatePullRequestTitleBranch.Updated;
707
+ var UpdatePullRequestTitleBranchNotFound = UpdatePullRequestTitleBranch.NotFound;
708
+ var UpdatePullRequestTitleBranchProviderRejected = UpdatePullRequestTitleBranch.ProviderRejected;
709
+ var UpdatePullRequestTitleBranchInvalidResponse = UpdatePullRequestTitleBranch.InvalidResponse;
710
+ var UpdatePullRequestTitleBranchDefect = UpdatePullRequestTitleBranch.Defect;
711
+ var UpdatePullRequestTitleDefinition = {
712
+ operation: { connectorId: ConnectorID, operationId: "updatePullRequestTitle" },
713
+ branches: [
714
+ { id: "updated", description: "Bitbucket returned the pull request with the new title." },
715
+ { id: "notFound", description: "The pull request does not exist or is not visible.", optional: true },
716
+ { id: "providerRejected", description: "Bitbucket conclusively rejected the update.", optional: true },
717
+ { id: "invalidResponse", description: "Bitbucket returned malformed or oversized JSON.", optional: true },
718
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
719
+ ],
720
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
721
+ repeatOnUnknown: "safe"
722
+ };
723
+ var UpdatePullRequestTitleMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
724
+ var ListRepositoriesBranch = {
725
+ Listed: "listed",
726
+ NotFound: "notFound",
727
+ ProviderRejected: "providerRejected",
728
+ InvalidResponse: "invalidResponse",
729
+ Defect: "defect"
730
+ };
731
+ var ListRepositoriesBranchListed = ListRepositoriesBranch.Listed;
732
+ var ListRepositoriesBranchNotFound = ListRepositoriesBranch.NotFound;
733
+ var ListRepositoriesBranchProviderRejected = ListRepositoriesBranch.ProviderRejected;
734
+ var ListRepositoriesBranchInvalidResponse = ListRepositoriesBranch.InvalidResponse;
735
+ var ListRepositoriesBranchDefect = ListRepositoriesBranch.Defect;
736
+ var ListRepositoriesDefinition = {
737
+ operation: { connectorId: ConnectorID, operationId: "listRepositories" },
738
+ branches: [
739
+ { id: "listed", description: "List repositories owned by a Bitbucket workspace." },
740
+ { id: "notFound", description: "The requested resource was not found.", optional: true },
741
+ { id: "providerRejected", description: "The provider conclusively rejected the request.", optional: true },
742
+ { id: "invalidResponse", description: "The provider returned malformed or oversized JSON.", optional: true },
743
+ { id: "defect", description: "Local input or connection credentials are invalid.", optional: true }
744
+ ],
745
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
746
+ };
747
+ var ListRepositoriesMetadata = { kind: "query", idempotency: "none", authorization: "required" };
748
+ var ListPullRequestsBranch = {
749
+ Listed: "listed",
750
+ NotFound: "notFound",
751
+ ProviderRejected: "providerRejected",
752
+ InvalidResponse: "invalidResponse",
753
+ Defect: "defect"
754
+ };
755
+ var ListPullRequestsBranchListed = ListPullRequestsBranch.Listed;
756
+ var ListPullRequestsBranchNotFound = ListPullRequestsBranch.NotFound;
757
+ var ListPullRequestsBranchProviderRejected = ListPullRequestsBranch.ProviderRejected;
758
+ var ListPullRequestsBranchInvalidResponse = ListPullRequestsBranch.InvalidResponse;
759
+ var ListPullRequestsBranchDefect = ListPullRequestsBranch.Defect;
760
+ var ListPullRequestsDefinition = {
761
+ operation: { connectorId: ConnectorID, operationId: "listPullRequests" },
762
+ branches: [
763
+ { id: "listed", description: "List pull requests for a Bitbucket repository." },
764
+ { id: "notFound", description: "The requested resource was not found.", optional: true },
765
+ { id: "providerRejected", description: "The provider conclusively rejected the request.", optional: true },
766
+ { id: "invalidResponse", description: "The provider returned malformed or oversized JSON.", optional: true },
767
+ { id: "defect", description: "Local input or connection credentials are invalid.", optional: true }
768
+ ],
769
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
770
+ };
771
+ var ListPullRequestsMetadata = { kind: "query", idempotency: "none", authorization: "required" };
772
+
773
+ // src/generated/connection.ts
774
+ import { ConnectionRefSchema } from "@superdurable/connectors-sdk";
775
+ var Connection = class {
776
+ /** Stable provider and connection name. */
777
+ reference;
778
+ /** Bound provider operations. */
779
+ operations;
780
+ /** Validate a reference and bind operations. */
781
+ constructor(reference, operations) {
782
+ this.reference = ConnectionRefSchema.parse(reference);
783
+ if (this.reference.provider !== ProviderID) throw new TypeError("connection provider differs from the manifest");
784
+ if (!operations) throw new TypeError("connector operations are required");
785
+ this.operations = operations;
786
+ }
787
+ };
788
+ function newConnection(client, reference) {
789
+ if (!client) throw new TypeError("connector client is required");
790
+ return new Connection(reference, client);
791
+ }
792
+ function newConnectionWithOperations(operations, reference) {
793
+ return new Connection(reference, operations);
794
+ }
795
+ function newProjectConnection(project, connectionName, createClient) {
796
+ if (!project) throw new TypeError("loaded project is required");
797
+ const reference = ConnectionRefSchema.parse({ provider: ProviderID, name: connectionName });
798
+ const selected = project.configuration.connections.find((entry) => entry.connectorId === ConnectorID && entry.connectionName === connectionName);
799
+ if (!selected || selected.provider !== ProviderID) throw new TypeError("project connection is not configured");
800
+ return newConnection(createClient(project, connectionName), reference);
801
+ }
802
+
803
+ export {
804
+ decodeSignedInteger,
805
+ parseJSONNumberTokens,
806
+ parseExactIntegerJSON,
807
+ exactIntegerJSONCodec,
808
+ ConfigSchema,
809
+ CredentialMaterialError,
810
+ isCredentialMaterialError,
811
+ decodeCredentials,
812
+ ListBranchesInputSchema,
813
+ BranchTargetSchema,
814
+ BranchSchema,
815
+ BranchPageSchema,
816
+ BranchRefInputSchema,
817
+ CreateBranchInputSchema,
818
+ DeletedBranchSchema,
819
+ PullRequestActionInputSchema,
820
+ PullRequestCommentContentSchema,
821
+ PullRequestCommentResolutionSchema,
822
+ PullRequestCommentSchema,
823
+ PullRequestCommentPageSchema,
824
+ PullRequestCommentIDInputSchema,
825
+ CreatePullRequestCommentInputSchema,
826
+ UpdatePullRequestCommentInputSchema,
827
+ DeletedPullRequestCommentSchema,
828
+ CreatePullRequestInputSchema,
829
+ PullRequestSchema,
830
+ CreateRepositoryInputSchema,
831
+ RepositorySchema,
832
+ UpdateRepositoryInputSchema,
833
+ DeleteRepositoryInputSchema,
834
+ DeletedRepositorySchema,
835
+ GetRepositoryInputSchema,
836
+ GetPullRequestInputSchema,
837
+ UpdatePullRequestTitleInputSchema,
838
+ ListRepositoriesInputSchema,
839
+ RepositoryPageSchema,
840
+ ListPullRequestsInputSchema,
841
+ PullRequestPageSchema,
842
+ ConnectorID,
843
+ ProviderID,
844
+ ListBranchesBranch,
845
+ ListBranchesBranchListed,
846
+ ListBranchesBranchNotFound,
847
+ ListBranchesBranchProviderRejected,
848
+ ListBranchesBranchInvalidResponse,
849
+ ListBranchesBranchDefect,
850
+ ListBranchesDefinition,
851
+ ListBranchesMetadata,
852
+ GetBranchBranch,
853
+ GetBranchBranchFound,
854
+ GetBranchBranchNotFound,
855
+ GetBranchBranchProviderRejected,
856
+ GetBranchBranchInvalidResponse,
857
+ GetBranchBranchDefect,
858
+ GetBranchDefinition,
859
+ GetBranchMetadata,
860
+ CreateBranchBranch,
861
+ CreateBranchBranchCreated,
862
+ CreateBranchBranchNotFound,
863
+ CreateBranchBranchProviderRejected,
864
+ CreateBranchBranchInvalidResponse,
865
+ CreateBranchBranchDefect,
866
+ CreateBranchDefinition,
867
+ CreateBranchMetadata,
868
+ DeleteBranchBranch,
869
+ DeleteBranchBranchDeleted,
870
+ DeleteBranchBranchNotFound,
871
+ DeleteBranchBranchProviderRejected,
872
+ DeleteBranchBranchDefect,
873
+ DeleteBranchDefinition,
874
+ DeleteBranchMetadata,
875
+ ListPullRequestCommentsBranch,
876
+ ListPullRequestCommentsBranchListed,
877
+ ListPullRequestCommentsBranchNotFound,
878
+ ListPullRequestCommentsBranchProviderRejected,
879
+ ListPullRequestCommentsBranchInvalidResponse,
880
+ ListPullRequestCommentsBranchDefect,
881
+ ListPullRequestCommentsDefinition,
882
+ ListPullRequestCommentsMetadata,
883
+ GetPullRequestCommentBranch,
884
+ GetPullRequestCommentBranchFound,
885
+ GetPullRequestCommentBranchNotFound,
886
+ GetPullRequestCommentBranchProviderRejected,
887
+ GetPullRequestCommentBranchInvalidResponse,
888
+ GetPullRequestCommentBranchDefect,
889
+ GetPullRequestCommentDefinition,
890
+ GetPullRequestCommentMetadata,
891
+ CreatePullRequestCommentBranch,
892
+ CreatePullRequestCommentBranchCreated,
893
+ CreatePullRequestCommentBranchProviderRejected,
894
+ CreatePullRequestCommentBranchDefect,
895
+ CreatePullRequestCommentBranchUncertain,
896
+ CreatePullRequestCommentDefinition,
897
+ CreatePullRequestCommentMetadata,
898
+ UpdatePullRequestCommentBranch,
899
+ UpdatePullRequestCommentBranchUpdated,
900
+ UpdatePullRequestCommentBranchNotFound,
901
+ UpdatePullRequestCommentBranchProviderRejected,
902
+ UpdatePullRequestCommentBranchInvalidResponse,
903
+ UpdatePullRequestCommentBranchDefect,
904
+ UpdatePullRequestCommentDefinition,
905
+ UpdatePullRequestCommentMetadata,
906
+ DeletePullRequestCommentBranch,
907
+ DeletePullRequestCommentBranchDeleted,
908
+ DeletePullRequestCommentBranchNotFound,
909
+ DeletePullRequestCommentBranchProviderRejected,
910
+ DeletePullRequestCommentBranchDefect,
911
+ DeletePullRequestCommentDefinition,
912
+ DeletePullRequestCommentMetadata,
913
+ ResolvePullRequestCommentBranch,
914
+ ResolvePullRequestCommentBranchResolved,
915
+ ResolvePullRequestCommentBranchNotFound,
916
+ ResolvePullRequestCommentBranchProviderRejected,
917
+ ResolvePullRequestCommentBranchInvalidResponse,
918
+ ResolvePullRequestCommentBranchDefect,
919
+ ResolvePullRequestCommentDefinition,
920
+ ResolvePullRequestCommentMetadata,
921
+ UnresolvePullRequestCommentBranch,
922
+ UnresolvePullRequestCommentBranchUnresolved,
923
+ UnresolvePullRequestCommentBranchNotFound,
924
+ UnresolvePullRequestCommentBranchProviderRejected,
925
+ UnresolvePullRequestCommentBranchInvalidResponse,
926
+ UnresolvePullRequestCommentBranchDefect,
927
+ UnresolvePullRequestCommentDefinition,
928
+ UnresolvePullRequestCommentMetadata,
929
+ CreatePullRequestBranch,
930
+ CreatePullRequestBranchCreated,
931
+ CreatePullRequestBranchProviderRejected,
932
+ CreatePullRequestBranchDefect,
933
+ CreatePullRequestBranchUncertain,
934
+ CreatePullRequestDefinition,
935
+ CreatePullRequestMetadata,
936
+ MergePullRequestBranch,
937
+ MergePullRequestBranchMerged,
938
+ MergePullRequestBranchNotFound,
939
+ MergePullRequestBranchProviderRejected,
940
+ MergePullRequestBranchInvalidResponse,
941
+ MergePullRequestBranchDefect,
942
+ MergePullRequestDefinition,
943
+ MergePullRequestMetadata,
944
+ DeclinePullRequestBranch,
945
+ DeclinePullRequestBranchDeclined,
946
+ DeclinePullRequestBranchNotFound,
947
+ DeclinePullRequestBranchProviderRejected,
948
+ DeclinePullRequestBranchInvalidResponse,
949
+ DeclinePullRequestBranchDefect,
950
+ DeclinePullRequestDefinition,
951
+ DeclinePullRequestMetadata,
952
+ CreateRepositoryBranch,
953
+ CreateRepositoryBranchCreated,
954
+ CreateRepositoryBranchNotFound,
955
+ CreateRepositoryBranchProviderRejected,
956
+ CreateRepositoryBranchInvalidResponse,
957
+ CreateRepositoryBranchDefect,
958
+ CreateRepositoryDefinition,
959
+ CreateRepositoryMetadata,
960
+ UpdateRepositoryBranch,
961
+ UpdateRepositoryBranchUpdated,
962
+ UpdateRepositoryBranchNotFound,
963
+ UpdateRepositoryBranchProviderRejected,
964
+ UpdateRepositoryBranchInvalidResponse,
965
+ UpdateRepositoryBranchDefect,
966
+ UpdateRepositoryDefinition,
967
+ UpdateRepositoryMetadata,
968
+ DeleteRepositoryBranch,
969
+ DeleteRepositoryBranchDeleted,
970
+ DeleteRepositoryBranchNotFound,
971
+ DeleteRepositoryBranchProviderRejected,
972
+ DeleteRepositoryBranchInvalidResponse,
973
+ DeleteRepositoryBranchDefect,
974
+ DeleteRepositoryDefinition,
975
+ DeleteRepositoryMetadata,
976
+ GetRepositoryBranch,
977
+ GetRepositoryBranchFound,
978
+ GetRepositoryBranchNotFound,
979
+ GetRepositoryBranchProviderRejected,
980
+ GetRepositoryBranchInvalidResponse,
981
+ GetRepositoryBranchDefect,
982
+ GetRepositoryDefinition,
983
+ GetRepositoryMetadata,
984
+ GetPullRequestBranch,
985
+ GetPullRequestBranchFound,
986
+ GetPullRequestBranchNotFound,
987
+ GetPullRequestBranchProviderRejected,
988
+ GetPullRequestBranchInvalidResponse,
989
+ GetPullRequestBranchDefect,
990
+ GetPullRequestDefinition,
991
+ GetPullRequestMetadata,
992
+ UpdatePullRequestTitleBranch,
993
+ UpdatePullRequestTitleBranchUpdated,
994
+ UpdatePullRequestTitleBranchNotFound,
995
+ UpdatePullRequestTitleBranchProviderRejected,
996
+ UpdatePullRequestTitleBranchInvalidResponse,
997
+ UpdatePullRequestTitleBranchDefect,
998
+ UpdatePullRequestTitleDefinition,
999
+ UpdatePullRequestTitleMetadata,
1000
+ ListRepositoriesBranch,
1001
+ ListRepositoriesBranchListed,
1002
+ ListRepositoriesBranchNotFound,
1003
+ ListRepositoriesBranchProviderRejected,
1004
+ ListRepositoriesBranchInvalidResponse,
1005
+ ListRepositoriesBranchDefect,
1006
+ ListRepositoriesDefinition,
1007
+ ListRepositoriesMetadata,
1008
+ ListPullRequestsBranch,
1009
+ ListPullRequestsBranchListed,
1010
+ ListPullRequestsBranchNotFound,
1011
+ ListPullRequestsBranchProviderRejected,
1012
+ ListPullRequestsBranchInvalidResponse,
1013
+ ListPullRequestsBranchDefect,
1014
+ ListPullRequestsDefinition,
1015
+ ListPullRequestsMetadata,
1016
+ Connection,
1017
+ newConnection,
1018
+ newConnectionWithOperations,
1019
+ newProjectConnection
1020
+ };