@keystrokehq/docusign 0.0.1 → 0.0.5

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 (111) hide show
  1. package/LICENSE +21 -0
  2. package/dist/_official/index.d.mts +88 -2
  3. package/dist/_official/index.mjs +1 -1
  4. package/dist/account-custom-fields.d.mts +4 -4
  5. package/dist/account-custom-fields.mjs +1 -1
  6. package/dist/account-stamps.d.mts +11 -11
  7. package/dist/account-stamps.mjs +1 -1
  8. package/dist/account-tabs.d.mts +6 -6
  9. package/dist/account-tabs.mjs +1 -1
  10. package/dist/account.d.mts +18 -18
  11. package/dist/account.mjs +1 -1
  12. package/dist/admin.d.mts +1 -1
  13. package/dist/admin.mjs +1 -1
  14. package/dist/auth.d.mts +2 -2
  15. package/dist/auth.mjs +2 -2
  16. package/dist/bcc-archive.d.mts +4 -4
  17. package/dist/bcc-archive.mjs +1 -1
  18. package/dist/billing.d.mts +16 -16
  19. package/dist/billing.mjs +1 -1
  20. package/dist/brands.d.mts +11 -11
  21. package/dist/brands.mjs +1 -1
  22. package/dist/bulk-send.d.mts +9 -9
  23. package/dist/bulk-send.mjs +1 -1
  24. package/dist/chunked-uploads.d.mts +5 -5
  25. package/dist/chunked-uploads.mjs +1 -1
  26. package/dist/click.d.mts +1 -1
  27. package/dist/click.mjs +1 -1
  28. package/dist/client.d.mts +1 -1
  29. package/dist/clm.d.mts +1 -1
  30. package/dist/clm.mjs +1 -1
  31. package/dist/cloud-storage.d.mts +7 -7
  32. package/dist/cloud-storage.mjs +1 -1
  33. package/dist/connect.d.mts +17 -17
  34. package/dist/connect.mjs +1 -1
  35. package/dist/connection.d.mts +1 -1
  36. package/dist/connection.mjs +1 -1
  37. package/dist/contacts.d.mts +5 -5
  38. package/dist/contacts.mjs +1 -1
  39. package/dist/enote.d.mts +3 -3
  40. package/dist/enote.mjs +1 -1
  41. package/dist/envelope-attachments.d.mts +5 -5
  42. package/dist/envelope-attachments.mjs +1 -1
  43. package/dist/envelope-custom-fields.d.mts +7 -7
  44. package/dist/envelope-custom-fields.mjs +1 -1
  45. package/dist/envelope-documents.d.mts +16 -16
  46. package/dist/envelope-documents.mjs +1 -1
  47. package/dist/envelope-email.d.mts +4 -4
  48. package/dist/envelope-email.mjs +1 -1
  49. package/dist/envelope-lock.d.mts +4 -4
  50. package/dist/envelope-lock.mjs +1 -1
  51. package/dist/envelope-logs.d.mts +9 -9
  52. package/dist/envelope-logs.mjs +1 -1
  53. package/dist/envelope-notifications.d.mts +3 -3
  54. package/dist/envelope-notifications.mjs +1 -1
  55. package/dist/envelope-recipients.d.mts +11 -11
  56. package/dist/envelope-recipients.mjs +1 -1
  57. package/dist/envelope-tabs.d.mts +3 -3
  58. package/dist/envelope-tabs.mjs +1 -1
  59. package/dist/envelope-views.d.mts +6 -6
  60. package/dist/envelope-views.mjs +1 -1
  61. package/dist/envelope-workflow.d.mts +14 -14
  62. package/dist/envelope-workflow.mjs +1 -1
  63. package/dist/envelopes.d.mts +15 -15
  64. package/dist/envelopes.mjs +1 -1
  65. package/dist/{factory-wViQTjgN.mjs → factory-ClSEzrAD.mjs} +1 -1
  66. package/dist/groups.d.mts +10 -10
  67. package/dist/groups.mjs +1 -1
  68. package/dist/{integration-CmRztL9R.mjs → integration-CvklEzS1.mjs} +4 -4
  69. package/dist/{integration-DqwHRkRh.d.mts → integration-SYThzunD.d.mts} +1 -1
  70. package/dist/monitor.d.mts +1 -1
  71. package/dist/monitor.mjs +1 -1
  72. package/dist/notary.d.mts +9 -9
  73. package/dist/notary.mjs +1 -1
  74. package/dist/{operation-helpers-BMTArRh9.mjs → operation-helpers-zBo8nFfG.mjs} +1 -1
  75. package/dist/permission-profiles.d.mts +5 -5
  76. package/dist/permission-profiles.mjs +1 -1
  77. package/dist/power-forms.d.mts +3 -3
  78. package/dist/power-forms.mjs +1 -1
  79. package/dist/rooms.d.mts +1 -1
  80. package/dist/rooms.mjs +1 -1
  81. package/dist/schemas/index.d.mts +4 -4
  82. package/dist/signing-groups.d.mts +9 -9
  83. package/dist/signing-groups.mjs +1 -1
  84. package/dist/template-custom-fields.d.mts +8 -8
  85. package/dist/template-custom-fields.mjs +1 -1
  86. package/dist/template-documents.d.mts +8 -8
  87. package/dist/template-documents.mjs +1 -1
  88. package/dist/template-lock.d.mts +4 -4
  89. package/dist/template-lock.mjs +1 -1
  90. package/dist/template-sharing.d.mts +8 -8
  91. package/dist/template-sharing.mjs +1 -1
  92. package/dist/template-workflow.d.mts +12 -12
  93. package/dist/template-workflow.mjs +1 -1
  94. package/dist/templates.d.mts +7 -7
  95. package/dist/templates.mjs +1 -1
  96. package/dist/user-authorizations.d.mts +8 -8
  97. package/dist/user-authorizations.mjs +1 -1
  98. package/dist/user-custom-settings.d.mts +5 -5
  99. package/dist/user-custom-settings.mjs +1 -1
  100. package/dist/user-profile.d.mts +7 -7
  101. package/dist/user-profile.mjs +1 -1
  102. package/dist/user-signatures.d.mts +13 -13
  103. package/dist/user-signatures.mjs +1 -1
  104. package/dist/users.d.mts +6 -6
  105. package/dist/users.mjs +1 -1
  106. package/dist/workspaces.d.mts +11 -11
  107. package/dist/workspaces.mjs +1 -1
  108. package/package.json +22 -24
  109. package/dist/provider-app-CWp1SuI4.d.mts +0 -88
  110. package/dist/triggers.d.mts +0 -43
  111. package/dist/triggers.mjs +0 -91
