@keystrokehq/docusign 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +248 -0
- package/dist/_official/index.d.mts +3 -0
- package/dist/_official/index.mjs +3 -0
- package/dist/_runtime/index.d.mts +1 -0
- package/dist/_runtime/index.mjs +1 -0
- package/dist/account-custom-fields.d.mts +65 -0
- package/dist/account-custom-fields.mjs +63 -0
- package/dist/account-stamps.d.mts +164 -0
- package/dist/account-stamps.mjs +144 -0
- package/dist/account-tabs.d.mts +90 -0
- package/dist/account-tabs.mjs +80 -0
- package/dist/account.d.mts +233 -0
- package/dist/account.mjs +207 -0
- package/dist/admin.d.mts +18 -0
- package/dist/admin.mjs +20 -0
- package/dist/auth.d.mts +37 -0
- package/dist/auth.mjs +53 -0
- package/dist/bcc-archive.d.mts +64 -0
- package/dist/bcc-archive.mjs +70 -0
- package/dist/billing.d.mts +217 -0
- package/dist/billing.mjs +208 -0
- package/dist/brands.d.mts +192 -0
- package/dist/brands.mjs +157 -0
- package/dist/bulk-send.d.mts +137 -0
- package/dist/bulk-send.mjs +115 -0
- package/dist/chunked-uploads.d.mts +78 -0
- package/dist/chunked-uploads.mjs +74 -0
- package/dist/click.d.mts +18 -0
- package/dist/click.mjs +20 -0
- package/dist/client.d.mts +47 -0
- package/dist/client.mjs +286 -0
- package/dist/clm.d.mts +18 -0
- package/dist/clm.mjs +20 -0
- package/dist/cloud-storage.d.mts +122 -0
- package/dist/cloud-storage.mjs +115 -0
- package/dist/connect.d.mts +252 -0
- package/dist/connect.mjs +217 -0
- package/dist/connection.d.mts +2 -0
- package/dist/connection.mjs +3 -0
- package/dist/contacts.d.mts +80 -0
- package/dist/contacts.mjs +79 -0
- package/dist/enote.d.mts +44 -0
- package/dist/enote.mjs +45 -0
- package/dist/envelope-attachments.d.mts +86 -0
- package/dist/envelope-attachments.mjs +76 -0
- package/dist/envelope-custom-fields.d.mts +166 -0
- package/dist/envelope-custom-fields.mjs +92 -0
- package/dist/envelope-documents.d.mts +271 -0
- package/dist/envelope-documents.mjs +219 -0
- package/dist/envelope-email.d.mts +65 -0
- package/dist/envelope-email.mjs +60 -0
- package/dist/envelope-lock.d.mts +65 -0
- package/dist/envelope-lock.mjs +60 -0
- package/dist/envelope-logs.d.mts +126 -0
- package/dist/envelope-logs.mjs +126 -0
- package/dist/envelope-notifications.d.mts +47 -0
- package/dist/envelope-notifications.mjs +44 -0
- package/dist/envelope-recipients.d.mts +171 -0
- package/dist/envelope-recipients.mjs +136 -0
- package/dist/envelope-tabs.d.mts +52 -0
- package/dist/envelope-tabs.mjs +49 -0
- package/dist/envelope-views.d.mts +99 -0
- package/dist/envelope-views.mjs +88 -0
- package/dist/envelope-workflow.d.mts +208 -0
- package/dist/envelope-workflow.mjs +176 -0
- package/dist/envelopes.d.mts +430 -0
- package/dist/envelopes.mjs +190 -0
- package/dist/errors.d.mts +48 -0
- package/dist/errors.mjs +76 -0
- package/dist/events.d.mts +192 -0
- package/dist/events.mjs +146 -0
- package/dist/factory-wViQTjgN.mjs +8 -0
- package/dist/groups.d.mts +191 -0
- package/dist/groups.mjs +146 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +1 -0
- package/dist/integration-CmRztL9R.mjs +229 -0
- package/dist/integration-DqwHRkRh.d.mts +73 -0
- package/dist/messaging.d.mts +1 -0
- package/dist/messaging.mjs +1 -0
- package/dist/monitor.d.mts +18 -0
- package/dist/monitor.mjs +20 -0
- package/dist/notary.d.mts +129 -0
- package/dist/notary.mjs +122 -0
- package/dist/operation-helpers-BMTArRh9.mjs +102 -0
- package/dist/permission-profiles.d.mts +78 -0
- package/dist/permission-profiles.mjs +70 -0
- package/dist/power-forms.d.mts +51 -0
- package/dist/power-forms.mjs +62 -0
- package/dist/provider-app-CWp1SuI4.d.mts +88 -0
- package/dist/rooms.d.mts +18 -0
- package/dist/rooms.mjs +28 -0
- package/dist/schemas/index.d.mts +581 -0
- package/dist/schemas/index.mjs +309 -0
- package/dist/shared-DTUCJayR.mjs +27 -0
- package/dist/signing-groups.d.mts +139 -0
- package/dist/signing-groups.mjs +117 -0
- package/dist/template-custom-fields.d.mts +199 -0
- package/dist/template-custom-fields.mjs +107 -0
- package/dist/template-documents.d.mts +132 -0
- package/dist/template-documents.mjs +109 -0
- package/dist/template-lock.d.mts +65 -0
- package/dist/template-lock.mjs +60 -0
- package/dist/template-sharing.d.mts +129 -0
- package/dist/template-sharing.mjs +108 -0
- package/dist/template-workflow.d.mts +184 -0
- package/dist/template-workflow.mjs +152 -0
- package/dist/templates.d.mts +158 -0
- package/dist/templates.mjs +110 -0
- package/dist/triggers.d.mts +43 -0
- package/dist/triggers.mjs +91 -0
- package/dist/user-authorizations.d.mts +129 -0
- package/dist/user-authorizations.mjs +133 -0
- package/dist/user-custom-settings.d.mts +81 -0
- package/dist/user-custom-settings.mjs +69 -0
- package/dist/user-profile.d.mts +109 -0
- package/dist/user-profile.mjs +106 -0
- package/dist/user-signatures.d.mts +208 -0
- package/dist/user-signatures.mjs +180 -0
- package/dist/users.d.mts +128 -0
- package/dist/users.mjs +98 -0
- package/dist/verification.d.mts +19 -0
- package/dist/verification.mjs +59 -0
- package/dist/workspaces.d.mts +173 -0
- package/dist/workspaces.mjs +143 -0
- package/package.json +291 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
2
|
+
|
|
3
|
+
//#region src/verification.ts
|
|
4
|
+
/**
|
|
5
|
+
* DocuSign Connect HMAC webhook verification.
|
|
6
|
+
*
|
|
7
|
+
* DocuSign Connect signs each outbound webhook with HMAC-SHA256 over the raw
|
|
8
|
+
* request body for every account-configured shared secret, attaching the
|
|
9
|
+
* result as one `X-DocuSign-Signature-{N}` header per secret (N starts at 1
|
|
10
|
+
* and rolls up to 10). Verification accepts a delivery if any signature
|
|
11
|
+
* header matches any currently-configured secret under constant-time compare.
|
|
12
|
+
*
|
|
13
|
+
* See: https://developers.docusign.com/platform/webhooks/connect/hmac/
|
|
14
|
+
*/
|
|
15
|
+
function computeDocusignConnectSignature(secret, rawBody) {
|
|
16
|
+
return createHmac("sha256", secret).update(rawBody, "utf8").digest("base64");
|
|
17
|
+
}
|
|
18
|
+
function normalizeHeader(value) {
|
|
19
|
+
return value.trim();
|
|
20
|
+
}
|
|
21
|
+
function collectSignatureHeaders(headers) {
|
|
22
|
+
const collected = [];
|
|
23
|
+
for (const [key, value] of Object.entries(headers)) if (key.toLowerCase().startsWith("x-docusign-signature-") && typeof value === "string" && value.length > 0) collected.push(normalizeHeader(value));
|
|
24
|
+
return collected;
|
|
25
|
+
}
|
|
26
|
+
function safeEqual(a, b) {
|
|
27
|
+
const aBuf = Buffer.from(a, "utf8");
|
|
28
|
+
const bBuf = Buffer.from(b, "utf8");
|
|
29
|
+
if (aBuf.length !== bBuf.length) return false;
|
|
30
|
+
return timingSafeEqual(aBuf, bBuf);
|
|
31
|
+
}
|
|
32
|
+
function verifyDocusignConnectRequest(input) {
|
|
33
|
+
if (input.secrets.length === 0) return false;
|
|
34
|
+
const provided = collectSignatureHeaders(input.headers);
|
|
35
|
+
if (provided.length === 0) return false;
|
|
36
|
+
for (const secret of input.secrets) {
|
|
37
|
+
const expected = computeDocusignConnectSignature(secret, input.rawBody);
|
|
38
|
+
for (const header of provided) if (safeEqual(header, expected)) return true;
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Parse a JSON-format Connect envelope-publish payload. Throws on invalid
|
|
44
|
+
* JSON; callers should have already verified the HMAC signature.
|
|
45
|
+
*/
|
|
46
|
+
function parseDocusignConnectEvent(rawBody) {
|
|
47
|
+
return JSON.parse(rawBody);
|
|
48
|
+
}
|
|
49
|
+
/** Narrow a `WebhookRequest` into the shape this module needs. */
|
|
50
|
+
function verifyDocusignConnectWebhookRequest(request, secrets) {
|
|
51
|
+
return verifyDocusignConnectRequest({
|
|
52
|
+
headers: request.headers,
|
|
53
|
+
rawBody: request.rawBody,
|
|
54
|
+
secrets
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
export { computeDocusignConnectSignature, parseDocusignConnectEvent, verifyDocusignConnectRequest, verifyDocusignConnectWebhookRequest };
|
|
@@ -0,0 +1,173 @@
|
|
|
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/workspaces.d.ts
|
|
6
|
+
declare const createACollaborativeWorkspace: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
+
workspace: 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 listWorkspaces: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
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<{
|
|
24
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
25
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
26
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
27
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
28
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
29
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
30
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
31
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
32
|
+
declare const retrievePropertiesAboutWorkspace: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
33
|
+
workspaceId: z.ZodString;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
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<{
|
|
37
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
38
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
39
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
40
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
41
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
42
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
43
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
44
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
45
|
+
declare const updateWorkspaceInformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
46
|
+
workspaceId: z.ZodString;
|
|
47
|
+
workspace: z.ZodObject<{
|
|
48
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
49
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
50
|
+
}, 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 deleteExistingWorkspaceLogically: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
62
|
+
workspaceId: z.ZodString;
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
+
success: z.ZodBoolean;
|
|
65
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
66
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
67
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
68
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
69
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
70
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
71
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
72
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
73
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
74
|
+
declare const addFileToWorkspace: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
75
|
+
workspaceId: z.ZodString;
|
|
76
|
+
folderId: z.ZodString;
|
|
77
|
+
file: z.ZodObject<{
|
|
78
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
79
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
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<{
|
|
83
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
84
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
85
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
86
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
87
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
88
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
89
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
90
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
91
|
+
declare const getWorkspaceFile: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
92
|
+
workspaceId: z.ZodString;
|
|
93
|
+
folderId: z.ZodString;
|
|
94
|
+
fileId: z.ZodString;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
97
|
+
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
98
|
+
status: z.ZodNumber;
|
|
99
|
+
body: z.ZodString;
|
|
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 listWorkspaceFilePages: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
110
|
+
workspaceId: z.ZodString;
|
|
111
|
+
folderId: z.ZodString;
|
|
112
|
+
fileId: z.ZodString;
|
|
113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
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<{
|
|
116
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
117
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
118
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
119
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
120
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
121
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
122
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
123
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
124
|
+
declare const getWorkspaceFolderContents: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
125
|
+
workspaceId: z.ZodString;
|
|
126
|
+
folderId: z.ZodString;
|
|
127
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
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<{
|
|
130
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
131
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
132
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
133
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
134
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
135
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
136
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
137
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
138
|
+
declare const deleteWorkspaceFilesOrFolders: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
139
|
+
workspaceId: z.ZodString;
|
|
140
|
+
items: z.ZodArray<z.ZodObject<{
|
|
141
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
142
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
+
success: z.ZodBoolean;
|
|
145
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
146
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
147
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
148
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
149
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
150
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
151
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
152
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
153
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
154
|
+
declare const updateWorkspaceItemMetadata: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
155
|
+
workspaceId: z.ZodString;
|
|
156
|
+
folderId: z.ZodString;
|
|
157
|
+
fileId: z.ZodString;
|
|
158
|
+
metadata: z.ZodObject<{
|
|
159
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
160
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
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<{
|
|
164
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
165
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
166
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
167
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
168
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
169
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
170
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
171
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
172
|
+
//#endregion
|
|
173
|
+
export { addFileToWorkspace, createACollaborativeWorkspace, deleteExistingWorkspaceLogically, deleteWorkspaceFilesOrFolders, getWorkspaceFile, getWorkspaceFolderContents, listWorkspaceFilePages, listWorkspaces, retrievePropertiesAboutWorkspace, updateWorkspaceInformation, updateWorkspaceItemMetadata };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
|
|
2
|
+
import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-BMTArRh9.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/workspaces.ts
|
|
6
|
+
/**
|
|
7
|
+
* Collaborative workspaces. Covers PLAN.md § 6.37.
|
|
8
|
+
*/
|
|
9
|
+
const workspaceId = z.object({ workspaceId: z.string().min(1) });
|
|
10
|
+
const workspaceItem = workspaceId.extend({ folderId: z.string().min(1) });
|
|
11
|
+
const workspaceFile = workspaceItem.extend({ fileId: z.string().min(1) });
|
|
12
|
+
const binaryResponseSchema = docusignLooseObjectSchema({
|
|
13
|
+
contentType: z.string().optional(),
|
|
14
|
+
contentDisposition: z.string().optional(),
|
|
15
|
+
status: z.number(),
|
|
16
|
+
body: z.string()
|
|
17
|
+
});
|
|
18
|
+
const createACollaborativeWorkspace = defineRestOperation({
|
|
19
|
+
id: "create_a_collaborative_workspace",
|
|
20
|
+
slug: "DOCUSIGN_CREATE_A_COLLABORATIVE_WORKSPACE",
|
|
21
|
+
name: "Create Collaborative Workspace",
|
|
22
|
+
description: "Create a new collaborative workspace.",
|
|
23
|
+
needsApproval: true,
|
|
24
|
+
method: "POST",
|
|
25
|
+
path: "/workspaces",
|
|
26
|
+
input: z.object({ workspace: docusignLooseObjectSchema() }),
|
|
27
|
+
output: docusignGenericObjectSchema,
|
|
28
|
+
body: (input) => input.workspace
|
|
29
|
+
});
|
|
30
|
+
const listWorkspaces = defineRestOperation({
|
|
31
|
+
id: "list_workspaces",
|
|
32
|
+
slug: "DOCUSIGN_LIST_WORKSPACES",
|
|
33
|
+
name: "List Workspaces",
|
|
34
|
+
description: "List collaborative workspaces.",
|
|
35
|
+
method: "GET",
|
|
36
|
+
path: "/workspaces",
|
|
37
|
+
input: z.object({}),
|
|
38
|
+
output: docusignGenericObjectSchema
|
|
39
|
+
});
|
|
40
|
+
const retrievePropertiesAboutWorkspace = defineRestOperation({
|
|
41
|
+
id: "retrieve_properties_about_workspace",
|
|
42
|
+
slug: "DOCUSIGN_RETRIEVE_PROPERTIES_ABOUT_WORKSPACE",
|
|
43
|
+
name: "Retrieve Workspace Properties",
|
|
44
|
+
description: "Retrieve properties for a workspace.",
|
|
45
|
+
method: "GET",
|
|
46
|
+
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}`,
|
|
47
|
+
input: workspaceId,
|
|
48
|
+
output: docusignGenericObjectSchema
|
|
49
|
+
});
|
|
50
|
+
const updateWorkspaceInformation = defineRestOperation({
|
|
51
|
+
id: "update_workspace_information",
|
|
52
|
+
slug: "DOCUSIGN_UPDATE_WORKSPACE_INFORMATION",
|
|
53
|
+
name: "Update Workspace Information",
|
|
54
|
+
description: "Update workspace information.",
|
|
55
|
+
needsApproval: true,
|
|
56
|
+
method: "PUT",
|
|
57
|
+
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}`,
|
|
58
|
+
input: workspaceId.extend({ workspace: docusignLooseObjectSchema() }),
|
|
59
|
+
output: docusignGenericObjectSchema,
|
|
60
|
+
body: (input) => input.workspace
|
|
61
|
+
});
|
|
62
|
+
const deleteExistingWorkspaceLogically = defineRestOperation({
|
|
63
|
+
id: "delete_existing_workspace_logically",
|
|
64
|
+
slug: "DOCUSIGN_DELETE_EXISTING_WORKSPACE_LOGICALLY",
|
|
65
|
+
name: "Logically Delete Workspace",
|
|
66
|
+
description: "Soft-delete a workspace.",
|
|
67
|
+
needsApproval: true,
|
|
68
|
+
method: "DELETE",
|
|
69
|
+
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}`,
|
|
70
|
+
input: workspaceId,
|
|
71
|
+
output: docusignSuccessSchema,
|
|
72
|
+
transformResponse: () => ({ success: true })
|
|
73
|
+
});
|
|
74
|
+
const addFileToWorkspace = defineRestOperation({
|
|
75
|
+
id: "add_file_to_workspace",
|
|
76
|
+
slug: "DOCUSIGN_ADD_FILE_TO_WORKSPACE",
|
|
77
|
+
name: "Add File To Workspace",
|
|
78
|
+
description: "Upload a file into a workspace folder.",
|
|
79
|
+
needsApproval: true,
|
|
80
|
+
method: "POST",
|
|
81
|
+
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}/folders/${ctx.encode(String(ctx.input.folderId))}/files`,
|
|
82
|
+
input: workspaceItem.extend({ file: docusignLooseObjectSchema() }),
|
|
83
|
+
output: docusignGenericObjectSchema,
|
|
84
|
+
body: (input) => input.file
|
|
85
|
+
});
|
|
86
|
+
const getWorkspaceFile = defineBinaryOperation({
|
|
87
|
+
id: "get_workspace_file",
|
|
88
|
+
slug: "DOCUSIGN_GET_WORKSPACE_FILE",
|
|
89
|
+
name: "Get Workspace File",
|
|
90
|
+
description: "Download a file from a workspace folder.",
|
|
91
|
+
method: "GET",
|
|
92
|
+
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}/folders/${ctx.encode(String(ctx.input.folderId))}/files/${ctx.encode(String(ctx.input.fileId))}`,
|
|
93
|
+
input: workspaceFile,
|
|
94
|
+
output: binaryResponseSchema
|
|
95
|
+
});
|
|
96
|
+
const listWorkspaceFilePages = defineRestOperation({
|
|
97
|
+
id: "list_workspace_file_pages",
|
|
98
|
+
slug: "DOCUSIGN_LIST_WORKSPACE_FILE_PAGES",
|
|
99
|
+
name: "List Workspace File Pages",
|
|
100
|
+
description: "List page images for a workspace file.",
|
|
101
|
+
method: "GET",
|
|
102
|
+
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}/folders/${ctx.encode(String(ctx.input.folderId))}/files/${ctx.encode(String(ctx.input.fileId))}/pages`,
|
|
103
|
+
input: workspaceFile,
|
|
104
|
+
output: docusignGenericObjectSchema
|
|
105
|
+
});
|
|
106
|
+
const getWorkspaceFolderContents = defineRestOperation({
|
|
107
|
+
id: "get_workspace_folder_contents",
|
|
108
|
+
slug: "DOCUSIGN_GET_WORKSPACE_FOLDER_CONTENTS",
|
|
109
|
+
name: "Get Workspace Folder Contents",
|
|
110
|
+
description: "List the contents of a workspace folder.",
|
|
111
|
+
method: "GET",
|
|
112
|
+
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}/folders/${ctx.encode(String(ctx.input.folderId))}`,
|
|
113
|
+
input: workspaceItem,
|
|
114
|
+
output: docusignGenericObjectSchema
|
|
115
|
+
});
|
|
116
|
+
const deleteWorkspaceFilesOrFolders = defineRestOperation({
|
|
117
|
+
id: "delete_workspace_files_or_folders",
|
|
118
|
+
slug: "DOCUSIGN_DELETE_WORKSPACE_FILES_OR_FOLDERS",
|
|
119
|
+
name: "Delete Workspace Files Or Folders",
|
|
120
|
+
description: "Delete files or folders from a workspace.",
|
|
121
|
+
needsApproval: true,
|
|
122
|
+
method: "PUT",
|
|
123
|
+
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}/items`,
|
|
124
|
+
input: workspaceId.extend({ items: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
125
|
+
output: docusignSuccessSchema,
|
|
126
|
+
body: (input) => ({ items: input.items }),
|
|
127
|
+
transformResponse: () => ({ success: true })
|
|
128
|
+
});
|
|
129
|
+
const updateWorkspaceItemMetadata = defineRestOperation({
|
|
130
|
+
id: "update_workspace_item_metadata",
|
|
131
|
+
slug: "DOCUSIGN_UPDATE_WORKSPACE_ITEM_METADATA",
|
|
132
|
+
name: "Update Workspace Item Metadata",
|
|
133
|
+
description: "Update metadata on a workspace item.",
|
|
134
|
+
needsApproval: true,
|
|
135
|
+
method: "PUT",
|
|
136
|
+
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}/folders/${ctx.encode(String(ctx.input.folderId))}/files/${ctx.encode(String(ctx.input.fileId))}`,
|
|
137
|
+
input: workspaceFile.extend({ metadata: docusignLooseObjectSchema() }),
|
|
138
|
+
output: docusignGenericObjectSchema,
|
|
139
|
+
body: (input) => input.metadata
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
//#endregion
|
|
143
|
+
export { addFileToWorkspace, createACollaborativeWorkspace, deleteExistingWorkspaceLogically, deleteWorkspaceFilesOrFolders, getWorkspaceFile, getWorkspaceFolderContents, listWorkspaceFilePages, listWorkspaces, retrievePropertiesAboutWorkspace, updateWorkspaceInformation, updateWorkspaceItemMetadata };
|
package/package.json
ADDED
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/docusign",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.mts",
|
|
10
|
+
"default": "./dist/index.mjs"
|
|
11
|
+
},
|
|
12
|
+
"./connection": {
|
|
13
|
+
"types": "./dist/connection.d.mts",
|
|
14
|
+
"default": "./dist/connection.mjs"
|
|
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"
|
|
27
|
+
},
|
|
28
|
+
"./schemas": {
|
|
29
|
+
"types": "./dist/schemas/index.d.mts",
|
|
30
|
+
"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
|
+
"./triggers": {
|
|
41
|
+
"types": "./dist/triggers.d.mts",
|
|
42
|
+
"default": "./dist/triggers.mjs"
|
|
43
|
+
},
|
|
44
|
+
"./verification": {
|
|
45
|
+
"types": "./dist/verification.d.mts",
|
|
46
|
+
"default": "./dist/verification.mjs"
|
|
47
|
+
},
|
|
48
|
+
"./envelopes": {
|
|
49
|
+
"types": "./dist/envelopes.d.mts",
|
|
50
|
+
"default": "./dist/envelopes.mjs"
|
|
51
|
+
},
|
|
52
|
+
"./envelope-documents": {
|
|
53
|
+
"types": "./dist/envelope-documents.d.mts",
|
|
54
|
+
"default": "./dist/envelope-documents.mjs"
|
|
55
|
+
},
|
|
56
|
+
"./envelope-recipients": {
|
|
57
|
+
"types": "./dist/envelope-recipients.d.mts",
|
|
58
|
+
"default": "./dist/envelope-recipients.mjs"
|
|
59
|
+
},
|
|
60
|
+
"./envelope-tabs": {
|
|
61
|
+
"types": "./dist/envelope-tabs.d.mts",
|
|
62
|
+
"default": "./dist/envelope-tabs.mjs"
|
|
63
|
+
},
|
|
64
|
+
"./envelope-custom-fields": {
|
|
65
|
+
"types": "./dist/envelope-custom-fields.d.mts",
|
|
66
|
+
"default": "./dist/envelope-custom-fields.mjs"
|
|
67
|
+
},
|
|
68
|
+
"./envelope-attachments": {
|
|
69
|
+
"types": "./dist/envelope-attachments.d.mts",
|
|
70
|
+
"default": "./dist/envelope-attachments.mjs"
|
|
71
|
+
},
|
|
72
|
+
"./envelope-workflow": {
|
|
73
|
+
"types": "./dist/envelope-workflow.d.mts",
|
|
74
|
+
"default": "./dist/envelope-workflow.mjs"
|
|
75
|
+
},
|
|
76
|
+
"./envelope-views": {
|
|
77
|
+
"types": "./dist/envelope-views.d.mts",
|
|
78
|
+
"default": "./dist/envelope-views.mjs"
|
|
79
|
+
},
|
|
80
|
+
"./envelope-email": {
|
|
81
|
+
"types": "./dist/envelope-email.d.mts",
|
|
82
|
+
"default": "./dist/envelope-email.mjs"
|
|
83
|
+
},
|
|
84
|
+
"./envelope-notifications": {
|
|
85
|
+
"types": "./dist/envelope-notifications.d.mts",
|
|
86
|
+
"default": "./dist/envelope-notifications.mjs"
|
|
87
|
+
},
|
|
88
|
+
"./envelope-lock": {
|
|
89
|
+
"types": "./dist/envelope-lock.d.mts",
|
|
90
|
+
"default": "./dist/envelope-lock.mjs"
|
|
91
|
+
},
|
|
92
|
+
"./envelope-logs": {
|
|
93
|
+
"types": "./dist/envelope-logs.d.mts",
|
|
94
|
+
"default": "./dist/envelope-logs.mjs"
|
|
95
|
+
},
|
|
96
|
+
"./templates": {
|
|
97
|
+
"types": "./dist/templates.d.mts",
|
|
98
|
+
"default": "./dist/templates.mjs"
|
|
99
|
+
},
|
|
100
|
+
"./template-documents": {
|
|
101
|
+
"types": "./dist/template-documents.d.mts",
|
|
102
|
+
"default": "./dist/template-documents.mjs"
|
|
103
|
+
},
|
|
104
|
+
"./template-custom-fields": {
|
|
105
|
+
"types": "./dist/template-custom-fields.d.mts",
|
|
106
|
+
"default": "./dist/template-custom-fields.mjs"
|
|
107
|
+
},
|
|
108
|
+
"./template-workflow": {
|
|
109
|
+
"types": "./dist/template-workflow.d.mts",
|
|
110
|
+
"default": "./dist/template-workflow.mjs"
|
|
111
|
+
},
|
|
112
|
+
"./template-lock": {
|
|
113
|
+
"types": "./dist/template-lock.d.mts",
|
|
114
|
+
"default": "./dist/template-lock.mjs"
|
|
115
|
+
},
|
|
116
|
+
"./template-sharing": {
|
|
117
|
+
"types": "./dist/template-sharing.d.mts",
|
|
118
|
+
"default": "./dist/template-sharing.mjs"
|
|
119
|
+
},
|
|
120
|
+
"./bulk-send": {
|
|
121
|
+
"types": "./dist/bulk-send.d.mts",
|
|
122
|
+
"default": "./dist/bulk-send.mjs"
|
|
123
|
+
},
|
|
124
|
+
"./chunked-uploads": {
|
|
125
|
+
"types": "./dist/chunked-uploads.d.mts",
|
|
126
|
+
"default": "./dist/chunked-uploads.mjs"
|
|
127
|
+
},
|
|
128
|
+
"./power-forms": {
|
|
129
|
+
"types": "./dist/power-forms.d.mts",
|
|
130
|
+
"default": "./dist/power-forms.mjs"
|
|
131
|
+
},
|
|
132
|
+
"./signing-groups": {
|
|
133
|
+
"types": "./dist/signing-groups.d.mts",
|
|
134
|
+
"default": "./dist/signing-groups.mjs"
|
|
135
|
+
},
|
|
136
|
+
"./contacts": {
|
|
137
|
+
"types": "./dist/contacts.d.mts",
|
|
138
|
+
"default": "./dist/contacts.mjs"
|
|
139
|
+
},
|
|
140
|
+
"./users": {
|
|
141
|
+
"types": "./dist/users.d.mts",
|
|
142
|
+
"default": "./dist/users.mjs"
|
|
143
|
+
},
|
|
144
|
+
"./user-signatures": {
|
|
145
|
+
"types": "./dist/user-signatures.d.mts",
|
|
146
|
+
"default": "./dist/user-signatures.mjs"
|
|
147
|
+
},
|
|
148
|
+
"./user-profile": {
|
|
149
|
+
"types": "./dist/user-profile.d.mts",
|
|
150
|
+
"default": "./dist/user-profile.mjs"
|
|
151
|
+
},
|
|
152
|
+
"./user-authorizations": {
|
|
153
|
+
"types": "./dist/user-authorizations.d.mts",
|
|
154
|
+
"default": "./dist/user-authorizations.mjs"
|
|
155
|
+
},
|
|
156
|
+
"./user-custom-settings": {
|
|
157
|
+
"types": "./dist/user-custom-settings.d.mts",
|
|
158
|
+
"default": "./dist/user-custom-settings.mjs"
|
|
159
|
+
},
|
|
160
|
+
"./cloud-storage": {
|
|
161
|
+
"types": "./dist/cloud-storage.d.mts",
|
|
162
|
+
"default": "./dist/cloud-storage.mjs"
|
|
163
|
+
},
|
|
164
|
+
"./groups": {
|
|
165
|
+
"types": "./dist/groups.d.mts",
|
|
166
|
+
"default": "./dist/groups.mjs"
|
|
167
|
+
},
|
|
168
|
+
"./permission-profiles": {
|
|
169
|
+
"types": "./dist/permission-profiles.d.mts",
|
|
170
|
+
"default": "./dist/permission-profiles.mjs"
|
|
171
|
+
},
|
|
172
|
+
"./brands": {
|
|
173
|
+
"types": "./dist/brands.d.mts",
|
|
174
|
+
"default": "./dist/brands.mjs"
|
|
175
|
+
},
|
|
176
|
+
"./account": {
|
|
177
|
+
"types": "./dist/account.d.mts",
|
|
178
|
+
"default": "./dist/account.mjs"
|
|
179
|
+
},
|
|
180
|
+
"./account-custom-fields": {
|
|
181
|
+
"types": "./dist/account-custom-fields.d.mts",
|
|
182
|
+
"default": "./dist/account-custom-fields.mjs"
|
|
183
|
+
},
|
|
184
|
+
"./account-tabs": {
|
|
185
|
+
"types": "./dist/account-tabs.d.mts",
|
|
186
|
+
"default": "./dist/account-tabs.mjs"
|
|
187
|
+
},
|
|
188
|
+
"./account-stamps": {
|
|
189
|
+
"types": "./dist/account-stamps.d.mts",
|
|
190
|
+
"default": "./dist/account-stamps.mjs"
|
|
191
|
+
},
|
|
192
|
+
"./billing": {
|
|
193
|
+
"types": "./dist/billing.d.mts",
|
|
194
|
+
"default": "./dist/billing.mjs"
|
|
195
|
+
},
|
|
196
|
+
"./connect": {
|
|
197
|
+
"types": "./dist/connect.d.mts",
|
|
198
|
+
"default": "./dist/connect.mjs"
|
|
199
|
+
},
|
|
200
|
+
"./workspaces": {
|
|
201
|
+
"types": "./dist/workspaces.d.mts",
|
|
202
|
+
"default": "./dist/workspaces.mjs"
|
|
203
|
+
},
|
|
204
|
+
"./notary": {
|
|
205
|
+
"types": "./dist/notary.d.mts",
|
|
206
|
+
"default": "./dist/notary.mjs"
|
|
207
|
+
},
|
|
208
|
+
"./enote": {
|
|
209
|
+
"types": "./dist/enote.d.mts",
|
|
210
|
+
"default": "./dist/enote.mjs"
|
|
211
|
+
},
|
|
212
|
+
"./bcc-archive": {
|
|
213
|
+
"types": "./dist/bcc-archive.d.mts",
|
|
214
|
+
"default": "./dist/bcc-archive.mjs"
|
|
215
|
+
},
|
|
216
|
+
"./auth": {
|
|
217
|
+
"types": "./dist/auth.d.mts",
|
|
218
|
+
"default": "./dist/auth.mjs"
|
|
219
|
+
},
|
|
220
|
+
"./rooms": {
|
|
221
|
+
"types": "./dist/rooms.d.mts",
|
|
222
|
+
"default": "./dist/rooms.mjs"
|
|
223
|
+
},
|
|
224
|
+
"./clm": {
|
|
225
|
+
"types": "./dist/clm.d.mts",
|
|
226
|
+
"default": "./dist/clm.mjs"
|
|
227
|
+
},
|
|
228
|
+
"./admin": {
|
|
229
|
+
"types": "./dist/admin.d.mts",
|
|
230
|
+
"default": "./dist/admin.mjs"
|
|
231
|
+
},
|
|
232
|
+
"./click": {
|
|
233
|
+
"types": "./dist/click.d.mts",
|
|
234
|
+
"default": "./dist/click.mjs"
|
|
235
|
+
},
|
|
236
|
+
"./monitor": {
|
|
237
|
+
"types": "./dist/monitor.d.mts",
|
|
238
|
+
"default": "./dist/monitor.mjs"
|
|
239
|
+
},
|
|
240
|
+
"./_runtime": {
|
|
241
|
+
"types": "./dist/_runtime/index.d.mts",
|
|
242
|
+
"default": "./dist/_runtime/index.mjs"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"files": [
|
|
246
|
+
"dist",
|
|
247
|
+
"README.md",
|
|
248
|
+
"LICENSE"
|
|
249
|
+
],
|
|
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
|
+
"dependencies": {
|
|
260
|
+
"@keystrokehq/credential-connection": "^0.0.1",
|
|
261
|
+
"@keystrokehq/integration-authoring": "^0.0.1",
|
|
262
|
+
"@keystrokehq/core": "^0.0.5",
|
|
263
|
+
"zod": "^4.3.6"
|
|
264
|
+
},
|
|
265
|
+
"devDependencies": {
|
|
266
|
+
"@types/node": "catalog:",
|
|
267
|
+
"@keystrokehq/test-utils": "workspace:*",
|
|
268
|
+
"@keystrokehq/typescript-config": "workspace:*",
|
|
269
|
+
"tsdown": "catalog:",
|
|
270
|
+
"typescript": "catalog:",
|
|
271
|
+
"vitest": "catalog:"
|
|
272
|
+
},
|
|
273
|
+
"keywords": [
|
|
274
|
+
"docusign",
|
|
275
|
+
"keystroke",
|
|
276
|
+
"integration",
|
|
277
|
+
"esignature",
|
|
278
|
+
"contracts",
|
|
279
|
+
"envelopes"
|
|
280
|
+
],
|
|
281
|
+
"repository": {
|
|
282
|
+
"type": "git",
|
|
283
|
+
"url": "https://github.com/keystrokehq/integrations",
|
|
284
|
+
"directory": "integrations/docusign"
|
|
285
|
+
},
|
|
286
|
+
"license": "MIT",
|
|
287
|
+
"publishConfig": {
|
|
288
|
+
"access": "public",
|
|
289
|
+
"registry": "https://registry.npmjs.org/"
|
|
290
|
+
}
|
|
291
|
+
}
|