@superdurable/connector-google-docs 0.0.0-stage → 0.1.1

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,381 @@
1
+ // src/generated/models.ts
2
+ import { z } from "zod";
3
+ import { SecretString } from "@superdurable/connectors-sdk";
4
+ var goTimeJSONPattern = /^(\d{4})-(\d{2})-(\d{2})T(\d{1,2}):(\d{2}):(\d{2})(?:[.,](\d+))?(Z|([+-])(\d{2}):(\d{2}))$/;
5
+ function isGoTimeJSON(value) {
6
+ const match = goTimeJSONPattern.exec(value);
7
+ if (!match) return false;
8
+ const [, yearText, monthText, dayText, hourText, minuteText, secondText, , zone, , zoneHourText, zoneMinuteText] = match;
9
+ const year = Number(yearText);
10
+ const month = Number(monthText);
11
+ const day = Number(dayText);
12
+ const isLeap = year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
13
+ const monthDays = [31, isLeap ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
14
+ return month >= 1 && month <= 12 && day >= 1 && day <= monthDays[month - 1] && Number(hourText) <= 23 && Number(minuteText) <= 59 && Number(secondText) <= 59 && (zone === "Z" || Number(zoneHourText) <= 24 && Number(zoneMinuteText) <= 60);
15
+ }
16
+ function canonicalGoTimeJSON(value) {
17
+ const match = goTimeJSONPattern.exec(value);
18
+ const [, year, month, day, hour, minute, second, fraction, zone, sign, zoneHour, zoneMinute] = match;
19
+ const clock = year + "-" + month + "-" + day + "T" + hour.padStart(2, "0") + ":" + minute + ":" + second;
20
+ const digits = (fraction ?? "").slice(0, 9).replace(/0+$/, "");
21
+ const offsetMinutes = zone === "Z" ? 0 : (Number(zoneHour) * 60 + Number(zoneMinute)) * (sign === "+" ? 1 : -1);
22
+ if (Math.abs(offsetMinutes) >= 1440) return value;
23
+ const offset = offsetMinutes === 0 ? "Z" : (offsetMinutes > 0 ? "+" : "-") + String(Math.floor(Math.abs(offsetMinutes) / 60)).padStart(2, "0") + ":" + String(Math.abs(offsetMinutes) % 60).padStart(2, "0");
24
+ return clock + (digits ? "." + digits : "") + offset;
25
+ }
26
+ var GoTimeJSONSchema = z.string().refine(isGoTimeJSON, "invalid Go time.Time JSON timestamp").transform(canonicalGoTimeJSON);
27
+ var ConfigSchema = z.object({
28
+ "docsEndpoint": z.string().optional(),
29
+ "driveEndpoint": z.string().optional(),
30
+ "maxResponseBytes": z.number().int().optional(),
31
+ "maxTextBytes": z.number().int().optional()
32
+ });
33
+ var CredentialMaterialError = class extends TypeError {
34
+ constructor(message) {
35
+ super(message);
36
+ this.name = "CredentialMaterialError";
37
+ }
38
+ };
39
+ var sdkCredentialDecodingFailureMessages = /* @__PURE__ */ new Set([
40
+ "project credential decoding failed",
41
+ "shared project credential decoding failed",
42
+ "project credential decoding failed: this connector version does not support shared credentials"
43
+ ]);
44
+ function isCredentialMaterialError(error) {
45
+ return error instanceof CredentialMaterialError || error instanceof TypeError && sdkCredentialDecodingFailureMessages.has(error.message);
46
+ }
47
+ function decodeCredentials(value) {
48
+ if (!value || typeof value !== "object" || Array.isArray(value)) throw new CredentialMaterialError("credential fields are invalid");
49
+ const fields = value;
50
+ const allowed = /* @__PURE__ */ new Set(["auth_method", "access_token", "delegated_user", "oauth_client_id", "oauth_client_secret", "refresh_token", "service_account_key"]);
51
+ if (Object.keys(fields).some((key) => !allowed.has(key))) throw new CredentialMaterialError("stored credential does not match the connector credential fields");
52
+ if (fields["access_token"] != null && !(typeof fields["access_token"] === "string")) throw new CredentialMaterialError("credential access_token has an invalid type");
53
+ if (fields["delegated_user"] != null && !(typeof fields["delegated_user"] === "string")) throw new CredentialMaterialError("credential delegated_user has an invalid type");
54
+ if (fields["oauth_client_id"] != null && !(typeof fields["oauth_client_id"] === "string")) throw new CredentialMaterialError("credential oauth_client_id has an invalid type");
55
+ if (fields["oauth_client_secret"] != null && !(typeof fields["oauth_client_secret"] === "string")) throw new CredentialMaterialError("credential oauth_client_secret has an invalid type");
56
+ if (fields["refresh_token"] != null && !(typeof fields["refresh_token"] === "string")) throw new CredentialMaterialError("credential refresh_token has an invalid type");
57
+ if (fields["service_account_key"] != null && !(typeof fields["service_account_key"] === "string")) throw new CredentialMaterialError("credential service_account_key has an invalid type");
58
+ const selectedMethod = fields["auth_method"] ?? "";
59
+ if (typeof selectedMethod !== "string") throw new CredentialMaterialError("credential auth_method is invalid");
60
+ const method = selectedMethod || "google-oauth";
61
+ const credentials = { authMethodId: method };
62
+ if (method === "google-oauth") {
63
+ if (!fields["oauth_client_id"]) throw new CredentialMaterialError("credential oauth_client_id is required");
64
+ if (fields["oauth_client_id"]) credentials.oauthClientId = fields["oauth_client_id"];
65
+ if (!fields["oauth_client_secret"]) throw new CredentialMaterialError("credential oauth_client_secret is required");
66
+ if (fields["oauth_client_secret"]) credentials.oauthClientSecret = new SecretString(fields["oauth_client_secret"]);
67
+ if (!fields["access_token"]) throw new CredentialMaterialError("credential access_token is required");
68
+ if (fields["access_token"]) credentials.accessToken = new SecretString(fields["access_token"]);
69
+ if (!fields["refresh_token"]) throw new CredentialMaterialError("credential refresh_token is required");
70
+ if (fields["refresh_token"]) credentials.refreshToken = new SecretString(fields["refresh_token"]);
71
+ } else if (method === "workspace-domain-delegation") {
72
+ if (!fields["service_account_key"]) throw new CredentialMaterialError("credential service_account_key is required");
73
+ if (fields["service_account_key"]) credentials.serviceAccountKey = new SecretString(fields["service_account_key"]);
74
+ if (!fields["delegated_user"]) throw new CredentialMaterialError("credential delegated_user is required");
75
+ if (fields["delegated_user"]) credentials.delegatedUser = fields["delegated_user"];
76
+ credentials.accessToken = new SecretString(fields["access_token"] ?? "");
77
+ } else {
78
+ throw new CredentialMaterialError("credential auth_method is invalid");
79
+ }
80
+ return credentials;
81
+ }
82
+ function decodeSharedCredentials(value) {
83
+ if (!value || typeof value !== "object" || Array.isArray(value)) throw new CredentialMaterialError("credential fields are invalid");
84
+ const fields = value;
85
+ const allowed = /* @__PURE__ */ new Set(["auth_method", "access_token", "delegated_user", "oauth_client_id", "oauth_client_secret", "refresh_token", "service_account_key"]);
86
+ if (Object.keys(fields).some((key) => !allowed.has(key))) throw new CredentialMaterialError("stored credential does not match the connector credential fields");
87
+ if (fields["access_token"] != null && !(typeof fields["access_token"] === "string")) throw new CredentialMaterialError("credential access_token has an invalid type");
88
+ if (fields["delegated_user"] != null && !(typeof fields["delegated_user"] === "string")) throw new CredentialMaterialError("credential delegated_user has an invalid type");
89
+ if (fields["oauth_client_id"] != null && !(typeof fields["oauth_client_id"] === "string")) throw new CredentialMaterialError("credential oauth_client_id has an invalid type");
90
+ if (fields["oauth_client_secret"] != null && !(typeof fields["oauth_client_secret"] === "string")) throw new CredentialMaterialError("credential oauth_client_secret has an invalid type");
91
+ if (fields["refresh_token"] != null && !(typeof fields["refresh_token"] === "string")) throw new CredentialMaterialError("credential refresh_token has an invalid type");
92
+ if (fields["service_account_key"] != null && !(typeof fields["service_account_key"] === "string")) throw new CredentialMaterialError("credential service_account_key has an invalid type");
93
+ const selectedMethod = fields["auth_method"] ?? "";
94
+ if (typeof selectedMethod !== "string") throw new CredentialMaterialError("credential auth_method is invalid");
95
+ const method = selectedMethod || "google-oauth";
96
+ const credentials = { authMethodId: method };
97
+ if (method === "google-oauth") {
98
+ if (!fields["oauth_client_id"]) throw new CredentialMaterialError("credential oauth_client_id is required");
99
+ if (fields["oauth_client_id"]) credentials.oauthClientId = fields["oauth_client_id"];
100
+ if (fields["oauth_client_secret"]) credentials.oauthClientSecret = new SecretString(fields["oauth_client_secret"]);
101
+ if (!fields["access_token"]) throw new CredentialMaterialError("credential access_token is required");
102
+ if (fields["access_token"]) credentials.accessToken = new SecretString(fields["access_token"]);
103
+ if (fields["refresh_token"]) credentials.refreshToken = new SecretString(fields["refresh_token"]);
104
+ } else if (method === "workspace-domain-delegation") {
105
+ if (fields["service_account_key"]) credentials.serviceAccountKey = new SecretString(fields["service_account_key"]);
106
+ if (!fields["delegated_user"]) throw new CredentialMaterialError("credential delegated_user is required");
107
+ if (fields["delegated_user"]) credentials.delegatedUser = fields["delegated_user"];
108
+ if (!fields["access_token"]) throw new CredentialMaterialError("credential access_token is required");
109
+ credentials.accessToken = new SecretString(fields["access_token"] ?? "");
110
+ } else {
111
+ throw new CredentialMaterialError("credential auth_method is invalid");
112
+ }
113
+ return credentials;
114
+ }
115
+ var GetDocumentTextInputSchema = z.strictObject({
116
+ "documentId": z.string(),
117
+ "format": z.string().optional()
118
+ });
119
+ var GetDocumentTextOutputSchema = z.strictObject({
120
+ "documentId": z.string(),
121
+ "title": z.string(),
122
+ "revisionId": z.string().optional(),
123
+ "format": z.string(),
124
+ "text": z.string().optional(),
125
+ "byteCount": z.number().int(),
126
+ "hasOtherTabs": z.boolean().optional()
127
+ });
128
+ var CreateDocumentInputSchema = z.strictObject({
129
+ "title": z.string(),
130
+ "parentFolderId": z.string().optional(),
131
+ "initialText": z.string().optional(),
132
+ "initialTextFormat": z.string().optional()
133
+ });
134
+ var CreatedDocumentSchema = z.strictObject({
135
+ "documentId": z.string(),
136
+ "title": z.string(),
137
+ "parents": z.array(z.string()).optional(),
138
+ "webViewLink": z.string().optional(),
139
+ "createdTime": GoTimeJSONSchema.optional(),
140
+ "isTrashed": z.boolean().optional()
141
+ });
142
+ var CreateDocumentOutputSchema = z.strictObject({
143
+ "document": CreatedDocumentSchema,
144
+ "isFromEarlierAttempt": z.boolean().optional()
145
+ });
146
+ var PlaceholderReplacementSchema = z.strictObject({
147
+ "placeholder": z.string(),
148
+ "text": z.string()
149
+ });
150
+ var ReplaceDocumentTextInputSchema = z.strictObject({
151
+ "documentId": z.string(),
152
+ "requiredRevisionId": z.string(),
153
+ "target": z.string(),
154
+ "text": z.string().optional(),
155
+ "placeholders": z.array(PlaceholderReplacementSchema).optional()
156
+ });
157
+ var PlaceholderReplacementResultSchema = z.strictObject({
158
+ "placeholder": z.string(),
159
+ "occurrencesChanged": z.number().int()
160
+ });
161
+ var ReplaceDocumentTextOutputSchema = z.strictObject({
162
+ "documentId": z.string(),
163
+ "revisionId": z.string().optional(),
164
+ "replacements": z.array(PlaceholderReplacementResultSchema).optional(),
165
+ "missingPlaceholders": z.array(z.string()).optional(),
166
+ "wasAlreadyApplied": z.boolean().optional()
167
+ });
168
+ var AppendTextInputSchema = z.strictObject({
169
+ "documentId": z.string(),
170
+ "requiredRevisionId": z.string(),
171
+ "text": z.string()
172
+ });
173
+ var AppendTextOutputSchema = z.strictObject({
174
+ "documentId": z.string(),
175
+ "revisionId": z.string().optional(),
176
+ "wasAlreadyApplied": z.boolean().optional()
177
+ });
178
+
179
+ // src/generated/definitions.ts
180
+ var ConnectorID = "google-docs";
181
+ var ProviderID = "google";
182
+ var GetDocumentTextBranch = {
183
+ Read: "read",
184
+ NotFound: "notFound",
185
+ TooLarge: "tooLarge",
186
+ ProviderRejected: "providerRejected",
187
+ InvalidResponse: "invalidResponse",
188
+ Defect: "defect"
189
+ };
190
+ var GetDocumentTextBranchRead = GetDocumentTextBranch.Read;
191
+ var GetDocumentTextBranchNotFound = GetDocumentTextBranch.NotFound;
192
+ var GetDocumentTextBranchTooLarge = GetDocumentTextBranch.TooLarge;
193
+ var GetDocumentTextBranchProviderRejected = GetDocumentTextBranch.ProviderRejected;
194
+ var GetDocumentTextBranchInvalidResponse = GetDocumentTextBranch.InvalidResponse;
195
+ var GetDocumentTextBranchDefect = GetDocumentTextBranch.Defect;
196
+ var GetDocumentTextDefinition = {
197
+ operation: { connectorId: ConnectorID, operationId: "getDocumentText" },
198
+ branches: [
199
+ { id: "read", description: "The document text was rendered within the configured limit." },
200
+ { id: "notFound", description: "The document does not exist or the connection cannot see it.", optional: true },
201
+ { id: "tooLarge", description: "The document response or its rendered text exceeds the configured limit.", optional: true },
202
+ { id: "providerRejected", description: "Google conclusively rejected the read, such as a revoked grant or a missing permission.", optional: true },
203
+ { id: "invalidResponse", description: "Google returned an invalid document response.", optional: true },
204
+ { id: "defect", description: "Local input, connection configuration, or connector definition is invalid.", optional: true }
205
+ ],
206
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
207
+ };
208
+ var GetDocumentTextMetadata = { kind: "query", idempotency: "none", authorization: "required" };
209
+ var CreateDocumentBranch = {
210
+ Created: "created",
211
+ ProviderRejected: "providerRejected",
212
+ InvalidResponse: "invalidResponse",
213
+ Uncertain: "uncertain",
214
+ Defect: "defect"
215
+ };
216
+ var CreateDocumentBranchCreated = CreateDocumentBranch.Created;
217
+ var CreateDocumentBranchProviderRejected = CreateDocumentBranch.ProviderRejected;
218
+ var CreateDocumentBranchInvalidResponse = CreateDocumentBranch.InvalidResponse;
219
+ var CreateDocumentBranchUncertain = CreateDocumentBranch.Uncertain;
220
+ var CreateDocumentBranchDefect = CreateDocumentBranch.Defect;
221
+ var CreateDocumentDefinition = {
222
+ operation: { connectorId: ConnectorID, operationId: "createDocument" },
223
+ branches: [
224
+ { id: "created", description: "Google created the document or returned the one an earlier attempt of the same Step execution created." },
225
+ { id: "providerRejected", description: "Google conclusively rejected the creation or the duplicate lookup, such as a missing parent folder; no document was created.", optional: true },
226
+ { id: "invalidResponse", description: "Google returned an invalid or oversized duplicate-lookup response before the creation was sent.", optional: true },
227
+ { id: "uncertain", description: "A creation may have been sent and cannot be confirmed: the duplicate lookup found nothing when the send cap was reached, including after Google accepted it with an unusable response that carries no file ID, Google refused a resend, or the connection needed reauthorization after a possible send; the document may exist, and the connector sends nothing after selecting this branch.", optional: true },
228
+ { id: "defect", description: "Local input, connection configuration, or connector definition is invalid.", optional: true }
229
+ ],
230
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync", executeRetry: { initialIntervalMs: 1e3, backoffCoefficient: 2, maximumIntervalMs: 6e4, maximumAttempts: 5, totalDurationMs: 3e5 } },
231
+ repeatOnUnknown: "limited",
232
+ maxSends: 3
233
+ };
234
+ var CreateDocumentMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
235
+ var ReplaceDocumentTextBranch = {
236
+ Replaced: "replaced",
237
+ PlaceholderNotFound: "placeholderNotFound",
238
+ RevisionChanged: "revisionChanged",
239
+ NotFound: "notFound",
240
+ ProviderRejected: "providerRejected",
241
+ InvalidResponse: "invalidResponse",
242
+ Defect: "defect"
243
+ };
244
+ var ReplaceDocumentTextBranchReplaced = ReplaceDocumentTextBranch.Replaced;
245
+ var ReplaceDocumentTextBranchPlaceholderNotFound = ReplaceDocumentTextBranch.PlaceholderNotFound;
246
+ var ReplaceDocumentTextBranchRevisionChanged = ReplaceDocumentTextBranch.RevisionChanged;
247
+ var ReplaceDocumentTextBranchNotFound = ReplaceDocumentTextBranch.NotFound;
248
+ var ReplaceDocumentTextBranchProviderRejected = ReplaceDocumentTextBranch.ProviderRejected;
249
+ var ReplaceDocumentTextBranchInvalidResponse = ReplaceDocumentTextBranch.InvalidResponse;
250
+ var ReplaceDocumentTextBranchDefect = ReplaceDocumentTextBranch.Defect;
251
+ var ReplaceDocumentTextDefinition = {
252
+ operation: { connectorId: ConnectorID, operationId: "replaceDocumentText" },
253
+ branches: [
254
+ { id: "replaced", description: "The document holds the requested text, written by this attempt or an earlier attempt of the same Step execution." },
255
+ { id: "placeholderNotFound", description: "A requested placeholder does not occur in the body at the required revision; nothing was written.", optional: true },
256
+ { id: "revisionChanged", description: "The document changed after the required revision and does not hold the requested text; nothing was written.", optional: true },
257
+ { id: "notFound", description: "The document does not exist or the connection cannot see it.", optional: true },
258
+ { id: "providerRejected", description: "Google conclusively rejected the change, such as a connection without edit access.", optional: true },
259
+ { id: "invalidResponse", description: "Google returned an invalid or oversized document response.", optional: true },
260
+ { id: "defect", description: "Local input, connection configuration, or connector definition is invalid.", optional: true }
261
+ ],
262
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
263
+ repeatOnUnknown: "safe"
264
+ };
265
+ var ReplaceDocumentTextMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
266
+ var AppendTextBranch = {
267
+ Appended: "appended",
268
+ RevisionChanged: "revisionChanged",
269
+ NotFound: "notFound",
270
+ ProviderRejected: "providerRejected",
271
+ InvalidResponse: "invalidResponse",
272
+ Defect: "defect"
273
+ };
274
+ var AppendTextBranchAppended = AppendTextBranch.Appended;
275
+ var AppendTextBranchRevisionChanged = AppendTextBranch.RevisionChanged;
276
+ var AppendTextBranchNotFound = AppendTextBranch.NotFound;
277
+ var AppendTextBranchProviderRejected = AppendTextBranch.ProviderRejected;
278
+ var AppendTextBranchInvalidResponse = AppendTextBranch.InvalidResponse;
279
+ var AppendTextBranchDefect = AppendTextBranch.Defect;
280
+ var AppendTextDefinition = {
281
+ operation: { connectorId: ConnectorID, operationId: "appendText" },
282
+ branches: [
283
+ { id: "appended", description: "The document ends with the requested text, appended by this attempt or an earlier attempt of the same Step execution." },
284
+ { id: "revisionChanged", description: "The document changed after the required revision and does not end with the requested text; nothing was written.", optional: true },
285
+ { id: "notFound", description: "The document does not exist or the connection cannot see it.", optional: true },
286
+ { id: "providerRejected", description: "Google conclusively rejected the change, such as a connection without edit access.", optional: true },
287
+ { id: "invalidResponse", description: "Google returned an invalid or oversized document response.", optional: true },
288
+ { id: "defect", description: "Local input, connection configuration, or connector definition is invalid.", optional: true }
289
+ ],
290
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
291
+ repeatOnUnknown: "safe"
292
+ };
293
+ var AppendTextMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
294
+
295
+ // src/generated/connection.ts
296
+ import { ConnectionRefSchema } from "@superdurable/connectors-sdk";
297
+ import { newRefreshingCredentialProvider } from "@superdurable/connectors-sdk/projectconfig";
298
+ var Connection = class {
299
+ /** Stable provider and connection name. */
300
+ reference;
301
+ /** Bound provider operations. */
302
+ operations;
303
+ /** Validate a reference and bind operations. */
304
+ constructor(reference, operations) {
305
+ this.reference = ConnectionRefSchema.parse(reference);
306
+ if (this.reference.provider !== ProviderID) throw new TypeError("connection provider differs from the manifest");
307
+ if (!operations) throw new TypeError("connector operations are required");
308
+ this.operations = operations;
309
+ }
310
+ };
311
+ function newConnection(client, reference) {
312
+ if (!client) throw new TypeError("connector client is required");
313
+ return new Connection(reference, client);
314
+ }
315
+ function newConnectionWithOperations(operations, reference) {
316
+ return new Connection(reference, operations);
317
+ }
318
+ function newProjectCredentialProvider(project, connectionName, decode, encode, decodeShared) {
319
+ return newRefreshingCredentialProvider(project.connections, { connectorId: ConnectorID, connectionName }, decode, encode, decodeShared);
320
+ }
321
+
322
+ export {
323
+ ConfigSchema,
324
+ CredentialMaterialError,
325
+ isCredentialMaterialError,
326
+ decodeCredentials,
327
+ decodeSharedCredentials,
328
+ GetDocumentTextInputSchema,
329
+ GetDocumentTextOutputSchema,
330
+ CreateDocumentInputSchema,
331
+ CreatedDocumentSchema,
332
+ CreateDocumentOutputSchema,
333
+ PlaceholderReplacementSchema,
334
+ ReplaceDocumentTextInputSchema,
335
+ PlaceholderReplacementResultSchema,
336
+ ReplaceDocumentTextOutputSchema,
337
+ AppendTextInputSchema,
338
+ AppendTextOutputSchema,
339
+ ConnectorID,
340
+ ProviderID,
341
+ GetDocumentTextBranch,
342
+ GetDocumentTextBranchRead,
343
+ GetDocumentTextBranchNotFound,
344
+ GetDocumentTextBranchTooLarge,
345
+ GetDocumentTextBranchProviderRejected,
346
+ GetDocumentTextBranchInvalidResponse,
347
+ GetDocumentTextBranchDefect,
348
+ GetDocumentTextDefinition,
349
+ GetDocumentTextMetadata,
350
+ CreateDocumentBranch,
351
+ CreateDocumentBranchCreated,
352
+ CreateDocumentBranchProviderRejected,
353
+ CreateDocumentBranchInvalidResponse,
354
+ CreateDocumentBranchUncertain,
355
+ CreateDocumentBranchDefect,
356
+ CreateDocumentDefinition,
357
+ CreateDocumentMetadata,
358
+ ReplaceDocumentTextBranch,
359
+ ReplaceDocumentTextBranchReplaced,
360
+ ReplaceDocumentTextBranchPlaceholderNotFound,
361
+ ReplaceDocumentTextBranchRevisionChanged,
362
+ ReplaceDocumentTextBranchNotFound,
363
+ ReplaceDocumentTextBranchProviderRejected,
364
+ ReplaceDocumentTextBranchInvalidResponse,
365
+ ReplaceDocumentTextBranchDefect,
366
+ ReplaceDocumentTextDefinition,
367
+ ReplaceDocumentTextMetadata,
368
+ AppendTextBranch,
369
+ AppendTextBranchAppended,
370
+ AppendTextBranchRevisionChanged,
371
+ AppendTextBranchNotFound,
372
+ AppendTextBranchProviderRejected,
373
+ AppendTextBranchInvalidResponse,
374
+ AppendTextBranchDefect,
375
+ AppendTextDefinition,
376
+ AppendTextMetadata,
377
+ Connection,
378
+ newConnection,
379
+ newConnectionWithOperations,
380
+ newProjectCredentialProvider
381
+ };