@keystrokehq/docusign 0.0.10 → 0.0.15
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/dist/_official/index.d.mts +4 -18
- package/dist/_official/index.mjs +1 -1
- package/dist/account-custom-fields.d.mts +4 -21
- package/dist/account-custom-fields.mjs +1 -1
- package/dist/account-stamps.d.mts +11 -56
- package/dist/account-stamps.mjs +1 -1
- package/dist/account-tabs.d.mts +6 -31
- package/dist/account-tabs.mjs +1 -1
- package/dist/account.d.mts +18 -91
- package/dist/account.mjs +1 -1
- package/dist/admin.d.mts +1 -6
- package/dist/admin.mjs +1 -1
- package/dist/auth.d.mts +2 -11
- package/dist/auth.mjs +15 -4
- package/dist/bcc-archive.d.mts +4 -21
- package/dist/bcc-archive.mjs +1 -1
- package/dist/billing.d.mts +16 -81
- package/dist/billing.mjs +1 -1
- package/dist/brands.d.mts +11 -56
- package/dist/brands.mjs +1 -1
- package/dist/bulk-send.d.mts +9 -42
- package/dist/bulk-send.mjs +1 -1
- package/dist/chunked-uploads.d.mts +5 -26
- package/dist/chunked-uploads.mjs +1 -1
- package/dist/click.d.mts +1 -6
- package/dist/click.mjs +1 -1
- package/dist/client.d.mts +1 -1
- package/dist/clm.d.mts +1 -6
- package/dist/clm.mjs +1 -1
- package/dist/cloud-storage.d.mts +7 -36
- package/dist/cloud-storage.mjs +1 -1
- package/dist/connect.d.mts +17 -86
- package/dist/connect.mjs +1 -1
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/contacts.d.mts +5 -26
- package/dist/contacts.mjs +1 -1
- package/dist/enote.d.mts +3 -16
- package/dist/enote.mjs +1 -1
- package/dist/envelope-attachments.d.mts +5 -26
- package/dist/envelope-attachments.mjs +1 -1
- package/dist/envelope-custom-fields.d.mts +7 -36
- package/dist/envelope-custom-fields.mjs +1 -1
- package/dist/envelope-documents.d.mts +16 -81
- package/dist/envelope-documents.mjs +1 -1
- package/dist/envelope-email.d.mts +4 -21
- package/dist/envelope-email.mjs +1 -1
- package/dist/envelope-lock.d.mts +4 -21
- package/dist/envelope-lock.mjs +1 -1
- package/dist/envelope-logs.d.mts +9 -46
- package/dist/envelope-logs.mjs +1 -1
- package/dist/envelope-notifications.d.mts +3 -16
- package/dist/envelope-notifications.mjs +1 -1
- package/dist/envelope-recipients.d.mts +11 -56
- package/dist/envelope-recipients.mjs +1 -1
- package/dist/envelope-tabs.d.mts +3 -16
- package/dist/envelope-tabs.mjs +1 -1
- package/dist/envelope-views.d.mts +6 -31
- package/dist/envelope-views.mjs +1 -1
- package/dist/envelope-workflow.d.mts +14 -71
- package/dist/envelope-workflow.mjs +1 -1
- package/dist/envelopes.d.mts +14 -67
- package/dist/envelopes.mjs +1 -1
- package/dist/{factory-Cj6MzqXn.mjs → factory-5kY-Jnda.mjs} +1 -1
- package/dist/groups.d.mts +10 -51
- package/dist/groups.mjs +1 -1
- package/dist/integration-H05G5JY8.mjs +112 -0
- package/dist/integration-Mk1ScWT6.d.mts +30 -0
- package/dist/monitor.d.mts +1 -6
- package/dist/monitor.mjs +1 -1
- package/dist/notary.d.mts +9 -46
- package/dist/notary.mjs +1 -1
- package/dist/{operation-helpers-DcsuFcq0.mjs → operation-helpers-D25WHTo1.mjs} +1 -1
- package/dist/permission-profiles.d.mts +5 -26
- package/dist/permission-profiles.mjs +1 -1
- package/dist/power-forms.d.mts +3 -16
- package/dist/power-forms.mjs +1 -1
- package/dist/rooms.d.mts +1 -6
- package/dist/rooms.mjs +1 -1
- package/dist/schemas/index.d.mts +3 -3
- package/dist/signing-groups.d.mts +9 -46
- package/dist/signing-groups.mjs +1 -1
- package/dist/template-custom-fields.d.mts +8 -41
- package/dist/template-custom-fields.mjs +1 -1
- package/dist/template-documents.d.mts +8 -41
- package/dist/template-documents.mjs +1 -1
- package/dist/template-lock.d.mts +4 -21
- package/dist/template-lock.mjs +1 -1
- package/dist/template-sharing.d.mts +8 -41
- package/dist/template-sharing.mjs +1 -1
- package/dist/template-workflow.d.mts +12 -61
- package/dist/template-workflow.mjs +1 -1
- package/dist/templates.d.mts +7 -36
- package/dist/templates.mjs +1 -1
- package/dist/user-authorizations.d.mts +8 -41
- package/dist/user-authorizations.mjs +1 -1
- package/dist/user-custom-settings.d.mts +5 -26
- package/dist/user-custom-settings.mjs +1 -1
- package/dist/user-profile.d.mts +7 -36
- package/dist/user-profile.mjs +1 -1
- package/dist/user-signatures.d.mts +13 -66
- package/dist/user-signatures.mjs +1 -1
- package/dist/users.d.mts +6 -31
- package/dist/users.mjs +1 -1
- package/dist/workspaces.d.mts +11 -56
- package/dist/workspaces.mjs +1 -1
- package/package.json +4 -5
- package/dist/integration-BykMcCMC.mjs +0 -229
- package/dist/integration-SYThzunD.d.mts +0 -73
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { defineOfficialIntegration, officialCredentialSetId } from "@keystrokehq/integration-authoring/official";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { CredentialSet } from "@keystrokehq/core";
|
|
4
|
-
import { TokenExchangeError, normalizeOAuthTokens, parseOAuthTokenResponse } from "@keystrokehq/credential-connection";
|
|
5
|
-
|
|
6
|
-
//#region src/_official/provider-app.ts
|
|
7
|
-
/**
|
|
8
|
-
* Keystroke-owned OAuth client definition for the DocuSign public connection.
|
|
9
|
-
*
|
|
10
|
-
* Used for: OAuth authorization-code exchange, refresh, and the embedded
|
|
11
|
-
* `/oauth/userinfo` lookup that resolves an account's `baseUri`.
|
|
12
|
-
*/
|
|
13
|
-
const docusignAppCredentialSet = new CredentialSet({
|
|
14
|
-
id: officialCredentialSetId("docusign-app"),
|
|
15
|
-
exposure: "platform-only",
|
|
16
|
-
name: "DocuSign App",
|
|
17
|
-
auth: z.object({
|
|
18
|
-
clientId: z.string().min(1),
|
|
19
|
-
clientSecret: z.string().min(1)
|
|
20
|
-
})
|
|
21
|
-
});
|
|
22
|
-
/**
|
|
23
|
-
* Keystroke-owned Connect webhook signing secrets.
|
|
24
|
-
*
|
|
25
|
-
* DocuSign Connect allows up to 10 concurrent HMAC shared secrets for rotation.
|
|
26
|
-
* Each outbound webhook is signed with every enabled secret as a separate
|
|
27
|
-
* `X-DocuSign-Signature-{N}` header. Verification accepts a delivery if any
|
|
28
|
-
* header matches any configured secret under a constant-time compare.
|
|
29
|
-
*
|
|
30
|
-
* Secrets are parsed from `KEYSTROKE_OFFICIAL_DOCUSIGN_CONNECT_HMAC_SECRETS`,
|
|
31
|
-
* a comma-separated list with newest first.
|
|
32
|
-
*/
|
|
33
|
-
const docusignConnectCredentialSet = new CredentialSet({
|
|
34
|
-
id: officialCredentialSetId("docusign-connect"),
|
|
35
|
-
exposure: "platform-only",
|
|
36
|
-
name: "DocuSign Connect",
|
|
37
|
-
auth: z.object({ hmacSecrets: z.array(z.string().min(1)).min(1) })
|
|
38
|
-
});
|
|
39
|
-
/**
|
|
40
|
-
* Keystroke-owned JWT Grant integrator key + RSA private key.
|
|
41
|
-
*
|
|
42
|
-
* Declared for forward compatibility: runtime paths that require JWT Grant
|
|
43
|
-
* (historical envelope replay, backend impersonation) will consume this
|
|
44
|
-
* credential set in a follow-up without a registry change. Not wired to any
|
|
45
|
-
* runtime path in v1 — any operation that would need JWT throws
|
|
46
|
-
* `DocusignApiError.notImplemented({ kind: 'plan_gated' })` until then.
|
|
47
|
-
*/
|
|
48
|
-
const docusignJwtCredentialSet = new CredentialSet({
|
|
49
|
-
id: officialCredentialSetId("docusign-jwt"),
|
|
50
|
-
exposure: "platform-only",
|
|
51
|
-
name: "DocuSign JWT",
|
|
52
|
-
auth: z.object({
|
|
53
|
-
integratorKey: z.string().min(1),
|
|
54
|
-
impersonatedUserId: z.uuid(),
|
|
55
|
-
privateKeyPem: z.string().min(1),
|
|
56
|
-
oauthHost: z.enum(["account.docusign.com", "account-d.docusign.com"])
|
|
57
|
-
})
|
|
58
|
-
});
|
|
59
|
-
/**
|
|
60
|
-
* Parse the comma-separated `KEYSTROKE_OFFICIAL_DOCUSIGN_CONNECT_HMAC_SECRETS`
|
|
61
|
-
* env value into the array shape the internal credential set expects. Empty
|
|
62
|
-
* input resolves to `[]`, which fails the `.min(1)` parse so Connect triggers
|
|
63
|
-
* reject deliveries until the env is populated.
|
|
64
|
-
*/
|
|
65
|
-
function parseHmacSecrets(raw) {
|
|
66
|
-
if (!raw) return [];
|
|
67
|
-
return raw.split(",").map((secret) => secret.trim()).filter((secret) => secret.length > 0);
|
|
68
|
-
}
|
|
69
|
-
const docusignOfficialProviderSeed = {
|
|
70
|
-
provider: "docusign",
|
|
71
|
-
appRef: "docusign-platform",
|
|
72
|
-
displayName: "DocuSign Platform",
|
|
73
|
-
credentialSetName: "Keystroke DocuSign Platform App",
|
|
74
|
-
envShape: {
|
|
75
|
-
KEYSTROKE_OFFICIAL_DOCUSIGN_CLIENT_ID: z.string().optional(),
|
|
76
|
-
KEYSTROKE_OFFICIAL_DOCUSIGN_CLIENT_SECRET: z.string().optional()
|
|
77
|
-
},
|
|
78
|
-
requiredEnvKeys: ["KEYSTROKE_OFFICIAL_DOCUSIGN_CLIENT_ID", "KEYSTROKE_OFFICIAL_DOCUSIGN_CLIENT_SECRET"],
|
|
79
|
-
externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_DOCUSIGN_CLIENT_ID",
|
|
80
|
-
buildCredentials: (env) => ({
|
|
81
|
-
clientId: env.KEYSTROKE_OFFICIAL_DOCUSIGN_CLIENT_ID,
|
|
82
|
-
clientSecret: env.KEYSTROKE_OFFICIAL_DOCUSIGN_CLIENT_SECRET
|
|
83
|
-
})
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
//#endregion
|
|
87
|
-
//#region src/oauth-connection.ts
|
|
88
|
-
const DOCUSIGN_OAUTH_HOST = "account.docusign.com";
|
|
89
|
-
const DOCUSIGN_AUTH_URL = `https://${DOCUSIGN_OAUTH_HOST}/oauth/auth`;
|
|
90
|
-
const DOCUSIGN_TOKEN_URL = `https://${DOCUSIGN_OAUTH_HOST}/oauth/token`;
|
|
91
|
-
const DOCUSIGN_REVOKE_URL = `https://${DOCUSIGN_OAUTH_HOST}/oauth/revoke`;
|
|
92
|
-
const DOCUSIGN_USERINFO_URL = `https://${DOCUSIGN_OAUTH_HOST}/oauth/userinfo`;
|
|
93
|
-
const DOCUSIGN_OAUTH_SCOPES = ["signature", "extended"];
|
|
94
|
-
function basicAuthHeader(clientId, clientSecret) {
|
|
95
|
-
return `Basic ${Buffer.from(`${clientId}:${clientSecret}`, "utf8").toString("base64")}`;
|
|
96
|
-
}
|
|
97
|
-
async function postDocusignToken(body, authHeader) {
|
|
98
|
-
const response = await fetch(DOCUSIGN_TOKEN_URL, {
|
|
99
|
-
method: "POST",
|
|
100
|
-
headers: {
|
|
101
|
-
Accept: "application/json",
|
|
102
|
-
"Content-Type": "application/x-www-form-urlencoded",
|
|
103
|
-
Authorization: authHeader
|
|
104
|
-
},
|
|
105
|
-
body
|
|
106
|
-
});
|
|
107
|
-
if (!response.ok) throw new TokenExchangeError(response.status);
|
|
108
|
-
const raw = await parseOAuthTokenResponse(response);
|
|
109
|
-
const { accessToken, refreshToken, expiresIn } = normalizeOAuthTokens(raw);
|
|
110
|
-
if (!accessToken) throw new Error("No access token in DocuSign response");
|
|
111
|
-
return {
|
|
112
|
-
accessToken,
|
|
113
|
-
refreshToken,
|
|
114
|
-
expiresIn,
|
|
115
|
-
raw
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
async function fetchDocusignUserinfo(accessToken) {
|
|
119
|
-
const response = await fetch(DOCUSIGN_USERINFO_URL, { headers: {
|
|
120
|
-
Accept: "application/json",
|
|
121
|
-
Authorization: `Bearer ${accessToken}`
|
|
122
|
-
} });
|
|
123
|
-
if (!response.ok) throw new Error(`DocuSign userinfo lookup failed with status ${response.status} while resolving base URI.`);
|
|
124
|
-
return await response.json();
|
|
125
|
-
}
|
|
126
|
-
function pickDefaultAccount(userinfo) {
|
|
127
|
-
const accounts = userinfo.accounts ?? [];
|
|
128
|
-
if (accounts.length === 0) return void 0;
|
|
129
|
-
const explicitDefault = accounts.find((account) => account.is_default === true && typeof account.account_id === "string" && typeof account.base_uri === "string");
|
|
130
|
-
if (explicitDefault) return {
|
|
131
|
-
accountId: explicitDefault.account_id,
|
|
132
|
-
baseUri: explicitDefault.base_uri
|
|
133
|
-
};
|
|
134
|
-
const firstWithBoth = accounts.find((account) => typeof account.account_id === "string" && typeof account.base_uri === "string");
|
|
135
|
-
if (firstWithBoth) return {
|
|
136
|
-
accountId: firstWithBoth.account_id,
|
|
137
|
-
baseUri: firstWithBoth.base_uri
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
const docusignOAuthConnection = {
|
|
141
|
-
kind: "oauth",
|
|
142
|
-
tokenType: "refreshable",
|
|
143
|
-
authUrl: DOCUSIGN_AUTH_URL,
|
|
144
|
-
tokenUrl: DOCUSIGN_TOKEN_URL,
|
|
145
|
-
revokeUrl: DOCUSIGN_REVOKE_URL,
|
|
146
|
-
scopes: [...DOCUSIGN_OAUTH_SCOPES],
|
|
147
|
-
oauth: { id: "official.docusign.oauth" },
|
|
148
|
-
vault: {
|
|
149
|
-
accessTokenKey: "DOCUSIGN_ACCESS_TOKEN",
|
|
150
|
-
build: (tokenResult) => {
|
|
151
|
-
const accountId = typeof tokenResult.raw._docusignAccountId === "string" ? tokenResult.raw._docusignAccountId : void 0;
|
|
152
|
-
const baseUri = typeof tokenResult.raw._docusignBaseUri === "string" ? tokenResult.raw._docusignBaseUri : void 0;
|
|
153
|
-
return {
|
|
154
|
-
DOCUSIGN_ACCESS_TOKEN: tokenResult.accessToken,
|
|
155
|
-
...accountId ? { DOCUSIGN_ACCOUNT_ID: accountId } : {},
|
|
156
|
-
...baseUri ? { DOCUSIGN_BASE_URI: baseUri } : {}
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
async exchangeCode({ oauthClient, code, redirectUri }) {
|
|
161
|
-
if (!code) throw new Error("Missing authorization code");
|
|
162
|
-
const tokenResult = await postDocusignToken(new URLSearchParams({
|
|
163
|
-
grant_type: "authorization_code",
|
|
164
|
-
code,
|
|
165
|
-
redirect_uri: redirectUri
|
|
166
|
-
}), basicAuthHeader(oauthClient.clientId, oauthClient.clientSecret));
|
|
167
|
-
const userinfo = await fetchDocusignUserinfo(tokenResult.accessToken);
|
|
168
|
-
const account = pickDefaultAccount(userinfo);
|
|
169
|
-
if (!account) throw new Error("DocuSign userinfo response did not include a resolvable account.");
|
|
170
|
-
tokenResult.raw._docusignAccountId = account.accountId;
|
|
171
|
-
tokenResult.raw._docusignBaseUri = account.baseUri;
|
|
172
|
-
tokenResult.raw._docusignUserinfo = userinfo;
|
|
173
|
-
return tokenResult;
|
|
174
|
-
},
|
|
175
|
-
async refreshToken({ oauthClient, refreshToken }) {
|
|
176
|
-
const tokenResult = await postDocusignToken(new URLSearchParams({
|
|
177
|
-
grant_type: "refresh_token",
|
|
178
|
-
refresh_token: refreshToken
|
|
179
|
-
}), basicAuthHeader(oauthClient.clientId, oauthClient.clientSecret));
|
|
180
|
-
const userinfo = await fetchDocusignUserinfo(tokenResult.accessToken);
|
|
181
|
-
const account = pickDefaultAccount(userinfo);
|
|
182
|
-
if (!account) throw new Error("DocuSign userinfo response did not include a resolvable account during refresh.");
|
|
183
|
-
tokenResult.raw._docusignAccountId = account.accountId;
|
|
184
|
-
tokenResult.raw._docusignBaseUri = account.baseUri;
|
|
185
|
-
tokenResult.raw._docusignUserinfo = userinfo;
|
|
186
|
-
return tokenResult;
|
|
187
|
-
},
|
|
188
|
-
extractInstallationInfo({ tokenResult }) {
|
|
189
|
-
const accountId = typeof tokenResult.raw._docusignAccountId === "string" ? tokenResult.raw._docusignAccountId : void 0;
|
|
190
|
-
const baseUri = typeof tokenResult.raw._docusignBaseUri === "string" ? tokenResult.raw._docusignBaseUri : void 0;
|
|
191
|
-
return {
|
|
192
|
-
externalInstallationId: accountId,
|
|
193
|
-
externalWorkspaceId: accountId,
|
|
194
|
-
metadata: accountId && baseUri ? {
|
|
195
|
-
accountId,
|
|
196
|
-
baseUri
|
|
197
|
-
} : void 0
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
//#endregion
|
|
203
|
-
//#region src/integration.ts
|
|
204
|
-
const docusignAuthSchema = z.object({
|
|
205
|
-
DOCUSIGN_ACCESS_TOKEN: z.string().min(1),
|
|
206
|
-
DOCUSIGN_ACCOUNT_ID: z.string().min(1),
|
|
207
|
-
DOCUSIGN_BASE_URI: z.url()
|
|
208
|
-
});
|
|
209
|
-
const docusignOfficialIntegration = {
|
|
210
|
-
id: "docusign",
|
|
211
|
-
name: "DocuSign",
|
|
212
|
-
description: "DocuSign eSignature, templates, bulk-send, Connect webhooks, and account/admin surfaces for Keystroke workflows",
|
|
213
|
-
auth: docusignAuthSchema,
|
|
214
|
-
connections: [{
|
|
215
|
-
id: "oauth",
|
|
216
|
-
...docusignOAuthConnection
|
|
217
|
-
}]
|
|
218
|
-
};
|
|
219
|
-
const docusignBundle = defineOfficialIntegration({
|
|
220
|
-
...docusignOfficialIntegration,
|
|
221
|
-
internal: {
|
|
222
|
-
providerApp: docusignAppCredentialSet,
|
|
223
|
-
other: [docusignConnectCredentialSet, docusignJwtCredentialSet]
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
const docusign = docusignBundle.credentialSet;
|
|
227
|
-
|
|
228
|
-
//#endregion
|
|
229
|
-
export { fetchDocusignUserinfo as a, docusignJwtCredentialSet as c, DOCUSIGN_USERINFO_URL as i, docusignOfficialProviderSeed as l, docusignBundle as n, docusignAppCredentialSet as o, docusignOfficialIntegration as r, docusignConnectCredentialSet as s, docusign as t, parseHmacSecrets as u };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import * as _keystrokehq_integration_authoring_official0 from "@keystrokehq/integration-authoring/official";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
5
|
-
import { InferCredentialSetAuth } from "@keystrokehq/core/credential-set";
|
|
6
|
-
|
|
7
|
-
//#region src/integration.d.ts
|
|
8
|
-
declare const docusignOfficialIntegration: {
|
|
9
|
-
id: "docusign";
|
|
10
|
-
name: string;
|
|
11
|
-
description: string;
|
|
12
|
-
auth: z.ZodObject<{
|
|
13
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
14
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
15
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
connections: {
|
|
18
|
-
kind: "oauth";
|
|
19
|
-
tokenType: "refreshable";
|
|
20
|
-
authUrl: "https://account.docusign.com/oauth/auth";
|
|
21
|
-
tokenUrl: "https://account.docusign.com/oauth/token";
|
|
22
|
-
revokeUrl: "https://account.docusign.com/oauth/revoke";
|
|
23
|
-
scopes: readonly ["signature", "extended"];
|
|
24
|
-
oauth: {
|
|
25
|
-
readonly id: "official.docusign.oauth";
|
|
26
|
-
};
|
|
27
|
-
vault: {
|
|
28
|
-
readonly accessTokenKey: "DOCUSIGN_ACCESS_TOKEN";
|
|
29
|
-
readonly build: (tokenResult: _keystrokehq_core_credential_set0.TokenResult) => {
|
|
30
|
-
DOCUSIGN_BASE_URI?: string | undefined;
|
|
31
|
-
DOCUSIGN_ACCOUNT_ID?: string | undefined;
|
|
32
|
-
DOCUSIGN_ACCESS_TOKEN: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
exchangeCode: ({
|
|
36
|
-
oauthClient,
|
|
37
|
-
code,
|
|
38
|
-
redirectUri
|
|
39
|
-
}: _keystrokehq_core_credential_set0.ExchangeCodeContext) => Promise<_keystrokehq_core_credential_set0.TokenResult>;
|
|
40
|
-
refreshToken: ({
|
|
41
|
-
oauthClient,
|
|
42
|
-
refreshToken
|
|
43
|
-
}: _keystrokehq_core_credential_set0.RefreshTokenContext) => Promise<_keystrokehq_core_credential_set0.TokenResult>;
|
|
44
|
-
extractInstallationInfo: ({
|
|
45
|
-
tokenResult
|
|
46
|
-
}: _keystrokehq_core_credential_set0.ExtractInstallationContext) => {
|
|
47
|
-
externalInstallationId: string | undefined;
|
|
48
|
-
externalWorkspaceId: string | undefined;
|
|
49
|
-
metadata: {
|
|
50
|
-
accountId: string;
|
|
51
|
-
baseUri: string;
|
|
52
|
-
} | undefined;
|
|
53
|
-
};
|
|
54
|
-
id: string;
|
|
55
|
-
}[];
|
|
56
|
-
};
|
|
57
|
-
declare const docusignBundle: _keystrokehq_integration_authoring_official0.OfficialIntegrationBundle<"docusign", z.ZodObject<{
|
|
58
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
59
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
60
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
61
|
-
}, z.core.$strip>>;
|
|
62
|
-
declare const docusign: _keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
63
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
64
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
65
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
66
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
67
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
68
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
69
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
70
|
-
}, z.core.$strip>>[] | undefined>;
|
|
71
|
-
type DocusignCredentials = InferCredentialSetAuth<typeof docusign>;
|
|
72
|
-
//#endregion
|
|
73
|
-
export { docusignOfficialIntegration as i, docusign as n, docusignBundle as r, DocusignCredentials as t };
|