@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,219 +0,0 @@
|
|
|
1
|
-
import { docusignDocumentIdSchema, docusignDocumentListSchema, docusignEnvelopeIdSchema, docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } 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-documents.ts
|
|
6
|
-
/**
|
|
7
|
-
* Envelope documents, pages, images, document custom fields.
|
|
8
|
-
* Covers PLAN.md § 6.2.
|
|
9
|
-
*/
|
|
10
|
-
const envId = z.object({ envelopeId: docusignEnvelopeIdSchema });
|
|
11
|
-
const envDocIds = envId.extend({ documentId: docusignDocumentIdSchema });
|
|
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 retrieveEnvelopeDocuments = defineRestOperation({
|
|
19
|
-
id: "docusign.retrieve-envelope-documents",
|
|
20
|
-
slug: "DOCUSIGN_RETRIEVE_ENVELOPE_DOCUMENTS",
|
|
21
|
-
name: "Retrieve Envelope Documents",
|
|
22
|
-
description: "List the documents attached to an envelope.",
|
|
23
|
-
method: "GET",
|
|
24
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents`,
|
|
25
|
-
input: envId,
|
|
26
|
-
output: docusignDocumentListSchema
|
|
27
|
-
});
|
|
28
|
-
const retrieveEnvelopeDocumentFields = defineRestOperation({
|
|
29
|
-
id: "docusign.retrieve-envelope-document-fields",
|
|
30
|
-
slug: "DOCUSIGN_RETRIEVE_ENVELOPE_DOCUMENT_FIELDS",
|
|
31
|
-
name: "Retrieve Envelope Document Fields",
|
|
32
|
-
description: "Retrieve the custom fields attached to a specific envelope document.",
|
|
33
|
-
method: "GET",
|
|
34
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
|
|
35
|
-
input: envDocIds,
|
|
36
|
-
output: docusignGenericObjectSchema
|
|
37
|
-
});
|
|
38
|
-
const getEnvelopeDocumentFields = defineRestOperation({
|
|
39
|
-
id: "docusign.get-envelope-document-fields",
|
|
40
|
-
slug: "DOCUSIGN_GET_ENVELOPE_DOCUMENT_FIELDS",
|
|
41
|
-
name: "Get Envelope Document Fields",
|
|
42
|
-
description: "Get document-level fields (form-fill fields) for an envelope document.",
|
|
43
|
-
method: "GET",
|
|
44
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
|
|
45
|
-
input: envDocIds,
|
|
46
|
-
output: docusignGenericObjectSchema
|
|
47
|
-
});
|
|
48
|
-
const createCustomDocumentFieldsInEnvelope = defineRestOperation({
|
|
49
|
-
id: "docusign.create-custom-document-fields-in-envelope",
|
|
50
|
-
slug: "DOCUSIGN_CREATE_CUSTOM_DOCUMENT_FIELDS_IN_ENVELOPE",
|
|
51
|
-
name: "Create Custom Document Fields In Envelope",
|
|
52
|
-
description: "Attach new custom fields to a specific document on an envelope.",
|
|
53
|
-
needsApproval: true,
|
|
54
|
-
method: "POST",
|
|
55
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
|
|
56
|
-
input: envDocIds.extend({ documentFields: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
57
|
-
output: docusignGenericObjectSchema,
|
|
58
|
-
body: (input) => ({ documentFields: input.documentFields })
|
|
59
|
-
});
|
|
60
|
-
const updateCustomFieldsInEnvelopeDocument = defineRestOperation({
|
|
61
|
-
id: "docusign.update-custom-fields-in-envelope-document",
|
|
62
|
-
slug: "DOCUSIGN_UPDATE_CUSTOM_FIELDS_IN_ENVELOPE_DOCUMENT",
|
|
63
|
-
name: "Update Custom Fields In Envelope Document",
|
|
64
|
-
description: "Update existing custom fields on an envelope document.",
|
|
65
|
-
needsApproval: true,
|
|
66
|
-
method: "PUT",
|
|
67
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
|
|
68
|
-
input: envDocIds.extend({ documentFields: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
69
|
-
output: docusignGenericObjectSchema,
|
|
70
|
-
body: (input) => ({ documentFields: input.documentFields })
|
|
71
|
-
});
|
|
72
|
-
const deleteCustomDocumentFields = defineRestOperation({
|
|
73
|
-
id: "docusign.delete-custom-document-fields",
|
|
74
|
-
slug: "DOCUSIGN_DELETE_CUSTOM_DOCUMENT_FIELDS",
|
|
75
|
-
name: "Delete Custom Document Fields",
|
|
76
|
-
description: "Delete custom fields attached to an envelope document.",
|
|
77
|
-
needsApproval: true,
|
|
78
|
-
method: "DELETE",
|
|
79
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
|
|
80
|
-
input: envDocIds.extend({ documentFields: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
81
|
-
output: docusignSuccessSchema,
|
|
82
|
-
body: (input) => ({ documentFields: input.documentFields }),
|
|
83
|
-
transformResponse: () => ({ success: true })
|
|
84
|
-
});
|
|
85
|
-
const getPageImageFromEnvelope = defineBinaryOperation({
|
|
86
|
-
id: "docusign.get-page-image-from-envelope",
|
|
87
|
-
slug: "DOCUSIGN_GET_PAGE_IMAGE_FROM_ENVELOPE",
|
|
88
|
-
name: "Get Page Image From Envelope",
|
|
89
|
-
description: "Download a specific page image from an envelope document.",
|
|
90
|
-
method: "GET",
|
|
91
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages/${ctx.encode(String(ctx.input.pageNumber))}/page_image`,
|
|
92
|
-
input: envDocIds.extend({ pageNumber: z.union([z.number().int().positive(), z.string()]) }),
|
|
93
|
-
accept: "image/png",
|
|
94
|
-
output: binaryResponseSchema
|
|
95
|
-
});
|
|
96
|
-
const rotatePageImageForEnvelope = defineRestOperation({
|
|
97
|
-
id: "docusign.rotate-page-image-for-envelope",
|
|
98
|
-
slug: "DOCUSIGN_ROTATE_PAGE_IMAGE_FOR_ENVELOPE",
|
|
99
|
-
name: "Rotate Page Image For Envelope",
|
|
100
|
-
description: "Rotate a specific page image in an envelope document.",
|
|
101
|
-
needsApproval: true,
|
|
102
|
-
method: "PUT",
|
|
103
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages/${ctx.encode(String(ctx.input.pageNumber))}/page_image`,
|
|
104
|
-
input: envDocIds.extend({
|
|
105
|
-
pageNumber: z.union([z.number().int().positive(), z.string()]),
|
|
106
|
-
rotate: z.enum(["left", "right"])
|
|
107
|
-
}),
|
|
108
|
-
output: docusignSuccessSchema,
|
|
109
|
-
body: (input) => ({ rotate: input.rotate }),
|
|
110
|
-
transformResponse: () => ({ success: true })
|
|
111
|
-
});
|
|
112
|
-
const deletePageFromDocumentInEnvelope = defineRestOperation({
|
|
113
|
-
id: "docusign.delete-page-from-document-in-envelope",
|
|
114
|
-
slug: "DOCUSIGN_DELETE_PAGE_FROM_DOCUMENT_IN_ENVELOPE",
|
|
115
|
-
name: "Delete Page From Document In Envelope",
|
|
116
|
-
description: "Delete a specific page from a document on an envelope.",
|
|
117
|
-
needsApproval: true,
|
|
118
|
-
method: "DELETE",
|
|
119
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages/${ctx.encode(String(ctx.input.pageNumber))}`,
|
|
120
|
-
input: envDocIds.extend({ pageNumber: z.union([z.number().int().positive(), z.string()]) }),
|
|
121
|
-
output: docusignSuccessSchema,
|
|
122
|
-
transformResponse: () => ({ success: true })
|
|
123
|
-
});
|
|
124
|
-
const returnsDocumentPageImagesBasedOnInput = defineRestOperation({
|
|
125
|
-
id: "docusign.returns-document-page-images-based-on-input",
|
|
126
|
-
slug: "DOCUSIGN_RETURNS_DOCUMENT_PAGE_IMAGES_BASED_ON_INPUT",
|
|
127
|
-
name: "Return Document Page Images",
|
|
128
|
-
description: "List document page images based on query filters (dpi, max_width, etc.).",
|
|
129
|
-
method: "GET",
|
|
130
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages`,
|
|
131
|
-
input: envDocIds.extend({
|
|
132
|
-
dpi: z.number().int().positive().optional(),
|
|
133
|
-
maxHeight: z.number().int().positive().optional(),
|
|
134
|
-
maxWidth: z.number().int().positive().optional(),
|
|
135
|
-
startPosition: z.number().int().nonnegative().optional(),
|
|
136
|
-
count: z.number().int().positive().optional()
|
|
137
|
-
}),
|
|
138
|
-
output: docusignGenericObjectSchema,
|
|
139
|
-
query: (input) => ({
|
|
140
|
-
dpi: input.dpi,
|
|
141
|
-
max_height: input.maxHeight,
|
|
142
|
-
max_width: input.maxWidth,
|
|
143
|
-
start_position: input.startPosition,
|
|
144
|
-
count: input.count
|
|
145
|
-
})
|
|
146
|
-
});
|
|
147
|
-
const createDocumentResponsiveHtmlPreview = defineRestOperation({
|
|
148
|
-
id: "docusign.create-document-responsive-html-preview",
|
|
149
|
-
slug: "DOCUSIGN_CREATE_DOCUMENT_RESPONSIVE_HTML_PREVIEW",
|
|
150
|
-
name: "Create Document Responsive HTML Preview",
|
|
151
|
-
description: "Create a responsive-HTML preview for an envelope document.",
|
|
152
|
-
needsApproval: true,
|
|
153
|
-
method: "POST",
|
|
154
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/responsive_html_preview`,
|
|
155
|
-
input: envDocIds.extend({ options: docusignLooseObjectSchema().optional() }),
|
|
156
|
-
output: docusignGenericObjectSchema,
|
|
157
|
-
body: (input) => input.options ?? {}
|
|
158
|
-
});
|
|
159
|
-
const createPreviewOfResponsiveHtml = defineRestOperation({
|
|
160
|
-
id: "docusign.create-preview-of-responsive-html",
|
|
161
|
-
slug: "DOCUSIGN_CREATE_PREVIEW_OF_RESPONSIVE_HTML",
|
|
162
|
-
name: "Create Preview Of Responsive HTML",
|
|
163
|
-
description: "Create a responsive-HTML preview from raw document input.",
|
|
164
|
-
needsApproval: true,
|
|
165
|
-
method: "POST",
|
|
166
|
-
path: "/responsive_html_preview",
|
|
167
|
-
input: z.object({ options: docusignLooseObjectSchema() }),
|
|
168
|
-
output: docusignGenericObjectSchema,
|
|
169
|
-
body: (input) => input.options
|
|
170
|
-
});
|
|
171
|
-
const createPreviewOfResponsiveHtmlInEnvelope = defineRestOperation({
|
|
172
|
-
id: "docusign.create-preview-of-responsive-html-in-envelope",
|
|
173
|
-
slug: "DOCUSIGN_CREATE_PREVIEW_OF_RESPONSIVE_HTML_IN_ENVELOPE",
|
|
174
|
-
name: "Create Preview Of Responsive HTML In Envelope",
|
|
175
|
-
description: "Create a responsive-HTML preview scoped to a specific envelope.",
|
|
176
|
-
needsApproval: true,
|
|
177
|
-
method: "POST",
|
|
178
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/responsive_html_preview`,
|
|
179
|
-
input: envId.extend({ options: docusignLooseObjectSchema().optional() }),
|
|
180
|
-
output: docusignGenericObjectSchema,
|
|
181
|
-
body: (input) => input.options ?? {}
|
|
182
|
-
});
|
|
183
|
-
const addTemplatesToDocumentInEnvelope = defineRestOperation({
|
|
184
|
-
id: "docusign.add-templates-to-document-in-envelope",
|
|
185
|
-
slug: "DOCUSIGN_ADD_TEMPLATES_TO_DOCUMENT_IN_ENVELOPE",
|
|
186
|
-
name: "Add Templates To Document In Envelope",
|
|
187
|
-
description: "Apply existing DocuSign templates to a document already on an envelope.",
|
|
188
|
-
needsApproval: true,
|
|
189
|
-
method: "POST",
|
|
190
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/templates`,
|
|
191
|
-
input: envDocIds.extend({ documentTemplates: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
192
|
-
output: docusignGenericObjectSchema,
|
|
193
|
-
body: (input) => ({ documentTemplates: input.documentTemplates })
|
|
194
|
-
});
|
|
195
|
-
const deleteTemplateFromEnvelopeDocument = defineRestOperation({
|
|
196
|
-
id: "docusign.delete-template-from-envelope-document",
|
|
197
|
-
slug: "DOCUSIGN_DELETE_TEMPLATE_FROM_ENVELOPE_DOCUMENT",
|
|
198
|
-
name: "Delete Template From Envelope Document",
|
|
199
|
-
description: "Remove a template binding from an envelope document.",
|
|
200
|
-
needsApproval: true,
|
|
201
|
-
method: "DELETE",
|
|
202
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/templates/${ctx.encode(String(ctx.input.templateId))}`,
|
|
203
|
-
input: envDocIds.extend({ templateId: z.string().min(1) }),
|
|
204
|
-
output: docusignSuccessSchema,
|
|
205
|
-
transformResponse: () => ({ success: true })
|
|
206
|
-
});
|
|
207
|
-
const getTemplatesForEnvelopeDocument = defineRestOperation({
|
|
208
|
-
id: "docusign.get-templates-for-envelope-document",
|
|
209
|
-
slug: "DOCUSIGN_GET_TEMPLATES_FOR_ENVELOPE_DOCUMENT",
|
|
210
|
-
name: "Get Templates For Envelope Document",
|
|
211
|
-
description: "List template bindings on an envelope document.",
|
|
212
|
-
method: "GET",
|
|
213
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/documents/${ctx.encode(String(ctx.input.documentId))}/templates`,
|
|
214
|
-
input: envDocIds,
|
|
215
|
-
output: docusignGenericObjectSchema
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
//#endregion
|
|
219
|
-
export { addTemplatesToDocumentInEnvelope, createCustomDocumentFieldsInEnvelope, createDocumentResponsiveHtmlPreview, createPreviewOfResponsiveHtml, createPreviewOfResponsiveHtmlInEnvelope, deleteCustomDocumentFields, deletePageFromDocumentInEnvelope, deleteTemplateFromEnvelopeDocument, getEnvelopeDocumentFields, getPageImageFromEnvelope, getTemplatesForEnvelopeDocument, retrieveEnvelopeDocumentFields, retrieveEnvelopeDocuments, returnsDocumentPageImagesBasedOnInput, rotatePageImageForEnvelope, updateCustomFieldsInEnvelopeDocument };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/envelope-email.d.ts
|
|
5
|
-
declare const addEmailOverridesToEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
envelopeId: z.ZodString;
|
|
7
|
-
emailSettings: 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<"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 retrieveEnvelopeEmailOverrides: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
18
|
-
envelopeId: z.ZodString;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
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 updateEnvelopeEmailSettings: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
27
|
-
envelopeId: z.ZodString;
|
|
28
|
-
emailSettings: z.ZodObject<{
|
|
29
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
30
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
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
|
-
declare const deleteEnvelopeEmailSettings: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
39
|
-
envelopeId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
success: z.ZodBoolean;
|
|
42
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
43
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
44
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
45
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
46
|
-
}, z.core.$strip>>], undefined>;
|
|
47
|
-
//#endregion
|
|
48
|
-
export { addEmailOverridesToEnvelope, deleteEnvelopeEmailSettings, retrieveEnvelopeEmailOverrides, updateEnvelopeEmailSettings };
|
package/dist/envelope-email.mjs
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { t as encodeDocusignPathSegment } from "./shared-DTUCJayR.mjs";
|
|
2
|
-
import { docusignEnvelopeIdSchema, docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
|
|
3
|
-
import { r as defineRestOperation } from "./operation-helpers-D25WHTo1.mjs";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region src/envelope-email.ts
|
|
7
|
-
/**
|
|
8
|
-
* Envelope email overrides. Covers PLAN.md § 6.9 (email half).
|
|
9
|
-
*/
|
|
10
|
-
const envId = z.object({ envelopeId: docusignEnvelopeIdSchema });
|
|
11
|
-
const emailSettingsPath = (envelopeId) => `/envelopes/${encodeDocusignPathSegment(String(envelopeId))}/email_settings`;
|
|
12
|
-
const addEmailOverridesToEnvelope = defineRestOperation({
|
|
13
|
-
id: "docusign.add-email-overrides-to-envelope",
|
|
14
|
-
slug: "DOCUSIGN_ADD_EMAIL_OVERRIDES_TO_ENVELOPE",
|
|
15
|
-
name: "Add Email Overrides To Envelope",
|
|
16
|
-
description: "Attach per-envelope email setting overrides.",
|
|
17
|
-
needsApproval: true,
|
|
18
|
-
method: "POST",
|
|
19
|
-
path: (ctx) => emailSettingsPath(ctx.input.envelopeId),
|
|
20
|
-
input: envId.extend({ emailSettings: docusignLooseObjectSchema() }),
|
|
21
|
-
output: docusignGenericObjectSchema,
|
|
22
|
-
body: (input) => input.emailSettings
|
|
23
|
-
});
|
|
24
|
-
const retrieveEnvelopeEmailOverrides = defineRestOperation({
|
|
25
|
-
id: "docusign.retrieve-envelope-email-overrides",
|
|
26
|
-
slug: "DOCUSIGN_RETRIEVE_ENVELOPE_EMAIL_OVERRIDES",
|
|
27
|
-
name: "Retrieve Envelope Email Overrides",
|
|
28
|
-
description: "Retrieve the email-setting overrides on an envelope.",
|
|
29
|
-
method: "GET",
|
|
30
|
-
path: (ctx) => emailSettingsPath(ctx.input.envelopeId),
|
|
31
|
-
input: envId,
|
|
32
|
-
output: docusignGenericObjectSchema
|
|
33
|
-
});
|
|
34
|
-
const updateEnvelopeEmailSettings = defineRestOperation({
|
|
35
|
-
id: "docusign.update-envelope-email-settings",
|
|
36
|
-
slug: "DOCUSIGN_UPDATE_ENVELOPE_EMAIL_SETTINGS",
|
|
37
|
-
name: "Update Envelope Email Settings",
|
|
38
|
-
description: "Update the email settings on an envelope.",
|
|
39
|
-
needsApproval: true,
|
|
40
|
-
method: "PUT",
|
|
41
|
-
path: (ctx) => emailSettingsPath(ctx.input.envelopeId),
|
|
42
|
-
input: envId.extend({ emailSettings: docusignLooseObjectSchema() }),
|
|
43
|
-
output: docusignGenericObjectSchema,
|
|
44
|
-
body: (input) => input.emailSettings
|
|
45
|
-
});
|
|
46
|
-
const deleteEnvelopeEmailSettings = defineRestOperation({
|
|
47
|
-
id: "docusign.delete-envelope-email-settings",
|
|
48
|
-
slug: "DOCUSIGN_DELETE_ENVELOPE_EMAIL_SETTINGS",
|
|
49
|
-
name: "Delete Envelope Email Settings",
|
|
50
|
-
description: "Remove the per-envelope email setting overrides.",
|
|
51
|
-
needsApproval: true,
|
|
52
|
-
method: "DELETE",
|
|
53
|
-
path: (ctx) => emailSettingsPath(ctx.input.envelopeId),
|
|
54
|
-
input: envId,
|
|
55
|
-
output: docusignSuccessSchema,
|
|
56
|
-
transformResponse: () => ({ success: true })
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
//#endregion
|
|
60
|
-
export { addEmailOverridesToEnvelope, deleteEnvelopeEmailSettings, retrieveEnvelopeEmailOverrides, updateEnvelopeEmailSettings };
|
package/dist/envelope-lock.d.mts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/envelope-lock.d.ts
|
|
5
|
-
declare const lockAnEnvelopeForEditing: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
envelopeId: z.ZodString;
|
|
7
|
-
lock: 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
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
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 getEnvelopeLockInformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
18
|
-
envelopeId: z.ZodString;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
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 updateLockForEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
27
|
-
envelopeId: z.ZodString;
|
|
28
|
-
lock: z.ZodObject<{
|
|
29
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
30
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
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
|
-
declare const deleteEnvelopeLock: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
39
|
-
envelopeId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
success: z.ZodBoolean;
|
|
42
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
43
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
44
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
45
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
46
|
-
}, z.core.$strip>>], undefined>;
|
|
47
|
-
//#endregion
|
|
48
|
-
export { deleteEnvelopeLock, getEnvelopeLockInformation, lockAnEnvelopeForEditing, updateLockForEnvelope };
|
package/dist/envelope-lock.mjs
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { t as encodeDocusignPathSegment } from "./shared-DTUCJayR.mjs";
|
|
2
|
-
import { docusignEnvelopeIdSchema, docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
|
|
3
|
-
import { r as defineRestOperation } from "./operation-helpers-D25WHTo1.mjs";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region src/envelope-lock.ts
|
|
7
|
-
/**
|
|
8
|
-
* Envelope lock lifecycle. Covers PLAN.md § 6.10.
|
|
9
|
-
*/
|
|
10
|
-
const envId = z.object({ envelopeId: docusignEnvelopeIdSchema });
|
|
11
|
-
const lockPath = (envelopeId) => `/envelopes/${encodeDocusignPathSegment(String(envelopeId))}/lock`;
|
|
12
|
-
const lockAnEnvelopeForEditing = defineRestOperation({
|
|
13
|
-
id: "docusign.lock-an-envelope-for-editing",
|
|
14
|
-
slug: "DOCUSIGN_LOCK_AN_ENVELOPE_FOR_EDITING",
|
|
15
|
-
name: "Lock An Envelope For Editing",
|
|
16
|
-
description: "Acquire an editing lock on an envelope.",
|
|
17
|
-
needsApproval: true,
|
|
18
|
-
method: "POST",
|
|
19
|
-
path: (ctx) => lockPath(ctx.input.envelopeId),
|
|
20
|
-
input: envId.extend({ lock: docusignLooseObjectSchema().optional() }),
|
|
21
|
-
output: docusignGenericObjectSchema,
|
|
22
|
-
body: (input) => input.lock ?? {}
|
|
23
|
-
});
|
|
24
|
-
const getEnvelopeLockInformation = defineRestOperation({
|
|
25
|
-
id: "docusign.get-envelope-lock-information",
|
|
26
|
-
slug: "DOCUSIGN_GET_ENVELOPE_LOCK_INFORMATION",
|
|
27
|
-
name: "Get Envelope Lock Information",
|
|
28
|
-
description: "Return lock metadata for an envelope.",
|
|
29
|
-
method: "GET",
|
|
30
|
-
path: (ctx) => lockPath(ctx.input.envelopeId),
|
|
31
|
-
input: envId,
|
|
32
|
-
output: docusignGenericObjectSchema
|
|
33
|
-
});
|
|
34
|
-
const updateLockForEnvelope = defineRestOperation({
|
|
35
|
-
id: "docusign.update-lock-for-envelope",
|
|
36
|
-
slug: "DOCUSIGN_UPDATE_LOCK_FOR_ENVELOPE",
|
|
37
|
-
name: "Update Lock For Envelope",
|
|
38
|
-
description: "Update the lock on an envelope (e.g. extend or refresh).",
|
|
39
|
-
needsApproval: true,
|
|
40
|
-
method: "PUT",
|
|
41
|
-
path: (ctx) => lockPath(ctx.input.envelopeId),
|
|
42
|
-
input: envId.extend({ lock: docusignLooseObjectSchema() }),
|
|
43
|
-
output: docusignGenericObjectSchema,
|
|
44
|
-
body: (input) => input.lock
|
|
45
|
-
});
|
|
46
|
-
const deleteEnvelopeLock = defineRestOperation({
|
|
47
|
-
id: "docusign.delete-envelope-lock",
|
|
48
|
-
slug: "DOCUSIGN_DELETE_ENVELOPE_LOCK",
|
|
49
|
-
name: "Delete Envelope Lock",
|
|
50
|
-
description: "Release the lock on an envelope.",
|
|
51
|
-
needsApproval: true,
|
|
52
|
-
method: "DELETE",
|
|
53
|
-
path: (ctx) => lockPath(ctx.input.envelopeId),
|
|
54
|
-
input: envId,
|
|
55
|
-
output: docusignSuccessSchema,
|
|
56
|
-
transformResponse: () => ({ success: true })
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
//#endregion
|
|
60
|
-
export { deleteEnvelopeLock, getEnvelopeLockInformation, lockAnEnvelopeForEditing, updateLockForEnvelope };
|
package/dist/envelope-logs.d.mts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/envelope-logs.d.ts
|
|
5
|
-
declare const getDefaultConsumerDisclosure: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
langCode: z.ZodOptional<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 retrieveDefaultDisclosureForEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
15
|
-
envelopeId: z.ZodString;
|
|
16
|
-
langCode: z.ZodOptional<z.ZodString>;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
19
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
20
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
21
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
22
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
23
|
-
}, z.core.$strip>>], undefined>;
|
|
24
|
-
declare const getElectronicRecordAndSignatureDisclosure: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
25
|
-
langCode: z.ZodOptional<z.ZodString>;
|
|
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
|
-
declare const updateElectronicRecordDisclosure: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
34
|
-
langCode: z.ZodOptional<z.ZodString>;
|
|
35
|
-
disclosure: z.ZodObject<{
|
|
36
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
37
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
40
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", 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>;
|
|
45
|
-
declare const getApiRequestLogSettings: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
46
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
47
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
48
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
49
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
50
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
51
|
-
}, z.core.$strip>>], undefined>;
|
|
52
|
-
declare const toggleApiRequestLogging: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
53
|
-
apiRequestLogging: z.ZodBoolean;
|
|
54
|
-
apiRequestLogMaxEntries: z.ZodOptional<z.ZodNumber>;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
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 retrieveApiRequestLogFiles: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
64
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
65
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
66
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
67
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
68
|
-
}, z.core.$strip>>], undefined>;
|
|
69
|
-
declare const getRequestLoggingLogFile: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
70
|
-
requestLogId: z.ZodString;
|
|
71
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
73
|
-
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
74
|
-
status: z.ZodNumber;
|
|
75
|
-
body: z.ZodString;
|
|
76
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
77
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
78
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
79
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
80
|
-
}, z.core.$strip>>], undefined>;
|
|
81
|
-
declare const deleteRequestLogFiles: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
82
|
-
success: z.ZodBoolean;
|
|
83
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
84
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
85
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
86
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
87
|
-
}, z.core.$strip>>], undefined>;
|
|
88
|
-
//#endregion
|
|
89
|
-
export { deleteRequestLogFiles, getApiRequestLogSettings, getDefaultConsumerDisclosure, getElectronicRecordAndSignatureDisclosure, getRequestLoggingLogFile, retrieveApiRequestLogFiles, retrieveDefaultDisclosureForEnvelope, toggleApiRequestLogging, updateElectronicRecordDisclosure };
|
package/dist/envelope-logs.mjs
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { docusignEnvelopeIdSchema, docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } 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-logs.ts
|
|
6
|
-
/**
|
|
7
|
-
* Consumer disclosures + API request logs for envelopes. Covers PLAN.md § 6.11 and § 6.41.
|
|
8
|
-
*/
|
|
9
|
-
const envId = z.object({ envelopeId: docusignEnvelopeIdSchema });
|
|
10
|
-
const binaryResponseSchema = docusignLooseObjectSchema({
|
|
11
|
-
contentType: z.string().optional(),
|
|
12
|
-
contentDisposition: z.string().optional(),
|
|
13
|
-
status: z.number(),
|
|
14
|
-
body: z.string()
|
|
15
|
-
});
|
|
16
|
-
const getDefaultConsumerDisclosure = defineRestOperation({
|
|
17
|
-
id: "docusign.get-default-consumer-disclosure",
|
|
18
|
-
slug: "DOCUSIGN_GET_DEFAULT_CONSUMER_DISCLOSURE",
|
|
19
|
-
name: "Get Default Consumer Disclosure",
|
|
20
|
-
description: "Return the default electronic record and signature disclosure.",
|
|
21
|
-
method: "GET",
|
|
22
|
-
path: "/consumer_disclosure",
|
|
23
|
-
input: z.object({ langCode: z.string().optional() }),
|
|
24
|
-
output: docusignGenericObjectSchema,
|
|
25
|
-
query: (input) => ({ langCode: input.langCode })
|
|
26
|
-
});
|
|
27
|
-
const retrieveDefaultDisclosureForEnvelope = defineRestOperation({
|
|
28
|
-
id: "docusign.retrieve-default-disclosure-for-envelope",
|
|
29
|
-
slug: "DOCUSIGN_RETRIEVE_DEFAULT_DISCLOSURE_FOR_ENVELOPE",
|
|
30
|
-
name: "Retrieve Default Disclosure For Envelope",
|
|
31
|
-
description: "Return the default consumer disclosure as applied to an envelope.",
|
|
32
|
-
method: "GET",
|
|
33
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/consumer_disclosure`,
|
|
34
|
-
input: envId.extend({ langCode: z.string().optional() }),
|
|
35
|
-
output: docusignGenericObjectSchema,
|
|
36
|
-
query: (input) => ({ langCode: input.langCode })
|
|
37
|
-
});
|
|
38
|
-
const getElectronicRecordAndSignatureDisclosure = defineRestOperation({
|
|
39
|
-
id: "docusign.get-electronic-record-and-signature-disclosure",
|
|
40
|
-
slug: "DOCUSIGN_GET_ELECTRONIC_RECORD_AND_SIGNATURE_DISCLOSURE",
|
|
41
|
-
name: "Get Electronic Record Disclosure",
|
|
42
|
-
description: "Return the electronic record and signature disclosure by lang code.",
|
|
43
|
-
method: "GET",
|
|
44
|
-
path: (ctx) => `/consumer_disclosure/${ctx.encode(String(ctx.input.langCode ?? "en"))}`,
|
|
45
|
-
input: z.object({ langCode: z.string().optional() }),
|
|
46
|
-
output: docusignGenericObjectSchema
|
|
47
|
-
});
|
|
48
|
-
const updateElectronicRecordDisclosure = defineRestOperation({
|
|
49
|
-
id: "docusign.update-electronic-record-disclosure",
|
|
50
|
-
slug: "DOCUSIGN_UPDATE_ELECTRONIC_RECORD_DISCLOSURE",
|
|
51
|
-
name: "Update Electronic Record Disclosure",
|
|
52
|
-
description: "Update the electronic record and signature disclosure.",
|
|
53
|
-
needsApproval: true,
|
|
54
|
-
method: "PUT",
|
|
55
|
-
path: (ctx) => `/consumer_disclosure/${ctx.encode(String(ctx.input.langCode ?? "en"))}`,
|
|
56
|
-
input: z.object({
|
|
57
|
-
langCode: z.string().optional(),
|
|
58
|
-
disclosure: docusignLooseObjectSchema()
|
|
59
|
-
}),
|
|
60
|
-
output: docusignGenericObjectSchema,
|
|
61
|
-
body: (input) => input.disclosure
|
|
62
|
-
});
|
|
63
|
-
const getApiRequestLogSettings = defineRestOperation({
|
|
64
|
-
id: "docusign.get-api-request-log-settings",
|
|
65
|
-
slug: "DOCUSIGN_GET_API_REQUEST_LOG_SETTINGS",
|
|
66
|
-
name: "Get API Request Log Settings",
|
|
67
|
-
description: "Return the current API request-log settings on the account.",
|
|
68
|
-
method: "GET",
|
|
69
|
-
path: "/diagnostics/settings",
|
|
70
|
-
input: z.object({}),
|
|
71
|
-
output: docusignGenericObjectSchema
|
|
72
|
-
});
|
|
73
|
-
const toggleApiRequestLogging = defineRestOperation({
|
|
74
|
-
id: "docusign.toggle-api-request-logging",
|
|
75
|
-
slug: "DOCUSIGN_TOGGLE_API_REQUEST_LOGGING",
|
|
76
|
-
name: "Toggle API Request Logging",
|
|
77
|
-
description: "Enable or disable per-account API request logging.",
|
|
78
|
-
needsApproval: true,
|
|
79
|
-
method: "PUT",
|
|
80
|
-
path: "/diagnostics/settings",
|
|
81
|
-
input: z.object({
|
|
82
|
-
apiRequestLogging: z.boolean(),
|
|
83
|
-
apiRequestLogMaxEntries: z.number().int().positive().optional()
|
|
84
|
-
}),
|
|
85
|
-
output: docusignGenericObjectSchema,
|
|
86
|
-
body: (input) => ({
|
|
87
|
-
apiRequestLogging: input.apiRequestLogging ? "true" : "false",
|
|
88
|
-
apiRequestLogMaxEntries: input.apiRequestLogMaxEntries
|
|
89
|
-
})
|
|
90
|
-
});
|
|
91
|
-
const retrieveApiRequestLogFiles = defineRestOperation({
|
|
92
|
-
id: "docusign.retrieve-api-request-log-files",
|
|
93
|
-
slug: "DOCUSIGN_RETRIEVE_APIREQUEST_LOG_FILES",
|
|
94
|
-
name: "Retrieve API Request Log Files",
|
|
95
|
-
description: "Retrieve the list of captured request log files.",
|
|
96
|
-
method: "GET",
|
|
97
|
-
path: "/diagnostics/request_logs",
|
|
98
|
-
input: z.object({}),
|
|
99
|
-
output: docusignGenericObjectSchema
|
|
100
|
-
});
|
|
101
|
-
const getRequestLoggingLogFile = defineBinaryOperation({
|
|
102
|
-
id: "docusign.get-request-logging-log-file",
|
|
103
|
-
slug: "DOCUSIGN_GET_REQUEST_LOGGING_LOG_FILE",
|
|
104
|
-
name: "Get Request Logging Log File",
|
|
105
|
-
description: "Download a single request-log file.",
|
|
106
|
-
method: "GET",
|
|
107
|
-
path: (ctx) => `/diagnostics/request_logs/${ctx.encode(String(ctx.input.requestLogId))}`,
|
|
108
|
-
input: z.object({ requestLogId: z.string().min(1) }),
|
|
109
|
-
output: binaryResponseSchema,
|
|
110
|
-
accept: "application/json"
|
|
111
|
-
});
|
|
112
|
-
const deleteRequestLogFiles = defineRestOperation({
|
|
113
|
-
id: "docusign.delete-request-log-files",
|
|
114
|
-
slug: "DOCUSIGN_DELETE_REQUEST_LOG_FILES",
|
|
115
|
-
name: "Delete Request Log Files",
|
|
116
|
-
description: "Delete all captured API request log files.",
|
|
117
|
-
needsApproval: true,
|
|
118
|
-
method: "DELETE",
|
|
119
|
-
path: "/diagnostics/request_logs",
|
|
120
|
-
input: z.object({}),
|
|
121
|
-
output: docusignSuccessSchema,
|
|
122
|
-
transformResponse: () => ({ success: true })
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
//#endregion
|
|
126
|
-
export { deleteRequestLogFiles, getApiRequestLogSettings, getDefaultConsumerDisclosure, getElectronicRecordAndSignatureDisclosure, getRequestLoggingLogFile, retrieveApiRequestLogFiles, retrieveDefaultDisclosureForEnvelope, toggleApiRequestLogging, updateElectronicRecordDisclosure };
|