@keystrokehq/docusign 0.0.11 → 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 +9 -225
- package/dist/_official/index.d.mts +0 -89
- 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 -65
- package/dist/account-custom-fields.mjs +0 -63
- package/dist/account-stamps.d.mts +0 -164
- package/dist/account-stamps.mjs +0 -144
- package/dist/account-tabs.d.mts +0 -90
- package/dist/account-tabs.mjs +0 -80
- package/dist/account.d.mts +0 -233
- package/dist/account.mjs +0 -207
- package/dist/admin.d.mts +0 -18
- package/dist/admin.mjs +0 -20
- package/dist/auth.d.mts +0 -37
- package/dist/auth.mjs +0 -53
- package/dist/bcc-archive.d.mts +0 -64
- package/dist/bcc-archive.mjs +0 -70
- package/dist/billing.d.mts +0 -217
- package/dist/billing.mjs +0 -208
- package/dist/brands.d.mts +0 -192
- package/dist/brands.mjs +0 -157
- package/dist/bulk-send.d.mts +0 -137
- package/dist/bulk-send.mjs +0 -115
- package/dist/chunked-uploads.d.mts +0 -78
- package/dist/chunked-uploads.mjs +0 -74
- package/dist/click.d.mts +0 -18
- 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 -18
- package/dist/clm.mjs +0 -20
- package/dist/cloud-storage.d.mts +0 -122
- package/dist/cloud-storage.mjs +0 -115
- package/dist/connect.d.mts +0 -252
- 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 -80
- package/dist/contacts.mjs +0 -79
- package/dist/enote.d.mts +0 -44
- package/dist/enote.mjs +0 -45
- package/dist/envelope-attachments.d.mts +0 -86
- package/dist/envelope-attachments.mjs +0 -76
- package/dist/envelope-custom-fields.d.mts +0 -166
- package/dist/envelope-custom-fields.mjs +0 -92
- package/dist/envelope-documents.d.mts +0 -271
- package/dist/envelope-documents.mjs +0 -219
- package/dist/envelope-email.d.mts +0 -65
- package/dist/envelope-email.mjs +0 -60
- package/dist/envelope-lock.d.mts +0 -65
- package/dist/envelope-lock.mjs +0 -60
- package/dist/envelope-logs.d.mts +0 -126
- package/dist/envelope-logs.mjs +0 -126
- package/dist/envelope-notifications.d.mts +0 -47
- package/dist/envelope-notifications.mjs +0 -44
- package/dist/envelope-recipients.d.mts +0 -171
- package/dist/envelope-recipients.mjs +0 -136
- package/dist/envelope-tabs.d.mts +0 -52
- package/dist/envelope-tabs.mjs +0 -49
- package/dist/envelope-views.d.mts +0 -99
- package/dist/envelope-views.mjs +0 -88
- package/dist/envelope-workflow.d.mts +0 -208
- package/dist/envelope-workflow.mjs +0 -176
- package/dist/envelopes.d.mts +0 -430
- 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-DFejlPDe.mjs +0 -7
- package/dist/groups.d.mts +0 -191
- package/dist/groups.mjs +0 -146
- package/dist/integration-BcEp_dFX.mjs +0 -365
- package/dist/integration-CdIRNjCz.d.mts +0 -72
- package/dist/messaging.d.mts +0 -1
- package/dist/messaging.mjs +0 -1
- package/dist/monitor.d.mts +0 -18
- package/dist/monitor.mjs +0 -20
- package/dist/notary.d.mts +0 -129
- package/dist/notary.mjs +0 -122
- package/dist/operation-helpers-Bqp7KoLi.mjs +0 -102
- package/dist/permission-profiles.d.mts +0 -78
- package/dist/permission-profiles.mjs +0 -70
- package/dist/power-forms.d.mts +0 -51
- package/dist/power-forms.mjs +0 -62
- package/dist/rooms.d.mts +0 -18
- package/dist/rooms.mjs +0 -28
- package/dist/shared-DTUCJayR.mjs +0 -27
- package/dist/signing-groups.d.mts +0 -139
- package/dist/signing-groups.mjs +0 -117
- package/dist/template-custom-fields.d.mts +0 -199
- package/dist/template-custom-fields.mjs +0 -107
- package/dist/template-documents.d.mts +0 -132
- package/dist/template-documents.mjs +0 -109
- package/dist/template-lock.d.mts +0 -65
- package/dist/template-lock.mjs +0 -60
- package/dist/template-sharing.d.mts +0 -129
- package/dist/template-sharing.mjs +0 -108
- package/dist/template-workflow.d.mts +0 -184
- package/dist/template-workflow.mjs +0 -152
- package/dist/templates.d.mts +0 -158
- package/dist/templates.mjs +0 -110
- package/dist/user-authorizations.d.mts +0 -129
- package/dist/user-authorizations.mjs +0 -133
- package/dist/user-custom-settings.d.mts +0 -81
- package/dist/user-custom-settings.mjs +0 -69
- package/dist/user-profile.d.mts +0 -109
- package/dist/user-profile.mjs +0 -106
- package/dist/user-signatures.d.mts +0 -208
- package/dist/user-signatures.mjs +0 -180
- package/dist/users.d.mts +0 -128
- 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 -173
- package/dist/workspaces.mjs +0 -143
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
-
|
|
5
|
-
//#region src/template-documents.d.ts
|
|
6
|
-
declare const getTemplateDocumentHtmlDefinition: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
-
templateId: z.ZodString;
|
|
8
|
-
documentId: z.ZodString;
|
|
9
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
10
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
11
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
12
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
13
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
14
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
15
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
16
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
17
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
18
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
19
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
20
|
-
declare const getOriginalHtmlDefinitionForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
21
|
-
templateId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
24
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
|
|
33
|
-
declare const createTemplateResponsiveHtmlPreview: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
34
|
-
templateId: z.ZodString;
|
|
35
|
-
options: z.ZodOptional<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<"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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
45
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
46
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
47
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
48
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
49
|
-
declare const retrievePdfFromSpecifiedTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
50
|
-
templateId: z.ZodString;
|
|
51
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
53
|
-
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
54
|
-
status: z.ZodNumber;
|
|
55
|
-
body: z.ZodString;
|
|
56
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
61
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
62
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
63
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
64
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
65
|
-
declare const retrieveTemplateDocumentPageImages: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
66
|
-
templateId: z.ZodString;
|
|
67
|
-
documentId: z.ZodString;
|
|
68
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
70
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
71
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
72
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
73
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
74
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
75
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
76
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
77
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
78
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
79
|
-
declare const retrieveTemplatePageImage: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
80
|
-
templateId: z.ZodString;
|
|
81
|
-
documentId: z.ZodString;
|
|
82
|
-
pageNumber: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
83
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
85
|
-
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
86
|
-
status: z.ZodNumber;
|
|
87
|
-
body: z.ZodString;
|
|
88
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
89
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
90
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
91
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
92
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
93
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
94
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
95
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
96
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
97
|
-
declare const rotateTemplatePageImage: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
98
|
-
templateId: z.ZodString;
|
|
99
|
-
documentId: z.ZodString;
|
|
100
|
-
pageNumber: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
101
|
-
rotate: z.ZodEnum<{
|
|
102
|
-
left: "left";
|
|
103
|
-
right: "right";
|
|
104
|
-
}>;
|
|
105
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
-
success: z.ZodBoolean;
|
|
107
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
108
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
109
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
110
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
111
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
112
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
113
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
114
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
115
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
116
|
-
declare const deletePageFromTemplateDocument: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
117
|
-
templateId: z.ZodString;
|
|
118
|
-
documentId: z.ZodString;
|
|
119
|
-
pageNumber: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
120
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
-
success: z.ZodBoolean;
|
|
122
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
123
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
124
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
125
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
126
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
127
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
128
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
129
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
130
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
131
|
-
//#endregion
|
|
132
|
-
export { createTemplateResponsiveHtmlPreview, deletePageFromTemplateDocument, getOriginalHtmlDefinitionForTemplate, getTemplateDocumentHtmlDefinition, retrievePdfFromSpecifiedTemplate, retrieveTemplateDocumentPageImages, retrieveTemplatePageImage, rotateTemplatePageImage };
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { docusignDocumentIdSchema, docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema, docusignTemplateIdSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-Bqp7KoLi.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/template-documents.ts
|
|
6
|
-
/**
|
|
7
|
-
* Template documents + page images + responsive HTML. Covers PLAN.md § 6.13.
|
|
8
|
-
*/
|
|
9
|
-
const tplId = z.object({ templateId: docusignTemplateIdSchema });
|
|
10
|
-
const tplDoc = tplId.extend({ documentId: docusignDocumentIdSchema });
|
|
11
|
-
const tplDocPage = tplDoc.extend({ pageNumber: z.union([z.string(), z.number().int().positive()]) });
|
|
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 getTemplateDocumentHtmlDefinition = defineRestOperation({
|
|
19
|
-
id: "docusign.get-template-document-html-definition",
|
|
20
|
-
slug: "DOCUSIGN_GET_TEMPLATE_DOCUMENT_HTML_DEFINITION",
|
|
21
|
-
name: "Get Template Document HTML Definition",
|
|
22
|
-
description: "Return the responsive HTML definition for a template document.",
|
|
23
|
-
method: "GET",
|
|
24
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/html_definitions`,
|
|
25
|
-
input: tplDoc,
|
|
26
|
-
output: docusignGenericObjectSchema
|
|
27
|
-
});
|
|
28
|
-
const getOriginalHtmlDefinitionForTemplate = defineRestOperation({
|
|
29
|
-
id: "docusign.get-original-html-definition-for-template",
|
|
30
|
-
slug: "DOCUSIGN_GET_ORIGINAL_HTML_DEFINITION_FOR_TEMPLATE",
|
|
31
|
-
name: "Get Original Template HTML Definition",
|
|
32
|
-
description: "Return the original responsive HTML definition for a template.",
|
|
33
|
-
method: "GET",
|
|
34
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/html_definitions`,
|
|
35
|
-
input: tplId,
|
|
36
|
-
output: docusignGenericObjectSchema
|
|
37
|
-
});
|
|
38
|
-
const createTemplateResponsiveHtmlPreview = defineRestOperation({
|
|
39
|
-
id: "docusign.create-template-responsive-html-preview",
|
|
40
|
-
slug: "DOCUSIGN_CREATE_TEMPLATE_RESPONSIVE_HTML_PREVIEW",
|
|
41
|
-
name: "Create Template Responsive HTML Preview",
|
|
42
|
-
description: "Create a responsive HTML preview for a template.",
|
|
43
|
-
needsApproval: true,
|
|
44
|
-
method: "POST",
|
|
45
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/responsive_html_preview`,
|
|
46
|
-
input: tplId.extend({ options: docusignLooseObjectSchema().optional() }),
|
|
47
|
-
output: docusignGenericObjectSchema,
|
|
48
|
-
body: (input) => input.options ?? {}
|
|
49
|
-
});
|
|
50
|
-
const retrievePdfFromSpecifiedTemplate = defineBinaryOperation({
|
|
51
|
-
id: "docusign.retrieve-pdf-from-specified-template",
|
|
52
|
-
slug: "DOCUSIGN_RETRIEVE_PDF_FROM_SPECIFIED_TEMPLATE",
|
|
53
|
-
name: "Retrieve PDF From Specified Template",
|
|
54
|
-
description: "Download the combined PDF of all documents in a template.",
|
|
55
|
-
method: "GET",
|
|
56
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/combined`,
|
|
57
|
-
input: tplId,
|
|
58
|
-
accept: "application/pdf",
|
|
59
|
-
output: binaryResponseSchema
|
|
60
|
-
});
|
|
61
|
-
const retrieveTemplateDocumentPageImages = defineRestOperation({
|
|
62
|
-
id: "docusign.retrieve-template-document-page-images",
|
|
63
|
-
slug: "DOCUSIGN_RETRIEVE_TEMPLATE_DOCUMENT_PAGE_IMAGES",
|
|
64
|
-
name: "Retrieve Template Document Page Images",
|
|
65
|
-
description: "List the page images for a template document.",
|
|
66
|
-
method: "GET",
|
|
67
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages`,
|
|
68
|
-
input: tplDoc,
|
|
69
|
-
output: docusignGenericObjectSchema
|
|
70
|
-
});
|
|
71
|
-
const retrieveTemplatePageImage = defineBinaryOperation({
|
|
72
|
-
id: "docusign.retrieve-template-page-image",
|
|
73
|
-
slug: "DOCUSIGN_RETRIEVE_TEMPLATE_PAGE_IMAGE",
|
|
74
|
-
name: "Retrieve Template Page Image",
|
|
75
|
-
description: "Download a specific page image from a template document.",
|
|
76
|
-
method: "GET",
|
|
77
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages/${ctx.encode(String(ctx.input.pageNumber))}/page_image`,
|
|
78
|
-
input: tplDocPage,
|
|
79
|
-
accept: "image/png",
|
|
80
|
-
output: binaryResponseSchema
|
|
81
|
-
});
|
|
82
|
-
const rotateTemplatePageImage = defineRestOperation({
|
|
83
|
-
id: "docusign.rotate-template-page-image",
|
|
84
|
-
slug: "DOCUSIGN_ROTATE_TEMPLATE_PAGE_IMAGE",
|
|
85
|
-
name: "Rotate Template Page Image",
|
|
86
|
-
description: "Rotate a page image on a template document.",
|
|
87
|
-
needsApproval: true,
|
|
88
|
-
method: "PUT",
|
|
89
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages/${ctx.encode(String(ctx.input.pageNumber))}/page_image`,
|
|
90
|
-
input: tplDocPage.extend({ rotate: z.enum(["left", "right"]) }),
|
|
91
|
-
output: docusignSuccessSchema,
|
|
92
|
-
body: (input) => ({ rotate: input.rotate }),
|
|
93
|
-
transformResponse: () => ({ success: true })
|
|
94
|
-
});
|
|
95
|
-
const deletePageFromTemplateDocument = defineRestOperation({
|
|
96
|
-
id: "docusign.delete-page-from-template-document",
|
|
97
|
-
slug: "DOCUSIGN_DELETE_PAGE_FROM_TEMPLATE_DOCUMENT",
|
|
98
|
-
name: "Delete Page From Template Document",
|
|
99
|
-
description: "Delete a page from a template document.",
|
|
100
|
-
needsApproval: true,
|
|
101
|
-
method: "DELETE",
|
|
102
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages/${ctx.encode(String(ctx.input.pageNumber))}`,
|
|
103
|
-
input: tplDocPage,
|
|
104
|
-
output: docusignSuccessSchema,
|
|
105
|
-
transformResponse: () => ({ success: true })
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
//#endregion
|
|
109
|
-
export { createTemplateResponsiveHtmlPreview, deletePageFromTemplateDocument, getOriginalHtmlDefinitionForTemplate, getTemplateDocumentHtmlDefinition, retrievePdfFromSpecifiedTemplate, retrieveTemplateDocumentPageImages, retrieveTemplatePageImage, rotateTemplatePageImage };
|
package/dist/template-lock.d.mts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
-
|
|
5
|
-
//#region src/template-lock.d.ts
|
|
6
|
-
declare const lockTemplateForEditing: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
-
templateId: z.ZodString;
|
|
8
|
-
lock: z.ZodOptional<z.ZodObject<{
|
|
9
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
10
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
11
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
13
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
14
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
15
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
16
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
17
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
18
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
19
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
20
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
21
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
22
|
-
declare const getTemplateLockInformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
23
|
-
templateId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
26
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
27
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
28
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
29
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
30
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
31
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
32
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
33
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
34
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
35
|
-
declare const updateTemplateLockInformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
36
|
-
templateId: z.ZodString;
|
|
37
|
-
lock: z.ZodObject<{
|
|
38
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
39
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
42
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
47
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
48
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
49
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
50
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
51
|
-
declare const deleteTemplateLock: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
52
|
-
templateId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
success: z.ZodBoolean;
|
|
55
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
56
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
57
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
58
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
59
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
60
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
61
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
62
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
63
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
64
|
-
//#endregion
|
|
65
|
-
export { deleteTemplateLock, getTemplateLockInformation, lockTemplateForEditing, updateTemplateLockInformation };
|
package/dist/template-lock.mjs
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { t as encodeDocusignPathSegment } from "./shared-DTUCJayR.mjs";
|
|
2
|
-
import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema, docusignTemplateIdSchema } from "./schemas/index.mjs";
|
|
3
|
-
import { r as defineRestOperation } from "./operation-helpers-Bqp7KoLi.mjs";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region src/template-lock.ts
|
|
7
|
-
/**
|
|
8
|
-
* Template lock lifecycle. Covers PLAN.md § 6.16 (lock half).
|
|
9
|
-
*/
|
|
10
|
-
const tplId = z.object({ templateId: docusignTemplateIdSchema });
|
|
11
|
-
const lockPath = (templateId) => `/templates/${encodeDocusignPathSegment(String(templateId))}/lock`;
|
|
12
|
-
const lockTemplateForEditing = defineRestOperation({
|
|
13
|
-
id: "docusign.lock-template-for-editing",
|
|
14
|
-
slug: "DOCUSIGN_LOCK_TEMPLATE_FOR_EDITING",
|
|
15
|
-
name: "Lock Template For Editing",
|
|
16
|
-
description: "Acquire an editing lock on a template.",
|
|
17
|
-
needsApproval: true,
|
|
18
|
-
method: "POST",
|
|
19
|
-
path: (ctx) => lockPath(ctx.input.templateId),
|
|
20
|
-
input: tplId.extend({ lock: docusignLooseObjectSchema().optional() }),
|
|
21
|
-
output: docusignGenericObjectSchema,
|
|
22
|
-
body: (input) => input.lock ?? {}
|
|
23
|
-
});
|
|
24
|
-
const getTemplateLockInformation = defineRestOperation({
|
|
25
|
-
id: "docusign.get-template-lock-information",
|
|
26
|
-
slug: "DOCUSIGN_GET_TEMPLATE_LOCK_INFORMATION",
|
|
27
|
-
name: "Get Template Lock Information",
|
|
28
|
-
description: "Return lock metadata for a template.",
|
|
29
|
-
method: "GET",
|
|
30
|
-
path: (ctx) => lockPath(ctx.input.templateId),
|
|
31
|
-
input: tplId,
|
|
32
|
-
output: docusignGenericObjectSchema
|
|
33
|
-
});
|
|
34
|
-
const updateTemplateLockInformation = defineRestOperation({
|
|
35
|
-
id: "docusign.update-template-lock-information",
|
|
36
|
-
slug: "DOCUSIGN_UPDATE_TEMPLATE_LOCK_INFORMATION",
|
|
37
|
-
name: "Update Template Lock Information",
|
|
38
|
-
description: "Update the lock on a template.",
|
|
39
|
-
needsApproval: true,
|
|
40
|
-
method: "PUT",
|
|
41
|
-
path: (ctx) => lockPath(ctx.input.templateId),
|
|
42
|
-
input: tplId.extend({ lock: docusignLooseObjectSchema() }),
|
|
43
|
-
output: docusignGenericObjectSchema,
|
|
44
|
-
body: (input) => input.lock
|
|
45
|
-
});
|
|
46
|
-
const deleteTemplateLock = defineRestOperation({
|
|
47
|
-
id: "docusign.delete-template-lock",
|
|
48
|
-
slug: "DOCUSIGN_DELETE_TEMPLATE_LOCK",
|
|
49
|
-
name: "Delete Template Lock",
|
|
50
|
-
description: "Release the lock on a template.",
|
|
51
|
-
needsApproval: true,
|
|
52
|
-
method: "DELETE",
|
|
53
|
-
path: (ctx) => lockPath(ctx.input.templateId),
|
|
54
|
-
input: tplId,
|
|
55
|
-
output: docusignSuccessSchema,
|
|
56
|
-
transformResponse: () => ({ success: true })
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
//#endregion
|
|
60
|
-
export { deleteTemplateLock, getTemplateLockInformation, lockTemplateForEditing, updateTemplateLockInformation };
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
-
|
|
5
|
-
//#region src/template-sharing.d.ts
|
|
6
|
-
declare const shareTemplateWithGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
-
templateId: z.ZodString;
|
|
8
|
-
groupId: z.ZodString;
|
|
9
|
-
templatePart: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
11
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
12
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
13
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
14
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
15
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
16
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
17
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
18
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
19
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
20
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
21
|
-
declare const removeGroupSharingPermissionsForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
22
|
-
templateId: z.ZodString;
|
|
23
|
-
groupId: z.ZodString;
|
|
24
|
-
templatePart: z.ZodOptional<z.ZodString>;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
success: z.ZodBoolean;
|
|
27
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
28
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
29
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
30
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
31
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
32
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
33
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
34
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
35
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
36
|
-
declare const getTemplateRecipientDocumentVisibility: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
37
|
-
templateId: z.ZodString;
|
|
38
|
-
recipientId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
41
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
42
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
43
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
44
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
45
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
|
|
50
|
-
declare const updateTemplateRecipientDocumentVisibility: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
51
|
-
templateId: z.ZodString;
|
|
52
|
-
recipientId: z.ZodString;
|
|
53
|
-
documentVisibility: z.ZodArray<z.ZodObject<{
|
|
54
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
55
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
56
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
58
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
59
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
60
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
61
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
62
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
63
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
64
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
65
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
66
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
67
|
-
declare const updateTemplateDocVisibility: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
68
|
-
templateId: z.ZodString;
|
|
69
|
-
documentVisibility: z.ZodArray<z.ZodObject<{
|
|
70
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
71
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
72
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
74
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
75
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
76
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
77
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
78
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
79
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
80
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
81
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
82
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
83
|
-
declare const getTemplateNotificationInformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
84
|
-
templateId: z.ZodString;
|
|
85
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
87
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
88
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
89
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
90
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
91
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
92
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
93
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
94
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
95
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
96
|
-
declare const updateTemplateNotificationSettings: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
97
|
-
templateId: z.ZodString;
|
|
98
|
-
notification: z.ZodObject<{
|
|
99
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
100
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
101
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
103
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
104
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
105
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
106
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
107
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
108
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
109
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
110
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
111
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
112
|
-
declare const createTemplateRecipientPreviewUrl: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
113
|
-
templateId: z.ZodString;
|
|
114
|
-
preview: z.ZodObject<{
|
|
115
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
116
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
117
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
118
|
-
url: z.ZodOptional<z.ZodString>;
|
|
119
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
120
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
121
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
122
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
123
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
124
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
125
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
126
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
127
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
128
|
-
//#endregion
|
|
129
|
-
export { createTemplateRecipientPreviewUrl, getTemplateNotificationInformation, getTemplateRecipientDocumentVisibility, removeGroupSharingPermissionsForTemplate, shareTemplateWithGroup, updateTemplateDocVisibility, updateTemplateNotificationSettings, updateTemplateRecipientDocumentVisibility };
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignRecipientIdSchema, docusignSuccessSchema, docusignTemplateIdSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation } from "./operation-helpers-Bqp7KoLi.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/template-sharing.ts
|
|
6
|
-
/**
|
|
7
|
-
* Template sharing + recipient visibility + notification + preview. Covers PLAN.md § 6.16 (rest).
|
|
8
|
-
*/
|
|
9
|
-
const tplId = z.object({ templateId: docusignTemplateIdSchema });
|
|
10
|
-
const tplGroup = tplId.extend({
|
|
11
|
-
groupId: z.string().min(1),
|
|
12
|
-
templatePart: z.string().min(1).optional()
|
|
13
|
-
});
|
|
14
|
-
const tplRecipient = tplId.extend({ recipientId: docusignRecipientIdSchema });
|
|
15
|
-
const shareTemplateWithGroup = defineRestOperation({
|
|
16
|
-
id: "docusign.share-template-with-group",
|
|
17
|
-
slug: "DOCUSIGN_SHARE_TEMPLATE_WITH_GROUP",
|
|
18
|
-
name: "Share Template With Group",
|
|
19
|
-
description: "Share a template with a group by granting permissions on a template part.",
|
|
20
|
-
needsApproval: true,
|
|
21
|
-
method: "PUT",
|
|
22
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/${ctx.encode(String(ctx.input.templatePart ?? "views"))}/${ctx.encode(String(ctx.input.groupId))}`,
|
|
23
|
-
input: tplGroup,
|
|
24
|
-
output: docusignGenericObjectSchema
|
|
25
|
-
});
|
|
26
|
-
const removeGroupSharingPermissionsForTemplate = defineRestOperation({
|
|
27
|
-
id: "docusign.remove-group-sharing-permissions-for-template",
|
|
28
|
-
slug: "DOCUSIGN_REMOVE_GROUP_SHARING_PERMISSIONS_FOR_TEMPLATE",
|
|
29
|
-
name: "Remove Group Sharing Permissions For Template",
|
|
30
|
-
description: "Revoke template-sharing permissions for a group.",
|
|
31
|
-
needsApproval: true,
|
|
32
|
-
method: "DELETE",
|
|
33
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/${ctx.encode(String(ctx.input.templatePart ?? "views"))}/${ctx.encode(String(ctx.input.groupId))}`,
|
|
34
|
-
input: tplGroup,
|
|
35
|
-
output: docusignSuccessSchema,
|
|
36
|
-
transformResponse: () => ({ success: true })
|
|
37
|
-
});
|
|
38
|
-
const getTemplateRecipientDocumentVisibility = defineRestOperation({
|
|
39
|
-
id: "docusign.get-template-recipient-document-visibility",
|
|
40
|
-
slug: "DOCUSIGN_GET_TEMPLATE_RECIPIENT_DOCUMENT_VISIBILITY",
|
|
41
|
-
name: "Get Template Recipient Document Visibility",
|
|
42
|
-
description: "Return per-document visibility for a template recipient.",
|
|
43
|
-
method: "GET",
|
|
44
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/recipients/${ctx.encode(String(ctx.input.recipientId))}/document_visibility`,
|
|
45
|
-
input: tplRecipient,
|
|
46
|
-
output: docusignGenericObjectSchema
|
|
47
|
-
});
|
|
48
|
-
const updateTemplateRecipientDocumentVisibility = defineRestOperation({
|
|
49
|
-
id: "docusign.update-template-recipient-document-visibility",
|
|
50
|
-
slug: "DOCUSIGN_UPDATE_TEMPLATE_RECIPIENT_DOCUMENT_VISIBILITY",
|
|
51
|
-
name: "Update Template Recipient Document Visibility",
|
|
52
|
-
description: "Update per-document visibility for a template recipient.",
|
|
53
|
-
needsApproval: true,
|
|
54
|
-
method: "PUT",
|
|
55
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/recipients/${ctx.encode(String(ctx.input.recipientId))}/document_visibility`,
|
|
56
|
-
input: tplRecipient.extend({ documentVisibility: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
57
|
-
output: docusignGenericObjectSchema,
|
|
58
|
-
body: (input) => ({ documentVisibility: input.documentVisibility })
|
|
59
|
-
});
|
|
60
|
-
const updateTemplateDocVisibility = defineRestOperation({
|
|
61
|
-
id: "docusign.update-template-doc-visibility",
|
|
62
|
-
slug: "DOCUSIGN_UPDATE_TEMPLATE_DOC_VISIBILITY",
|
|
63
|
-
name: "Update Template Document Visibility",
|
|
64
|
-
description: "Update per-recipient document visibility on a template.",
|
|
65
|
-
needsApproval: true,
|
|
66
|
-
method: "PUT",
|
|
67
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/recipients/document_visibility`,
|
|
68
|
-
input: tplId.extend({ documentVisibility: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
69
|
-
output: docusignGenericObjectSchema,
|
|
70
|
-
body: (input) => ({ documentVisibility: input.documentVisibility })
|
|
71
|
-
});
|
|
72
|
-
const getTemplateNotificationInformation = defineRestOperation({
|
|
73
|
-
id: "docusign.get-template-notification-information",
|
|
74
|
-
slug: "DOCUSIGN_GET_TEMPLATE_NOTIFICATION_INFORMATION",
|
|
75
|
-
name: "Get Template Notification Information",
|
|
76
|
-
description: "Retrieve the notification settings on a template.",
|
|
77
|
-
method: "GET",
|
|
78
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/notification`,
|
|
79
|
-
input: tplId,
|
|
80
|
-
output: docusignGenericObjectSchema
|
|
81
|
-
});
|
|
82
|
-
const updateTemplateNotificationSettings = defineRestOperation({
|
|
83
|
-
id: "docusign.update-template-notification-settings",
|
|
84
|
-
slug: "DOCUSIGN_UPDATE_TEMPLATE_NOTIFICATION_SETTINGS",
|
|
85
|
-
name: "Update Template Notification Settings",
|
|
86
|
-
description: "Update the notification settings on a template.",
|
|
87
|
-
needsApproval: true,
|
|
88
|
-
method: "PUT",
|
|
89
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/notification`,
|
|
90
|
-
input: tplId.extend({ notification: docusignLooseObjectSchema() }),
|
|
91
|
-
output: docusignGenericObjectSchema,
|
|
92
|
-
body: (input) => input.notification
|
|
93
|
-
});
|
|
94
|
-
const createTemplateRecipientPreviewUrl = defineRestOperation({
|
|
95
|
-
id: "docusign.create-template-recipient-preview-url",
|
|
96
|
-
slug: "DOCUSIGN_CREATE_TEMPLATE_RECIPIENT_PREVIEW_URL",
|
|
97
|
-
name: "Create Template Recipient Preview URL",
|
|
98
|
-
description: "Create a preview URL that simulates a template recipient signing.",
|
|
99
|
-
needsApproval: true,
|
|
100
|
-
method: "POST",
|
|
101
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/views/recipient_preview`,
|
|
102
|
-
input: tplId.extend({ preview: docusignLooseObjectSchema() }),
|
|
103
|
-
output: docusignLooseObjectSchema({ url: z.string().optional() }),
|
|
104
|
-
body: (input) => input.preview
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
//#endregion
|
|
108
|
-
export { createTemplateRecipientPreviewUrl, getTemplateNotificationInformation, getTemplateRecipientDocumentVisibility, removeGroupSharingPermissionsForTemplate, shareTemplateWithGroup, updateTemplateDocVisibility, updateTemplateNotificationSettings, updateTemplateRecipientDocumentVisibility };
|