@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.
Files changed (126) hide show
  1. package/README.md +248 -0
  2. package/dist/_official/index.d.mts +3 -0
  3. package/dist/_official/index.mjs +3 -0
  4. package/dist/_runtime/index.d.mts +1 -0
  5. package/dist/_runtime/index.mjs +1 -0
  6. package/dist/account-custom-fields.d.mts +65 -0
  7. package/dist/account-custom-fields.mjs +63 -0
  8. package/dist/account-stamps.d.mts +164 -0
  9. package/dist/account-stamps.mjs +144 -0
  10. package/dist/account-tabs.d.mts +90 -0
  11. package/dist/account-tabs.mjs +80 -0
  12. package/dist/account.d.mts +233 -0
  13. package/dist/account.mjs +207 -0
  14. package/dist/admin.d.mts +18 -0
  15. package/dist/admin.mjs +20 -0
  16. package/dist/auth.d.mts +37 -0
  17. package/dist/auth.mjs +53 -0
  18. package/dist/bcc-archive.d.mts +64 -0
  19. package/dist/bcc-archive.mjs +70 -0
  20. package/dist/billing.d.mts +217 -0
  21. package/dist/billing.mjs +208 -0
  22. package/dist/brands.d.mts +192 -0
  23. package/dist/brands.mjs +157 -0
  24. package/dist/bulk-send.d.mts +137 -0
  25. package/dist/bulk-send.mjs +115 -0
  26. package/dist/chunked-uploads.d.mts +78 -0
  27. package/dist/chunked-uploads.mjs +74 -0
  28. package/dist/click.d.mts +18 -0
  29. package/dist/click.mjs +20 -0
  30. package/dist/client.d.mts +47 -0
  31. package/dist/client.mjs +286 -0
  32. package/dist/clm.d.mts +18 -0
  33. package/dist/clm.mjs +20 -0
  34. package/dist/cloud-storage.d.mts +122 -0
  35. package/dist/cloud-storage.mjs +115 -0
  36. package/dist/connect.d.mts +252 -0
  37. package/dist/connect.mjs +217 -0
  38. package/dist/connection.d.mts +2 -0
  39. package/dist/connection.mjs +3 -0
  40. package/dist/contacts.d.mts +80 -0
  41. package/dist/contacts.mjs +79 -0
  42. package/dist/enote.d.mts +44 -0
  43. package/dist/enote.mjs +45 -0
  44. package/dist/envelope-attachments.d.mts +86 -0
  45. package/dist/envelope-attachments.mjs +76 -0
  46. package/dist/envelope-custom-fields.d.mts +166 -0
  47. package/dist/envelope-custom-fields.mjs +92 -0
  48. package/dist/envelope-documents.d.mts +271 -0
  49. package/dist/envelope-documents.mjs +219 -0
  50. package/dist/envelope-email.d.mts +65 -0
  51. package/dist/envelope-email.mjs +60 -0
  52. package/dist/envelope-lock.d.mts +65 -0
  53. package/dist/envelope-lock.mjs +60 -0
  54. package/dist/envelope-logs.d.mts +126 -0
  55. package/dist/envelope-logs.mjs +126 -0
  56. package/dist/envelope-notifications.d.mts +47 -0
  57. package/dist/envelope-notifications.mjs +44 -0
  58. package/dist/envelope-recipients.d.mts +171 -0
  59. package/dist/envelope-recipients.mjs +136 -0
  60. package/dist/envelope-tabs.d.mts +52 -0
  61. package/dist/envelope-tabs.mjs +49 -0
  62. package/dist/envelope-views.d.mts +99 -0
  63. package/dist/envelope-views.mjs +88 -0
  64. package/dist/envelope-workflow.d.mts +208 -0
  65. package/dist/envelope-workflow.mjs +176 -0
  66. package/dist/envelopes.d.mts +430 -0
  67. package/dist/envelopes.mjs +190 -0
  68. package/dist/errors.d.mts +48 -0
  69. package/dist/errors.mjs +76 -0
  70. package/dist/events.d.mts +192 -0
  71. package/dist/events.mjs +146 -0
  72. package/dist/factory-wViQTjgN.mjs +8 -0
  73. package/dist/groups.d.mts +191 -0
  74. package/dist/groups.mjs +146 -0
  75. package/dist/index.d.mts +1 -0
  76. package/dist/index.mjs +1 -0
  77. package/dist/integration-CmRztL9R.mjs +229 -0
  78. package/dist/integration-DqwHRkRh.d.mts +73 -0
  79. package/dist/messaging.d.mts +1 -0
  80. package/dist/messaging.mjs +1 -0
  81. package/dist/monitor.d.mts +18 -0
  82. package/dist/monitor.mjs +20 -0
  83. package/dist/notary.d.mts +129 -0
  84. package/dist/notary.mjs +122 -0
  85. package/dist/operation-helpers-BMTArRh9.mjs +102 -0
  86. package/dist/permission-profiles.d.mts +78 -0
  87. package/dist/permission-profiles.mjs +70 -0
  88. package/dist/power-forms.d.mts +51 -0
  89. package/dist/power-forms.mjs +62 -0
  90. package/dist/provider-app-CWp1SuI4.d.mts +88 -0
  91. package/dist/rooms.d.mts +18 -0
  92. package/dist/rooms.mjs +28 -0
  93. package/dist/schemas/index.d.mts +581 -0
  94. package/dist/schemas/index.mjs +309 -0
  95. package/dist/shared-DTUCJayR.mjs +27 -0
  96. package/dist/signing-groups.d.mts +139 -0
  97. package/dist/signing-groups.mjs +117 -0
  98. package/dist/template-custom-fields.d.mts +199 -0
  99. package/dist/template-custom-fields.mjs +107 -0
  100. package/dist/template-documents.d.mts +132 -0
  101. package/dist/template-documents.mjs +109 -0
  102. package/dist/template-lock.d.mts +65 -0
  103. package/dist/template-lock.mjs +60 -0
  104. package/dist/template-sharing.d.mts +129 -0
  105. package/dist/template-sharing.mjs +108 -0
  106. package/dist/template-workflow.d.mts +184 -0
  107. package/dist/template-workflow.mjs +152 -0
  108. package/dist/templates.d.mts +158 -0
  109. package/dist/templates.mjs +110 -0
  110. package/dist/triggers.d.mts +43 -0
  111. package/dist/triggers.mjs +91 -0
  112. package/dist/user-authorizations.d.mts +129 -0
  113. package/dist/user-authorizations.mjs +133 -0
  114. package/dist/user-custom-settings.d.mts +81 -0
  115. package/dist/user-custom-settings.mjs +69 -0
  116. package/dist/user-profile.d.mts +109 -0
  117. package/dist/user-profile.mjs +106 -0
  118. package/dist/user-signatures.d.mts +208 -0
  119. package/dist/user-signatures.mjs +180 -0
  120. package/dist/users.d.mts +128 -0
  121. package/dist/users.mjs +98 -0
  122. package/dist/verification.d.mts +19 -0
  123. package/dist/verification.mjs +59 -0
  124. package/dist/workspaces.d.mts +173 -0
  125. package/dist/workspaces.mjs +143 -0
  126. package/package.json +291 -0
