@keystrokehq/docusign 0.0.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.
- package/README.md +248 -0
- package/dist/_official/index.d.mts +3 -0
- package/dist/_official/index.mjs +3 -0
- package/dist/_runtime/index.d.mts +1 -0
- package/dist/_runtime/index.mjs +1 -0
- package/dist/account-custom-fields.d.mts +65 -0
- package/dist/account-custom-fields.mjs +63 -0
- package/dist/account-stamps.d.mts +164 -0
- package/dist/account-stamps.mjs +144 -0
- package/dist/account-tabs.d.mts +90 -0
- package/dist/account-tabs.mjs +80 -0
- package/dist/account.d.mts +233 -0
- package/dist/account.mjs +207 -0
- package/dist/admin.d.mts +18 -0
- package/dist/admin.mjs +20 -0
- package/dist/auth.d.mts +37 -0
- package/dist/auth.mjs +53 -0
- package/dist/bcc-archive.d.mts +64 -0
- package/dist/bcc-archive.mjs +70 -0
- package/dist/billing.d.mts +217 -0
- package/dist/billing.mjs +208 -0
- package/dist/brands.d.mts +192 -0
- package/dist/brands.mjs +157 -0
- package/dist/bulk-send.d.mts +137 -0
- package/dist/bulk-send.mjs +115 -0
- package/dist/chunked-uploads.d.mts +78 -0
- package/dist/chunked-uploads.mjs +74 -0
- package/dist/click.d.mts +18 -0
- package/dist/click.mjs +20 -0
- package/dist/client.d.mts +47 -0
- package/dist/client.mjs +286 -0
- package/dist/clm.d.mts +18 -0
- package/dist/clm.mjs +20 -0
- package/dist/cloud-storage.d.mts +122 -0
- package/dist/cloud-storage.mjs +115 -0
- package/dist/connect.d.mts +252 -0
- package/dist/connect.mjs +217 -0
- package/dist/connection.d.mts +2 -0
- package/dist/connection.mjs +3 -0
- package/dist/contacts.d.mts +80 -0
- package/dist/contacts.mjs +79 -0
- package/dist/enote.d.mts +44 -0
- package/dist/enote.mjs +45 -0
- package/dist/envelope-attachments.d.mts +86 -0
- package/dist/envelope-attachments.mjs +76 -0
- package/dist/envelope-custom-fields.d.mts +166 -0
- package/dist/envelope-custom-fields.mjs +92 -0
- package/dist/envelope-documents.d.mts +271 -0
- package/dist/envelope-documents.mjs +219 -0
- package/dist/envelope-email.d.mts +65 -0
- package/dist/envelope-email.mjs +60 -0
- package/dist/envelope-lock.d.mts +65 -0
- package/dist/envelope-lock.mjs +60 -0
- package/dist/envelope-logs.d.mts +126 -0
- package/dist/envelope-logs.mjs +126 -0
- package/dist/envelope-notifications.d.mts +47 -0
- package/dist/envelope-notifications.mjs +44 -0
- package/dist/envelope-recipients.d.mts +171 -0
- package/dist/envelope-recipients.mjs +136 -0
- package/dist/envelope-tabs.d.mts +52 -0
- package/dist/envelope-tabs.mjs +49 -0
- package/dist/envelope-views.d.mts +99 -0
- package/dist/envelope-views.mjs +88 -0
- package/dist/envelope-workflow.d.mts +208 -0
- package/dist/envelope-workflow.mjs +176 -0
- package/dist/envelopes.d.mts +430 -0
- package/dist/envelopes.mjs +190 -0
- package/dist/errors.d.mts +48 -0
- package/dist/errors.mjs +76 -0
- package/dist/events.d.mts +192 -0
- package/dist/events.mjs +146 -0
- package/dist/factory-wViQTjgN.mjs +8 -0
- package/dist/groups.d.mts +191 -0
- package/dist/groups.mjs +146 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +1 -0
- package/dist/integration-CmRztL9R.mjs +229 -0
- package/dist/integration-DqwHRkRh.d.mts +73 -0
- package/dist/messaging.d.mts +1 -0
- package/dist/messaging.mjs +1 -0
- package/dist/monitor.d.mts +18 -0
- package/dist/monitor.mjs +20 -0
- package/dist/notary.d.mts +129 -0
- package/dist/notary.mjs +122 -0
- package/dist/operation-helpers-BMTArRh9.mjs +102 -0
- package/dist/permission-profiles.d.mts +78 -0
- package/dist/permission-profiles.mjs +70 -0
- package/dist/power-forms.d.mts +51 -0
- package/dist/power-forms.mjs +62 -0
- package/dist/provider-app-CWp1SuI4.d.mts +88 -0
- package/dist/rooms.d.mts +18 -0
- package/dist/rooms.mjs +28 -0
- package/dist/schemas/index.d.mts +581 -0
- package/dist/schemas/index.mjs +309 -0
- package/dist/shared-DTUCJayR.mjs +27 -0
- package/dist/signing-groups.d.mts +139 -0
- package/dist/signing-groups.mjs +117 -0
- package/dist/template-custom-fields.d.mts +199 -0
- package/dist/template-custom-fields.mjs +107 -0
- package/dist/template-documents.d.mts +132 -0
- package/dist/template-documents.mjs +109 -0
- package/dist/template-lock.d.mts +65 -0
- package/dist/template-lock.mjs +60 -0
- package/dist/template-sharing.d.mts +129 -0
- package/dist/template-sharing.mjs +108 -0
- package/dist/template-workflow.d.mts +184 -0
- package/dist/template-workflow.mjs +152 -0
- package/dist/templates.d.mts +158 -0
- package/dist/templates.mjs +110 -0
- package/dist/triggers.d.mts +43 -0
- package/dist/triggers.mjs +91 -0
- package/dist/user-authorizations.d.mts +129 -0
- package/dist/user-authorizations.mjs +133 -0
- package/dist/user-custom-settings.d.mts +81 -0
- package/dist/user-custom-settings.mjs +69 -0
- package/dist/user-profile.d.mts +109 -0
- package/dist/user-profile.mjs +106 -0
- package/dist/user-signatures.d.mts +208 -0
- package/dist/user-signatures.mjs +180 -0
- package/dist/users.d.mts +128 -0
- package/dist/users.mjs +98 -0
- package/dist/verification.d.mts +19 -0
- package/dist/verification.mjs +59 -0
- package/dist/workspaces.d.mts +173 -0
- package/dist/workspaces.mjs +143 -0
- package/package.json +291 -0
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
+
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
+
|
|
5
|
+
//#region src/envelope-documents.d.ts
|
|
6
|
+
declare const retrieveEnvelopeDocuments: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
+
envelopeId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
+
envelopeDocuments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
documentId: z.ZodString;
|
|
11
|
+
name: z.ZodOptional<z.ZodString>;
|
|
12
|
+
type: z.ZodOptional<z.ZodString>;
|
|
13
|
+
uri: z.ZodOptional<z.ZodString>;
|
|
14
|
+
order: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
16
|
+
envelopeId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
18
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
19
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
20
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
21
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
22
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
23
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
24
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
25
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
26
|
+
declare const retrieveEnvelopeDocumentFields: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
27
|
+
envelopeId: z.ZodString;
|
|
28
|
+
documentId: z.ZodString;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
31
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
32
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
33
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
34
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
35
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
36
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
37
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
38
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
39
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
40
|
+
declare const getEnvelopeDocumentFields: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
41
|
+
envelopeId: z.ZodString;
|
|
42
|
+
documentId: z.ZodString;
|
|
43
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
45
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
46
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
47
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
48
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
49
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
50
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
51
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
52
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
53
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
54
|
+
declare const createCustomDocumentFieldsInEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
55
|
+
envelopeId: z.ZodString;
|
|
56
|
+
documentId: z.ZodString;
|
|
57
|
+
documentFields: z.ZodArray<z.ZodObject<{
|
|
58
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
59
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
62
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
63
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
64
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
65
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
66
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
67
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
68
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
69
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
70
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
71
|
+
declare const updateCustomFieldsInEnvelopeDocument: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
72
|
+
envelopeId: z.ZodString;
|
|
73
|
+
documentId: z.ZodString;
|
|
74
|
+
documentFields: z.ZodArray<z.ZodObject<{
|
|
75
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
76
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
79
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
80
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
81
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
82
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
83
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
84
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
85
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
86
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
87
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
88
|
+
declare const deleteCustomDocumentFields: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
89
|
+
envelopeId: z.ZodString;
|
|
90
|
+
documentId: z.ZodString;
|
|
91
|
+
documentFields: z.ZodArray<z.ZodObject<{
|
|
92
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
93
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
94
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
+
success: z.ZodBoolean;
|
|
96
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
97
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
98
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
99
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
100
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
101
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
102
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
103
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
104
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
105
|
+
declare const getPageImageFromEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
106
|
+
envelopeId: z.ZodString;
|
|
107
|
+
documentId: z.ZodString;
|
|
108
|
+
pageNumber: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
110
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
111
|
+
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
112
|
+
status: z.ZodNumber;
|
|
113
|
+
body: z.ZodString;
|
|
114
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
115
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
116
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
117
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
118
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
119
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
120
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
121
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
122
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
123
|
+
declare const rotatePageImageForEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
124
|
+
envelopeId: z.ZodString;
|
|
125
|
+
documentId: z.ZodString;
|
|
126
|
+
pageNumber: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
127
|
+
rotate: z.ZodEnum<{
|
|
128
|
+
left: "left";
|
|
129
|
+
right: "right";
|
|
130
|
+
}>;
|
|
131
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
132
|
+
success: z.ZodBoolean;
|
|
133
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
134
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
135
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
136
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
137
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
138
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
139
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
140
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
141
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
142
|
+
declare const deletePageFromDocumentInEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
143
|
+
envelopeId: z.ZodString;
|
|
144
|
+
documentId: z.ZodString;
|
|
145
|
+
pageNumber: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
+
success: z.ZodBoolean;
|
|
148
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
149
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
150
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
151
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
152
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
153
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
154
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
155
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
156
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
157
|
+
declare const returnsDocumentPageImagesBasedOnInput: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
158
|
+
envelopeId: z.ZodString;
|
|
159
|
+
documentId: z.ZodString;
|
|
160
|
+
dpi: z.ZodOptional<z.ZodNumber>;
|
|
161
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
162
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
startPosition: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
165
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
166
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
167
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
168
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
169
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
170
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
171
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
172
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
173
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
174
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
175
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
176
|
+
declare const createDocumentResponsiveHtmlPreview: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
177
|
+
envelopeId: z.ZodString;
|
|
178
|
+
documentId: z.ZodString;
|
|
179
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
180
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
181
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
182
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
183
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
184
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
185
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
186
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
187
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
188
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
189
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
190
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
191
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
192
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
193
|
+
declare const createPreviewOfResponsiveHtml: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
194
|
+
options: z.ZodObject<{
|
|
195
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
196
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
197
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
198
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
199
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
200
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
201
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
202
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
203
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
204
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
205
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
206
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
207
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
208
|
+
declare const createPreviewOfResponsiveHtmlInEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
209
|
+
envelopeId: z.ZodString;
|
|
210
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
211
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
212
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
214
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
215
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
216
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
217
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
218
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
219
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
220
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
221
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
222
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
223
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
224
|
+
declare const addTemplatesToDocumentInEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
225
|
+
envelopeId: z.ZodString;
|
|
226
|
+
documentId: z.ZodString;
|
|
227
|
+
documentTemplates: z.ZodArray<z.ZodObject<{
|
|
228
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
229
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
230
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
231
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
232
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
233
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
234
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
235
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
236
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
237
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
238
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
239
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
240
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
241
|
+
declare const deleteTemplateFromEnvelopeDocument: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
242
|
+
envelopeId: z.ZodString;
|
|
243
|
+
documentId: z.ZodString;
|
|
244
|
+
templateId: z.ZodString;
|
|
245
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
246
|
+
success: z.ZodBoolean;
|
|
247
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
248
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
249
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
250
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
251
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
252
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
253
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
254
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
255
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
256
|
+
declare const getTemplatesForEnvelopeDocument: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
257
|
+
envelopeId: z.ZodString;
|
|
258
|
+
documentId: z.ZodString;
|
|
259
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
260
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
261
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
262
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
263
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
264
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
265
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
266
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
267
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
268
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
269
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
270
|
+
//#endregion
|
|
271
|
+
export { addTemplatesToDocumentInEnvelope, createCustomDocumentFieldsInEnvelope, createDocumentResponsiveHtmlPreview, createPreviewOfResponsiveHtml, createPreviewOfResponsiveHtmlInEnvelope, deleteCustomDocumentFields, deletePageFromDocumentInEnvelope, deleteTemplateFromEnvelopeDocument, getEnvelopeDocumentFields, getPageImageFromEnvelope, getTemplatesForEnvelopeDocument, retrieveEnvelopeDocumentFields, retrieveEnvelopeDocuments, returnsDocumentPageImagesBasedOnInput, rotatePageImageForEnvelope, updateCustomFieldsInEnvelopeDocument };
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { docusignDocumentIdSchema, docusignDocumentListSchema, docusignEnvelopeIdSchema, docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
|
|
2
|
+
import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-BMTArRh9.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/envelope-documents.ts
|
|
6
|
+
/**
|
|
7
|
+
* Envelope documents, pages, images, document custom fields.
|
|
8
|
+
* Covers PLAN.md § 6.2.
|
|
9
|
+
*/
|
|
10
|
+
const envId = z.object({ envelopeId: docusignEnvelopeIdSchema });
|
|
11
|
+
const envDocIds = envId.extend({ documentId: docusignDocumentIdSchema });
|
|
12
|
+
const binaryResponseSchema = docusignLooseObjectSchema({
|
|
13
|
+
contentType: z.string().optional(),
|
|
14
|
+
contentDisposition: z.string().optional(),
|
|
15
|
+
status: z.number(),
|
|
16
|
+
body: z.string()
|
|
17
|
+
});
|
|
18
|
+
const retrieveEnvelopeDocuments = defineRestOperation({
|
|
19
|
+
id: "retrieve_envelope_documents",
|
|
20
|
+
slug: "DOCUSIGN_RETRIEVE_ENVELOPE_DOCUMENTS",
|
|
21
|
+
name: "Retrieve Envelope Documents",
|
|
22
|
+
description: "List the documents attached to an envelope.",
|
|
23
|
+
method: "GET",
|
|
24
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents`,
|
|
25
|
+
input: envId,
|
|
26
|
+
output: docusignDocumentListSchema
|
|
27
|
+
});
|
|
28
|
+
const retrieveEnvelopeDocumentFields = defineRestOperation({
|
|
29
|
+
id: "retrieve_envelope_document_fields",
|
|
30
|
+
slug: "DOCUSIGN_RETRIEVE_ENVELOPE_DOCUMENT_FIELDS",
|
|
31
|
+
name: "Retrieve Envelope Document Fields",
|
|
32
|
+
description: "Retrieve the custom fields attached to a specific envelope document.",
|
|
33
|
+
method: "GET",
|
|
34
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
|
|
35
|
+
input: envDocIds,
|
|
36
|
+
output: docusignGenericObjectSchema
|
|
37
|
+
});
|
|
38
|
+
const getEnvelopeDocumentFields = defineRestOperation({
|
|
39
|
+
id: "get_envelope_document_fields",
|
|
40
|
+
slug: "DOCUSIGN_GET_ENVELOPE_DOCUMENT_FIELDS",
|
|
41
|
+
name: "Get Envelope Document Fields",
|
|
42
|
+
description: "Get document-level fields (form-fill fields) for an envelope document.",
|
|
43
|
+
method: "GET",
|
|
44
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
|
|
45
|
+
input: envDocIds,
|
|
46
|
+
output: docusignGenericObjectSchema
|
|
47
|
+
});
|
|
48
|
+
const createCustomDocumentFieldsInEnvelope = defineRestOperation({
|
|
49
|
+
id: "create_custom_document_fields_in_envelope",
|
|
50
|
+
slug: "DOCUSIGN_CREATE_CUSTOM_DOCUMENT_FIELDS_IN_ENVELOPE",
|
|
51
|
+
name: "Create Custom Document Fields In Envelope",
|
|
52
|
+
description: "Attach new custom fields to a specific document on an envelope.",
|
|
53
|
+
needsApproval: true,
|
|
54
|
+
method: "POST",
|
|
55
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
|
|
56
|
+
input: envDocIds.extend({ documentFields: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
57
|
+
output: docusignGenericObjectSchema,
|
|
58
|
+
body: (input) => ({ documentFields: input.documentFields })
|
|
59
|
+
});
|
|
60
|
+
const updateCustomFieldsInEnvelopeDocument = defineRestOperation({
|
|
61
|
+
id: "update_custom_fields_in_envelope_document",
|
|
62
|
+
slug: "DOCUSIGN_UPDATE_CUSTOM_FIELDS_IN_ENVELOPE_DOCUMENT",
|
|
63
|
+
name: "Update Custom Fields In Envelope Document",
|
|
64
|
+
description: "Update existing custom fields on an envelope document.",
|
|
65
|
+
needsApproval: true,
|
|
66
|
+
method: "PUT",
|
|
67
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
|
|
68
|
+
input: envDocIds.extend({ documentFields: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
69
|
+
output: docusignGenericObjectSchema,
|
|
70
|
+
body: (input) => ({ documentFields: input.documentFields })
|
|
71
|
+
});
|
|
72
|
+
const deleteCustomDocumentFields = defineRestOperation({
|
|
73
|
+
id: "delete_custom_document_fields",
|
|
74
|
+
slug: "DOCUSIGN_DELETE_CUSTOM_DOCUMENT_FIELDS",
|
|
75
|
+
name: "Delete Custom Document Fields",
|
|
76
|
+
description: "Delete custom fields attached to an envelope document.",
|
|
77
|
+
needsApproval: true,
|
|
78
|
+
method: "DELETE",
|
|
79
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
|
|
80
|
+
input: envDocIds.extend({ documentFields: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
81
|
+
output: docusignSuccessSchema,
|
|
82
|
+
body: (input) => ({ documentFields: input.documentFields }),
|
|
83
|
+
transformResponse: () => ({ success: true })
|
|
84
|
+
});
|
|
85
|
+
const getPageImageFromEnvelope = defineBinaryOperation({
|
|
86
|
+
id: "get_page_image_from_envelope",
|
|
87
|
+
slug: "DOCUSIGN_GET_PAGE_IMAGE_FROM_ENVELOPE",
|
|
88
|
+
name: "Get Page Image From Envelope",
|
|
89
|
+
description: "Download a specific page image from an envelope document.",
|
|
90
|
+
method: "GET",
|
|
91
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages/${ctx.encode(String(ctx.input.pageNumber))}/page_image`,
|
|
92
|
+
input: envDocIds.extend({ pageNumber: z.union([z.number().int().positive(), z.string()]) }),
|
|
93
|
+
accept: "image/png",
|
|
94
|
+
output: binaryResponseSchema
|
|
95
|
+
});
|
|
96
|
+
const rotatePageImageForEnvelope = defineRestOperation({
|
|
97
|
+
id: "rotate_page_image_for_envelope",
|
|
98
|
+
slug: "DOCUSIGN_ROTATE_PAGE_IMAGE_FOR_ENVELOPE",
|
|
99
|
+
name: "Rotate Page Image For Envelope",
|
|
100
|
+
description: "Rotate a specific page image in an envelope document.",
|
|
101
|
+
needsApproval: true,
|
|
102
|
+
method: "PUT",
|
|
103
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages/${ctx.encode(String(ctx.input.pageNumber))}/page_image`,
|
|
104
|
+
input: envDocIds.extend({
|
|
105
|
+
pageNumber: z.union([z.number().int().positive(), z.string()]),
|
|
106
|
+
rotate: z.enum(["left", "right"])
|
|
107
|
+
}),
|
|
108
|
+
output: docusignSuccessSchema,
|
|
109
|
+
body: (input) => ({ rotate: input.rotate }),
|
|
110
|
+
transformResponse: () => ({ success: true })
|
|
111
|
+
});
|
|
112
|
+
const deletePageFromDocumentInEnvelope = defineRestOperation({
|
|
113
|
+
id: "delete_page_from_document_in_envelope",
|
|
114
|
+
slug: "DOCUSIGN_DELETE_PAGE_FROM_DOCUMENT_IN_ENVELOPE",
|
|
115
|
+
name: "Delete Page From Document In Envelope",
|
|
116
|
+
description: "Delete a specific page from a document on an envelope.",
|
|
117
|
+
needsApproval: true,
|
|
118
|
+
method: "DELETE",
|
|
119
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages/${ctx.encode(String(ctx.input.pageNumber))}`,
|
|
120
|
+
input: envDocIds.extend({ pageNumber: z.union([z.number().int().positive(), z.string()]) }),
|
|
121
|
+
output: docusignSuccessSchema,
|
|
122
|
+
transformResponse: () => ({ success: true })
|
|
123
|
+
});
|
|
124
|
+
const returnsDocumentPageImagesBasedOnInput = defineRestOperation({
|
|
125
|
+
id: "returns_document_page_images_based_on_input",
|
|
126
|
+
slug: "DOCUSIGN_RETURNS_DOCUMENT_PAGE_IMAGES_BASED_ON_INPUT",
|
|
127
|
+
name: "Return Document Page Images",
|
|
128
|
+
description: "List document page images based on query filters (dpi, max_width, etc.).",
|
|
129
|
+
method: "GET",
|
|
130
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages`,
|
|
131
|
+
input: envDocIds.extend({
|
|
132
|
+
dpi: z.number().int().positive().optional(),
|
|
133
|
+
maxHeight: z.number().int().positive().optional(),
|
|
134
|
+
maxWidth: z.number().int().positive().optional(),
|
|
135
|
+
startPosition: z.number().int().nonnegative().optional(),
|
|
136
|
+
count: z.number().int().positive().optional()
|
|
137
|
+
}),
|
|
138
|
+
output: docusignGenericObjectSchema,
|
|
139
|
+
query: (input) => ({
|
|
140
|
+
dpi: input.dpi,
|
|
141
|
+
max_height: input.maxHeight,
|
|
142
|
+
max_width: input.maxWidth,
|
|
143
|
+
start_position: input.startPosition,
|
|
144
|
+
count: input.count
|
|
145
|
+
})
|
|
146
|
+
});
|
|
147
|
+
const createDocumentResponsiveHtmlPreview = defineRestOperation({
|
|
148
|
+
id: "create_document_responsive_html_preview",
|
|
149
|
+
slug: "DOCUSIGN_CREATE_DOCUMENT_RESPONSIVE_HTML_PREVIEW",
|
|
150
|
+
name: "Create Document Responsive HTML Preview",
|
|
151
|
+
description: "Create a responsive-HTML preview for an envelope document.",
|
|
152
|
+
needsApproval: true,
|
|
153
|
+
method: "POST",
|
|
154
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/responsive_html_preview`,
|
|
155
|
+
input: envDocIds.extend({ options: docusignLooseObjectSchema().optional() }),
|
|
156
|
+
output: docusignGenericObjectSchema,
|
|
157
|
+
body: (input) => input.options ?? {}
|
|
158
|
+
});
|
|
159
|
+
const createPreviewOfResponsiveHtml = defineRestOperation({
|
|
160
|
+
id: "create_preview_of_responsive_html",
|
|
161
|
+
slug: "DOCUSIGN_CREATE_PREVIEW_OF_RESPONSIVE_HTML",
|
|
162
|
+
name: "Create Preview Of Responsive HTML",
|
|
163
|
+
description: "Create a responsive-HTML preview from raw document input.",
|
|
164
|
+
needsApproval: true,
|
|
165
|
+
method: "POST",
|
|
166
|
+
path: "/responsive_html_preview",
|
|
167
|
+
input: z.object({ options: docusignLooseObjectSchema() }),
|
|
168
|
+
output: docusignGenericObjectSchema,
|
|
169
|
+
body: (input) => input.options
|
|
170
|
+
});
|
|
171
|
+
const createPreviewOfResponsiveHtmlInEnvelope = defineRestOperation({
|
|
172
|
+
id: "create_preview_of_responsive_html_in_envelope",
|
|
173
|
+
slug: "DOCUSIGN_CREATE_PREVIEW_OF_RESPONSIVE_HTML_IN_ENVELOPE",
|
|
174
|
+
name: "Create Preview Of Responsive HTML In Envelope",
|
|
175
|
+
description: "Create a responsive-HTML preview scoped to a specific envelope.",
|
|
176
|
+
needsApproval: true,
|
|
177
|
+
method: "POST",
|
|
178
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/responsive_html_preview`,
|
|
179
|
+
input: envId.extend({ options: docusignLooseObjectSchema().optional() }),
|
|
180
|
+
output: docusignGenericObjectSchema,
|
|
181
|
+
body: (input) => input.options ?? {}
|
|
182
|
+
});
|
|
183
|
+
const addTemplatesToDocumentInEnvelope = defineRestOperation({
|
|
184
|
+
id: "add_templates_to_document_in_envelope",
|
|
185
|
+
slug: "DOCUSIGN_ADD_TEMPLATES_TO_DOCUMENT_IN_ENVELOPE",
|
|
186
|
+
name: "Add Templates To Document In Envelope",
|
|
187
|
+
description: "Apply existing DocuSign templates to a document already on an envelope.",
|
|
188
|
+
needsApproval: true,
|
|
189
|
+
method: "POST",
|
|
190
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/templates`,
|
|
191
|
+
input: envDocIds.extend({ documentTemplates: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
192
|
+
output: docusignGenericObjectSchema,
|
|
193
|
+
body: (input) => ({ documentTemplates: input.documentTemplates })
|
|
194
|
+
});
|
|
195
|
+
const deleteTemplateFromEnvelopeDocument = defineRestOperation({
|
|
196
|
+
id: "delete_template_from_envelope_document",
|
|
197
|
+
slug: "DOCUSIGN_DELETE_TEMPLATE_FROM_ENVELOPE_DOCUMENT",
|
|
198
|
+
name: "Delete Template From Envelope Document",
|
|
199
|
+
description: "Remove a template binding from an envelope document.",
|
|
200
|
+
needsApproval: true,
|
|
201
|
+
method: "DELETE",
|
|
202
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/templates/${ctx.encode(String(ctx.input.templateId))}`,
|
|
203
|
+
input: envDocIds.extend({ templateId: z.string().min(1) }),
|
|
204
|
+
output: docusignSuccessSchema,
|
|
205
|
+
transformResponse: () => ({ success: true })
|
|
206
|
+
});
|
|
207
|
+
const getTemplatesForEnvelopeDocument = defineRestOperation({
|
|
208
|
+
id: "get_templates_for_envelope_document",
|
|
209
|
+
slug: "DOCUSIGN_GET_TEMPLATES_FOR_ENVELOPE_DOCUMENT",
|
|
210
|
+
name: "Get Templates For Envelope Document",
|
|
211
|
+
description: "List template bindings on an envelope document.",
|
|
212
|
+
method: "GET",
|
|
213
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/templates`,
|
|
214
|
+
input: envDocIds,
|
|
215
|
+
output: docusignGenericObjectSchema
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
//#endregion
|
|
219
|
+
export { addTemplatesToDocumentInEnvelope, createCustomDocumentFieldsInEnvelope, createDocumentResponsiveHtmlPreview, createPreviewOfResponsiveHtml, createPreviewOfResponsiveHtmlInEnvelope, deleteCustomDocumentFields, deletePageFromDocumentInEnvelope, deleteTemplateFromEnvelopeDocument, getEnvelopeDocumentFields, getPageImageFromEnvelope, getTemplatesForEnvelopeDocument, retrieveEnvelopeDocumentFields, retrieveEnvelopeDocuments, returnsDocumentPageImagesBasedOnInput, rotatePageImageForEnvelope, updateCustomFieldsInEnvelopeDocument };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
+
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
+
|
|
5
|
+
//#region src/envelope-email.d.ts
|
|
6
|
+
declare const addEmailOverridesToEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
+
envelopeId: z.ZodString;
|
|
8
|
+
emailSettings: z.ZodObject<{
|
|
9
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
10
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
13
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
14
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
15
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
16
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
17
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
18
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
19
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
20
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
21
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
22
|
+
declare const retrieveEnvelopeEmailOverrides: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
23
|
+
envelopeId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
26
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
27
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
28
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
29
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
30
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
31
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
32
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
33
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
34
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
35
|
+
declare const updateEnvelopeEmailSettings: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
36
|
+
envelopeId: z.ZodString;
|
|
37
|
+
emailSettings: z.ZodObject<{
|
|
38
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
39
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
42
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
43
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
44
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
45
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
46
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
47
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
48
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
49
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
50
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
51
|
+
declare const deleteEnvelopeEmailSettings: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
52
|
+
envelopeId: z.ZodString;
|
|
53
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
+
success: z.ZodBoolean;
|
|
55
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
56
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
57
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
58
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
59
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
60
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
61
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
62
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
63
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
64
|
+
//#endregion
|
|
65
|
+
export { addEmailOverridesToEnvelope, deleteEnvelopeEmailSettings, retrieveEnvelopeEmailOverrides, updateEnvelopeEmailSettings };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { t as encodeDocusignPathSegment } from "./shared-DTUCJayR.mjs";
|
|
2
|
+
import { docusignEnvelopeIdSchema, docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
|
|
3
|
+
import { r as defineRestOperation } from "./operation-helpers-BMTArRh9.mjs";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
|
|
6
|
+
//#region src/envelope-email.ts
|
|
7
|
+
/**
|
|
8
|
+
* Envelope email overrides. Covers PLAN.md § 6.9 (email half).
|
|
9
|
+
*/
|
|
10
|
+
const envId = z.object({ envelopeId: docusignEnvelopeIdSchema });
|
|
11
|
+
const emailSettingsPath = (envelopeId) => `/envelopes/${encodeDocusignPathSegment(String(envelopeId))}/email_settings`;
|
|
12
|
+
const addEmailOverridesToEnvelope = defineRestOperation({
|
|
13
|
+
id: "add_email_overrides_to_envelope",
|
|
14
|
+
slug: "DOCUSIGN_ADD_EMAIL_OVERRIDES_TO_ENVELOPE",
|
|
15
|
+
name: "Add Email Overrides To Envelope",
|
|
16
|
+
description: "Attach per-envelope email setting overrides.",
|
|
17
|
+
needsApproval: true,
|
|
18
|
+
method: "POST",
|
|
19
|
+
path: (ctx) => emailSettingsPath(ctx.input.envelopeId),
|
|
20
|
+
input: envId.extend({ emailSettings: docusignLooseObjectSchema() }),
|
|
21
|
+
output: docusignGenericObjectSchema,
|
|
22
|
+
body: (input) => input.emailSettings
|
|
23
|
+
});
|
|
24
|
+
const retrieveEnvelopeEmailOverrides = defineRestOperation({
|
|
25
|
+
id: "retrieve_envelope_email_overrides",
|
|
26
|
+
slug: "DOCUSIGN_RETRIEVE_ENVELOPE_EMAIL_OVERRIDES",
|
|
27
|
+
name: "Retrieve Envelope Email Overrides",
|
|
28
|
+
description: "Retrieve the email-setting overrides on an envelope.",
|
|
29
|
+
method: "GET",
|
|
30
|
+
path: (ctx) => emailSettingsPath(ctx.input.envelopeId),
|
|
31
|
+
input: envId,
|
|
32
|
+
output: docusignGenericObjectSchema
|
|
33
|
+
});
|
|
34
|
+
const updateEnvelopeEmailSettings = defineRestOperation({
|
|
35
|
+
id: "update_envelope_email_settings",
|
|
36
|
+
slug: "DOCUSIGN_UPDATE_ENVELOPE_EMAIL_SETTINGS",
|
|
37
|
+
name: "Update Envelope Email Settings",
|
|
38
|
+
description: "Update the email settings on an envelope.",
|
|
39
|
+
needsApproval: true,
|
|
40
|
+
method: "PUT",
|
|
41
|
+
path: (ctx) => emailSettingsPath(ctx.input.envelopeId),
|
|
42
|
+
input: envId.extend({ emailSettings: docusignLooseObjectSchema() }),
|
|
43
|
+
output: docusignGenericObjectSchema,
|
|
44
|
+
body: (input) => input.emailSettings
|
|
45
|
+
});
|
|
46
|
+
const deleteEnvelopeEmailSettings = defineRestOperation({
|
|
47
|
+
id: "delete_envelope_email_settings",
|
|
48
|
+
slug: "DOCUSIGN_DELETE_ENVELOPE_EMAIL_SETTINGS",
|
|
49
|
+
name: "Delete Envelope Email Settings",
|
|
50
|
+
description: "Remove the per-envelope email setting overrides.",
|
|
51
|
+
needsApproval: true,
|
|
52
|
+
method: "DELETE",
|
|
53
|
+
path: (ctx) => emailSettingsPath(ctx.input.envelopeId),
|
|
54
|
+
input: envId,
|
|
55
|
+
output: docusignSuccessSchema,
|
|
56
|
+
transformResponse: () => ({ success: true })
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
export { addEmailOverridesToEnvelope, deleteEnvelopeEmailSettings, retrieveEnvelopeEmailOverrides, updateEnvelopeEmailSettings };
|