@keystrokehq/docusign 0.0.11 → 0.0.16-integration-id-canonicalization.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.
Files changed (130) hide show
  1. package/README.md +3 -2
  2. package/dist/credential-sets/index.d.mts +2 -0
  3. package/dist/credential-sets/index.mjs +4 -0
  4. package/dist/docusign-jwt.credential-set-B0sXS-5i.mjs +39 -0
  5. package/dist/docusign-jwt.credential-set-Bz99DTgx.d.mts +90 -0
  6. package/dist/docusign.credential-set-DRhK9ICD.mjs +183 -0
  7. package/dist/index.d.mts +4 -1
  8. package/dist/index.mjs +6 -1
  9. package/dist/operations/index.d.mts +2 -0
  10. package/dist/operations/index.mjs +3 -0
  11. package/dist/void-envelope.operation-Bim49UXq.mjs +8192 -0
  12. package/dist/void-envelope.operation-D-onxqe_.d.mts +18203 -0
  13. package/package.json +9 -225
  14. package/dist/_official/index.d.mts +0 -89
  15. package/dist/_official/index.mjs +0 -3
  16. package/dist/_runtime/index.d.mts +0 -1
  17. package/dist/_runtime/index.mjs +0 -1
  18. package/dist/account-custom-fields.d.mts +0 -65
  19. package/dist/account-custom-fields.mjs +0 -63
  20. package/dist/account-stamps.d.mts +0 -164
  21. package/dist/account-stamps.mjs +0 -144
  22. package/dist/account-tabs.d.mts +0 -90
  23. package/dist/account-tabs.mjs +0 -80
  24. package/dist/account.d.mts +0 -233
  25. package/dist/account.mjs +0 -207
  26. package/dist/admin.d.mts +0 -18
  27. package/dist/admin.mjs +0 -20
  28. package/dist/auth.d.mts +0 -37
  29. package/dist/auth.mjs +0 -53
  30. package/dist/bcc-archive.d.mts +0 -64
  31. package/dist/bcc-archive.mjs +0 -70
  32. package/dist/billing.d.mts +0 -217
  33. package/dist/billing.mjs +0 -208
  34. package/dist/brands.d.mts +0 -192
  35. package/dist/brands.mjs +0 -157
  36. package/dist/bulk-send.d.mts +0 -137
  37. package/dist/bulk-send.mjs +0 -115
  38. package/dist/chunked-uploads.d.mts +0 -78
  39. package/dist/chunked-uploads.mjs +0 -74
  40. package/dist/click.d.mts +0 -18
  41. package/dist/click.mjs +0 -20
  42. package/dist/client.d.mts +0 -47
  43. package/dist/client.mjs +0 -286
  44. package/dist/clm.d.mts +0 -18
  45. package/dist/clm.mjs +0 -20
  46. package/dist/cloud-storage.d.mts +0 -122
  47. package/dist/cloud-storage.mjs +0 -115
  48. package/dist/connect.d.mts +0 -252
  49. package/dist/connect.mjs +0 -217
  50. package/dist/connection.d.mts +0 -2
  51. package/dist/connection.mjs +0 -3
  52. package/dist/contacts.d.mts +0 -80
  53. package/dist/contacts.mjs +0 -79
  54. package/dist/enote.d.mts +0 -44
  55. package/dist/enote.mjs +0 -45
  56. package/dist/envelope-attachments.d.mts +0 -86
  57. package/dist/envelope-attachments.mjs +0 -76
  58. package/dist/envelope-custom-fields.d.mts +0 -166
  59. package/dist/envelope-custom-fields.mjs +0 -92
  60. package/dist/envelope-documents.d.mts +0 -271
  61. package/dist/envelope-documents.mjs +0 -219
  62. package/dist/envelope-email.d.mts +0 -65
  63. package/dist/envelope-email.mjs +0 -60
  64. package/dist/envelope-lock.d.mts +0 -65
  65. package/dist/envelope-lock.mjs +0 -60
  66. package/dist/envelope-logs.d.mts +0 -126
  67. package/dist/envelope-logs.mjs +0 -126
  68. package/dist/envelope-notifications.d.mts +0 -47
  69. package/dist/envelope-notifications.mjs +0 -44
  70. package/dist/envelope-recipients.d.mts +0 -171
  71. package/dist/envelope-recipients.mjs +0 -136
  72. package/dist/envelope-tabs.d.mts +0 -52
  73. package/dist/envelope-tabs.mjs +0 -49
  74. package/dist/envelope-views.d.mts +0 -99
  75. package/dist/envelope-views.mjs +0 -88
  76. package/dist/envelope-workflow.d.mts +0 -208
  77. package/dist/envelope-workflow.mjs +0 -176
  78. package/dist/envelopes.d.mts +0 -430
  79. package/dist/envelopes.mjs +0 -190
  80. package/dist/errors.d.mts +0 -48
  81. package/dist/errors.mjs +0 -76
  82. package/dist/events.d.mts +0 -192
  83. package/dist/events.mjs +0 -146
  84. package/dist/factory-DFejlPDe.mjs +0 -7
  85. package/dist/groups.d.mts +0 -191
  86. package/dist/groups.mjs +0 -146
  87. package/dist/integration-BcEp_dFX.mjs +0 -365
  88. package/dist/integration-CdIRNjCz.d.mts +0 -72
  89. package/dist/messaging.d.mts +0 -1
  90. package/dist/messaging.mjs +0 -1
  91. package/dist/monitor.d.mts +0 -18
  92. package/dist/monitor.mjs +0 -20
  93. package/dist/notary.d.mts +0 -129
  94. package/dist/notary.mjs +0 -122
  95. package/dist/operation-helpers-Bqp7KoLi.mjs +0 -102
  96. package/dist/permission-profiles.d.mts +0 -78
  97. package/dist/permission-profiles.mjs +0 -70
  98. package/dist/power-forms.d.mts +0 -51
  99. package/dist/power-forms.mjs +0 -62
  100. package/dist/rooms.d.mts +0 -18
  101. package/dist/rooms.mjs +0 -28
  102. package/dist/shared-DTUCJayR.mjs +0 -27
  103. package/dist/signing-groups.d.mts +0 -139
  104. package/dist/signing-groups.mjs +0 -117
  105. package/dist/template-custom-fields.d.mts +0 -199
  106. package/dist/template-custom-fields.mjs +0 -107
  107. package/dist/template-documents.d.mts +0 -132
  108. package/dist/template-documents.mjs +0 -109
  109. package/dist/template-lock.d.mts +0 -65
  110. package/dist/template-lock.mjs +0 -60
  111. package/dist/template-sharing.d.mts +0 -129
  112. package/dist/template-sharing.mjs +0 -108
  113. package/dist/template-workflow.d.mts +0 -184
  114. package/dist/template-workflow.mjs +0 -152
  115. package/dist/templates.d.mts +0 -158
  116. package/dist/templates.mjs +0 -110
  117. package/dist/user-authorizations.d.mts +0 -129
  118. package/dist/user-authorizations.mjs +0 -133
  119. package/dist/user-custom-settings.d.mts +0 -81
  120. package/dist/user-custom-settings.mjs +0 -69
  121. package/dist/user-profile.d.mts +0 -109
  122. package/dist/user-profile.mjs +0 -106
  123. package/dist/user-signatures.d.mts +0 -208
  124. package/dist/user-signatures.mjs +0 -180
  125. package/dist/users.d.mts +0 -128
  126. package/dist/users.mjs +0 -98
  127. package/dist/verification.d.mts +0 -19
  128. package/dist/verification.mjs +0 -59
  129. package/dist/workspaces.d.mts +0 -173
  130. package/dist/workspaces.mjs +0 -143
@@ -1,271 +0,0 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
- import { z } from "zod";
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 };
@@ -1,219 +0,0 @@
1
- import { docusignDocumentIdSchema, docusignDocumentListSchema, docusignEnvelopeIdSchema, docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
- import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-Bqp7KoLi.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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 };
@@ -1,65 +0,0 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
- import { z } from "zod";
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 };
@@ -1,60 +0,0 @@
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-Bqp7KoLi.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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 };