@keystrokehq/docusign 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +248 -0
- package/dist/_official/index.d.mts +3 -0
- package/dist/_official/index.mjs +3 -0
- package/dist/_runtime/index.d.mts +1 -0
- package/dist/_runtime/index.mjs +1 -0
- package/dist/account-custom-fields.d.mts +65 -0
- package/dist/account-custom-fields.mjs +63 -0
- package/dist/account-stamps.d.mts +164 -0
- package/dist/account-stamps.mjs +144 -0
- package/dist/account-tabs.d.mts +90 -0
- package/dist/account-tabs.mjs +80 -0
- package/dist/account.d.mts +233 -0
- package/dist/account.mjs +207 -0
- package/dist/admin.d.mts +18 -0
- package/dist/admin.mjs +20 -0
- package/dist/auth.d.mts +37 -0
- package/dist/auth.mjs +53 -0
- package/dist/bcc-archive.d.mts +64 -0
- package/dist/bcc-archive.mjs +70 -0
- package/dist/billing.d.mts +217 -0
- package/dist/billing.mjs +208 -0
- package/dist/brands.d.mts +192 -0
- package/dist/brands.mjs +157 -0
- package/dist/bulk-send.d.mts +137 -0
- package/dist/bulk-send.mjs +115 -0
- package/dist/chunked-uploads.d.mts +78 -0
- package/dist/chunked-uploads.mjs +74 -0
- package/dist/click.d.mts +18 -0
- package/dist/click.mjs +20 -0
- package/dist/client.d.mts +47 -0
- package/dist/client.mjs +286 -0
- package/dist/clm.d.mts +18 -0
- package/dist/clm.mjs +20 -0
- package/dist/cloud-storage.d.mts +122 -0
- package/dist/cloud-storage.mjs +115 -0
- package/dist/connect.d.mts +252 -0
- package/dist/connect.mjs +217 -0
- package/dist/connection.d.mts +2 -0
- package/dist/connection.mjs +3 -0
- package/dist/contacts.d.mts +80 -0
- package/dist/contacts.mjs +79 -0
- package/dist/enote.d.mts +44 -0
- package/dist/enote.mjs +45 -0
- package/dist/envelope-attachments.d.mts +86 -0
- package/dist/envelope-attachments.mjs +76 -0
- package/dist/envelope-custom-fields.d.mts +166 -0
- package/dist/envelope-custom-fields.mjs +92 -0
- package/dist/envelope-documents.d.mts +271 -0
- package/dist/envelope-documents.mjs +219 -0
- package/dist/envelope-email.d.mts +65 -0
- package/dist/envelope-email.mjs +60 -0
- package/dist/envelope-lock.d.mts +65 -0
- package/dist/envelope-lock.mjs +60 -0
- package/dist/envelope-logs.d.mts +126 -0
- package/dist/envelope-logs.mjs +126 -0
- package/dist/envelope-notifications.d.mts +47 -0
- package/dist/envelope-notifications.mjs +44 -0
- package/dist/envelope-recipients.d.mts +171 -0
- package/dist/envelope-recipients.mjs +136 -0
- package/dist/envelope-tabs.d.mts +52 -0
- package/dist/envelope-tabs.mjs +49 -0
- package/dist/envelope-views.d.mts +99 -0
- package/dist/envelope-views.mjs +88 -0
- package/dist/envelope-workflow.d.mts +208 -0
- package/dist/envelope-workflow.mjs +176 -0
- package/dist/envelopes.d.mts +430 -0
- package/dist/envelopes.mjs +190 -0
- package/dist/errors.d.mts +48 -0
- package/dist/errors.mjs +76 -0
- package/dist/events.d.mts +192 -0
- package/dist/events.mjs +146 -0
- package/dist/factory-wViQTjgN.mjs +8 -0
- package/dist/groups.d.mts +191 -0
- package/dist/groups.mjs +146 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +1 -0
- package/dist/integration-CmRztL9R.mjs +229 -0
- package/dist/integration-DqwHRkRh.d.mts +73 -0
- package/dist/messaging.d.mts +1 -0
- package/dist/messaging.mjs +1 -0
- package/dist/monitor.d.mts +18 -0
- package/dist/monitor.mjs +20 -0
- package/dist/notary.d.mts +129 -0
- package/dist/notary.mjs +122 -0
- package/dist/operation-helpers-BMTArRh9.mjs +102 -0
- package/dist/permission-profiles.d.mts +78 -0
- package/dist/permission-profiles.mjs +70 -0
- package/dist/power-forms.d.mts +51 -0
- package/dist/power-forms.mjs +62 -0
- package/dist/provider-app-CWp1SuI4.d.mts +88 -0
- package/dist/rooms.d.mts +18 -0
- package/dist/rooms.mjs +28 -0
- package/dist/schemas/index.d.mts +581 -0
- package/dist/schemas/index.mjs +309 -0
- package/dist/shared-DTUCJayR.mjs +27 -0
- package/dist/signing-groups.d.mts +139 -0
- package/dist/signing-groups.mjs +117 -0
- package/dist/template-custom-fields.d.mts +199 -0
- package/dist/template-custom-fields.mjs +107 -0
- package/dist/template-documents.d.mts +132 -0
- package/dist/template-documents.mjs +109 -0
- package/dist/template-lock.d.mts +65 -0
- package/dist/template-lock.mjs +60 -0
- package/dist/template-sharing.d.mts +129 -0
- package/dist/template-sharing.mjs +108 -0
- package/dist/template-workflow.d.mts +184 -0
- package/dist/template-workflow.mjs +152 -0
- package/dist/templates.d.mts +158 -0
- package/dist/templates.mjs +110 -0
- package/dist/triggers.d.mts +43 -0
- package/dist/triggers.mjs +91 -0
- package/dist/user-authorizations.d.mts +129 -0
- package/dist/user-authorizations.mjs +133 -0
- package/dist/user-custom-settings.d.mts +81 -0
- package/dist/user-custom-settings.mjs +69 -0
- package/dist/user-profile.d.mts +109 -0
- package/dist/user-profile.mjs +106 -0
- package/dist/user-signatures.d.mts +208 -0
- package/dist/user-signatures.mjs +180 -0
- package/dist/users.d.mts +128 -0
- package/dist/users.mjs +98 -0
- package/dist/verification.d.mts +19 -0
- package/dist/verification.mjs +59 -0
- package/dist/workspaces.d.mts +173 -0
- package/dist/workspaces.mjs +143 -0
- package/package.json +291 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
+
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
+
|
|
5
|
+
//#region src/templates.d.ts
|
|
6
|
+
declare const listAllTemplates: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
+
startPosition: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
searchText: z.ZodOptional<z.ZodString>;
|
|
10
|
+
folderIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
+
shared: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
shared_with_me: "shared_with_me";
|
|
13
|
+
all: "all";
|
|
14
|
+
}>>;
|
|
15
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
|
16
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
asc: "asc";
|
|
18
|
+
desc: "desc";
|
|
19
|
+
}>>;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
resultSetSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
22
|
+
totalSetSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
23
|
+
startPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
24
|
+
endPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
25
|
+
nextUri: z.ZodOptional<z.ZodString>;
|
|
26
|
+
previousUri: z.ZodOptional<z.ZodString>;
|
|
27
|
+
envelopeTemplates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
+
templateId: z.ZodString;
|
|
29
|
+
name: z.ZodOptional<z.ZodString>;
|
|
30
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31
|
+
shared: z.ZodOptional<z.ZodString>;
|
|
32
|
+
created: z.ZodOptional<z.ZodString>;
|
|
33
|
+
lastModified: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
35
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
40
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
41
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
42
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
43
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
44
|
+
declare const getTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
45
|
+
templateId: z.ZodString;
|
|
46
|
+
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
templateId: z.ZodString;
|
|
49
|
+
name: z.ZodOptional<z.ZodString>;
|
|
50
|
+
description: z.ZodOptional<z.ZodString>;
|
|
51
|
+
shared: z.ZodOptional<z.ZodString>;
|
|
52
|
+
documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
+
documentId: z.ZodString;
|
|
54
|
+
name: z.ZodOptional<z.ZodString>;
|
|
55
|
+
type: z.ZodOptional<z.ZodString>;
|
|
56
|
+
uri: z.ZodOptional<z.ZodString>;
|
|
57
|
+
order: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
59
|
+
recipients: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
signers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
61
|
+
recipientId: z.ZodOptional<z.ZodString>;
|
|
62
|
+
email: z.ZodOptional<z.ZodString>;
|
|
63
|
+
name: z.ZodOptional<z.ZodString>;
|
|
64
|
+
status: z.ZodOptional<z.ZodString>;
|
|
65
|
+
routingOrder: z.ZodOptional<z.ZodString>;
|
|
66
|
+
clientUserId: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
68
|
+
carbonCopies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
69
|
+
recipientId: z.ZodOptional<z.ZodString>;
|
|
70
|
+
email: z.ZodOptional<z.ZodString>;
|
|
71
|
+
name: z.ZodOptional<z.ZodString>;
|
|
72
|
+
status: z.ZodOptional<z.ZodString>;
|
|
73
|
+
routingOrder: z.ZodOptional<z.ZodString>;
|
|
74
|
+
clientUserId: z.ZodOptional<z.ZodString>;
|
|
75
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
76
|
+
recipientCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
77
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
78
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
79
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
80
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
81
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
82
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
83
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
84
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
85
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
86
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
87
|
+
declare const addTemplatesToEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
88
|
+
envelopeId: z.ZodString;
|
|
89
|
+
documentTemplates: z.ZodArray<z.ZodObject<{
|
|
90
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
91
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
92
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
93
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
94
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
95
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
96
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
97
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
98
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
99
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
100
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
101
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
102
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
103
|
+
declare const getTemplatesUsedInEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
104
|
+
envelopeId: z.ZodString;
|
|
105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
107
|
+
}, z.core.$catchall<z.ZodUnknown>>, 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 retrieveAccountFavoriteTemplates: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
117
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
118
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
119
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
120
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
121
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
122
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
123
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
124
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
125
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
126
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
127
|
+
declare const setTemplatesAsAccountFavorites: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
128
|
+
favoriteTemplates: z.ZodArray<z.ZodObject<{
|
|
129
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
130
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
131
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
132
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
133
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
134
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
135
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
136
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
137
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
138
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
139
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
140
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
141
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
142
|
+
declare const removeTemplatesFromFavorites: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
143
|
+
favoriteTemplates: z.ZodArray<z.ZodObject<{
|
|
144
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
145
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
+
success: z.ZodBoolean;
|
|
148
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
149
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
150
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
151
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
152
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
153
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
154
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
155
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
156
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
157
|
+
//#endregion
|
|
158
|
+
export { addTemplatesToEnvelope, getTemplate, getTemplatesUsedInEnvelope, listAllTemplates, removeTemplatesFromFavorites, retrieveAccountFavoriteTemplates, setTemplatesAsAccountFavorites };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { docusignEnvelopeIdSchema, docusignGenericObjectSchema, docusignListPaginationInputSchema, docusignLooseObjectSchema, docusignSuccessSchema, docusignTemplateIdSchema, docusignTemplateListSchema, docusignTemplateSchema } from "./schemas/index.mjs";
|
|
2
|
+
import { r as defineRestOperation } from "./operation-helpers-BMTArRh9.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/templates.ts
|
|
6
|
+
/**
|
|
7
|
+
* Template core. Covers PLAN.md § 6.12.
|
|
8
|
+
*/
|
|
9
|
+
const listAllTemplates = defineRestOperation({
|
|
10
|
+
id: "list_all_templates",
|
|
11
|
+
slug: "DOCUSIGN_LIST_ALL_TEMPLATES",
|
|
12
|
+
name: "List All Templates",
|
|
13
|
+
description: "List templates on the account, optionally filtered by search text and folder.",
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: "/templates",
|
|
16
|
+
input: docusignListPaginationInputSchema.extend({
|
|
17
|
+
searchText: z.string().optional(),
|
|
18
|
+
folderIds: z.array(z.string()).optional(),
|
|
19
|
+
shared: z.enum(["shared_with_me", "all"]).optional(),
|
|
20
|
+
orderBy: z.string().optional(),
|
|
21
|
+
order: z.enum(["asc", "desc"]).optional()
|
|
22
|
+
}),
|
|
23
|
+
output: docusignTemplateListSchema,
|
|
24
|
+
query: (input) => ({
|
|
25
|
+
start_position: input.startPosition,
|
|
26
|
+
count: input.count,
|
|
27
|
+
search_text: input.searchText,
|
|
28
|
+
folder_ids: input.folderIds,
|
|
29
|
+
shared: input.shared,
|
|
30
|
+
order_by: input.orderBy,
|
|
31
|
+
order: input.order
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
const getTemplate = defineRestOperation({
|
|
35
|
+
id: "get_template",
|
|
36
|
+
slug: "DOCUSIGN_GET_TEMPLATE",
|
|
37
|
+
name: "Get Template",
|
|
38
|
+
description: "Fetch a DocuSign template by id.",
|
|
39
|
+
method: "GET",
|
|
40
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}`,
|
|
41
|
+
input: z.object({
|
|
42
|
+
templateId: docusignTemplateIdSchema,
|
|
43
|
+
include: z.array(z.string()).optional()
|
|
44
|
+
}),
|
|
45
|
+
output: docusignTemplateSchema,
|
|
46
|
+
query: (input) => ({ include: input.include })
|
|
47
|
+
});
|
|
48
|
+
const addTemplatesToEnvelope = defineRestOperation({
|
|
49
|
+
id: "add_templates_to_envelope",
|
|
50
|
+
slug: "DOCUSIGN_ADD_TEMPLATES_TO_ENVELOPE",
|
|
51
|
+
name: "Add Templates To Envelope",
|
|
52
|
+
description: "Apply templates to an existing envelope.",
|
|
53
|
+
needsApproval: true,
|
|
54
|
+
method: "POST",
|
|
55
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/templates`,
|
|
56
|
+
input: z.object({
|
|
57
|
+
envelopeId: docusignEnvelopeIdSchema,
|
|
58
|
+
documentTemplates: z.array(docusignLooseObjectSchema()).min(1)
|
|
59
|
+
}),
|
|
60
|
+
output: docusignGenericObjectSchema,
|
|
61
|
+
body: (input) => ({ documentTemplates: input.documentTemplates })
|
|
62
|
+
});
|
|
63
|
+
const getTemplatesUsedInEnvelope = defineRestOperation({
|
|
64
|
+
id: "get_templates_used_in_envelope",
|
|
65
|
+
slug: "DOCUSIGN_GET_TEMPLATES_USED_IN_ENVELOPE",
|
|
66
|
+
name: "Get Templates Used In Envelope",
|
|
67
|
+
description: "List the templates applied to an envelope.",
|
|
68
|
+
method: "GET",
|
|
69
|
+
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/templates`,
|
|
70
|
+
input: z.object({ envelopeId: docusignEnvelopeIdSchema }),
|
|
71
|
+
output: docusignGenericObjectSchema
|
|
72
|
+
});
|
|
73
|
+
const retrieveAccountFavoriteTemplates = defineRestOperation({
|
|
74
|
+
id: "retrieve_account_favorite_templates",
|
|
75
|
+
slug: "DOCUSIGN_RETRIEVE_ACCOUNT_FAVORITE_TEMPLATES",
|
|
76
|
+
name: "Retrieve Account Favorite Templates",
|
|
77
|
+
description: "List favorite templates on the account.",
|
|
78
|
+
method: "GET",
|
|
79
|
+
path: "/favorite_templates",
|
|
80
|
+
input: z.object({}),
|
|
81
|
+
output: docusignGenericObjectSchema
|
|
82
|
+
});
|
|
83
|
+
const setTemplatesAsAccountFavorites = defineRestOperation({
|
|
84
|
+
id: "set_templates_as_account_favorites",
|
|
85
|
+
slug: "DOCUSIGN_SET_TEMPLATES_AS_ACCOUNT_FAVORITES",
|
|
86
|
+
name: "Set Templates As Account Favorites",
|
|
87
|
+
description: "Mark templates as favorites on the account.",
|
|
88
|
+
needsApproval: true,
|
|
89
|
+
method: "PUT",
|
|
90
|
+
path: "/favorite_templates",
|
|
91
|
+
input: z.object({ favoriteTemplates: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
92
|
+
output: docusignGenericObjectSchema,
|
|
93
|
+
body: (input) => ({ favoriteTemplates: input.favoriteTemplates })
|
|
94
|
+
});
|
|
95
|
+
const removeTemplatesFromFavorites = defineRestOperation({
|
|
96
|
+
id: "remove_templates_from_favorites",
|
|
97
|
+
slug: "DOCUSIGN_REMOVE_TEMPLATES_FROM_FAVORITES",
|
|
98
|
+
name: "Remove Templates From Favorites",
|
|
99
|
+
description: "Unmark templates as favorites on the account.",
|
|
100
|
+
needsApproval: true,
|
|
101
|
+
method: "DELETE",
|
|
102
|
+
path: "/favorite_templates",
|
|
103
|
+
input: z.object({ favoriteTemplates: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
104
|
+
output: docusignSuccessSchema,
|
|
105
|
+
body: (input) => ({ favoriteTemplates: input.favoriteTemplates }),
|
|
106
|
+
transformResponse: () => ({ success: true })
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
export { addTemplatesToEnvelope, getTemplate, getTemplatesUsedInEnvelope, listAllTemplates, removeTemplatesFromFavorites, retrieveAccountFavoriteTemplates, setTemplatesAsAccountFavorites };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { n as docusign } from "./integration-DqwHRkRh.mjs";
|
|
2
|
+
import { a as docusignConnectCredentialSet } from "./provider-app-CWp1SuI4.mjs";
|
|
3
|
+
import { DocusignConnectEnvelope, docusignConnectEnvelopeSchema } from "./events.mjs";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { BoundTrigger, WebhookRequest } from "@keystrokehq/core";
|
|
6
|
+
import { IntegrationTriggerBindingOptions } from "@keystrokehq/integration-authoring";
|
|
7
|
+
import { WebhookTriggerManifest } from "@keystrokehq/core/trigger";
|
|
8
|
+
|
|
9
|
+
//#region src/triggers.d.ts
|
|
10
|
+
type DocusignConnectCredentialSets = readonly [typeof docusign, typeof docusignConnectCredentialSet];
|
|
11
|
+
type DocusignWebhookBindingOptions<TOutput = DocusignConnectEnvelope> = IntegrationTriggerBindingOptions<DocusignConnectEnvelope, TOutput, WebhookRequest>;
|
|
12
|
+
type DocusignWebhookBoundTrigger<TOutput = DocusignConnectEnvelope> = BoundTrigger<z.output<typeof docusignConnectEnvelopeSchema>, DocusignConnectCredentialSets, WebhookTriggerManifest, TOutput, WebhookRequest>;
|
|
13
|
+
type DocusignWebhookBindingSurface = <TOutput = DocusignConnectEnvelope>(options?: DocusignWebhookBindingOptions<TOutput>) => DocusignWebhookBoundTrigger<TOutput>;
|
|
14
|
+
interface DocusignWebhookNamespace {
|
|
15
|
+
readonly envelopeSent: DocusignWebhookBindingSurface;
|
|
16
|
+
readonly envelopeResent: DocusignWebhookBindingSurface;
|
|
17
|
+
readonly envelopeDelivered: DocusignWebhookBindingSurface;
|
|
18
|
+
readonly envelopeSigned: DocusignWebhookBindingSurface;
|
|
19
|
+
readonly envelopeCompleted: DocusignWebhookBindingSurface;
|
|
20
|
+
readonly envelopeDeclined: DocusignWebhookBindingSurface;
|
|
21
|
+
readonly envelopeVoided: DocusignWebhookBindingSurface;
|
|
22
|
+
readonly envelopeCorrected: DocusignWebhookBindingSurface;
|
|
23
|
+
readonly envelopeDiscarded: DocusignWebhookBindingSurface;
|
|
24
|
+
readonly envelopePurged: DocusignWebhookBindingSurface;
|
|
25
|
+
readonly envelopeReassigned: DocusignWebhookBindingSurface;
|
|
26
|
+
readonly envelopeDeleted: DocusignWebhookBindingSurface;
|
|
27
|
+
readonly envelopeDocumentsPurged: DocusignWebhookBindingSurface;
|
|
28
|
+
readonly recipientSent: DocusignWebhookBindingSurface;
|
|
29
|
+
readonly recipientResent: DocusignWebhookBindingSurface;
|
|
30
|
+
readonly recipientDelivered: DocusignWebhookBindingSurface;
|
|
31
|
+
readonly recipientCompleted: DocusignWebhookBindingSurface;
|
|
32
|
+
readonly recipientDeclined: DocusignWebhookBindingSurface;
|
|
33
|
+
readonly recipientAuthenticationFailed: DocusignWebhookBindingSurface;
|
|
34
|
+
readonly recipientAutoresponded: DocusignWebhookBindingSurface;
|
|
35
|
+
readonly recipientDelegated: DocusignWebhookBindingSurface;
|
|
36
|
+
readonly recipientFinishLater: DocusignWebhookBindingSurface;
|
|
37
|
+
readonly recipientReassigned: DocusignWebhookBindingSurface;
|
|
38
|
+
readonly templateCreated: DocusignWebhookBindingSurface;
|
|
39
|
+
readonly templateModified: DocusignWebhookBindingSurface;
|
|
40
|
+
}
|
|
41
|
+
declare const webhooks: DocusignWebhookNamespace;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { DocusignWebhookNamespace, webhooks };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { s as docusignConnectCredentialSet, t as docusign } from "./integration-CmRztL9R.mjs";
|
|
2
|
+
import { DocusignApiError } from "./errors.mjs";
|
|
3
|
+
import { docusignConnectEnvelopeSchema } from "./events.mjs";
|
|
4
|
+
import { verifyDocusignConnectRequest } from "./verification.mjs";
|
|
5
|
+
import { createWebhookTriggerBindingFactory } from "@keystrokehq/integration-authoring";
|
|
6
|
+
|
|
7
|
+
//#region src/triggers.ts
|
|
8
|
+
function deriveIdempotencyKey(payload) {
|
|
9
|
+
const subject = payload.data.envelopeId ?? payload.data.templateId ?? payload.data.recipientId ?? "unknown";
|
|
10
|
+
const recipient = payload.data.recipientId ?? payload.data.recipientIdGuid ?? "";
|
|
11
|
+
const generatedAt = payload.generatedDateTime ?? "0";
|
|
12
|
+
const recipientSuffix = recipient ? `:${recipient}` : "";
|
|
13
|
+
return `${payload.event}:${subject}${recipientSuffix}:${generatedAt}`;
|
|
14
|
+
}
|
|
15
|
+
function createDocusignBinding(eventName, defaultName, defaultDescription) {
|
|
16
|
+
return createWebhookTriggerBindingFactory({
|
|
17
|
+
defaultName,
|
|
18
|
+
defaultDescription,
|
|
19
|
+
path: "/docusign",
|
|
20
|
+
method: "POST",
|
|
21
|
+
payload: docusignConnectEnvelopeSchema,
|
|
22
|
+
credentialSets: [docusign, docusignConnectCredentialSet],
|
|
23
|
+
verify: (request, ctx) => {
|
|
24
|
+
const connectCreds = ctx.credentials["docusign-connect"];
|
|
25
|
+
if (!connectCreds?.hmacSecrets || connectCreds.hmacSecrets.length === 0) throw DocusignApiError.webhookSignature("DocuSign Connect HMAC secrets are not configured. Set KEYSTROKE_PLATFORM_DOCUSIGN_CONNECT_HMAC_SECRETS before enabling webhook triggers.");
|
|
26
|
+
if (!verifyDocusignConnectRequest({
|
|
27
|
+
headers: request.headers,
|
|
28
|
+
rawBody: request.rawBody,
|
|
29
|
+
secrets: connectCreds.hmacSecrets
|
|
30
|
+
})) throw DocusignApiError.webhookSignature("Invalid DocuSign Connect webhook signature. None of the provided X-DocuSign-Signature-* headers matched any configured secret.");
|
|
31
|
+
},
|
|
32
|
+
definitionFilter: (payload) => payload.event === eventName,
|
|
33
|
+
idempotencyKey: (payload) => deriveIdempotencyKey(payload),
|
|
34
|
+
response: { successStatus: 200 }
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const envelopeSentBinding = createDocusignBinding("envelope-sent", "DocuSign Envelope Sent", "DocuSign envelope sent event");
|
|
38
|
+
const envelopeResentBinding = createDocusignBinding("envelope-resent", "DocuSign Envelope Resent", "DocuSign envelope resent event");
|
|
39
|
+
const envelopeDeliveredBinding = createDocusignBinding("envelope-delivered", "DocuSign Envelope Delivered", "DocuSign envelope delivered event (first recipient view)");
|
|
40
|
+
const envelopeSignedBinding = createDocusignBinding("envelope-signed", "DocuSign Envelope Signed", "DocuSign envelope signed event (alias of recipient-completed for single-signer envelopes)");
|
|
41
|
+
const envelopeCompletedBinding = createDocusignBinding("envelope-completed", "DocuSign Envelope Completed", "DocuSign envelope completed (fully executed) event");
|
|
42
|
+
const envelopeDeclinedBinding = createDocusignBinding("envelope-declined", "DocuSign Envelope Declined", "DocuSign envelope declined event");
|
|
43
|
+
const envelopeVoidedBinding = createDocusignBinding("envelope-voided", "DocuSign Envelope Voided", "DocuSign envelope voided event");
|
|
44
|
+
const envelopeCorrectedBinding = createDocusignBinding("envelope-corrected", "DocuSign Envelope Corrected", "DocuSign envelope corrected event");
|
|
45
|
+
const envelopeDiscardedBinding = createDocusignBinding("envelope-discard", "DocuSign Envelope Discarded", "DocuSign envelope draft discarded event");
|
|
46
|
+
const envelopePurgedBinding = createDocusignBinding("envelope-purge", "DocuSign Envelope Purged", "DocuSign envelope purge-retention hit event");
|
|
47
|
+
const envelopeReassignedBinding = createDocusignBinding("envelope-reassign", "DocuSign Envelope Reassigned", "DocuSign envelope reassigned event");
|
|
48
|
+
const envelopeDeletedBinding = createDocusignBinding("envelope-deleted", "DocuSign Envelope Deleted", "DocuSign envelope deleted event");
|
|
49
|
+
const envelopeDocumentsPurgedBinding = createDocusignBinding("envelope-documents-purged", "DocuSign Envelope Documents Purged", "DocuSign envelope-documents-purged event (envelope metadata retained, documents purged)");
|
|
50
|
+
const recipientSentBinding = createDocusignBinding("recipient-sent", "DocuSign Recipient Sent", "DocuSign recipient sent event");
|
|
51
|
+
const recipientResentBinding = createDocusignBinding("recipient-resent", "DocuSign Recipient Resent", "DocuSign recipient resent event");
|
|
52
|
+
const recipientDeliveredBinding = createDocusignBinding("recipient-delivered", "DocuSign Recipient Delivered", "DocuSign recipient delivered event");
|
|
53
|
+
const recipientCompletedBinding = createDocusignBinding("recipient-completed", "DocuSign Recipient Completed", "DocuSign recipient completed (signed) event");
|
|
54
|
+
const recipientDeclinedBinding = createDocusignBinding("recipient-declined", "DocuSign Recipient Declined", "DocuSign recipient declined event");
|
|
55
|
+
const recipientAuthenticationFailedBinding = createDocusignBinding("recipient-authenticationfailed", "DocuSign Recipient Authentication Failed", "DocuSign recipient authentication failed event");
|
|
56
|
+
const recipientAutorespondedBinding = createDocusignBinding("recipient-autoresponded", "DocuSign Recipient Auto-Responded", "DocuSign recipient auto-responded event");
|
|
57
|
+
const recipientDelegatedBinding = createDocusignBinding("recipient-delegate", "DocuSign Recipient Delegated", "DocuSign recipient delegated event");
|
|
58
|
+
const recipientFinishLaterBinding = createDocusignBinding("recipient-finish-later", "DocuSign Recipient Finish Later", "DocuSign recipient finish-later event");
|
|
59
|
+
const recipientReassignedBinding = createDocusignBinding("recipient-reassign", "DocuSign Recipient Reassigned", "DocuSign recipient reassigned event");
|
|
60
|
+
const templateCreatedBinding = createDocusignBinding("template-created", "DocuSign Template Created", "DocuSign template created event");
|
|
61
|
+
const templateModifiedBinding = createDocusignBinding("template-modified", "DocuSign Template Modified", "DocuSign template modified event");
|
|
62
|
+
const webhooks = Object.freeze({
|
|
63
|
+
envelopeSent: (options) => envelopeSentBinding(options),
|
|
64
|
+
envelopeResent: (options) => envelopeResentBinding(options),
|
|
65
|
+
envelopeDelivered: (options) => envelopeDeliveredBinding(options),
|
|
66
|
+
envelopeSigned: (options) => envelopeSignedBinding(options),
|
|
67
|
+
envelopeCompleted: (options) => envelopeCompletedBinding(options),
|
|
68
|
+
envelopeDeclined: (options) => envelopeDeclinedBinding(options),
|
|
69
|
+
envelopeVoided: (options) => envelopeVoidedBinding(options),
|
|
70
|
+
envelopeCorrected: (options) => envelopeCorrectedBinding(options),
|
|
71
|
+
envelopeDiscarded: (options) => envelopeDiscardedBinding(options),
|
|
72
|
+
envelopePurged: (options) => envelopePurgedBinding(options),
|
|
73
|
+
envelopeReassigned: (options) => envelopeReassignedBinding(options),
|
|
74
|
+
envelopeDeleted: (options) => envelopeDeletedBinding(options),
|
|
75
|
+
envelopeDocumentsPurged: (options) => envelopeDocumentsPurgedBinding(options),
|
|
76
|
+
recipientSent: (options) => recipientSentBinding(options),
|
|
77
|
+
recipientResent: (options) => recipientResentBinding(options),
|
|
78
|
+
recipientDelivered: (options) => recipientDeliveredBinding(options),
|
|
79
|
+
recipientCompleted: (options) => recipientCompletedBinding(options),
|
|
80
|
+
recipientDeclined: (options) => recipientDeclinedBinding(options),
|
|
81
|
+
recipientAuthenticationFailed: (options) => recipientAuthenticationFailedBinding(options),
|
|
82
|
+
recipientAutoresponded: (options) => recipientAutorespondedBinding(options),
|
|
83
|
+
recipientDelegated: (options) => recipientDelegatedBinding(options),
|
|
84
|
+
recipientFinishLater: (options) => recipientFinishLaterBinding(options),
|
|
85
|
+
recipientReassigned: (options) => recipientReassignedBinding(options),
|
|
86
|
+
templateCreated: (options) => templateCreatedBinding(options),
|
|
87
|
+
templateModified: (options) => templateModifiedBinding(options)
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
//#endregion
|
|
91
|
+
export { webhooks };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
+
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
+
|
|
5
|
+
//#region src/user-authorizations.d.ts
|
|
6
|
+
declare const createOrUpdateUserAuthorizations: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
+
userId: z.ZodString;
|
|
8
|
+
authorizations: z.ZodArray<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 createUserAuthorizationForAgentUser: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
23
|
+
userId: z.ZodString;
|
|
24
|
+
authorization: z.ZodObject<{
|
|
25
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
26
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
29
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
30
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
31
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
32
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
33
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
|
|
38
|
+
declare const getUserAuthorizationDetails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
39
|
+
userId: z.ZodString;
|
|
40
|
+
authorizationId: z.ZodString;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
43
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
44
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
45
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
46
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
47
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
|
|
52
|
+
declare const getUserAuthorizationsForPrincipal: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
53
|
+
userId: z.ZodString;
|
|
54
|
+
startPosition: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
permissions: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
59
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
60
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
61
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
62
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
63
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
64
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
65
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
66
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
67
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
68
|
+
declare const getAgentUserAuthorizations: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
69
|
+
userId: z.ZodString;
|
|
70
|
+
startPosition: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
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 updateUserAuthorizationDates: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
84
|
+
userId: z.ZodString;
|
|
85
|
+
authorizationId: z.ZodString;
|
|
86
|
+
authorization: z.ZodObject<{
|
|
87
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
88
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
91
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
92
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
93
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
94
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
95
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
96
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
97
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
98
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
99
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
100
|
+
declare const deleteUserAuthorization: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
101
|
+
userId: z.ZodString;
|
|
102
|
+
authorizationId: z.ZodString;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
success: z.ZodBoolean;
|
|
105
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
106
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
107
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
108
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
109
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
110
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
111
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
112
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
113
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
114
|
+
declare const deleteUserAuthorizations: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
115
|
+
userId: z.ZodString;
|
|
116
|
+
authorizationIdList: z.ZodArray<z.ZodString>;
|
|
117
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
118
|
+
success: z.ZodBoolean;
|
|
119
|
+
}, z.core.$strip>, 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 { createOrUpdateUserAuthorizations, createUserAuthorizationForAgentUser, deleteUserAuthorization, deleteUserAuthorizations, getAgentUserAuthorizations, getUserAuthorizationDetails, getUserAuthorizationsForPrincipal, updateUserAuthorizationDates };
|