@@ -0,0 +1,252 @@
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/connect.d.ts
6
+ declare const createConnectConfigurationForAccount: _keystrokehq_core0.Operation<z.ZodObject<{
7
+ configuration: z.ZodObject<{
8
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
9
+ }, z.core.$catchall<z.ZodUnknown>>;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ connectId: z.ZodOptional<z.ZodString>;
12
+ urlToPublishTo: z.ZodOptional<z.ZodString>;
13
+ name: z.ZodOptional<z.ZodString>;
14
+ configurationType: z.ZodOptional<z.ZodString>;
15
+ allowEnvelopePublish: z.ZodOptional<z.ZodString>;
16
+ enableLog: z.ZodOptional<z.ZodString>;
17
+ envelopeEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ recipientEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
20
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
21
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
22
+ DOCUSIGN_BASE_URI: z.ZodURL;
23
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
24
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
25
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
26
+ DOCUSIGN_BASE_URI: z.ZodURL;
27
+ }, z.core.$strip>>[] | undefined>], undefined>;
28
+ declare const updateDocusignConnectConfiguration: _keystrokehq_core0.Operation<z.ZodObject<{
29
+ configuration: z.ZodObject<{
30
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
31
+ }, z.core.$catchall<z.ZodUnknown>>;
32
+ }, z.core.$strip>, z.ZodObject<{
33
+ connectId: z.ZodOptional<z.ZodString>;
34
+ urlToPublishTo: z.ZodOptional<z.ZodString>;
35
+ name: z.ZodOptional<z.ZodString>;
36
+ configurationType: z.ZodOptional<z.ZodString>;
37
+ allowEnvelopePublish: z.ZodOptional<z.ZodString>;
38
+ enableLog: z.ZodOptional<z.ZodString>;
39
+ envelopeEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
40
+ recipientEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
42
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
43
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
44
+ DOCUSIGN_BASE_URI: z.ZodURL;
45
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
46
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
47
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
48
+ DOCUSIGN_BASE_URI: z.ZodURL;
49
+ }, z.core.$strip>>[] | undefined>], undefined>;
50
+ declare const retrieveConnectConfigurations: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
51
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
52
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
53
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
54
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
55
+ DOCUSIGN_BASE_URI: z.ZodURL;
56
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
57
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
58
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
59
+ DOCUSIGN_BASE_URI: z.ZodURL;
60
+ }, z.core.$strip>>[] | undefined>], undefined>;
61
+ declare const retrieveConnectConfigurationDetails: _keystrokehq_core0.Operation<z.ZodObject<{
62
+ connectId: z.ZodString;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ connectId: z.ZodOptional<z.ZodString>;
65
+ urlToPublishTo: z.ZodOptional<z.ZodString>;
66
+ name: z.ZodOptional<z.ZodString>;
67
+ configurationType: z.ZodOptional<z.ZodString>;
68
+ allowEnvelopePublish: z.ZodOptional<z.ZodString>;
69
+ enableLog: z.ZodOptional<z.ZodString>;
70
+ envelopeEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
71
+ recipientEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
72
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
73
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
74
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
75
+ DOCUSIGN_BASE_URI: z.ZodURL;
76
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
77
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
78
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
79
+ DOCUSIGN_BASE_URI: z.ZodURL;
80
+ }, z.core.$strip>>[] | undefined>], undefined>;
81
+ declare const deleteConnectConfiguration: _keystrokehq_core0.Operation<z.ZodObject<{
82
+ connectId: z.ZodString;
83
+ }, z.core.$strip>, z.ZodObject<{
84
+ success: z.ZodBoolean;
85
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
86
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
87
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
88
+ DOCUSIGN_BASE_URI: z.ZodURL;
89
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
90
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
91
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
92
+ DOCUSIGN_BASE_URI: z.ZodURL;
93
+ }, z.core.$strip>>[] | undefined>], undefined>;
94
+ declare const setUpConnectOauthConfiguration: _keystrokehq_core0.Operation<z.ZodObject<{
95
+ oauthConfiguration: z.ZodObject<{
96
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
97
+ }, z.core.$catchall<z.ZodUnknown>>;
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
100
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
101
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
102
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
103
+ DOCUSIGN_BASE_URI: z.ZodURL;
104
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
105
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
106
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
107
+ DOCUSIGN_BASE_URI: z.ZodURL;
108
+ }, z.core.$strip>>[] | undefined>], undefined>;
109
+ declare const retrieveConnectOauthConfiguration: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
110
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
111
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
112
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
113
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
114
+ DOCUSIGN_BASE_URI: z.ZodURL;
115
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
116
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
117
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
118
+ DOCUSIGN_BASE_URI: z.ZodURL;
119
+ }, z.core.$strip>>[] | undefined>], undefined>;
120
+ declare const updateConnectOauthConfiguration: _keystrokehq_core0.Operation<z.ZodObject<{
121
+ oauthConfiguration: z.ZodObject<{
122
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
123
+ }, z.core.$catchall<z.ZodUnknown>>;
124
+ }, z.core.$strip>, z.ZodObject<{
125
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
126
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
127
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
128
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
129
+ DOCUSIGN_BASE_URI: z.ZodURL;
130
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
131
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
132
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
133
+ DOCUSIGN_BASE_URI: z.ZodURL;
134
+ }, z.core.$strip>>[] | undefined>], undefined>;
135
+ declare const deleteConnectOauthConfiguration: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
136
+ success: z.ZodBoolean;
137
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
138
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
139
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
140
+ DOCUSIGN_BASE_URI: z.ZodURL;
141
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
142
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
143
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
144
+ DOCUSIGN_BASE_URI: z.ZodURL;
145
+ }, z.core.$strip>>[] | undefined>], undefined>;
146
+ declare const retrieveConnectFailureLogs: _keystrokehq_core0.Operation<z.ZodObject<{
147
+ fromDate: z.ZodOptional<z.ZodString>;
148
+ toDate: z.ZodOptional<z.ZodString>;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
151
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
152
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
153
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
154
+ DOCUSIGN_BASE_URI: z.ZodURL;
155
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
156
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
157
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
158
+ DOCUSIGN_BASE_URI: z.ZodURL;
159
+ }, z.core.$strip>>[] | undefined>], undefined>;
160
+ declare const deleteConnectFailureLogEntry: _keystrokehq_core0.Operation<z.ZodObject<{
161
+ failureId: z.ZodString;
162
+ }, z.core.$strip>, z.ZodObject<{
163
+ success: z.ZodBoolean;
164
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
165
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
166
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
167
+ DOCUSIGN_BASE_URI: z.ZodURL;
168
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
169
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
170
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
171
+ DOCUSIGN_BASE_URI: z.ZodURL;
172
+ }, z.core.$strip>>[] | undefined>], undefined>;
173
+ declare const retrieveConnectLogs: _keystrokehq_core0.Operation<z.ZodObject<{
174
+ fromDate: z.ZodOptional<z.ZodString>;
175
+ toDate: z.ZodOptional<z.ZodString>;
176
+ }, z.core.$strip>, z.ZodObject<{
177
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
178
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
179
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
180
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
181
+ DOCUSIGN_BASE_URI: z.ZodURL;
182
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
183
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
184
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
185
+ DOCUSIGN_BASE_URI: z.ZodURL;
186
+ }, z.core.$strip>>[] | undefined>], undefined>;
187
+ declare const retrieveConnectLogEntry: _keystrokehq_core0.Operation<z.ZodObject<{
188
+ logId: z.ZodString;
189
+ }, z.core.$strip>, z.ZodObject<{
190
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
191
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
192
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
193
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
194
+ DOCUSIGN_BASE_URI: z.ZodURL;
195
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
196
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
197
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
198
+ DOCUSIGN_BASE_URI: z.ZodURL;
199
+ }, z.core.$strip>>[] | undefined>], undefined>;
200
+ declare const deleteConnectLogEntries: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
201
+ success: z.ZodBoolean;
202
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
203
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
204
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
205
+ DOCUSIGN_BASE_URI: z.ZodURL;
206
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
207
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
208
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
209
+ DOCUSIGN_BASE_URI: z.ZodURL;
210
+ }, z.core.$strip>>[] | undefined>], undefined>;
211
+ declare const deleteSpecificConnectLogEntry: _keystrokehq_core0.Operation<z.ZodObject<{
212
+ logId: z.ZodString;
213
+ }, z.core.$strip>, z.ZodObject<{
214
+ success: z.ZodBoolean;
215
+ }, z.core.$strip>, 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 returnAllConnectServiceUsers: _keystrokehq_core0.Operation<z.ZodObject<{
225
+ connectId: z.ZodString;
226
+ }, z.core.$strip>, z.ZodObject<{
227
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
228
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
229
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
230
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
231
+ DOCUSIGN_BASE_URI: z.ZodURL;
232
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
233
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
234
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
235
+ DOCUSIGN_BASE_URI: z.ZodURL;
236
+ }, z.core.$strip>>[] | undefined>], undefined>;
237
+ declare const returnUsersFromConnectService: _keystrokehq_core0.Operation<z.ZodObject<{
238
+ connectId: z.ZodString;
239
+ userId: z.ZodString;
240
+ }, z.core.$strip>, z.ZodObject<{
241
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
242
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
243
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
244
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
245
+ DOCUSIGN_BASE_URI: z.ZodURL;
246
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
247
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
248
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
249
+ DOCUSIGN_BASE_URI: z.ZodURL;
250
+ }, z.core.$strip>>[] | undefined>], undefined>;
251
+ //#endregion
252
+ export { createConnectConfigurationForAccount, deleteConnectConfiguration, deleteConnectFailureLogEntry, deleteConnectLogEntries, deleteConnectOauthConfiguration, deleteSpecificConnectLogEntry, retrieveConnectConfigurationDetails, retrieveConnectConfigurations, retrieveConnectFailureLogs, retrieveConnectLogEntry, retrieveConnectLogs, retrieveConnectOauthConfiguration, returnAllConnectServiceUsers, returnUsersFromConnectService, setUpConnectOauthConfiguration, updateConnectOauthConfiguration, updateDocusignConnectConfiguration };
@@ -0,0 +1,217 @@
1
+ import { docusignConnectConfigurationSchema, docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
+ import { r as defineRestOperation } from "./operation-helpers-BMTArRh9.mjs";
3
+ import { z } from "zod";
4
+
5
+ //#region src/connect.ts
6
+ /**
7
+ * Connect configurations, OAuth, failure logs, service users. Covers PLAN.md § 6.36.
8
+ */
9
+ const connectId = z.object({ connectId: z.string().min(1) });
10
+ const logId = z.object({ logId: z.string().min(1) });
11
+ const failureId = z.object({ failureId: z.string().min(1) });
12
+ const connectUser = connectId.extend({ userId: z.string().min(1) });
13
+ const createConnectConfigurationForAccount = defineRestOperation({
14
+ id: "create_connect_configuration_for_account",
15
+ slug: "DOCUSIGN_CREATE_CONNECT_CONFIGURATION_FOR_ACCOUNT",
16
+ name: "Create Connect Configuration",
17
+ description: "Create a DocuSign Connect configuration.",
18
+ needsApproval: true,
19
+ method: "POST",
20
+ path: "/connect",
21
+ input: z.object({ configuration: docusignLooseObjectSchema() }),
22
+ output: docusignConnectConfigurationSchema,
23
+ body: (input) => input.configuration
24
+ });
25
+ const updateDocusignConnectConfiguration = defineRestOperation({
26
+ id: "update_docusign_connect_configuration",
27
+ slug: "DOCUSIGN_UPDATE_DOCUSIGN_CONNECT_CONFIGURATION",
28
+ name: "Update Connect Configuration",
29
+ description: "Update a DocuSign Connect configuration.",
30
+ needsApproval: true,
31
+ method: "PUT",
32
+ path: "/connect",
33
+ input: z.object({ configuration: docusignLooseObjectSchema() }),
34
+ output: docusignConnectConfigurationSchema,
35
+ body: (input) => input.configuration
36
+ });
37
+ const retrieveConnectConfigurations = defineRestOperation({
38
+ id: "retrieve_connect_configurations",
39
+ slug: "DOCUSIGN_RETRIEVE_CONNECT_CONFIGURATIONS",
40
+ name: "Retrieve Connect Configurations",
41
+ description: "List Connect configurations on the account.",
42
+ method: "GET",
43
+ path: "/connect",
44
+ input: z.object({}),
45
+ output: docusignGenericObjectSchema
46
+ });
47
+ const retrieveConnectConfigurationDetails = defineRestOperation({
48
+ id: "retrieve_connect_configuration_details",
49
+ slug: "DOCUSIGN_RETRIEVE_CONNECT_CONFIGURATION_DETAILS",
50
+ name: "Retrieve Connect Configuration Details",
51
+ description: "Retrieve details for a single Connect configuration.",
52
+ method: "GET",
53
+ path: (ctx) => `/connect/${ctx.encode(String(ctx.input.connectId))}`,
54
+ input: connectId,
55
+ output: docusignConnectConfigurationSchema
56
+ });
57
+ const deleteConnectConfiguration = defineRestOperation({
58
+ id: "delete_connect_configuration",
59
+ slug: "DOCUSIGN_DELETE_CONNECT_CONFIGURATION",
60
+ name: "Delete Connect Configuration",
61
+ description: "Delete a Connect configuration.",
62
+ needsApproval: true,
63
+ method: "DELETE",
64
+ path: (ctx) => `/connect/${ctx.encode(String(ctx.input.connectId))}`,
65
+ input: connectId,
66
+ output: docusignSuccessSchema,
67
+ transformResponse: () => ({ success: true })
68
+ });
69
+ const setUpConnectOauthConfiguration = defineRestOperation({
70
+ id: "set_up_connect_oauth_configuration",
71
+ slug: "DOCUSIGN_SET_UP_CONNECT_OAUTH_CONFIGURATION",
72
+ name: "Set Up Connect OAuth Configuration",
73
+ description: "Create an OAuth configuration used by Connect to sign webhooks.",
74
+ needsApproval: true,
75
+ method: "POST",
76
+ path: "/connect/oauth",
77
+ input: z.object({ oauthConfiguration: docusignLooseObjectSchema() }),
78
+ output: docusignGenericObjectSchema,
79
+ body: (input) => input.oauthConfiguration
80
+ });
81
+ const retrieveConnectOauthConfiguration = defineRestOperation({
82
+ id: "retrieve_connect_oauth_configuration",
83
+ slug: "DOCUSIGN_RETRIEVE_CONNECT_OAUTH_CONFIGURATION",
84
+ name: "Retrieve Connect OAuth Configuration",
85
+ description: "Retrieve the Connect OAuth configuration.",
86
+ method: "GET",
87
+ path: "/connect/oauth",
88
+ input: z.object({}),
89
+ output: docusignGenericObjectSchema
90
+ });
91
+ const updateConnectOauthConfiguration = defineRestOperation({
92
+ id: "update_connect_oauth_configuration",
93
+ slug: "DOCUSIGN_UPDATE_CONNECT_OAUTH_CONFIGURATION",
94
+ name: "Update Connect OAuth Configuration",
95
+ description: "Update the Connect OAuth configuration.",
96
+ needsApproval: true,
97
+ method: "PUT",
98
+ path: "/connect/oauth",
99
+ input: z.object({ oauthConfiguration: docusignLooseObjectSchema() }),
100
+ output: docusignGenericObjectSchema,
101
+ body: (input) => input.oauthConfiguration
102
+ });
103
+ const deleteConnectOauthConfiguration = defineRestOperation({
104
+ id: "delete_connect_oauth_configuration",
105
+ slug: "DOCUSIGN_DELETE_CONNECT_OAUTH_CONFIGURATION",
106
+ name: "Delete Connect OAuth Configuration",
107
+ description: "Delete the Connect OAuth configuration.",
108
+ needsApproval: true,
109
+ method: "DELETE",
110
+ path: "/connect/oauth",
111
+ input: z.object({}),
112
+ output: docusignSuccessSchema,
113
+ transformResponse: () => ({ success: true })
114
+ });
115
+ const retrieveConnectFailureLogs = defineRestOperation({
116
+ id: "retrieve_connect_failure_logs",
117
+ slug: "DOCUSIGN_RETRIEVE_CONNECT_FAILURE_LOGS",
118
+ name: "Retrieve Connect Failure Logs",
119
+ description: "List Connect delivery failure logs.",
120
+ method: "GET",
121
+ path: "/connect/failures",
122
+ input: z.object({
123
+ fromDate: z.string().optional(),
124
+ toDate: z.string().optional()
125
+ }),
126
+ output: docusignGenericObjectSchema,
127
+ query: (input) => ({
128
+ from_date: input.fromDate,
129
+ to_date: input.toDate
130
+ })
131
+ });
132
+ const deleteConnectFailureLogEntry = defineRestOperation({
133
+ id: "delete_connect_failure_log_entry",
134
+ slug: "DOCUSIGN_DELETE_CONNECT_FAILURE_LOG_ENTRY",
135
+ name: "Delete Connect Failure Log Entry",
136
+ description: "Delete a single Connect failure log entry.",
137
+ needsApproval: true,
138
+ method: "DELETE",
139
+ path: (ctx) => `/connect/failures/${ctx.encode(String(ctx.input.failureId))}`,
140
+ input: failureId,
141
+ output: docusignSuccessSchema,
142
+ transformResponse: () => ({ success: true })
143
+ });
144
+ const retrieveConnectLogs = defineRestOperation({
145
+ id: "retrieve_connect_logs",
146
+ slug: "DOCUSIGN_RETRIEVE_CONNECT_LOGS",
147
+ name: "Retrieve Connect Logs",
148
+ description: "List Connect delivery logs.",
149
+ method: "GET",
150
+ path: "/connect/logs",
151
+ input: z.object({
152
+ fromDate: z.string().optional(),
153
+ toDate: z.string().optional()
154
+ }),
155
+ output: docusignGenericObjectSchema,
156
+ query: (input) => ({
157
+ from_date: input.fromDate,
158
+ to_date: input.toDate
159
+ })
160
+ });
161
+ const retrieveConnectLogEntry = defineRestOperation({
162
+ id: "retrieve_connect_log_entry",
163
+ slug: "DOCUSIGN_RETRIEVE_CONNECT_LOG_ENTRY",
164
+ name: "Retrieve Connect Log Entry",
165
+ description: "Retrieve a single Connect log entry.",
166
+ method: "GET",
167
+ path: (ctx) => `/connect/logs/${ctx.encode(String(ctx.input.logId))}`,
168
+ input: logId,
169
+ output: docusignGenericObjectSchema
170
+ });
171
+ const deleteConnectLogEntries = defineRestOperation({
172
+ id: "delete_connect_log_entries",
173
+ slug: "DOCUSIGN_DELETE_CONNECT_LOG_ENTRIES",
174
+ name: "Delete Connect Log Entries",
175
+ description: "Delete all Connect log entries.",
176
+ needsApproval: true,
177
+ method: "DELETE",
178
+ path: "/connect/logs",
179
+ input: z.object({}),
180
+ output: docusignSuccessSchema,
181
+ transformResponse: () => ({ success: true })
182
+ });
183
+ const deleteSpecificConnectLogEntry = defineRestOperation({
184
+ id: "delete_specific_connect_log_entry",
185
+ slug: "DOCUSIGN_DELETE_SPECIFIC_CONNECT_LOG_ENTRY",
186
+ name: "Delete Specific Connect Log Entry",
187
+ description: "Delete a specific Connect log entry.",
188
+ needsApproval: true,
189
+ method: "DELETE",
190
+ path: (ctx) => `/connect/logs/${ctx.encode(String(ctx.input.logId))}`,
191
+ input: logId,
192
+ output: docusignSuccessSchema,
193
+ transformResponse: () => ({ success: true })
194
+ });
195
+ const returnAllConnectServiceUsers = defineRestOperation({
196
+ id: "return_all_connect_service_users",
197
+ slug: "DOCUSIGN_RETURN_ALL_CONNECT_SERVICE_USERS",
198
+ name: "Return All Connect Service Users",
199
+ description: "List service users allowed to consume Connect events.",
200
+ method: "GET",
201
+ path: (ctx) => `/connect/${ctx.encode(String(ctx.input.connectId))}/users`,
202
+ input: connectId,
203
+ output: docusignGenericObjectSchema
204
+ });
205
+ const returnUsersFromConnectService = defineRestOperation({
206
+ id: "return_users_from_connect_service",
207
+ slug: "DOCUSIGN_RETURN_USERS_FROM_CONNECT_SERVICE",
208
+ name: "Return Users From Connect Service",
209
+ description: "Fetch a specific user allowed to consume Connect events.",
210
+ method: "GET",
211
+ path: (ctx) => `/connect/${ctx.encode(String(ctx.input.connectId))}/users/${ctx.encode(String(ctx.input.userId))}`,
212
+ input: connectUser,
213
+ output: docusignGenericObjectSchema
214
+ });
215
+
216
+ //#endregion
217
+ export { createConnectConfigurationForAccount, deleteConnectConfiguration, deleteConnectFailureLogEntry, deleteConnectLogEntries, deleteConnectOauthConfiguration, deleteSpecificConnectLogEntry, retrieveConnectConfigurationDetails, retrieveConnectConfigurations, retrieveConnectFailureLogs, retrieveConnectLogEntry, retrieveConnectLogs, retrieveConnectOauthConfiguration, returnAllConnectServiceUsers, returnUsersFromConnectService, setUpConnectOauthConfiguration, updateConnectOauthConfiguration, updateDocusignConnectConfiguration };
@@ -0,0 +1,2 @@
1
+ import { i as docusignOfficialIntegration, n as docusign, t as DocusignCredentials } from "./integration-DqwHRkRh.mjs";
2
+ export { type DocusignCredentials, docusign, docusignOfficialIntegration };
@@ -0,0 +1,3 @@
1
+ import { r as docusignOfficialIntegration, t as docusign } from "./integration-CmRztL9R.mjs";
2
+
3
+ export { docusign, docusignOfficialIntegration };
@@ -0,0 +1,80 @@
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/contacts.d.ts
6
+ declare const getDocusignAccountContacts: _keystrokehq_core0.Operation<z.ZodObject<{
7
+ startPosition: z.ZodOptional<z.ZodNumber>;
8
+ count: z.ZodOptional<z.ZodNumber>;
9
+ cloudProvider: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
12
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
13
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
14
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
15
+ DOCUSIGN_BASE_URI: z.ZodURL;
16
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
17
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
18
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
19
+ DOCUSIGN_BASE_URI: z.ZodURL;
20
+ }, z.core.$strip>>[] | undefined>], undefined>;
21
+ declare const addContactsToContactsList: _keystrokehq_core0.Operation<z.ZodObject<{
22
+ contactList: z.ZodArray<z.ZodObject<{
23
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
24
+ }, z.core.$catchall<z.ZodUnknown>>>;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
27
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
28
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
29
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
30
+ DOCUSIGN_BASE_URI: z.ZodURL;
31
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
32
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
33
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
34
+ DOCUSIGN_BASE_URI: z.ZodURL;
35
+ }, z.core.$strip>>[] | undefined>], undefined>;
36
+ declare const updateContactsInformation: _keystrokehq_core0.Operation<z.ZodObject<{
37
+ contactList: z.ZodArray<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 deleteContactFromAccount: _keystrokehq_core0.Operation<z.ZodObject<{
52
+ contactId: 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
+ declare const deleteMultipleContactsFromAccount: _keystrokehq_core0.Operation<z.ZodObject<{
65
+ contactList: z.ZodArray<z.ZodObject<{
66
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
67
+ }, z.core.$catchall<z.ZodUnknown>>>;
68
+ }, z.core.$strip>, z.ZodObject<{
69
+ success: z.ZodBoolean;
70
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
71
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
72
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
73
+ DOCUSIGN_BASE_URI: z.ZodURL;
74
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
75
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
76
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
77
+ DOCUSIGN_BASE_URI: z.ZodURL;
78
+ }, z.core.$strip>>[] | undefined>], undefined>;
79
+ //#endregion
80
+ export { addContactsToContactsList, deleteContactFromAccount, deleteMultipleContactsFromAccount, getDocusignAccountContacts, updateContactsInformation };
@@ -0,0 +1,79 @@
1
+ import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
+ import { r as defineRestOperation } from "./operation-helpers-BMTArRh9.mjs";
3
+ import { z } from "zod";
4
+
5
+ //#region src/contacts.ts
6
+ /**
7
+ * Account contacts. Covers PLAN.md § 6.21.
8
+ */
9
+ const getDocusignAccountContacts = defineRestOperation({
10
+ id: "get_docusign_account_contacts",
11
+ slug: "DOCUSIGN_GET_DOCUSIGN_ACCOUNT_CONTACTS",
12
+ name: "Get Account Contacts",
13
+ description: "List contacts stored on the account address book.",
14
+ method: "GET",
15
+ path: "/contacts",
16
+ input: z.object({
17
+ startPosition: z.number().int().nonnegative().optional(),
18
+ count: z.number().int().positive().optional(),
19
+ cloudProvider: z.string().optional()
20
+ }),
21
+ output: docusignGenericObjectSchema,
22
+ query: (input) => ({
23
+ start_position: input.startPosition,
24
+ count: input.count,
25
+ cloud_provider: input.cloudProvider
26
+ })
27
+ });
28
+ const addContactsToContactsList = defineRestOperation({
29
+ id: "add_contacts_to_contacts_list",
30
+ slug: "DOCUSIGN_ADD_CONTACTS_TO_CONTACTS_LIST",
31
+ name: "Add Contacts To Contacts List",
32
+ description: "Add contacts to the account address book.",
33
+ needsApproval: true,
34
+ method: "POST",
35
+ path: "/contacts",
36
+ input: z.object({ contactList: z.array(docusignLooseObjectSchema()).min(1) }),
37
+ output: docusignGenericObjectSchema,
38
+ body: (input) => ({ contactList: input.contactList })
39
+ });
40
+ const updateContactsInformation = defineRestOperation({
41
+ id: "update_contacts_information",
42
+ slug: "DOCUSIGN_UPDATE_CONTACTS_INFORMATION",
43
+ name: "Update Contacts Information",
44
+ description: "Update contacts in the account address book.",
45
+ needsApproval: true,
46
+ method: "PUT",
47
+ path: "/contacts",
48
+ input: z.object({ contactList: z.array(docusignLooseObjectSchema()).min(1) }),
49
+ output: docusignGenericObjectSchema,
50
+ body: (input) => ({ contactList: input.contactList })
51
+ });
52
+ const deleteContactFromAccount = defineRestOperation({
53
+ id: "delete_contact_from_account",
54
+ slug: "DOCUSIGN_DELETE_CONTACT_FROM_ACCOUNT",
55
+ name: "Delete Contact From Account",
56
+ description: "Delete a single contact from the account address book.",
57
+ needsApproval: true,
58
+ method: "DELETE",
59
+ path: (ctx) => `/contacts/${ctx.encode(String(ctx.input.contactId))}`,
60
+ input: z.object({ contactId: z.string().min(1) }),
61
+ output: docusignSuccessSchema,
62
+ transformResponse: () => ({ success: true })
63
+ });
64
+ const deleteMultipleContactsFromAccount = defineRestOperation({
65
+ id: "delete_multiple_contacts_from_account",
66
+ slug: "DOCUSIGN_DELETE_MULTIPLE_CONTACTS_FROM_ACCOUNT",
67
+ name: "Delete Multiple Contacts From Account",
68
+ description: "Delete multiple contacts from the account address book.",
69
+ needsApproval: true,
70
+ method: "DELETE",
71
+ path: "/contacts",
72
+ input: z.object({ contactList: z.array(docusignLooseObjectSchema()).min(1) }),
73
+ output: docusignSuccessSchema,
74
+ body: (input) => ({ contactList: input.contactList }),
75
+ transformResponse: () => ({ success: true })
76
+ });
77
+
78
+ //#endregion
79
+ export { addContactsToContactsList, deleteContactFromAccount, deleteMultipleContactsFromAccount, getDocusignAccountContacts, updateContactsInformation };