@keystrokehq/docusign 0.0.15 → 0.0.16-integration-id-canonicalization.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/credential-sets/index.d.mts +2 -0
- package/dist/credential-sets/index.mjs +4 -0
- package/dist/docusign-jwt.credential-set-B0sXS-5i.mjs +39 -0
- package/dist/docusign-jwt.credential-set-Bz99DTgx.d.mts +90 -0
- package/dist/docusign.credential-set-DRhK9ICD.mjs +183 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +6 -1
- package/dist/operations/index.d.mts +2 -0
- package/dist/operations/index.mjs +3 -0
- package/dist/void-envelope.operation-Bim49UXq.mjs +8192 -0
- package/dist/void-envelope.operation-D-onxqe_.d.mts +18203 -0
- package/package.json +11 -226
- package/dist/_official/index.d.mts +0 -75
- package/dist/_official/index.mjs +0 -3
- package/dist/_runtime/index.d.mts +0 -1
- package/dist/_runtime/index.mjs +0 -1
- package/dist/account-custom-fields.d.mts +0 -48
- package/dist/account-custom-fields.mjs +0 -63
- package/dist/account-stamps.d.mts +0 -119
- package/dist/account-stamps.mjs +0 -144
- package/dist/account-tabs.d.mts +0 -65
- package/dist/account-tabs.mjs +0 -80
- package/dist/account.d.mts +0 -160
- package/dist/account.mjs +0 -207
- package/dist/admin.d.mts +0 -13
- package/dist/admin.mjs +0 -20
- package/dist/auth.d.mts +0 -28
- package/dist/auth.mjs +0 -64
- package/dist/bcc-archive.d.mts +0 -47
- package/dist/bcc-archive.mjs +0 -70
- package/dist/billing.d.mts +0 -152
- package/dist/billing.mjs +0 -208
- package/dist/brands.d.mts +0 -147
- package/dist/brands.mjs +0 -157
- package/dist/bulk-send.d.mts +0 -104
- package/dist/bulk-send.mjs +0 -115
- package/dist/chunked-uploads.d.mts +0 -57
- package/dist/chunked-uploads.mjs +0 -74
- package/dist/click.d.mts +0 -13
- package/dist/click.mjs +0 -20
- package/dist/client.d.mts +0 -47
- package/dist/client.mjs +0 -286
- package/dist/clm.d.mts +0 -13
- package/dist/clm.mjs +0 -20
- package/dist/cloud-storage.d.mts +0 -93
- package/dist/cloud-storage.mjs +0 -115
- package/dist/connect.d.mts +0 -183
- package/dist/connect.mjs +0 -217
- package/dist/connection.d.mts +0 -2
- package/dist/connection.mjs +0 -3
- package/dist/contacts.d.mts +0 -59
- package/dist/contacts.mjs +0 -79
- package/dist/enote.d.mts +0 -31
- package/dist/enote.mjs +0 -45
- package/dist/envelope-attachments.d.mts +0 -65
- package/dist/envelope-attachments.mjs +0 -76
- package/dist/envelope-custom-fields.d.mts +0 -137
- package/dist/envelope-custom-fields.mjs +0 -92
- package/dist/envelope-documents.d.mts +0 -206
- package/dist/envelope-documents.mjs +0 -219
- package/dist/envelope-email.d.mts +0 -48
- package/dist/envelope-email.mjs +0 -60
- package/dist/envelope-lock.d.mts +0 -48
- package/dist/envelope-lock.mjs +0 -60
- package/dist/envelope-logs.d.mts +0 -89
- package/dist/envelope-logs.mjs +0 -126
- package/dist/envelope-notifications.d.mts +0 -34
- package/dist/envelope-notifications.mjs +0 -44
- package/dist/envelope-recipients.d.mts +0 -126
- package/dist/envelope-recipients.mjs +0 -136
- package/dist/envelope-tabs.d.mts +0 -39
- package/dist/envelope-tabs.mjs +0 -49
- package/dist/envelope-views.d.mts +0 -74
- package/dist/envelope-views.mjs +0 -88
- package/dist/envelope-workflow.d.mts +0 -151
- package/dist/envelope-workflow.mjs +0 -176
- package/dist/envelopes.d.mts +0 -377
- package/dist/envelopes.mjs +0 -190
- package/dist/errors.d.mts +0 -48
- package/dist/errors.mjs +0 -76
- package/dist/events.d.mts +0 -192
- package/dist/events.mjs +0 -146
- package/dist/factory-5kY-Jnda.mjs +0 -8
- package/dist/groups.d.mts +0 -150
- package/dist/groups.mjs +0 -146
- package/dist/integration-H05G5JY8.mjs +0 -112
- package/dist/integration-Mk1ScWT6.d.mts +0 -30
- package/dist/messaging.d.mts +0 -1
- package/dist/messaging.mjs +0 -1
- package/dist/monitor.d.mts +0 -13
- package/dist/monitor.mjs +0 -20
- package/dist/notary.d.mts +0 -92
- package/dist/notary.mjs +0 -122
- package/dist/operation-helpers-D25WHTo1.mjs +0 -102
- package/dist/permission-profiles.d.mts +0 -57
- package/dist/permission-profiles.mjs +0 -70
- package/dist/power-forms.d.mts +0 -38
- package/dist/power-forms.mjs +0 -62
- package/dist/rooms.d.mts +0 -13
- package/dist/rooms.mjs +0 -28
- package/dist/shared-DTUCJayR.mjs +0 -27
- package/dist/signing-groups.d.mts +0 -102
- package/dist/signing-groups.mjs +0 -117
- package/dist/template-custom-fields.d.mts +0 -166
- package/dist/template-custom-fields.mjs +0 -107
- package/dist/template-documents.d.mts +0 -99
- package/dist/template-documents.mjs +0 -109
- package/dist/template-lock.d.mts +0 -48
- package/dist/template-lock.mjs +0 -60
- package/dist/template-sharing.d.mts +0 -96
- package/dist/template-sharing.mjs +0 -108
- package/dist/template-workflow.d.mts +0 -135
- package/dist/template-workflow.mjs +0 -152
- package/dist/templates.d.mts +0 -129
- package/dist/templates.mjs +0 -110
- package/dist/user-authorizations.d.mts +0 -96
- package/dist/user-authorizations.mjs +0 -133
- package/dist/user-custom-settings.d.mts +0 -60
- package/dist/user-custom-settings.mjs +0 -69
- package/dist/user-profile.d.mts +0 -80
- package/dist/user-profile.mjs +0 -106
- package/dist/user-signatures.d.mts +0 -155
- package/dist/user-signatures.mjs +0 -180
- package/dist/users.d.mts +0 -103
- package/dist/users.mjs +0 -98
- package/dist/verification.d.mts +0 -19
- package/dist/verification.mjs +0 -59
- package/dist/workspaces.d.mts +0 -128
- package/dist/workspaces.mjs +0 -143
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/envelope-notifications.d.ts
|
|
5
|
-
declare const getEnvelopeNotificationDefaults: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
6
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
7
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
8
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
9
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
10
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
11
|
-
}, z.core.$strip>>], undefined>;
|
|
12
|
-
declare const retrieveEnvelopeNotificationDetails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
13
|
-
envelopeId: z.ZodString;
|
|
14
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
16
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", 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>;
|
|
21
|
-
declare const updateEnvelopeNotificationSettings: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
22
|
-
envelopeId: z.ZodString;
|
|
23
|
-
notification: z.ZodObject<{
|
|
24
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
25
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
28
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
29
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
30
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
31
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
32
|
-
}, z.core.$strip>>], undefined>;
|
|
33
|
-
//#endregion
|
|
34
|
-
export { getEnvelopeNotificationDefaults, retrieveEnvelopeNotificationDetails, updateEnvelopeNotificationSettings };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { docusignEnvelopeIdSchema, docusignGenericObjectSchema, docusignLooseObjectSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation } from "./operation-helpers-D25WHTo1.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/envelope-notifications.ts
|
|
6
|
-
/**
|
|
7
|
-
* Envelope notifications. Covers PLAN.md § 6.9 (notifications half).
|
|
8
|
-
*/
|
|
9
|
-
const envId = z.object({ envelopeId: docusignEnvelopeIdSchema });
|
|
10
|
-
const getEnvelopeNotificationDefaults = defineRestOperation({
|
|
11
|
-
id: "docusign.get-envelope-notification-defaults",
|
|
12
|
-
slug: "DOCUSIGN_GET_ENVELOPE_NOTIFICATION_DEFAULTS",
|
|
13
|
-
name: "Get Envelope Notification Defaults",
|
|
14
|
-
description: "Return the default notification config the envelope inherits from the account.",
|
|
15
|
-
method: "GET",
|
|
16
|
-
path: "/notification_defaults",
|
|
17
|
-
input: z.object({}),
|
|
18
|
-
output: docusignGenericObjectSchema
|
|
19
|
-
});
|
|
20
|
-
const retrieveEnvelopeNotificationDetails = defineRestOperation({
|
|
21
|
-
id: "docusign.retrieve-envelope-notification-details",
|
|
22
|
-
slug: "DOCUSIGN_RETRIEVE_ENVELOPE_NOTIFICATION_DETAILS",
|
|
23
|
-
name: "Retrieve Envelope Notification Details",
|
|
24
|
-
description: "Return the active notification config for an envelope.",
|
|
25
|
-
method: "GET",
|
|
26
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/notification`,
|
|
27
|
-
input: envId,
|
|
28
|
-
output: docusignGenericObjectSchema
|
|
29
|
-
});
|
|
30
|
-
const updateEnvelopeNotificationSettings = defineRestOperation({
|
|
31
|
-
id: "docusign.update-envelope-notification-settings",
|
|
32
|
-
slug: "DOCUSIGN_UPDATE_ENVELOPE_NOTIFICATION_SETTINGS",
|
|
33
|
-
name: "Update Envelope Notification Settings",
|
|
34
|
-
description: "Update the notification config on an envelope.",
|
|
35
|
-
needsApproval: true,
|
|
36
|
-
method: "PUT",
|
|
37
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/notification`,
|
|
38
|
-
input: envId.extend({ notification: docusignLooseObjectSchema() }),
|
|
39
|
-
output: docusignGenericObjectSchema,
|
|
40
|
-
body: (input) => input.notification
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
//#endregion
|
|
44
|
-
export { getEnvelopeNotificationDefaults, retrieveEnvelopeNotificationDetails, updateEnvelopeNotificationSettings };
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/envelope-recipients.d.ts
|
|
5
|
-
declare const getRecipientDocumentVisibility: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
envelopeId: z.ZodString;
|
|
7
|
-
recipientId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
10
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
11
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
12
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
13
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
14
|
-
}, z.core.$strip>>], undefined>;
|
|
15
|
-
declare const updateRecipientDocumentVisibility: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
16
|
-
envelopeId: z.ZodString;
|
|
17
|
-
recipientId: z.ZodString;
|
|
18
|
-
documentVisibility: z.ZodArray<z.ZodObject<{
|
|
19
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
20
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
21
|
-
}, 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<"keystroke: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>>], undefined>;
|
|
28
|
-
declare const updateDocumentVisibilityRecipients: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
29
|
-
envelopeId: z.ZodString;
|
|
30
|
-
documentVisibility: z.ZodArray<z.ZodObject<{
|
|
31
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
32
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
35
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
36
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
37
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
38
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
39
|
-
}, z.core.$strip>>], undefined>;
|
|
40
|
-
declare const createRecipientManualReviewLink: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
41
|
-
envelopeId: z.ZodString;
|
|
42
|
-
recipientId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
url: z.ZodOptional<z.ZodString>;
|
|
45
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
46
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
47
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
48
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
49
|
-
}, z.core.$strip>>], undefined>;
|
|
50
|
-
declare const createRecipientPreviewForEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
51
|
-
envelopeId: z.ZodString;
|
|
52
|
-
preview: z.ZodObject<{
|
|
53
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
54
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
url: z.ZodOptional<z.ZodString>;
|
|
57
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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>>], undefined>;
|
|
62
|
-
declare const createRecipientViewUrl: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
63
|
-
envelopeId: z.ZodString;
|
|
64
|
-
view: z.ZodObject<{
|
|
65
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
66
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
67
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
-
url: z.ZodOptional<z.ZodString>;
|
|
69
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", 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>;
|
|
74
|
-
declare const generateRecipientSharedViewUrl: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
75
|
-
view: z.ZodObject<{
|
|
76
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
77
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
78
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
79
|
-
url: z.ZodOptional<z.ZodString>;
|
|
80
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
81
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
82
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
83
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
84
|
-
}, z.core.$strip>>], undefined>;
|
|
85
|
-
declare const createIdProofResourceTokenForRecipient: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
86
|
-
envelopeId: z.ZodString;
|
|
87
|
-
recipientId: z.ZodString;
|
|
88
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
-
token: z.ZodOptional<z.ZodString>;
|
|
90
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
91
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
92
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
93
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
94
|
-
}, z.core.$strip>>], undefined>;
|
|
95
|
-
declare const getSignatureInformationForRecipient: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
96
|
-
envelopeId: z.ZodString;
|
|
97
|
-
recipientId: z.ZodString;
|
|
98
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
100
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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>>], undefined>;
|
|
105
|
-
declare const getElectronicDisclosureForRecipient: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
106
|
-
envelopeId: z.ZodString;
|
|
107
|
-
recipientId: z.ZodString;
|
|
108
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
109
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
110
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
111
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
112
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
113
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
114
|
-
}, z.core.$strip>>], undefined>;
|
|
115
|
-
declare const retrieveSignerSignatureImageInformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
116
|
-
envelopeId: z.ZodString;
|
|
117
|
-
recipientId: z.ZodString;
|
|
118
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
119
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
120
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
121
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
122
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
123
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
124
|
-
}, z.core.$strip>>], undefined>;
|
|
125
|
-
//#endregion
|
|
126
|
-
export { createIdProofResourceTokenForRecipient, createRecipientManualReviewLink, createRecipientPreviewForEnvelope, createRecipientViewUrl, generateRecipientSharedViewUrl, getElectronicDisclosureForRecipient, getRecipientDocumentVisibility, getSignatureInformationForRecipient, retrieveSignerSignatureImageInformation, updateDocumentVisibilityRecipients, updateRecipientDocumentVisibility };
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { docusignEnvelopeIdSchema, docusignGenericObjectSchema, docusignLooseObjectSchema, docusignRecipientIdSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation } from "./operation-helpers-D25WHTo1.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/envelope-recipients.ts
|
|
6
|
-
/**
|
|
7
|
-
* Envelope recipients — visibility, preview URLs, signature info, disclosures.
|
|
8
|
-
* Covers PLAN.md § 6.3.
|
|
9
|
-
*/
|
|
10
|
-
const envId = z.object({ envelopeId: docusignEnvelopeIdSchema });
|
|
11
|
-
const envRecipient = envId.extend({ recipientId: docusignRecipientIdSchema });
|
|
12
|
-
const getRecipientDocumentVisibility = defineRestOperation({
|
|
13
|
-
id: "docusign.get-recipient-document-visibility",
|
|
14
|
-
slug: "DOCUSIGN_GET_RECIPIENT_DOCUMENT_VISIBILITY",
|
|
15
|
-
name: "Get Recipient Document Visibility",
|
|
16
|
-
description: "Return which documents are visible to a recipient on an envelope.",
|
|
17
|
-
method: "GET",
|
|
18
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/recipients/${ctx.encode(String(ctx.input.recipientId))}/document_visibility`,
|
|
19
|
-
input: envRecipient,
|
|
20
|
-
output: docusignGenericObjectSchema
|
|
21
|
-
});
|
|
22
|
-
const updateRecipientDocumentVisibility = defineRestOperation({
|
|
23
|
-
id: "docusign.update-recipient-document-visibility",
|
|
24
|
-
slug: "DOCUSIGN_UPDATE_RECIPIENT_DOCUMENT_VISIBILITY",
|
|
25
|
-
name: "Update Recipient Document Visibility",
|
|
26
|
-
description: "Update per-document visibility flags for a recipient on an envelope.",
|
|
27
|
-
needsApproval: true,
|
|
28
|
-
method: "PUT",
|
|
29
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/recipients/${ctx.encode(String(ctx.input.recipientId))}/document_visibility`,
|
|
30
|
-
input: envRecipient.extend({ documentVisibility: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
31
|
-
output: docusignGenericObjectSchema,
|
|
32
|
-
body: (input) => ({ documentVisibility: input.documentVisibility })
|
|
33
|
-
});
|
|
34
|
-
const updateDocumentVisibilityRecipients = defineRestOperation({
|
|
35
|
-
id: "docusign.update-document-visibility-recipients",
|
|
36
|
-
slug: "DOCUSIGN_UPDATE_DOCUMENT_VISIBILITY_RECIPIENTS",
|
|
37
|
-
name: "Update Document Visibility For Multiple Recipients",
|
|
38
|
-
description: "Batch update per-recipient document visibility on an envelope.",
|
|
39
|
-
needsApproval: true,
|
|
40
|
-
method: "PUT",
|
|
41
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/recipients/document_visibility`,
|
|
42
|
-
input: envId.extend({ documentVisibility: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
43
|
-
output: docusignGenericObjectSchema,
|
|
44
|
-
body: (input) => ({ documentVisibility: input.documentVisibility })
|
|
45
|
-
});
|
|
46
|
-
const createRecipientManualReviewLink = defineRestOperation({
|
|
47
|
-
id: "docusign.create-recipient-manual-review-link",
|
|
48
|
-
slug: "DOCUSIGN_CREATE_RECIPIENT_MANUAL_REVIEW_LINK",
|
|
49
|
-
name: "Create Recipient Manual Review Link",
|
|
50
|
-
description: "Create a manual-review URL for a recipient on an envelope.",
|
|
51
|
-
needsApproval: true,
|
|
52
|
-
method: "POST",
|
|
53
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/recipients/${ctx.encode(String(ctx.input.recipientId))}/views/identity_manual_review`,
|
|
54
|
-
input: envRecipient,
|
|
55
|
-
output: docusignLooseObjectSchema({ url: z.string().optional() })
|
|
56
|
-
});
|
|
57
|
-
const createRecipientPreviewForEnvelope = defineRestOperation({
|
|
58
|
-
id: "docusign.create-recipient-preview-for-envelope",
|
|
59
|
-
slug: "DOCUSIGN_CREATE_RECIPIENT_PREVIEW_FOR_ENVELOPE",
|
|
60
|
-
name: "Create Recipient Preview URL",
|
|
61
|
-
description: "Create a preview URL that simulates a recipient signing experience.",
|
|
62
|
-
needsApproval: true,
|
|
63
|
-
method: "POST",
|
|
64
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/views/recipient_preview`,
|
|
65
|
-
input: envId.extend({ preview: docusignLooseObjectSchema() }),
|
|
66
|
-
output: docusignLooseObjectSchema({ url: z.string().optional() }),
|
|
67
|
-
body: (input) => input.preview
|
|
68
|
-
});
|
|
69
|
-
const createRecipientViewUrl = defineRestOperation({
|
|
70
|
-
id: "docusign.create-recipient-view-url",
|
|
71
|
-
slug: "DOCUSIGN_CREATE_RECIPIENT_VIEW_URL",
|
|
72
|
-
name: "Create Recipient View URL",
|
|
73
|
-
description: "Create an embedded signing URL for a recipient.",
|
|
74
|
-
needsApproval: true,
|
|
75
|
-
method: "POST",
|
|
76
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/views/recipient`,
|
|
77
|
-
input: envId.extend({ view: docusignLooseObjectSchema() }),
|
|
78
|
-
output: docusignLooseObjectSchema({ url: z.string().optional() }),
|
|
79
|
-
body: (input) => input.view
|
|
80
|
-
});
|
|
81
|
-
const generateRecipientSharedViewUrl = defineRestOperation({
|
|
82
|
-
id: "docusign.generate-recipient-shared-view-url",
|
|
83
|
-
slug: "DOCUSIGN_GENERATE_RECIPIENT_SHARED_VIEW_URL",
|
|
84
|
-
name: "Generate Recipient Shared View URL",
|
|
85
|
-
description: "Create a shared view URL scoped to a recipient across multiple envelopes.",
|
|
86
|
-
needsApproval: true,
|
|
87
|
-
method: "POST",
|
|
88
|
-
path: "/views/recipient_shared",
|
|
89
|
-
input: z.object({ view: docusignLooseObjectSchema() }),
|
|
90
|
-
output: docusignLooseObjectSchema({ url: z.string().optional() }),
|
|
91
|
-
body: (input) => input.view
|
|
92
|
-
});
|
|
93
|
-
const createIdProofResourceTokenForRecipient = defineRestOperation({
|
|
94
|
-
id: "docusign.create-id-proof-resource-token-for-recipient",
|
|
95
|
-
slug: "DOCUSIGN_CREATE_IDPROOF_RESOURCE_TOKEN_FOR_RECIPIENT",
|
|
96
|
-
name: "Create ID-Proof Resource Token",
|
|
97
|
-
description: "Mint an ID-proof resource token for a recipient.",
|
|
98
|
-
needsApproval: true,
|
|
99
|
-
method: "POST",
|
|
100
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/recipients/${ctx.encode(String(ctx.input.recipientId))}/identity_proof_token`,
|
|
101
|
-
input: envRecipient,
|
|
102
|
-
output: docusignLooseObjectSchema({ token: z.string().optional() })
|
|
103
|
-
});
|
|
104
|
-
const getSignatureInformationForRecipient = defineRestOperation({
|
|
105
|
-
id: "docusign.get-signature-information-for-recipient",
|
|
106
|
-
slug: "DOCUSIGN_GET_SIGNATURE_INFORMATION_FOR_RECIPIENT",
|
|
107
|
-
name: "Get Signature Information For Recipient",
|
|
108
|
-
description: "Return signature metadata for a recipient on an envelope.",
|
|
109
|
-
method: "GET",
|
|
110
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/recipients/${ctx.encode(String(ctx.input.recipientId))}/signature`,
|
|
111
|
-
input: envRecipient,
|
|
112
|
-
output: docusignGenericObjectSchema
|
|
113
|
-
});
|
|
114
|
-
const getElectronicDisclosureForRecipient = defineRestOperation({
|
|
115
|
-
id: "docusign.get-electronic-disclosure-for-recipient",
|
|
116
|
-
slug: "DOCUSIGN_GET_ELECTRONIC_DISCLOSURE_FOR_RECIPIENT",
|
|
117
|
-
name: "Get Electronic Disclosure For Recipient",
|
|
118
|
-
description: "Return the consumer disclosure a recipient accepted.",
|
|
119
|
-
method: "GET",
|
|
120
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/recipients/${ctx.encode(String(ctx.input.recipientId))}/consumer_disclosure`,
|
|
121
|
-
input: envRecipient,
|
|
122
|
-
output: docusignGenericObjectSchema
|
|
123
|
-
});
|
|
124
|
-
const retrieveSignerSignatureImageInformation = defineRestOperation({
|
|
125
|
-
id: "docusign.retrieve-signer-signature-image-information",
|
|
126
|
-
slug: "DOCUSIGN_RETRIEVE_SIGNER_SIGNATURE_IMAGE_INFORMATION",
|
|
127
|
-
name: "Retrieve Signer Signature Image Information",
|
|
128
|
-
description: "Return the signer signature image metadata on an envelope.",
|
|
129
|
-
method: "GET",
|
|
130
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/recipients/${ctx.encode(String(ctx.input.recipientId))}/signature_image`,
|
|
131
|
-
input: envRecipient,
|
|
132
|
-
output: docusignGenericObjectSchema
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
//#endregion
|
|
136
|
-
export { createIdProofResourceTokenForRecipient, createRecipientManualReviewLink, createRecipientPreviewForEnvelope, createRecipientViewUrl, generateRecipientSharedViewUrl, getElectronicDisclosureForRecipient, getRecipientDocumentVisibility, getSignatureInformationForRecipient, retrieveSignerSignatureImageInformation, updateDocumentVisibilityRecipients, updateRecipientDocumentVisibility };
|
package/dist/envelope-tabs.d.mts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/envelope-tabs.d.ts
|
|
5
|
-
declare const returnEnvelopeTabDataForExistingEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
envelopeId: z.ZodString;
|
|
7
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
9
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
10
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
11
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
12
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
13
|
-
}, z.core.$strip>>], undefined>;
|
|
14
|
-
declare const getTabsBlobForEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
15
|
-
envelopeId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
18
|
-
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
19
|
-
status: z.ZodNumber;
|
|
20
|
-
body: z.ZodString;
|
|
21
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
22
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
23
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
24
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
25
|
-
}, z.core.$strip>>], undefined>;
|
|
26
|
-
declare const deprecatedEndpointForTabBlob: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
27
|
-
envelopeId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
30
|
-
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
31
|
-
status: z.ZodNumber;
|
|
32
|
-
body: z.ZodString;
|
|
33
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
34
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
35
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
36
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
37
|
-
}, z.core.$strip>>], undefined>;
|
|
38
|
-
//#endregion
|
|
39
|
-
export { deprecatedEndpointForTabBlob, getTabsBlobForEnvelope, returnEnvelopeTabDataForExistingEnvelope };
|
package/dist/envelope-tabs.mjs
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { docusignEnvelopeIdSchema, docusignGenericObjectSchema, docusignLooseObjectSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-D25WHTo1.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/envelope-tabs.ts
|
|
6
|
-
/**
|
|
7
|
-
* Envelope tabs — tab data for existing envelopes + tab blobs.
|
|
8
|
-
* Covers PLAN.md § 6.4.
|
|
9
|
-
*/
|
|
10
|
-
const envId = z.object({ envelopeId: docusignEnvelopeIdSchema });
|
|
11
|
-
const binaryResponseSchema = docusignLooseObjectSchema({
|
|
12
|
-
contentType: z.string().optional(),
|
|
13
|
-
contentDisposition: z.string().optional(),
|
|
14
|
-
status: z.number(),
|
|
15
|
-
body: z.string()
|
|
16
|
-
});
|
|
17
|
-
const returnEnvelopeTabDataForExistingEnvelope = defineRestOperation({
|
|
18
|
-
id: "docusign.return-envelope-tab-data-for-existing-envelope",
|
|
19
|
-
slug: "DOCUSIGN_RETURN_ENVELOPE_TAB_DATA_FOR_EXISTING_ENVELOPE",
|
|
20
|
-
name: "Return Envelope Tab Data",
|
|
21
|
-
description: "Return the tab (form field) data captured on an envelope.",
|
|
22
|
-
method: "GET",
|
|
23
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/form_data`,
|
|
24
|
-
input: envId,
|
|
25
|
-
output: docusignGenericObjectSchema
|
|
26
|
-
});
|
|
27
|
-
const getTabsBlobForEnvelope = defineBinaryOperation({
|
|
28
|
-
id: "docusign.get-tabs-blob-for-envelope",
|
|
29
|
-
slug: "DOCUSIGN_GET_TABS_BLOB_FOR_ENVELOPE",
|
|
30
|
-
name: "Get Tabs Blob For Envelope",
|
|
31
|
-
description: "Download the raw tabs blob for an envelope.",
|
|
32
|
-
method: "GET",
|
|
33
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/tabs_blob`,
|
|
34
|
-
input: envId,
|
|
35
|
-
output: binaryResponseSchema
|
|
36
|
-
});
|
|
37
|
-
const deprecatedEndpointForTabBlob = defineBinaryOperation({
|
|
38
|
-
id: "docusign.deprecated-endpoint-for-tab-blob",
|
|
39
|
-
slug: "DOCUSIGN_DEPRECATED_ENDPOINT_FOR_TAB_BLOB",
|
|
40
|
-
name: "Deprecated Endpoint For Tab Blob",
|
|
41
|
-
description: "Deprecated alias for fetching the envelope tabs blob. Kept exported for slug parity — prefer getTabsBlobForEnvelope.",
|
|
42
|
-
method: "GET",
|
|
43
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/tabs_blob`,
|
|
44
|
-
input: envId,
|
|
45
|
-
output: binaryResponseSchema
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
//#endregion
|
|
49
|
-
export { deprecatedEndpointForTabBlob, getTabsBlobForEnvelope, returnEnvelopeTabDataForExistingEnvelope };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/envelope-views.d.ts
|
|
5
|
-
declare const createSenderViewUrlForEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
envelopeId: z.ZodString;
|
|
7
|
-
view: z.ZodOptional<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
|
-
url: z.ZodOptional<z.ZodString>;
|
|
12
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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>>], undefined>;
|
|
17
|
-
declare const generateEditViewUrlForEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
18
|
-
envelopeId: z.ZodString;
|
|
19
|
-
view: z.ZodOptional<z.ZodObject<{
|
|
20
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
21
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
url: z.ZodOptional<z.ZodString>;
|
|
24
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
25
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
26
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
27
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
28
|
-
}, z.core.$strip>>], undefined>;
|
|
29
|
-
declare const generateEnvelopeCorrectionUrl: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
30
|
-
envelopeId: z.ZodString;
|
|
31
|
-
view: z.ZodOptional<z.ZodObject<{
|
|
32
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
33
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
url: z.ZodOptional<z.ZodString>;
|
|
36
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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>>], undefined>;
|
|
41
|
-
declare const revokeEnvelopeCorrectionUrl: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
42
|
-
envelopeId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
success: z.ZodBoolean;
|
|
45
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
46
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
47
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
48
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
49
|
-
}, z.core.$strip>>], undefined>;
|
|
50
|
-
declare const getUrlForEmbeddingDocusignUi: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
51
|
-
view: z.ZodOptional<z.ZodObject<{
|
|
52
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
53
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
url: z.ZodOptional<z.ZodString>;
|
|
56
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", 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>;
|
|
61
|
-
declare const createUrlForTemplateEditView: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
62
|
-
templateId: z.ZodString;
|
|
63
|
-
view: z.ZodOptional<z.ZodObject<{
|
|
64
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
65
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
66
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
-
url: z.ZodOptional<z.ZodString>;
|
|
68
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
69
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
70
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
71
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
72
|
-
}, z.core.$strip>>], undefined>;
|
|
73
|
-
//#endregion
|
|
74
|
-
export { createSenderViewUrlForEnvelope, createUrlForTemplateEditView, generateEditViewUrlForEnvelope, generateEnvelopeCorrectionUrl, getUrlForEmbeddingDocusignUi, revokeEnvelopeCorrectionUrl };
|
package/dist/envelope-views.mjs
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { docusignEnvelopeIdSchema, docusignLooseObjectSchema, docusignSuccessSchema, docusignTemplateIdSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation } from "./operation-helpers-D25WHTo1.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/envelope-views.ts
|
|
6
|
-
/**
|
|
7
|
-
* Envelope views (sender, correction, edit, template edit). Covers PLAN.md § 6.8.
|
|
8
|
-
*/
|
|
9
|
-
const envId = z.object({ envelopeId: docusignEnvelopeIdSchema });
|
|
10
|
-
const urlResult = docusignLooseObjectSchema({ url: z.string().optional() });
|
|
11
|
-
const createSenderViewUrlForEnvelope = defineRestOperation({
|
|
12
|
-
id: "docusign.create-sender-view-url-for-envelope",
|
|
13
|
-
slug: "DOCUSIGN_CREATE_SENDER_VIEW_URL_FOR_ENVELOPE",
|
|
14
|
-
name: "Create Sender View URL",
|
|
15
|
-
description: "Create a sender view URL (Prepare page) for an envelope.",
|
|
16
|
-
needsApproval: true,
|
|
17
|
-
method: "POST",
|
|
18
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/views/sender`,
|
|
19
|
-
input: envId.extend({ view: docusignLooseObjectSchema().optional() }),
|
|
20
|
-
output: urlResult,
|
|
21
|
-
body: (input) => input.view ?? {}
|
|
22
|
-
});
|
|
23
|
-
const generateEditViewUrlForEnvelope = defineRestOperation({
|
|
24
|
-
id: "docusign.generate-edit-view-url-for-envelope",
|
|
25
|
-
slug: "DOCUSIGN_GENERATE_EDIT_VIEW_URLFOR_ENVELOPE",
|
|
26
|
-
name: "Generate Edit View URL",
|
|
27
|
-
description: "Create an edit view URL for an envelope.",
|
|
28
|
-
needsApproval: true,
|
|
29
|
-
method: "POST",
|
|
30
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/views/edit`,
|
|
31
|
-
input: envId.extend({ view: docusignLooseObjectSchema().optional() }),
|
|
32
|
-
output: urlResult,
|
|
33
|
-
body: (input) => input.view ?? {}
|
|
34
|
-
});
|
|
35
|
-
const generateEnvelopeCorrectionUrl = defineRestOperation({
|
|
36
|
-
id: "docusign.generate-envelope-correction-url",
|
|
37
|
-
slug: "DOCUSIGN_GENERATE_ENVELOPE_CORRECTION_URL",
|
|
38
|
-
name: "Generate Envelope Correction URL",
|
|
39
|
-
description: "Create a correction view URL for an envelope.",
|
|
40
|
-
needsApproval: true,
|
|
41
|
-
method: "POST",
|
|
42
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/views/correct`,
|
|
43
|
-
input: envId.extend({ view: docusignLooseObjectSchema().optional() }),
|
|
44
|
-
output: urlResult,
|
|
45
|
-
body: (input) => input.view ?? {}
|
|
46
|
-
});
|
|
47
|
-
const revokeEnvelopeCorrectionUrl = defineRestOperation({
|
|
48
|
-
id: "docusign.revoke-envelope-correction-url",
|
|
49
|
-
slug: "DOCUSIGN_REVOKE_ENVELOPE_CORRECTION_URL",
|
|
50
|
-
name: "Revoke Envelope Correction URL",
|
|
51
|
-
description: "Revoke an outstanding correction view URL.",
|
|
52
|
-
needsApproval: true,
|
|
53
|
-
method: "DELETE",
|
|
54
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/views/correct`,
|
|
55
|
-
input: envId,
|
|
56
|
-
output: docusignSuccessSchema,
|
|
57
|
-
transformResponse: () => ({ success: true })
|
|
58
|
-
});
|
|
59
|
-
const getUrlForEmbeddingDocusignUi = defineRestOperation({
|
|
60
|
-
id: "docusign.get-url-for-embedding-docusign-ui",
|
|
61
|
-
slug: "DOCUSIGN_GET_URLFOR_EMBEDDING_DOCUSIGN_UI",
|
|
62
|
-
name: "Get Embedding Console URL",
|
|
63
|
-
description: "Create a console view URL for embedding the DocuSign UI.",
|
|
64
|
-
needsApproval: true,
|
|
65
|
-
method: "POST",
|
|
66
|
-
path: "/views/console",
|
|
67
|
-
input: z.object({ view: docusignLooseObjectSchema().optional() }),
|
|
68
|
-
output: urlResult,
|
|
69
|
-
body: (input) => input.view ?? {}
|
|
70
|
-
});
|
|
71
|
-
const createUrlForTemplateEditView = defineRestOperation({
|
|
72
|
-
id: "docusign.create-url-for-template-edit-view",
|
|
73
|
-
slug: "DOCUSIGN_CREATE_URLFOR_TEMPLATE_EDIT_VIEW",
|
|
74
|
-
name: "Create Template Edit View URL",
|
|
75
|
-
description: "Create an edit view URL for a template.",
|
|
76
|
-
needsApproval: true,
|
|
77
|
-
method: "POST",
|
|
78
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/views/edit`,
|
|
79
|
-
input: z.object({
|
|
80
|
-
templateId: docusignTemplateIdSchema,
|
|
81
|
-
view: docusignLooseObjectSchema().optional()
|
|
82
|
-
}),
|
|
83
|
-
output: urlResult,
|
|
84
|
-
body: (input) => input.view ?? {}
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
//#endregion
|
|
88
|
-
export { createSenderViewUrlForEnvelope, createUrlForTemplateEditView, generateEditViewUrlForEnvelope, generateEnvelopeCorrectionUrl, getUrlForEmbeddingDocusignUi, revokeEnvelopeCorrectionUrl };
|