@superdurable/connector-docusign 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,363 @@
1
+ import { RefreshingCredentialProvider, SecretString, Mutation, Query, ConnectionRef } from '@superdurable/connectors-sdk';
2
+ import { z } from 'zod';
3
+
4
+ /** Connector configuration; omitted fields use manifest defaults. */
5
+ interface Config {
6
+ /** DocuSign API account ID that every envelope is sent from, a GUID such as 00000000-0000-0000-0000-000000000000. Find it after signing in at https://apps.docusign.com/admin/apps-and-keys, or https://apps-d.docusign.com/admin/apps-and-keys for the developer environment, under My Account Information > API Account ID. It is not secret. Blank uses the account that DocuSign marks as the authorizing user's default; enter an ID only when that user belongs to several accounts. */
7
+ accountId?: string;
8
+ /** Largest DocuSign API JSON response body, in bytes, that one call reads; a larger envelope or recipient response selects invalidResponse. Enter a positive integer only to raise or lower this safety limit, for example for envelopes with very many recipients. Blank uses the default. */
9
+ maxResponseBytes?: number;
10
+ /** Largest combined PDF, in bytes, that downloadCombinedDocument streams through its SHA-256 digest; a larger document selects tooLarge without reading the rest. Enter a positive integer only when envelopes carry very large documents. Blank uses the default. */
11
+ maxDocumentBytes?: number;
12
+ /** Largest DocuSign Connect request body, in bytes, that the envelopeEventReceived endpoint accepts; a larger body is answered 413 before its HMAC signature is checked. Raise it only when the Connect configuration includes large envelope data such as many recipients or tabs; never include documents. Blank uses the default. */
13
+ connectMaxBodyBytes?: number;
14
+ }
15
+ /** Runtime schema for manifest configuration. */
16
+ declare const ConfigSchema: z.ZodObject<{
17
+ accountId: z.ZodOptional<z.ZodString>;
18
+ maxResponseBytes: z.ZodOptional<z.ZodNumber>;
19
+ maxDocumentBytes: z.ZodOptional<z.ZodNumber>;
20
+ connectMaxBodyBytes: z.ZodOptional<z.ZodNumber>;
21
+ }, z.core.$strip>;
22
+ /** Private connector credentials resolved by the host. */
23
+ interface Credentials {
24
+ /** Selected authorization method. */
25
+ authMethodId?: string;
26
+ /** Secret DocuSign access token produced automatically by authorization; it lasts eight hours and Dex refreshes it before expiry, so never enter it manually. */
27
+ accessToken: SecretString;
28
+ /** Secret DocuSign Connect HMAC key that verifies X-DocuSign-Signature headers on envelopeEventReceived deliveries. Create it after signing in at https://apps.docusign.com/admin/admin-dashboard, or https://apps-d.docusign.com/admin/admin-dashboard for the developer environment, under Integrations > Connect > Connect Keys > Add Secret Key, copy the whole value exactly as shown (an opaque string that DocuSign shows in full only once, and later only its first four characters), and enable Include HMAC Signature on the Connect configuration. To rotate it, add a new key, enter it here, then choose Remove next to the old key: DocuSign signs with every key and one match is enough, so no delivery is refused. Blank is fine for operations only; the Connect endpoint then answers 503 so DocuSign retries. */
29
+ connectHmacKey?: SecretString;
30
+ /** Non-secret integration key of your DocuSign app, a GUID copied after signing in at https://apps.docusign.com/admin/apps-and-keys (Settings > Integrations > Apps and Keys > the app > Integration Key), or from the app in the Developer Console at https://apps.docusign.com/dev-console/integrations; blank means authorization and refresh cannot start. */
31
+ oauthClientId: string;
32
+ /** Secret key of the same DocuSign app, a GUID such as 00000000-0000-0000-0000-000000000000, created under Authentication > Secret Keys > Add Secret Key at https://apps.docusign.com/admin/apps-and-keys and shown only once; Dex stores it only in this credential field, and blank means authorization and refresh cannot start. An app can hold several secret keys, so to rotate or revoke one, add a new key, enter it here, then delete the old key on the same page; DocuSign can take up to five minutes to apply the change. */
33
+ oauthClientSecret: SecretString;
34
+ /** Secret DocuSign refresh token produced automatically by authorization; the extended scope makes every refresh issue a new 30-day token, so never enter it manually, and a blank or rejected token means the connection must be authorized again. */
35
+ refreshToken: SecretString;
36
+ }
37
+ /** Decode private credential fields for the selected authorization method. */
38
+ declare function decodeCredentials(value: unknown): Credentials;
39
+ /** Decode shared credential fields for the selected authorization method. */
40
+ declare function decodeSharedCredentials(value: unknown): Credentials;
41
+ /** Host-owned source of private connector credentials. */
42
+ type CredentialSource = RefreshingCredentialProvider<Credentials>;
43
+ /** TemplateRole assigns one person to a template role. */
44
+ interface TemplateRole {
45
+ /** RoleName is the template's role name, such as Customer, matched as DocuSign matches it. */
46
+ "roleName": string;
47
+ /** Name is the recipient's full name, 1 to 100 characters. */
48
+ "name": string;
49
+ /** Email is the recipient's email address, at most 100 characters. */
50
+ "email": string;
51
+ /** RoutingOrder overrides the role's routing order, 1 to 999; zero keeps the template's order, which
52
+ * decides who is asked to sign first. */
53
+ "routingOrder"?: number | undefined;
54
+ }
55
+ /** EnvelopeCustomField is one envelope text custom field, hidden from recipients, such as a correlation
56
+ * ID that a Connect event carries back. */
57
+ interface EnvelopeCustomField {
58
+ /** Name is the field name, 1 to 50 characters. */
59
+ "name": string;
60
+ /** Value is the field value, at most 100 characters. */
61
+ "value": string;
62
+ }
63
+ /** CreateEnvelopeFromTemplateInput describes one envelope created from a DocuSign server template. */
64
+ interface CreateEnvelopeFromTemplateInput {
65
+ /** TemplateID is the server template's GUID, shown in DocuSign under Templates > the template >
66
+ * Template ID. */
67
+ "templateId": string;
68
+ /** TemplateRoles fills the template's roles by name, 1 to 100 of them. Every role the template
69
+ * requires must be filled. */
70
+ "templateRoles": Array<TemplateRole> | null;
71
+ /** EmailSubject overrides the template's email subject, at most 100 characters; blank keeps it. */
72
+ "emailSubject"?: string | undefined;
73
+ /** EmailBlurb overrides the template's email message, at most 10,000 characters; blank keeps it. */
74
+ "emailBlurb"?: string | undefined;
75
+ /** IsDraft creates the envelope with status created and sends nothing; false sends it at once. */
76
+ "isDraft"?: boolean | undefined;
77
+ /** CustomFields adds hidden text custom fields, at most 10, such as a correlation ID that Connect
78
+ * events return. Names are 1 to 50 characters and unique; dexIdempotencyKey is reserved. */
79
+ "customFields"?: Array<EnvelopeCustomField> | undefined;
80
+ }
81
+ /** CreatedEnvelope identifies the envelope that createEnvelopeFromTemplate created. */
82
+ interface CreatedEnvelope {
83
+ /** EnvelopeID is the new envelope's GUID. */
84
+ "envelopeId": string;
85
+ /** Status is sent, or created for a draft. */
86
+ "status": "completed" | "created" | "declined" | "delivered" | "sent" | "signed" | "voided" | (string & {});
87
+ /** StatusChangedAt is when DocuSign recorded Status, when it said. */
88
+ "statusChangedAt"?: string | null | undefined;
89
+ /** WasRecovered is true when an attempt whose answer was lost created the envelope and this attempt
90
+ * found it by its dexIdempotencyKey custom field instead of creating another. */
91
+ "wasRecovered"?: boolean | undefined;
92
+ }
93
+ /** GetEnvelopeInput names the envelope to read. */
94
+ interface GetEnvelopeInput {
95
+ /** EnvelopeID is the envelope's GUID, such as a createEnvelopeFromTemplate Result's envelopeId. */
96
+ "envelopeId": string;
97
+ }
98
+ /** Envelope is one DocuSign envelope's status and timestamps. Each timestamp is nil until DocuSign
99
+ * records the matching transition. */
100
+ interface Envelope {
101
+ /** EnvelopeID is the envelope's GUID. */
102
+ "envelopeId": string;
103
+ /** Status is DocuSign's current status. */
104
+ "status": "completed" | "created" | "declined" | "delivered" | "sent" | "signed" | "voided" | (string & {});
105
+ /** EmailSubject is the subject of the envelope's email. */
106
+ "emailSubject"?: string | undefined;
107
+ /** CreatedAt is when the envelope was created. */
108
+ "createdAt"?: string | null | undefined;
109
+ /** SentAt is when DocuSign sent the envelope. */
110
+ "sentAt"?: string | null | undefined;
111
+ /** DeliveredAt is when every current recipient had opened it. */
112
+ "deliveredAt"?: string | null | undefined;
113
+ /** CompletedAt is when the last recipient finished. */
114
+ "completedAt"?: string | null | undefined;
115
+ /** DeclinedAt is when a recipient declined. */
116
+ "declinedAt"?: string | null | undefined;
117
+ /** VoidedAt is when the envelope was voided or expired. */
118
+ "voidedAt"?: string | null | undefined;
119
+ /** StatusChangedAt is when Status last changed. */
120
+ "statusChangedAt"?: string | null | undefined;
121
+ /** ExpiresAt is when an unfinished envelope expires and DocuSign voids it. */
122
+ "expiresAt"?: string | null | undefined;
123
+ /** VoidedReason is the void reason the sender gave or DocuSign recorded for an expiry. */
124
+ "voidedReason"?: string | undefined;
125
+ /** CustomFields holds the envelope's text custom fields, including the connector's dexIdempotencyKey. */
126
+ "customFields"?: Array<EnvelopeCustomField> | undefined;
127
+ }
128
+ /** ListEnvelopeRecipientsInput names the envelope whose recipients to list. */
129
+ interface ListEnvelopeRecipientsInput {
130
+ /** EnvelopeID is the envelope's GUID. */
131
+ "envelopeId": string;
132
+ }
133
+ /** Recipient is one envelope recipient's identity, place in the routing order, and progress. Access
134
+ * codes and authentication details are never read. */
135
+ interface Recipient {
136
+ /** RecipientID is the recipient's ID within the envelope, such as 1. */
137
+ "recipientId": string;
138
+ /** Type is the recipient's collection, such as signer or carbonCopy. */
139
+ "type": "agent" | "carbonCopy" | "certifiedDelivery" | "editor" | "inPersonSigner" | "intermediary" | "signer" | "witness" | (string & {});
140
+ /** Name is the recipient's name. */
141
+ "name"?: string | undefined;
142
+ /** Email is the recipient's email address. */
143
+ "email"?: string | undefined;
144
+ /** RoleName is the template role the recipient fills, if any. */
145
+ "roleName"?: string | undefined;
146
+ /** RoutingOrder is the recipient's routing order; recipients with the same order receive it together. */
147
+ "routingOrder": number;
148
+ /** Status is DocuSign's recipient status, such as created, sent, delivered, completed, or declined. */
149
+ "status": string;
150
+ /** SentAt is when DocuSign sent the envelope to this recipient. */
151
+ "sentAt"?: string | null | undefined;
152
+ /** DeliveredAt is when the recipient opened it. */
153
+ "deliveredAt"?: string | null | undefined;
154
+ /** SignedAt is when the recipient finished. */
155
+ "signedAt"?: string | null | undefined;
156
+ /** DeclinedAt is when the recipient declined. */
157
+ "declinedAt"?: string | null | undefined;
158
+ /** DeclinedReason is the reason the recipient gave for declining. */
159
+ "declinedReason"?: string | undefined;
160
+ }
161
+ /** EnvelopeRecipients is one envelope's recipients sorted by routing order and then recipient ID. */
162
+ interface EnvelopeRecipients {
163
+ /** EnvelopeID is the envelope's GUID. */
164
+ "envelopeId": string;
165
+ /** CurrentRoutingOrder is the routing order DocuSign is waiting on; zero when DocuSign did not say. */
166
+ "currentRoutingOrder"?: number | undefined;
167
+ /** Recipients lists every recipient of the types RecipientType names. */
168
+ "recipients": Array<Recipient> | null;
169
+ }
170
+ /** VoidEnvelopeInput names the envelope to void and why. */
171
+ interface VoidEnvelopeInput {
172
+ /** EnvelopeID is the envelope's GUID. */
173
+ "envelopeId": string;
174
+ /** VoidedReason is shown to the recipients, 1 to 200 characters, such as "Signing deadline passed". */
175
+ "voidedReason": string;
176
+ }
177
+ /** VoidedEnvelope is the outcome of voidEnvelope. */
178
+ interface VoidedEnvelope {
179
+ /** EnvelopeID is the envelope's GUID. */
180
+ "envelopeId": string;
181
+ /** WasAlreadyVoided is true when the envelope was voided before this call, such as by an earlier
182
+ * attempt of the same Step, by its sender, or by expiry. */
183
+ "wasAlreadyVoided"?: boolean | undefined;
184
+ /** Status is the envelope's status read back after DocuSign refused the void: voided, or on the
185
+ * notVoidable branch completed, declined, or created. It is empty when this call voided it. */
186
+ "status"?: "completed" | "created" | "declined" | "delivered" | "sent" | "signed" | "voided" | (string & {}) | undefined;
187
+ /** VoidedReason is the reason DocuSign holds for an envelope that was already voided. */
188
+ "voidedReason"?: string | undefined;
189
+ }
190
+ /** DownloadCombinedDocumentInput names the envelope whose documents to download. */
191
+ interface DownloadCombinedDocumentInput {
192
+ /** EnvelopeID is the envelope's GUID, normally of a completed envelope. */
193
+ "envelopeId": string;
194
+ /** IncludeCertificate appends DocuSign's certificate of completion to the combined PDF. */
195
+ "includeCertificate"?: boolean | undefined;
196
+ }
197
+ /** CombinedDocument describes one downloaded combined PDF; it never holds the PDF's bytes. */
198
+ interface CombinedDocument {
199
+ /** EnvelopeID is the envelope's GUID. */
200
+ "envelopeId": string;
201
+ /** ContentType is application/pdf. */
202
+ "contentType": string;
203
+ /** ByteCount is the PDF's size in bytes. */
204
+ "byteCount": number;
205
+ /** SHA256 is the lowercase hexadecimal SHA-256 digest of the PDF's bytes. */
206
+ "sha256": string;
207
+ /** IncludesCertificate is true when the PDF ends with the certificate of completion. */
208
+ "includesCertificate"?: boolean | undefined;
209
+ /** StoredLocation is where the CombinedDocumentStore put the PDF; blank without a store. */
210
+ "storedLocation"?: string | undefined;
211
+ }
212
+ /** Runtime validator for TemplateRole. */
213
+ declare const TemplateRoleSchema: z.ZodObject<{
214
+ roleName: z.ZodString;
215
+ name: z.ZodString;
216
+ email: z.ZodString;
217
+ routingOrder: z.ZodOptional<z.ZodNumber>;
218
+ }, z.core.$strict>;
219
+ /** Runtime validator for EnvelopeCustomField. */
220
+ declare const EnvelopeCustomFieldSchema: z.ZodObject<{
221
+ name: z.ZodString;
222
+ value: z.ZodString;
223
+ }, z.core.$strict>;
224
+ /** Runtime validator for CreateEnvelopeFromTemplateInput. */
225
+ declare const CreateEnvelopeFromTemplateInputSchema: z.ZodObject<{
226
+ templateId: z.ZodString;
227
+ templateRoles: z.ZodNullable<z.ZodArray<z.ZodObject<{
228
+ roleName: z.ZodString;
229
+ name: z.ZodString;
230
+ email: z.ZodString;
231
+ routingOrder: z.ZodOptional<z.ZodNumber>;
232
+ }, z.core.$strict>>>;
233
+ emailSubject: z.ZodOptional<z.ZodString>;
234
+ emailBlurb: z.ZodOptional<z.ZodString>;
235
+ isDraft: z.ZodOptional<z.ZodBoolean>;
236
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
237
+ name: z.ZodString;
238
+ value: z.ZodString;
239
+ }, z.core.$strict>>>;
240
+ }, z.core.$strict>;
241
+ /** Runtime validator for CreatedEnvelope. */
242
+ declare const CreatedEnvelopeSchema: z.ZodObject<{
243
+ envelopeId: z.ZodString;
244
+ status: z.ZodString;
245
+ statusChangedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
246
+ wasRecovered: z.ZodOptional<z.ZodBoolean>;
247
+ }, z.core.$strict>;
248
+ /** Runtime validator for GetEnvelopeInput. */
249
+ declare const GetEnvelopeInputSchema: z.ZodObject<{
250
+ envelopeId: z.ZodString;
251
+ }, z.core.$strict>;
252
+ /** Runtime validator for Envelope. */
253
+ declare const EnvelopeSchema: z.ZodObject<{
254
+ envelopeId: z.ZodString;
255
+ status: z.ZodString;
256
+ emailSubject: z.ZodOptional<z.ZodString>;
257
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
258
+ sentAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
259
+ deliveredAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
260
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
261
+ declinedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
262
+ voidedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
263
+ statusChangedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
264
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
265
+ voidedReason: z.ZodOptional<z.ZodString>;
266
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
267
+ name: z.ZodString;
268
+ value: z.ZodString;
269
+ }, z.core.$strict>>>;
270
+ }, z.core.$strict>;
271
+ /** Runtime validator for ListEnvelopeRecipientsInput. */
272
+ declare const ListEnvelopeRecipientsInputSchema: z.ZodObject<{
273
+ envelopeId: z.ZodString;
274
+ }, z.core.$strict>;
275
+ /** Runtime validator for Recipient. */
276
+ declare const RecipientSchema: z.ZodObject<{
277
+ recipientId: z.ZodString;
278
+ type: z.ZodString;
279
+ name: z.ZodOptional<z.ZodString>;
280
+ email: z.ZodOptional<z.ZodString>;
281
+ roleName: z.ZodOptional<z.ZodString>;
282
+ routingOrder: z.ZodNumber;
283
+ status: z.ZodString;
284
+ sentAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
285
+ deliveredAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
286
+ signedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
287
+ declinedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
288
+ declinedReason: z.ZodOptional<z.ZodString>;
289
+ }, z.core.$strict>;
290
+ /** Runtime validator for EnvelopeRecipients. */
291
+ declare const EnvelopeRecipientsSchema: z.ZodObject<{
292
+ envelopeId: z.ZodString;
293
+ currentRoutingOrder: z.ZodOptional<z.ZodNumber>;
294
+ recipients: z.ZodNullable<z.ZodArray<z.ZodObject<{
295
+ recipientId: z.ZodString;
296
+ type: z.ZodString;
297
+ name: z.ZodOptional<z.ZodString>;
298
+ email: z.ZodOptional<z.ZodString>;
299
+ roleName: z.ZodOptional<z.ZodString>;
300
+ routingOrder: z.ZodNumber;
301
+ status: z.ZodString;
302
+ sentAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
303
+ deliveredAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
304
+ signedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
305
+ declinedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
306
+ declinedReason: z.ZodOptional<z.ZodString>;
307
+ }, z.core.$strict>>>;
308
+ }, z.core.$strict>;
309
+ /** Runtime validator for VoidEnvelopeInput. */
310
+ declare const VoidEnvelopeInputSchema: z.ZodObject<{
311
+ envelopeId: z.ZodString;
312
+ voidedReason: z.ZodString;
313
+ }, z.core.$strict>;
314
+ /** Runtime validator for VoidedEnvelope. */
315
+ declare const VoidedEnvelopeSchema: z.ZodObject<{
316
+ envelopeId: z.ZodString;
317
+ wasAlreadyVoided: z.ZodOptional<z.ZodBoolean>;
318
+ status: z.ZodOptional<z.ZodString>;
319
+ voidedReason: z.ZodOptional<z.ZodString>;
320
+ }, z.core.$strict>;
321
+ /** Runtime validator for DownloadCombinedDocumentInput. */
322
+ declare const DownloadCombinedDocumentInputSchema: z.ZodObject<{
323
+ envelopeId: z.ZodString;
324
+ includeCertificate: z.ZodOptional<z.ZodBoolean>;
325
+ }, z.core.$strict>;
326
+ /** Runtime validator for CombinedDocument. */
327
+ declare const CombinedDocumentSchema: z.ZodObject<{
328
+ envelopeId: z.ZodString;
329
+ contentType: z.ZodString;
330
+ byteCount: z.ZodNumber;
331
+ sha256: z.ZodString;
332
+ includesCertificate: z.ZodOptional<z.ZodBoolean>;
333
+ storedLocation: z.ZodOptional<z.ZodString>;
334
+ }, z.core.$strict>;
335
+
336
+ /** Typed operations supplied by a client or mock. */
337
+ interface Operations {
338
+ /** Invoke createEnvelopeFromTemplate through this connection. */
339
+ createEnvelopeFromTemplate(): Mutation<CreateEnvelopeFromTemplateInput, CreatedEnvelope>;
340
+ /** Invoke getEnvelope through this connection. */
341
+ getEnvelope(): Query<GetEnvelopeInput, Envelope>;
342
+ /** Invoke listEnvelopeRecipients through this connection. */
343
+ listEnvelopeRecipients(): Query<ListEnvelopeRecipientsInput, EnvelopeRecipients>;
344
+ /** Invoke voidEnvelope through this connection. */
345
+ voidEnvelope(): Mutation<VoidEnvelopeInput, VoidedEnvelope>;
346
+ /** Invoke downloadCombinedDocument through this connection. */
347
+ downloadCombinedDocument(): Query<DownloadCombinedDocumentInput, CombinedDocument>;
348
+ }
349
+ /** Named connector connection kept outside Flow state. */
350
+ declare class Connection<BoundOperations = Operations> {
351
+ /** Stable provider and connection name. */
352
+ readonly reference: ConnectionRef;
353
+ /** Bound provider operations. */
354
+ readonly operations: BoundOperations;
355
+ /** Validate a reference and bind operations. */
356
+ constructor(reference: ConnectionRef, operations: BoundOperations);
357
+ }
358
+ /** Bind a client to a named connection. */
359
+ declare function newConnection(client: Operations, reference: ConnectionRef): Connection;
360
+ /** Bind scripted operations to a named connection. */
361
+ declare function newConnectionWithOperations(operations: Operations, reference: ConnectionRef): Connection;
362
+
363
+ export { newConnectionWithOperations as A, type CreateEnvelopeFromTemplateInput as C, type DownloadCombinedDocumentInput as D, type Envelope as E, type GetEnvelopeInput as G, type ListEnvelopeRecipientsInput as L, type Operations as O, type Recipient as R, type TemplateRole as T, type VoidEnvelopeInput as V, type CreatedEnvelope as a, Connection as b, type CombinedDocument as c, type EnvelopeRecipients as d, type VoidedEnvelope as e, type CredentialSource as f, type Config as g, type Credentials as h, CombinedDocumentSchema as i, ConfigSchema as j, CreateEnvelopeFromTemplateInputSchema as k, CreatedEnvelopeSchema as l, DownloadCombinedDocumentInputSchema as m, type EnvelopeCustomField as n, EnvelopeCustomFieldSchema as o, EnvelopeRecipientsSchema as p, EnvelopeSchema as q, GetEnvelopeInputSchema as r, ListEnvelopeRecipientsInputSchema as s, RecipientSchema as t, TemplateRoleSchema as u, VoidEnvelopeInputSchema as v, VoidedEnvelopeSchema as w, decodeCredentials as x, decodeSharedCredentials as y, newConnection as z };