@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,88 @@
|
|
|
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 };
|
package/dist/rooms.d.mts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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/rooms.d.ts
|
|
6
|
+
declare const roomsNotImplemented: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodObject<{
|
|
7
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
8
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
9
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
10
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
11
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
12
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
13
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
14
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
15
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
16
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { roomsNotImplemented };
|
package/dist/rooms.mjs
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { docusignGenericObjectSchema } from "./schemas/index.mjs";
|
|
2
|
+
import { n as definePlanGatedOperation } from "./operation-helpers-BMTArRh9.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/rooms.ts
|
|
6
|
+
/**
|
|
7
|
+
* DocuSign Rooms API — plan-gated in v1.
|
|
8
|
+
*
|
|
9
|
+
* Rooms requires a separate product entitlement and different host
|
|
10
|
+
* (`https://{server}.rooms.docusign.com/restapi/v2`). These operations are
|
|
11
|
+
* declared so the slug surface stays complete, but each throws a typed
|
|
12
|
+
* `plan_gated` error until the Rooms client is enabled.
|
|
13
|
+
*
|
|
14
|
+
* See `IMPLEMENTATION_NOTES.md` § 2 / § 7 Q1 for the rationale.
|
|
15
|
+
*/
|
|
16
|
+
const genericInput = z.object({}).catchall(z.unknown());
|
|
17
|
+
const roomsNotImplemented = definePlanGatedOperation({
|
|
18
|
+
id: "rooms_not_implemented",
|
|
19
|
+
slug: "DOCUSIGN_ROOMS_NOT_IMPLEMENTED",
|
|
20
|
+
name: "DocuSign Rooms (not implemented)",
|
|
21
|
+
description: "Placeholder for the DocuSign Rooms API. Ships disabled until Rooms is enabled on the account and the Rooms client wiring lands (follow-up PR).",
|
|
22
|
+
input: genericInput,
|
|
23
|
+
output: docusignGenericObjectSchema,
|
|
24
|
+
reason: "DocuSign Rooms is a plan-gated product with a different base host and has not been enabled on this Keystroke deployment yet."
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { roomsNotImplemented };
|