@@ -10,7 +10,7 @@ declare const addOrUpdateUserSignature: _keystrokehq_core0.Operation<z.ZodObject
10
10
  }, z.core.$catchall<z.ZodUnknown>>>;
11
11
  }, z.core.$strip>, z.ZodObject<{
12
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<{
13
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
14
14
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
15
15
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
16
16
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -26,7 +26,7 @@ declare const addUserSignatureAndInitialsImages: _keystrokehq_core0.Operation<z.
26
26
  }, z.core.$catchall<z.ZodUnknown>>>;
27
27
  }, z.core.$strip>, z.ZodObject<{
28
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<{
29
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
30
30
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
31
31
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
32
32
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -39,7 +39,7 @@ declare const retrieveUserSignatureDefinitions: _keystrokehq_core0.Operation<z.Z
39
39
  userId: z.ZodString;
40
40
  }, z.core.$strip>, z.ZodObject<{
41
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<{
42
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
43
43
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
44
44
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
45
45
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -53,7 +53,7 @@ declare const retrieveUserSignatureInformation: _keystrokehq_core0.Operation<z.Z
53
53
  signatureId: z.ZodString;
54
54
  }, z.core.$strip>, z.ZodObject<{
55
55
  [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
56
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
56
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
57
57
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
58
58
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
59
59
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -70,7 +70,7 @@ declare const retrieveUserSignatureImage: _keystrokehq_core0.Operation<z.ZodObje
70
70
  contentDisposition: z.ZodOptional<z.ZodString>;
71
71
  status: z.ZodNumber;
72
72
  body: z.ZodString;
73
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
73
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
74
74
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
75
75
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
76
76
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -85,7 +85,7 @@ declare const setUserSignatureImage: _keystrokehq_core0.Operation<z.ZodObject<{
85
85
  image: z.ZodString;
86
86
  }, z.core.$strip>, z.ZodObject<{
87
87
  [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
88
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
88
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
89
89
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
90
90
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
91
91
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -102,7 +102,7 @@ declare const updateUserSignatureById: _keystrokehq_core0.Operation<z.ZodObject<
102
102
  }, z.core.$catchall<z.ZodUnknown>>;
103
103
  }, z.core.$strip>, z.ZodObject<{
104
104
  [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
105
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
105
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
106
106
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
107
107
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
108
108
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -119,7 +119,7 @@ declare const retrieveUserInitialsImageForEnvelopes: _keystrokehq_core0.Operatio
119
119
  contentDisposition: z.ZodOptional<z.ZodString>;
120
120
  status: z.ZodNumber;
121
121
  body: z.ZodString;
122
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
122
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
123
123
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
124
124
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
125
125
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -137,7 +137,7 @@ declare const deleteUserInitialsOrSignatureImage: _keystrokehq_core0.Operation<z
137
137
  }>>;
138
138
  }, z.core.$strip>, z.ZodObject<{
139
139
  success: z.ZodBoolean;
140
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
140
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
141
141
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
142
142
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
143
143
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -151,7 +151,7 @@ declare const removeUserSignatureInformation: _keystrokehq_core0.Operation<z.Zod
151
151
  signatureId: z.ZodString;
152
152
  }, z.core.$strip>, z.ZodObject<{
153
153
  success: z.ZodBoolean;
154
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
154
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
155
155
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
156
156
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
157
157
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -166,7 +166,7 @@ declare const setInitialsImageForAccountlessSigner: _keystrokehq_core0.Operation
166
166
  image: z.ZodString;
167
167
  }, z.core.$strip>, z.ZodObject<{
168
168
  [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
169
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
169
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
170
170
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
171
171
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
172
172
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -181,7 +181,7 @@ declare const setSignatureImageForNoAccountSigner: _keystrokehq_core0.Operation<
181
181
  image: z.ZodString;
182
182
  }, z.core.$strip>, z.ZodObject<{
183
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<{
184
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
185
185
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
186
186
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
187
187
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -195,7 +195,7 @@ declare const deleteSignatureForCaptiveRecipients: _keystrokehq_core0.Operation<
195
195
  recipientId: z.ZodString;
196
196
  }, z.core.$strip>, z.ZodObject<{
197
197
  success: z.ZodBoolean;
198
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
198
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
199
199
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
200
200
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
201
201
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -1,5 +1,5 @@
1
1
  import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
- import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-BMTArRh9.mjs";
2
+ import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-zBo8nFfG.mjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/user-signatures.ts
package/dist/users.d.mts CHANGED
@@ -28,7 +28,7 @@ declare const listUsersForAccount: _keystrokehq_core0.Operation<z.ZodObject<{
28
28
  firstName: z.ZodOptional<z.ZodString>;
29
29
  lastName: z.ZodOptional<z.ZodString>;
30
30
  }, z.core.$catchall<z.ZodUnknown>>>>;
31
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
31
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
32
32
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
33
33
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
34
34
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -43,7 +43,7 @@ declare const addNewUsersToASpecifiedAccount: _keystrokehq_core0.Operation<z.Zod
43
43
  }, z.core.$catchall<z.ZodUnknown>>>;
44
44
  }, z.core.$strip>, z.ZodObject<{
45
45
  [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
46
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
46
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
47
47
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
48
48
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
49
49
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -63,7 +63,7 @@ declare const getUserInformationById: _keystrokehq_core0.Operation<z.ZodObject<{
63
63
  userType: z.ZodOptional<z.ZodString>;
64
64
  firstName: z.ZodOptional<z.ZodString>;
65
65
  lastName: z.ZodOptional<z.ZodString>;
66
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
66
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
67
67
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
68
68
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
69
69
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -85,7 +85,7 @@ declare const updateUserInformationForSpecifiedUser: _keystrokehq_core0.Operatio
85
85
  userType: z.ZodOptional<z.ZodString>;
86
86
  firstName: z.ZodOptional<z.ZodString>;
87
87
  lastName: z.ZodOptional<z.ZodString>;
88
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
88
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
89
89
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
90
90
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
91
91
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -100,7 +100,7 @@ declare const changeUsersInAccount: _keystrokehq_core0.Operation<z.ZodObject<{
100
100
  }, z.core.$catchall<z.ZodUnknown>>>;
101
101
  }, z.core.$strip>, z.ZodObject<{
102
102
  [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
103
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
103
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
104
104
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
105
105
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
106
106
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -115,7 +115,7 @@ declare const closeUsersInAccount: _keystrokehq_core0.Operation<z.ZodObject<{
115
115
  }, z.core.$catchall<z.ZodUnknown>>>;
116
116
  }, z.core.$strip>, z.ZodObject<{
117
117
  [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
118
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
118
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
119
119
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
120
120
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
121
121
  DOCUSIGN_BASE_URI: z.ZodURL;
package/dist/users.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { docusignGenericObjectSchema, docusignListPaginationInputSchema, docusignLooseObjectSchema, docusignUserListSchema, docusignUserSchema } from "./schemas/index.mjs";
2
- import { r as defineRestOperation } from "./operation-helpers-BMTArRh9.mjs";
2
+ import { r as defineRestOperation } from "./operation-helpers-zBo8nFfG.mjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/users.ts
@@ -9,7 +9,7 @@ declare const createACollaborativeWorkspace: _keystrokehq_core0.Operation<z.ZodO
9
9
  }, z.core.$catchall<z.ZodUnknown>>;
10
10
  }, z.core.$strip>, z.ZodObject<{
11
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<{
12
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
13
13
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
14
14
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
15
15
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -20,7 +20,7 @@ declare const createACollaborativeWorkspace: _keystrokehq_core0.Operation<z.ZodO
20
20
  }, z.core.$strip>>[] | undefined>], undefined>;
21
21
  declare const listWorkspaces: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
22
22
  [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
23
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
23
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
24
24
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
25
25
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
26
26
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -33,7 +33,7 @@ declare const retrievePropertiesAboutWorkspace: _keystrokehq_core0.Operation<z.Z
33
33
  workspaceId: z.ZodString;
34
34
  }, z.core.$strip>, z.ZodObject<{
35
35
  [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
36
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
36
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
37
37
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
38
38
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
39
39
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -49,7 +49,7 @@ declare const updateWorkspaceInformation: _keystrokehq_core0.Operation<z.ZodObje
49
49
  }, z.core.$catchall<z.ZodUnknown>>;
50
50
  }, z.core.$strip>, z.ZodObject<{
51
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<{
52
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
53
53
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
54
54
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
55
55
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -62,7 +62,7 @@ declare const deleteExistingWorkspaceLogically: _keystrokehq_core0.Operation<z.Z
62
62
  workspaceId: z.ZodString;
63
63
  }, z.core.$strip>, z.ZodObject<{
64
64
  success: z.ZodBoolean;
65
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
65
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
66
66
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
67
67
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
68
68
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -79,7 +79,7 @@ declare const addFileToWorkspace: _keystrokehq_core0.Operation<z.ZodObject<{
79
79
  }, z.core.$catchall<z.ZodUnknown>>;
80
80
  }, z.core.$strip>, z.ZodObject<{
81
81
  [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
82
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
82
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
83
83
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
84
84
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
85
85
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -97,7 +97,7 @@ declare const getWorkspaceFile: _keystrokehq_core0.Operation<z.ZodObject<{
97
97
  contentDisposition: z.ZodOptional<z.ZodString>;
98
98
  status: z.ZodNumber;
99
99
  body: z.ZodString;
100
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
100
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
101
101
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
102
102
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
103
103
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -112,7 +112,7 @@ declare const listWorkspaceFilePages: _keystrokehq_core0.Operation<z.ZodObject<{
112
112
  fileId: z.ZodString;
113
113
  }, z.core.$strip>, z.ZodObject<{
114
114
  [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
115
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
115
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
116
116
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
117
117
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
118
118
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -126,7 +126,7 @@ declare const getWorkspaceFolderContents: _keystrokehq_core0.Operation<z.ZodObje
126
126
  folderId: z.ZodString;
127
127
  }, z.core.$strip>, z.ZodObject<{
128
128
  [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
129
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
129
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
130
130
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
131
131
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
132
132
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -142,7 +142,7 @@ declare const deleteWorkspaceFilesOrFolders: _keystrokehq_core0.Operation<z.ZodO
142
142
  }, z.core.$catchall<z.ZodUnknown>>>;
143
143
  }, z.core.$strip>, z.ZodObject<{
144
144
  success: z.ZodBoolean;
145
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
145
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
146
146
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
147
147
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
148
148
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -160,7 +160,7 @@ declare const updateWorkspaceItemMetadata: _keystrokehq_core0.Operation<z.ZodObj
160
160
  }, z.core.$catchall<z.ZodUnknown>>;
161
161
  }, z.core.$strip>, z.ZodObject<{
162
162
  [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
163
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
163
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
164
164
  DOCUSIGN_ACCESS_TOKEN: z.ZodString;
165
165
  DOCUSIGN_ACCOUNT_ID: z.ZodString;
166
166
  DOCUSIGN_BASE_URI: z.ZodURL;
@@ -1,5 +1,5 @@
1
1
  import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
- import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-BMTArRh9.mjs";
2
+ import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-zBo8nFfG.mjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/workspaces.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/docusign",
3
- "version": "0.0.1",
3
+ "version": "0.0.5",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -37,10 +37,6 @@
37
37
  "types": "./dist/events.d.mts",
38
38
  "default": "./dist/events.mjs"
39
39
  },
40
- "./triggers": {
41
- "types": "./dist/triggers.d.mts",
42
- "default": "./dist/triggers.mjs"
43
- },
44
40
  "./verification": {
45
41
  "types": "./dist/verification.d.mts",
46
42
  "default": "./dist/verification.mjs"
@@ -247,28 +243,22 @@
247
243
  "README.md",
248
244
  "LICENSE"
249
245
  ],
250
- "scripts": {
251
- "typecheck": "tsgo --build",
252
- "build": "tsdown",
253
- "lint": "biome check .",
254
- "test:unit": "vitest run --passWithNoTests --project unit",
255
- "test:int": "vitest run --passWithNoTests --project int",
256
- "prepublishOnly": "pnpm build && pnpm test:unit",
257
- "lint:fix": "biome check --write ."
258
- },
259
246
  "dependencies": {
260
- "@keystrokehq/credential-connection": "^0.0.1",
261
- "@keystrokehq/integration-authoring": "^0.0.1",
262
- "@keystrokehq/core": "^0.0.5",
247
+ "@keystrokehq/credential-connection": "^0.0.4",
248
+ "@keystrokehq/integration-authoring": "^0.0.5",
263
249
  "zod": "^4.3.6"
264
250
  },
251
+ "peerDependencies": {
252
+ "@keystrokehq/core": ">=0.0.7 <0.1.0"
253
+ },
265
254
  "devDependencies": {
266
- "@types/node": "catalog:",
267
- "@keystrokehq/test-utils": "workspace:*",
268
- "@keystrokehq/typescript-config": "workspace:*",
269
- "tsdown": "catalog:",
270
- "typescript": "catalog:",
271
- "vitest": "catalog:"
255
+ "@types/node": "^22.19.11",
256
+ "tsdown": "^0.20.3",
257
+ "typescript": "^5.9.3",
258
+ "vitest": "^4.0.18",
259
+ "@keystrokehq/core": "^0.0.7",
260
+ "@keystrokehq/test-utils": "0.0.0",
261
+ "@keystrokehq/typescript-config": "0.0.0"
272
262
  },
273
263
  "keywords": [
274
264
  "docusign",
@@ -287,5 +277,13 @@
287
277
  "publishConfig": {
288
278
  "access": "public",
289
279
  "registry": "https://registry.npmjs.org/"
280
+ },
281
+ "scripts": {
282
+ "typecheck": "tsgo --build",
283
+ "build": "tsdown",
284
+ "lint": "biome check .",
285
+ "test:unit": "vitest run --passWithNoTests --project unit",
286
+ "test:int": "vitest run --passWithNoTests --project int",
287
+ "lint:fix": "biome check --write ."
290
288
  }
291
- }
289
+ }
@@ -1,88 +0,0 @@
1
- import { z } from "zod";
2
- import { CredentialSet } from "@keystrokehq/core";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
-
5
- //#region src/_official/provider-app.d.ts
6
- /**
7
- * Keystroke-owned OAuth client definition for the DocuSign public connection.
8
- *
9
- * Used for: OAuth authorization-code exchange, refresh, and the embedded
10
- * `/oauth/userinfo` lookup that resolves an account's `baseUri`.
11
- */
12
- declare const docusignAppCredentialSet: CredentialSet<"docusign-app", z.ZodObject<{
13
- clientId: z.ZodString;
14
- clientSecret: z.ZodString;
15
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
16
- clientId: z.ZodString;
17
- clientSecret: z.ZodString;
18
- }, z.core.$strip>>[] | undefined>;
19
- /**
20
- * Keystroke-owned Connect webhook signing secrets.
21
- *
22
- * DocuSign Connect allows up to 10 concurrent HMAC shared secrets for rotation.
23
- * Each outbound webhook is signed with every enabled secret as a separate
24
- * `X-DocuSign-Signature-{N}` header. Verification accepts a delivery if any
25
- * header matches any configured secret under a constant-time compare.
26
- *
27
- * Secrets are parsed from `KEYSTROKE_PLATFORM_DOCUSIGN_CONNECT_HMAC_SECRETS`,
28
- * a comma-separated list with newest first.
29
- */
30
- declare const docusignConnectCredentialSet: CredentialSet<"docusign-connect", z.ZodObject<{
31
- hmacSecrets: z.ZodArray<z.ZodString>;
32
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
33
- hmacSecrets: z.ZodArray<z.ZodString>;
34
- }, z.core.$strip>>[] | undefined>;
35
- /**
36
- * Keystroke-owned JWT Grant integrator key + RSA private key.
37
- *
38
- * Declared for forward compatibility: runtime paths that require JWT Grant
39
- * (historical envelope replay, backend impersonation) will consume this
40
- * credential set in a follow-up without a registry change. Not wired to any
41
- * runtime path in v1 — any operation that would need JWT throws
42
- * `DocusignApiError.notImplemented({ kind: 'plan_gated' })` until then.
43
- */
44
- declare const docusignJwtCredentialSet: CredentialSet<"docusign-jwt", z.ZodObject<{
45
- integratorKey: z.ZodString;
46
- impersonatedUserId: z.ZodUUID;
47
- privateKeyPem: z.ZodString;
48
- oauthHost: z.ZodEnum<{
49
- "account.docusign.com": "account.docusign.com";
50
- "account-d.docusign.com": "account-d.docusign.com";
51
- }>;
52
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
53
- integratorKey: z.ZodString;
54
- impersonatedUserId: z.ZodUUID;
55
- privateKeyPem: z.ZodString;
56
- oauthHost: z.ZodEnum<{
57
- "account.docusign.com": "account.docusign.com";
58
- "account-d.docusign.com": "account-d.docusign.com";
59
- }>;
60
- }, z.core.$strip>>[] | undefined>;
61
- /**
62
- * Parse the comma-separated `KEYSTROKE_PLATFORM_DOCUSIGN_CONNECT_HMAC_SECRETS`
63
- * env value into the array shape the internal credential set expects. Empty
64
- * input resolves to `[]`, which fails the `.min(1)` parse so Connect triggers
65
- * reject deliveries until the env is populated.
66
- */
67
- declare function parseHmacSecrets(raw: string | undefined): readonly string[];
68
- declare const docusignPlatformProviderSeed: {
69
- readonly provider: "docusign";
70
- readonly appRef: "docusign-platform";
71
- readonly displayName: "DocuSign Platform";
72
- readonly credentialSetName: "Keystroke DocuSign Platform App";
73
- readonly envShape: {
74
- readonly KEYSTROKE_PLATFORM_DOCUSIGN_CLIENT_ID: z.ZodOptional<z.ZodString>;
75
- readonly KEYSTROKE_PLATFORM_DOCUSIGN_CLIENT_SECRET: z.ZodOptional<z.ZodString>;
76
- };
77
- readonly requiredEnvKeys: readonly ["KEYSTROKE_PLATFORM_DOCUSIGN_CLIENT_ID", "KEYSTROKE_PLATFORM_DOCUSIGN_CLIENT_SECRET"];
78
- readonly externalAppIdEnvKey: "KEYSTROKE_PLATFORM_DOCUSIGN_CLIENT_ID";
79
- readonly buildCredentials: (env: Record<string, string | undefined>) => {
80
- clientId: string | undefined;
81
- clientSecret: string | undefined;
82
- };
83
- };
84
- type DocusignAppCredentials = z.infer<typeof docusignAppCredentialSet.auth>;
85
- type DocusignConnectCredentials = z.infer<typeof docusignConnectCredentialSet.auth>;
86
- type DocusignJwtCredentials = z.infer<typeof docusignJwtCredentialSet.auth>;
87
- //#endregion
88
- export { docusignConnectCredentialSet as a, parseHmacSecrets as c, docusignAppCredentialSet as i, DocusignConnectCredentials as n, docusignJwtCredentialSet as o, DocusignJwtCredentials as r, docusignPlatformProviderSeed as s, DocusignAppCredentials as t };
@@ -1,43 +0,0 @@
1
- import { n as docusign } from "./integration-DqwHRkRh.mjs";
2
- import { a as docusignConnectCredentialSet } from "./provider-app-CWp1SuI4.mjs";
3
- import { DocusignConnectEnvelope, docusignConnectEnvelopeSchema } from "./events.mjs";
4
- import { z } from "zod";
5
- import { BoundTrigger, WebhookRequest } from "@keystrokehq/core";
6
- import { IntegrationTriggerBindingOptions } from "@keystrokehq/integration-authoring";
7
- import { WebhookTriggerManifest } from "@keystrokehq/core/trigger";
8
-
9
- //#region src/triggers.d.ts
10
- type DocusignConnectCredentialSets = readonly [typeof docusign, typeof docusignConnectCredentialSet];
11
- type DocusignWebhookBindingOptions<TOutput = DocusignConnectEnvelope> = IntegrationTriggerBindingOptions<DocusignConnectEnvelope, TOutput, WebhookRequest>;
12
- type DocusignWebhookBoundTrigger<TOutput = DocusignConnectEnvelope> = BoundTrigger<z.output<typeof docusignConnectEnvelopeSchema>, DocusignConnectCredentialSets, WebhookTriggerManifest, TOutput, WebhookRequest>;
13
- type DocusignWebhookBindingSurface = <TOutput = DocusignConnectEnvelope>(options?: DocusignWebhookBindingOptions<TOutput>) => DocusignWebhookBoundTrigger<TOutput>;
14
- interface DocusignWebhookNamespace {
15
- readonly envelopeSent: DocusignWebhookBindingSurface;
16
- readonly envelopeResent: DocusignWebhookBindingSurface;
17
- readonly envelopeDelivered: DocusignWebhookBindingSurface;
18
- readonly envelopeSigned: DocusignWebhookBindingSurface;
19
- readonly envelopeCompleted: DocusignWebhookBindingSurface;
20
- readonly envelopeDeclined: DocusignWebhookBindingSurface;
21
- readonly envelopeVoided: DocusignWebhookBindingSurface;
22
- readonly envelopeCorrected: DocusignWebhookBindingSurface;
23
- readonly envelopeDiscarded: DocusignWebhookBindingSurface;
24
- readonly envelopePurged: DocusignWebhookBindingSurface;
25
- readonly envelopeReassigned: DocusignWebhookBindingSurface;
26
- readonly envelopeDeleted: DocusignWebhookBindingSurface;
27
- readonly envelopeDocumentsPurged: DocusignWebhookBindingSurface;
28
- readonly recipientSent: DocusignWebhookBindingSurface;
29
- readonly recipientResent: DocusignWebhookBindingSurface;
30
- readonly recipientDelivered: DocusignWebhookBindingSurface;
31
- readonly recipientCompleted: DocusignWebhookBindingSurface;
32
- readonly recipientDeclined: DocusignWebhookBindingSurface;
33
- readonly recipientAuthenticationFailed: DocusignWebhookBindingSurface;
34
- readonly recipientAutoresponded: DocusignWebhookBindingSurface;
35
- readonly recipientDelegated: DocusignWebhookBindingSurface;
36
- readonly recipientFinishLater: DocusignWebhookBindingSurface;
37
- readonly recipientReassigned: DocusignWebhookBindingSurface;
38
- readonly templateCreated: DocusignWebhookBindingSurface;
39
- readonly templateModified: DocusignWebhookBindingSurface;
40
- }
41
- declare const webhooks: DocusignWebhookNamespace;
42
- //#endregion
43
- export { DocusignWebhookNamespace, webhooks };
package/dist/triggers.mjs DELETED
@@ -1,91 +0,0 @@
1
- import { s as docusignConnectCredentialSet, t as docusign } from "./integration-CmRztL9R.mjs";
2
- import { DocusignApiError } from "./errors.mjs";
3
- import { docusignConnectEnvelopeSchema } from "./events.mjs";
4
- import { verifyDocusignConnectRequest } from "./verification.mjs";
5
- import { createWebhookTriggerBindingFactory } from "@keystrokehq/integration-authoring";
6
-
7
- //#region src/triggers.ts
8
- function deriveIdempotencyKey(payload) {
9
- const subject = payload.data.envelopeId ?? payload.data.templateId ?? payload.data.recipientId ?? "unknown";
10
- const recipient = payload.data.recipientId ?? payload.data.recipientIdGuid ?? "";
11
- const generatedAt = payload.generatedDateTime ?? "0";
12
- const recipientSuffix = recipient ? `:${recipient}` : "";
13
- return `${payload.event}:${subject}${recipientSuffix}:${generatedAt}`;
14
- }
15
- function createDocusignBinding(eventName, defaultName, defaultDescription) {
16
- return createWebhookTriggerBindingFactory({
17
- defaultName,
18
- defaultDescription,
19
- path: "/docusign",
20
- method: "POST",
21
- payload: docusignConnectEnvelopeSchema,
22
- credentialSets: [docusign, docusignConnectCredentialSet],
23
- verify: (request, ctx) => {
24
- const connectCreds = ctx.credentials["docusign-connect"];
25
- if (!connectCreds?.hmacSecrets || connectCreds.hmacSecrets.length === 0) throw DocusignApiError.webhookSignature("DocuSign Connect HMAC secrets are not configured. Set KEYSTROKE_PLATFORM_DOCUSIGN_CONNECT_HMAC_SECRETS before enabling webhook triggers.");
26
- if (!verifyDocusignConnectRequest({
27
- headers: request.headers,
28
- rawBody: request.rawBody,
29
- secrets: connectCreds.hmacSecrets
30
- })) throw DocusignApiError.webhookSignature("Invalid DocuSign Connect webhook signature. None of the provided X-DocuSign-Signature-* headers matched any configured secret.");
31
- },
32
- definitionFilter: (payload) => payload.event === eventName,
33
- idempotencyKey: (payload) => deriveIdempotencyKey(payload),
34
- response: { successStatus: 200 }
35
- });
36
- }
37
- const envelopeSentBinding = createDocusignBinding("envelope-sent", "DocuSign Envelope Sent", "DocuSign envelope sent event");
38
- const envelopeResentBinding = createDocusignBinding("envelope-resent", "DocuSign Envelope Resent", "DocuSign envelope resent event");
39
- const envelopeDeliveredBinding = createDocusignBinding("envelope-delivered", "DocuSign Envelope Delivered", "DocuSign envelope delivered event (first recipient view)");
40
- const envelopeSignedBinding = createDocusignBinding("envelope-signed", "DocuSign Envelope Signed", "DocuSign envelope signed event (alias of recipient-completed for single-signer envelopes)");
41
- const envelopeCompletedBinding = createDocusignBinding("envelope-completed", "DocuSign Envelope Completed", "DocuSign envelope completed (fully executed) event");
42
- const envelopeDeclinedBinding = createDocusignBinding("envelope-declined", "DocuSign Envelope Declined", "DocuSign envelope declined event");
43
- const envelopeVoidedBinding = createDocusignBinding("envelope-voided", "DocuSign Envelope Voided", "DocuSign envelope voided event");
44
- const envelopeCorrectedBinding = createDocusignBinding("envelope-corrected", "DocuSign Envelope Corrected", "DocuSign envelope corrected event");
45
- const envelopeDiscardedBinding = createDocusignBinding("envelope-discard", "DocuSign Envelope Discarded", "DocuSign envelope draft discarded event");
46
- const envelopePurgedBinding = createDocusignBinding("envelope-purge", "DocuSign Envelope Purged", "DocuSign envelope purge-retention hit event");
47
- const envelopeReassignedBinding = createDocusignBinding("envelope-reassign", "DocuSign Envelope Reassigned", "DocuSign envelope reassigned event");
48
- const envelopeDeletedBinding = createDocusignBinding("envelope-deleted", "DocuSign Envelope Deleted", "DocuSign envelope deleted event");
49
- const envelopeDocumentsPurgedBinding = createDocusignBinding("envelope-documents-purged", "DocuSign Envelope Documents Purged", "DocuSign envelope-documents-purged event (envelope metadata retained, documents purged)");
50
- const recipientSentBinding = createDocusignBinding("recipient-sent", "DocuSign Recipient Sent", "DocuSign recipient sent event");
51
- const recipientResentBinding = createDocusignBinding("recipient-resent", "DocuSign Recipient Resent", "DocuSign recipient resent event");
52
- const recipientDeliveredBinding = createDocusignBinding("recipient-delivered", "DocuSign Recipient Delivered", "DocuSign recipient delivered event");
53
- const recipientCompletedBinding = createDocusignBinding("recipient-completed", "DocuSign Recipient Completed", "DocuSign recipient completed (signed) event");
54
- const recipientDeclinedBinding = createDocusignBinding("recipient-declined", "DocuSign Recipient Declined", "DocuSign recipient declined event");
55
- const recipientAuthenticationFailedBinding = createDocusignBinding("recipient-authenticationfailed", "DocuSign Recipient Authentication Failed", "DocuSign recipient authentication failed event");
56
- const recipientAutorespondedBinding = createDocusignBinding("recipient-autoresponded", "DocuSign Recipient Auto-Responded", "DocuSign recipient auto-responded event");
57
- const recipientDelegatedBinding = createDocusignBinding("recipient-delegate", "DocuSign Recipient Delegated", "DocuSign recipient delegated event");
58
- const recipientFinishLaterBinding = createDocusignBinding("recipient-finish-later", "DocuSign Recipient Finish Later", "DocuSign recipient finish-later event");
59
- const recipientReassignedBinding = createDocusignBinding("recipient-reassign", "DocuSign Recipient Reassigned", "DocuSign recipient reassigned event");
60
- const templateCreatedBinding = createDocusignBinding("template-created", "DocuSign Template Created", "DocuSign template created event");
61
- const templateModifiedBinding = createDocusignBinding("template-modified", "DocuSign Template Modified", "DocuSign template modified event");
62
- const webhooks = Object.freeze({
63
- envelopeSent: (options) => envelopeSentBinding(options),
64
- envelopeResent: (options) => envelopeResentBinding(options),
65
- envelopeDelivered: (options) => envelopeDeliveredBinding(options),
66
- envelopeSigned: (options) => envelopeSignedBinding(options),
67
- envelopeCompleted: (options) => envelopeCompletedBinding(options),
68
- envelopeDeclined: (options) => envelopeDeclinedBinding(options),
69
- envelopeVoided: (options) => envelopeVoidedBinding(options),
70
- envelopeCorrected: (options) => envelopeCorrectedBinding(options),
71
- envelopeDiscarded: (options) => envelopeDiscardedBinding(options),
72
- envelopePurged: (options) => envelopePurgedBinding(options),
73
- envelopeReassigned: (options) => envelopeReassignedBinding(options),
74
- envelopeDeleted: (options) => envelopeDeletedBinding(options),
75
- envelopeDocumentsPurged: (options) => envelopeDocumentsPurgedBinding(options),
76
- recipientSent: (options) => recipientSentBinding(options),
77
- recipientResent: (options) => recipientResentBinding(options),
78
- recipientDelivered: (options) => recipientDeliveredBinding(options),
79
- recipientCompleted: (options) => recipientCompletedBinding(options),
80
- recipientDeclined: (options) => recipientDeclinedBinding(options),
81
- recipientAuthenticationFailed: (options) => recipientAuthenticationFailedBinding(options),
82
- recipientAutoresponded: (options) => recipientAutorespondedBinding(options),
83
- recipientDelegated: (options) => recipientDelegatedBinding(options),
84
- recipientFinishLater: (options) => recipientFinishLaterBinding(options),
85
- recipientReassigned: (options) => recipientReassignedBinding(options),
86
- templateCreated: (options) => templateCreatedBinding(options),
87
- templateModified: (options) => templateModifiedBinding(options)
88
- });
89
-
90
- //#endregion
91
- export { webhooks };