@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/docusign",
3
- "version": "0.0.11",
3
+ "version": "0.0.16-integration-id-canonicalization.0",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -9,233 +9,17 @@
9
9
  "types": "./dist/index.d.mts",
10
10
  "default": "./dist/index.mjs"
11
11
  },
12
- "./connection": {
13
- "types": "./dist/connection.d.mts",
14
- "default": "./dist/connection.mjs"
12
+ "./credential-sets": {
13
+ "types": "./dist/credential-sets/index.d.mts",
14
+ "default": "./dist/credential-sets/index.mjs"
15
15
  },
16
- "./messaging": {
17
- "types": "./dist/messaging.d.mts",
18
- "default": "./dist/messaging.mjs"
19
- },
20
- "./client": {
21
- "types": "./dist/client.d.mts",
22
- "default": "./dist/client.mjs"
23
- },
24
- "./errors": {
25
- "types": "./dist/errors.d.mts",
26
- "default": "./dist/errors.mjs"
16
+ "./operations": {
17
+ "types": "./dist/operations/index.d.mts",
18
+ "default": "./dist/operations/index.mjs"
27
19
  },
28
20
  "./schemas": {
29
21
  "types": "./dist/schemas/index.d.mts",
30
22
  "default": "./dist/schemas/index.mjs"
31
- },
32
- "./_official": {
33
- "types": "./dist/_official/index.d.mts",
34
- "default": "./dist/_official/index.mjs"
35
- },
36
- "./events": {
37
- "types": "./dist/events.d.mts",
38
- "default": "./dist/events.mjs"
39
- },
40
- "./verification": {
41
- "types": "./dist/verification.d.mts",
42
- "default": "./dist/verification.mjs"
43
- },
44
- "./envelopes": {
45
- "types": "./dist/envelopes.d.mts",
46
- "default": "./dist/envelopes.mjs"
47
- },
48
- "./envelope-documents": {
49
- "types": "./dist/envelope-documents.d.mts",
50
- "default": "./dist/envelope-documents.mjs"
51
- },
52
- "./envelope-recipients": {
53
- "types": "./dist/envelope-recipients.d.mts",
54
- "default": "./dist/envelope-recipients.mjs"
55
- },
56
- "./envelope-tabs": {
57
- "types": "./dist/envelope-tabs.d.mts",
58
- "default": "./dist/envelope-tabs.mjs"
59
- },
60
- "./envelope-custom-fields": {
61
- "types": "./dist/envelope-custom-fields.d.mts",
62
- "default": "./dist/envelope-custom-fields.mjs"
63
- },
64
- "./envelope-attachments": {
65
- "types": "./dist/envelope-attachments.d.mts",
66
- "default": "./dist/envelope-attachments.mjs"
67
- },
68
- "./envelope-workflow": {
69
- "types": "./dist/envelope-workflow.d.mts",
70
- "default": "./dist/envelope-workflow.mjs"
71
- },
72
- "./envelope-views": {
73
- "types": "./dist/envelope-views.d.mts",
74
- "default": "./dist/envelope-views.mjs"
75
- },
76
- "./envelope-email": {
77
- "types": "./dist/envelope-email.d.mts",
78
- "default": "./dist/envelope-email.mjs"
79
- },
80
- "./envelope-notifications": {
81
- "types": "./dist/envelope-notifications.d.mts",
82
- "default": "./dist/envelope-notifications.mjs"
83
- },
84
- "./envelope-lock": {
85
- "types": "./dist/envelope-lock.d.mts",
86
- "default": "./dist/envelope-lock.mjs"
87
- },
88
- "./envelope-logs": {
89
- "types": "./dist/envelope-logs.d.mts",
90
- "default": "./dist/envelope-logs.mjs"
91
- },
92
- "./templates": {
93
- "types": "./dist/templates.d.mts",
94
- "default": "./dist/templates.mjs"
95
- },
96
- "./template-documents": {
97
- "types": "./dist/template-documents.d.mts",
98
- "default": "./dist/template-documents.mjs"
99
- },
100
- "./template-custom-fields": {
101
- "types": "./dist/template-custom-fields.d.mts",
102
- "default": "./dist/template-custom-fields.mjs"
103
- },
104
- "./template-workflow": {
105
- "types": "./dist/template-workflow.d.mts",
106
- "default": "./dist/template-workflow.mjs"
107
- },
108
- "./template-lock": {
109
- "types": "./dist/template-lock.d.mts",
110
- "default": "./dist/template-lock.mjs"
111
- },
112
- "./template-sharing": {
113
- "types": "./dist/template-sharing.d.mts",
114
- "default": "./dist/template-sharing.mjs"
115
- },
116
- "./bulk-send": {
117
- "types": "./dist/bulk-send.d.mts",
118
- "default": "./dist/bulk-send.mjs"
119
- },
120
- "./chunked-uploads": {
121
- "types": "./dist/chunked-uploads.d.mts",
122
- "default": "./dist/chunked-uploads.mjs"
123
- },
124
- "./power-forms": {
125
- "types": "./dist/power-forms.d.mts",
126
- "default": "./dist/power-forms.mjs"
127
- },
128
- "./signing-groups": {
129
- "types": "./dist/signing-groups.d.mts",
130
- "default": "./dist/signing-groups.mjs"
131
- },
132
- "./contacts": {
133
- "types": "./dist/contacts.d.mts",
134
- "default": "./dist/contacts.mjs"
135
- },
136
- "./users": {
137
- "types": "./dist/users.d.mts",
138
- "default": "./dist/users.mjs"
139
- },
140
- "./user-signatures": {
141
- "types": "./dist/user-signatures.d.mts",
142
- "default": "./dist/user-signatures.mjs"
143
- },
144
- "./user-profile": {
145
- "types": "./dist/user-profile.d.mts",
146
- "default": "./dist/user-profile.mjs"
147
- },
148
- "./user-authorizations": {
149
- "types": "./dist/user-authorizations.d.mts",
150
- "default": "./dist/user-authorizations.mjs"
151
- },
152
- "./user-custom-settings": {
153
- "types": "./dist/user-custom-settings.d.mts",
154
- "default": "./dist/user-custom-settings.mjs"
155
- },
156
- "./cloud-storage": {
157
- "types": "./dist/cloud-storage.d.mts",
158
- "default": "./dist/cloud-storage.mjs"
159
- },
160
- "./groups": {
161
- "types": "./dist/groups.d.mts",
162
- "default": "./dist/groups.mjs"
163
- },
164
- "./permission-profiles": {
165
- "types": "./dist/permission-profiles.d.mts",
166
- "default": "./dist/permission-profiles.mjs"
167
- },
168
- "./brands": {
169
- "types": "./dist/brands.d.mts",
170
- "default": "./dist/brands.mjs"
171
- },
172
- "./account": {
173
- "types": "./dist/account.d.mts",
174
- "default": "./dist/account.mjs"
175
- },
176
- "./account-custom-fields": {
177
- "types": "./dist/account-custom-fields.d.mts",
178
- "default": "./dist/account-custom-fields.mjs"
179
- },
180
- "./account-tabs": {
181
- "types": "./dist/account-tabs.d.mts",
182
- "default": "./dist/account-tabs.mjs"
183
- },
184
- "./account-stamps": {
185
- "types": "./dist/account-stamps.d.mts",
186
- "default": "./dist/account-stamps.mjs"
187
- },
188
- "./billing": {
189
- "types": "./dist/billing.d.mts",
190
- "default": "./dist/billing.mjs"
191
- },
192
- "./connect": {
193
- "types": "./dist/connect.d.mts",
194
- "default": "./dist/connect.mjs"
195
- },
196
- "./workspaces": {
197
- "types": "./dist/workspaces.d.mts",
198
- "default": "./dist/workspaces.mjs"
199
- },
200
- "./notary": {
201
- "types": "./dist/notary.d.mts",
202
- "default": "./dist/notary.mjs"
203
- },
204
- "./enote": {
205
- "types": "./dist/enote.d.mts",
206
- "default": "./dist/enote.mjs"
207
- },
208
- "./bcc-archive": {
209
- "types": "./dist/bcc-archive.d.mts",
210
- "default": "./dist/bcc-archive.mjs"
211
- },
212
- "./auth": {
213
- "types": "./dist/auth.d.mts",
214
- "default": "./dist/auth.mjs"
215
- },
216
- "./rooms": {
217
- "types": "./dist/rooms.d.mts",
218
- "default": "./dist/rooms.mjs"
219
- },
220
- "./clm": {
221
- "types": "./dist/clm.d.mts",
222
- "default": "./dist/clm.mjs"
223
- },
224
- "./admin": {
225
- "types": "./dist/admin.d.mts",
226
- "default": "./dist/admin.mjs"
227
- },
228
- "./click": {
229
- "types": "./dist/click.d.mts",
230
- "default": "./dist/click.mjs"
231
- },
232
- "./monitor": {
233
- "types": "./dist/monitor.d.mts",
234
- "default": "./dist/monitor.mjs"
235
- },
236
- "./_runtime": {
237
- "types": "./dist/_runtime/index.d.mts",
238
- "default": "./dist/_runtime/index.mjs"
239
23
  }
240
24
  },
241
25
  "files": [
@@ -256,9 +40,9 @@
256
40
  "vitest": "^4.0.18",
257
41
  "@keystrokehq/core": "^0.0.12",
258
42
  "@keystrokehq/test-utils": "0.0.0",
259
- "@keystrokehq/typescript-config": "0.0.0",
260
43
  "@keystrokehq/integration-authoring": "0.0.9",
261
- "@keystrokehq/credential-connection": "1.0.0"
44
+ "@keystrokehq/credential-connection": "1.0.0",
45
+ "@keystrokehq/typescript-config": "0.0.0"
262
46
  },
263
47
  "keywords": [
264
48
  "docusign",
@@ -1,89 +0,0 @@
1
- import { i as docusignOfficialIntegration, r as docusignBundle } from "../integration-CdIRNjCz.mjs";
2
- import { CredentialSet } from "@keystrokehq/core";
3
- import { z } from "zod";
4
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
5
-
6
- //#region src/_official/provider-app.d.ts
7
- /**
8
- * Keystroke-owned OAuth client definition for the DocuSign public connection.
9
- *
10
- * Used for: OAuth authorization-code exchange, refresh, and the embedded
11
- * `/oauth/userinfo` lookup that resolves an account's `baseUri`.
12
- */
13
- declare const docusignAppCredentialSet: CredentialSet<"keystroke:docusign-app", z.ZodObject<{
14
- clientId: z.ZodString;
15
- clientSecret: z.ZodString;
16
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
17
- clientId: z.ZodString;
18
- clientSecret: z.ZodString;
19
- }, z.core.$strip>>[] | undefined>;
20
- /**
21
- * Keystroke-owned Connect webhook signing secrets.
22
- *
23
- * DocuSign Connect allows up to 10 concurrent HMAC shared secrets for rotation.
24
- * Each outbound webhook is signed with every enabled secret as a separate
25
- * `X-DocuSign-Signature-{N}` header. Verification accepts a delivery if any
26
- * header matches any configured secret under a constant-time compare.
27
- *
28
- * Secrets are parsed from `KEYSTROKE_OFFICIAL_DOCUSIGN_CONNECT_HMAC_SECRETS`,
29
- * a comma-separated list with newest first.
30
- */
31
- declare const docusignConnectCredentialSet: CredentialSet<"keystroke:docusign-connect", z.ZodObject<{
32
- hmacSecrets: z.ZodArray<z.ZodString>;
33
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
34
- hmacSecrets: z.ZodArray<z.ZodString>;
35
- }, z.core.$strip>>[] | undefined>;
36
- /**
37
- * Keystroke-owned JWT Grant integrator key + RSA private key.
38
- *
39
- * Declared for forward compatibility: runtime paths that require JWT Grant
40
- * (historical envelope replay, backend impersonation) will consume this
41
- * credential set in a follow-up without a registry change. Not wired to any
42
- * runtime path in v1 — any operation that would need JWT throws
43
- * `DocusignApiError.notImplemented({ kind: 'plan_gated' })` until then.
44
- */
45
- declare const docusignJwtCredentialSet: CredentialSet<"keystroke:docusign-jwt", z.ZodObject<{
46
- integratorKey: z.ZodString;
47
- impersonatedUserId: z.ZodUUID;
48
- privateKeyPem: z.ZodString;
49
- oauthHost: z.ZodEnum<{
50
- "account.docusign.com": "account.docusign.com";
51
- "account-d.docusign.com": "account-d.docusign.com";
52
- }>;
53
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
54
- integratorKey: z.ZodString;
55
- impersonatedUserId: z.ZodUUID;
56
- privateKeyPem: z.ZodString;
57
- oauthHost: z.ZodEnum<{
58
- "account.docusign.com": "account.docusign.com";
59
- "account-d.docusign.com": "account-d.docusign.com";
60
- }>;
61
- }, z.core.$strip>>[] | undefined>;
62
- /**
63
- * Parse the comma-separated `KEYSTROKE_OFFICIAL_DOCUSIGN_CONNECT_HMAC_SECRETS`
64
- * env value into the array shape the internal credential set expects. Empty
65
- * input resolves to `[]`, which fails the `.min(1)` parse so Connect triggers
66
- * reject deliveries until the env is populated.
67
- */
68
- declare function parseHmacSecrets(raw: string | undefined): readonly string[];
69
- declare const docusignOfficialProviderSeed: {
70
- readonly provider: "docusign";
71
- readonly appRef: "docusign-platform";
72
- readonly displayName: "DocuSign Platform";
73
- readonly credentialSetName: "Keystroke DocuSign Platform App";
74
- readonly envShape: {
75
- readonly KEYSTROKE_OFFICIAL_DOCUSIGN_CLIENT_ID: z.ZodOptional<z.ZodString>;
76
- readonly KEYSTROKE_OFFICIAL_DOCUSIGN_CLIENT_SECRET: z.ZodOptional<z.ZodString>;
77
- };
78
- readonly requiredEnvKeys: readonly ["KEYSTROKE_OFFICIAL_DOCUSIGN_CLIENT_ID", "KEYSTROKE_OFFICIAL_DOCUSIGN_CLIENT_SECRET"];
79
- readonly externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_DOCUSIGN_CLIENT_ID";
80
- readonly buildCredentials: (env: Record<string, string | undefined>) => {
81
- clientId: string | undefined;
82
- clientSecret: string | undefined;
83
- };
84
- };
85
- type DocusignAppCredentials = z.infer<typeof docusignAppCredentialSet.auth>;
86
- type DocusignConnectCredentials = z.infer<typeof docusignConnectCredentialSet.auth>;
87
- type DocusignJwtCredentials = z.infer<typeof docusignJwtCredentialSet.auth>;
88
- //#endregion
89
- export { DocusignAppCredentials, DocusignConnectCredentials, DocusignJwtCredentials, docusignAppCredentialSet, docusignBundle, docusignConnectCredentialSet, docusignJwtCredentialSet, docusignOfficialIntegration, docusignOfficialProviderSeed, parseHmacSecrets };
@@ -1,3 +0,0 @@
1
- import { c as docusignJwtCredentialSet, l as docusignOfficialProviderSeed, n as docusignBundle, o as docusignAppCredentialSet, r as docusignOfficialIntegration, s as docusignConnectCredentialSet, u as parseHmacSecrets } from "../integration-BcEp_dFX.mjs";
2
-
3
- export { docusignAppCredentialSet, docusignBundle, docusignConnectCredentialSet, docusignJwtCredentialSet, docusignOfficialIntegration, docusignOfficialProviderSeed, parseHmacSecrets };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -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/account-custom-fields.d.ts
6
- declare const createAccountCustomField: _keystrokehq_core0.Operation<z.ZodObject<{
7
- applyToTemplates: z.ZodOptional<z.ZodBoolean>;
8
- customField: 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 updateAccountCustomField: _keystrokehq_core0.Operation<z.ZodObject<{
23
- customFieldId: z.ZodString;
24
- customField: z.ZodObject<{
25
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
26
- }, z.core.$catchall<z.ZodUnknown>>;
27
- }, z.core.$strip>, z.ZodObject<{
28
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
29
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
30
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
31
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
32
- DOCUSIGN_BASE_URI: z.ZodURL;
33
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
34
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
35
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
36
- DOCUSIGN_BASE_URI: z.ZodURL;
37
- }, z.core.$strip>>[] | undefined>], undefined>;
38
- declare const deleteAccountCustomField: _keystrokehq_core0.Operation<z.ZodObject<{
39
- customFieldId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- success: z.ZodBoolean;
42
- }, z.core.$strip>, 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 retrieveAllAccountTabs: _keystrokehq_core0.Operation<z.ZodObject<{
52
- customTabOnly: z.ZodOptional<z.ZodBoolean>;
53
- }, z.core.$strip>, z.ZodObject<{
54
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
55
- }, z.core.$catchall<z.ZodUnknown>>, 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 { createAccountCustomField, deleteAccountCustomField, retrieveAllAccountTabs, updateAccountCustomField };
@@ -1,63 +0,0 @@
1
- import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
- import { r as defineRestOperation } from "./operation-helpers-Bqp7KoLi.mjs";
3
- import { z } from "zod";
4
-
5
- //#region src/account-custom-fields.ts
6
- /**
7
- * Account custom fields. Covers PLAN.md § 6.32.
8
- */
9
- const fieldId = z.object({ customFieldId: z.string().min(1) });
10
- const createAccountCustomField = defineRestOperation({
11
- id: "docusign.create-account-custom-field",
12
- slug: "DOCUSIGN_CREATE_ACCOUNT_CUSTOM_FIELD",
13
- name: "Create Account Custom Field",
14
- description: "Create a custom field at the account level.",
15
- needsApproval: true,
16
- method: "POST",
17
- path: "/custom_fields",
18
- input: z.object({
19
- applyToTemplates: z.boolean().optional(),
20
- customField: docusignLooseObjectSchema()
21
- }),
22
- output: docusignGenericObjectSchema,
23
- query: (input) => ({ apply_to_templates: input.applyToTemplates }),
24
- body: (input) => input.customField
25
- });
26
- const updateAccountCustomField = defineRestOperation({
27
- id: "docusign.update-account-custom-field",
28
- slug: "DOCUSIGN_UPDATE_ACCOUNT_CUSTOM_FIELD",
29
- name: "Update Account Custom Field",
30
- description: "Update an account-level custom field.",
31
- needsApproval: true,
32
- method: "PUT",
33
- path: (ctx) => `/custom_fields/${ctx.encode(String(ctx.input.customFieldId))}`,
34
- input: fieldId.extend({ customField: docusignLooseObjectSchema() }),
35
- output: docusignGenericObjectSchema,
36
- body: (input) => input.customField
37
- });
38
- const deleteAccountCustomField = defineRestOperation({
39
- id: "docusign.delete-account-custom-field",
40
- slug: "DOCUSIGN_DELETE_ACCOUNT_CUSTOM_FIELD",
41
- name: "Delete Account Custom Field",
42
- description: "Delete an account-level custom field.",
43
- needsApproval: true,
44
- method: "DELETE",
45
- path: (ctx) => `/custom_fields/${ctx.encode(String(ctx.input.customFieldId))}`,
46
- input: fieldId,
47
- output: docusignSuccessSchema,
48
- transformResponse: () => ({ success: true })
49
- });
50
- const retrieveAllAccountTabs = defineRestOperation({
51
- id: "docusign.retrieve-all-account-tabs",
52
- slug: "DOCUSIGN_RETRIEVE_ALL_ACCOUNT_TABS",
53
- name: "Retrieve All Account Tabs",
54
- description: "Retrieve all tabs available on the account.",
55
- method: "GET",
56
- path: "/tabs",
57
- input: z.object({ customTabOnly: z.boolean().optional() }),
58
- output: docusignGenericObjectSchema,
59
- query: (input) => ({ custom_tab_only: input.customTabOnly })
60
- });
61
-
62
- //#endregion
63
- export { createAccountCustomField, deleteAccountCustomField, retrieveAllAccountTabs, updateAccountCustomField };
@@ -1,164 +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/account-stamps.d.ts
6
- declare const addOrUpdateAccountStamps: _keystrokehq_core0.Operation<z.ZodObject<{
7
- stamps: z.ZodArray<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
- [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 retrieveAvailableAccountStamps: _keystrokehq_core0.Operation<z.ZodObject<{
22
- status: z.ZodOptional<z.ZodString>;
23
- }, z.core.$strip>, z.ZodObject<{
24
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
25
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
26
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
27
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
28
- DOCUSIGN_BASE_URI: z.ZodURL;
29
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
30
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
31
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
32
- DOCUSIGN_BASE_URI: z.ZodURL;
33
- }, z.core.$strip>>[] | undefined>], undefined>;
34
- declare const getSpecifiedAccountStampInfo: _keystrokehq_core0.Operation<z.ZodObject<{
35
- stampId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
38
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
39
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
40
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
41
- DOCUSIGN_BASE_URI: z.ZodURL;
42
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
43
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
44
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
45
- DOCUSIGN_BASE_URI: z.ZodURL;
46
- }, z.core.$strip>>[] | undefined>], undefined>;
47
- declare const getAccountStampImage: _keystrokehq_core0.Operation<z.ZodObject<{
48
- stampId: z.ZodString;
49
- stampFormat: z.ZodOptional<z.ZodString>;
50
- }, z.core.$strip>, z.ZodObject<{
51
- contentType: z.ZodOptional<z.ZodString>;
52
- contentDisposition: z.ZodOptional<z.ZodString>;
53
- status: z.ZodNumber;
54
- body: z.ZodString;
55
- }, z.core.$catchall<z.ZodUnknown>>, 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 updateAccountStampById: _keystrokehq_core0.Operation<z.ZodObject<{
65
- stampId: z.ZodString;
66
- stamp: z.ZodObject<{
67
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
68
- }, z.core.$catchall<z.ZodUnknown>>;
69
- }, z.core.$strip>, z.ZodObject<{
70
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
71
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
72
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
73
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
74
- DOCUSIGN_BASE_URI: z.ZodURL;
75
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
76
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
77
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
78
- DOCUSIGN_BASE_URI: z.ZodURL;
79
- }, z.core.$strip>>[] | undefined>], undefined>;
80
- declare const updateAccountStamps: _keystrokehq_core0.Operation<z.ZodObject<{
81
- stamps: z.ZodArray<z.ZodObject<{
82
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
83
- }, z.core.$catchall<z.ZodUnknown>>>;
84
- }, z.core.$strip>, z.ZodObject<{
85
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
86
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
87
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
88
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
89
- DOCUSIGN_BASE_URI: z.ZodURL;
90
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
91
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
92
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
93
- DOCUSIGN_BASE_URI: z.ZodURL;
94
- }, z.core.$strip>>[] | undefined>], undefined>;
95
- declare const deleteAccountStamp: _keystrokehq_core0.Operation<z.ZodObject<{
96
- stampId: z.ZodString;
97
- }, z.core.$strip>, z.ZodObject<{
98
- success: z.ZodBoolean;
99
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
100
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
101
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
102
- DOCUSIGN_BASE_URI: z.ZodURL;
103
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
104
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
105
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
106
- DOCUSIGN_BASE_URI: z.ZodURL;
107
- }, z.core.$strip>>[] | undefined>], undefined>;
108
- declare const deleteStampImageForAccount: _keystrokehq_core0.Operation<z.ZodObject<{
109
- stampId: z.ZodString;
110
- stampFormat: z.ZodOptional<z.ZodString>;
111
- }, z.core.$strip>, z.ZodObject<{
112
- success: z.ZodBoolean;
113
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
114
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
115
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
116
- DOCUSIGN_BASE_URI: z.ZodURL;
117
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
118
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
119
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
120
- DOCUSIGN_BASE_URI: z.ZodURL;
121
- }, z.core.$strip>>[] | undefined>], undefined>;
122
- declare const getWatermarkDetailsForAccount: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
123
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
124
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
125
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
126
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
127
- DOCUSIGN_BASE_URI: z.ZodURL;
128
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
129
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
130
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
131
- DOCUSIGN_BASE_URI: z.ZodURL;
132
- }, z.core.$strip>>[] | undefined>], undefined>;
133
- declare const updateAccountWatermarkInformation: _keystrokehq_core0.Operation<z.ZodObject<{
134
- watermark: z.ZodObject<{
135
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
136
- }, z.core.$catchall<z.ZodUnknown>>;
137
- }, z.core.$strip>, z.ZodObject<{
138
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
139
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
140
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
141
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
142
- DOCUSIGN_BASE_URI: z.ZodURL;
143
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
144
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
145
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
146
- DOCUSIGN_BASE_URI: z.ZodURL;
147
- }, z.core.$strip>>[] | undefined>], undefined>;
148
- declare const updateAccountWatermarkPreview: _keystrokehq_core0.Operation<z.ZodObject<{
149
- watermark: z.ZodObject<{
150
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
151
- }, z.core.$catchall<z.ZodUnknown>>;
152
- }, z.core.$strip>, z.ZodObject<{
153
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
154
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
155
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
156
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
157
- DOCUSIGN_BASE_URI: z.ZodURL;
158
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
159
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
160
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
161
- DOCUSIGN_BASE_URI: z.ZodURL;
162
- }, z.core.$strip>>[] | undefined>], undefined>;
163
- //#endregion
164
- export { addOrUpdateAccountStamps, deleteAccountStamp, deleteStampImageForAccount, getAccountStampImage, getSpecifiedAccountStampInfo, getWatermarkDetailsForAccount, retrieveAvailableAccountStamps, updateAccountStampById, updateAccountStamps, updateAccountWatermarkInformation, updateAccountWatermarkPreview };