@keystrokehq/signwell 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-document-from-template.cjs +32 -32
- package/dist/actions/create-document-from-template.cjs.map +1 -1
- package/dist/actions/create-document-from-template.d.cts +180 -3
- package/dist/actions/create-document-from-template.d.cts.map +1 -1
- package/dist/actions/create-document-from-template.d.mts +180 -3
- package/dist/actions/create-document-from-template.d.mts.map +1 -1
- package/dist/actions/create-document-from-template.mjs +32 -32
- package/dist/actions/create-document-from-template.mjs.map +1 -1
- package/dist/actions/create-document.cjs +19 -19
- package/dist/actions/create-document.cjs.map +1 -1
- package/dist/actions/create-document.d.cts +88 -3
- package/dist/actions/create-document.d.cts.map +1 -1
- package/dist/actions/create-document.d.mts +88 -3
- package/dist/actions/create-document.d.mts.map +1 -1
- package/dist/actions/create-document.mjs +19 -19
- package/dist/actions/create-document.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +3 -3
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +12 -3
- package/dist/actions/create-webhook.d.cts.map +1 -1
- package/dist/actions/create-webhook.d.mts +12 -3
- package/dist/actions/create-webhook.d.mts.map +1 -1
- package/dist/actions/create-webhook.mjs +3 -3
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/delete-document.cjs +1 -1
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +10 -3
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +10 -3
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs +1 -1
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +1 -1
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +7 -3
- package/dist/actions/delete-webhook.d.cts.map +1 -1
- package/dist/actions/delete-webhook.d.mts +7 -3
- package/dist/actions/delete-webhook.d.mts.map +1 -1
- package/dist/actions/delete-webhook.mjs +1 -1
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/get-credentials.cjs +19 -19
- package/dist/actions/get-credentials.cjs.map +1 -1
- package/dist/actions/get-credentials.d.cts +55 -3
- package/dist/actions/get-credentials.d.cts.map +1 -1
- package/dist/actions/get-credentials.d.mts +55 -3
- package/dist/actions/get-credentials.d.mts.map +1 -1
- package/dist/actions/get-credentials.mjs +19 -19
- package/dist/actions/get-credentials.mjs.map +1 -1
- package/dist/actions/get-document.cjs +20 -20
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +60 -3
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +60 -3
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs +20 -20
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/list-bulk-sends.cjs +12 -12
- package/dist/actions/list-bulk-sends.cjs.map +1 -1
- package/dist/actions/list-bulk-sends.d.cts +28 -3
- package/dist/actions/list-bulk-sends.d.cts.map +1 -1
- package/dist/actions/list-bulk-sends.d.mts +28 -3
- package/dist/actions/list-bulk-sends.d.mts.map +1 -1
- package/dist/actions/list-bulk-sends.mjs +12 -12
- package/dist/actions/list-bulk-sends.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +4 -4
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +10 -3
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +10 -3
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/list-webhooks.mjs +4 -4
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/send-reminder.cjs +25 -25
- package/dist/actions/send-reminder.cjs.map +1 -1
- package/dist/actions/send-reminder.d.cts +76 -3
- package/dist/actions/send-reminder.d.cts.map +1 -1
- package/dist/actions/send-reminder.d.mts +76 -3
- package/dist/actions/send-reminder.d.mts.map +1 -1
- package/dist/actions/send-reminder.mjs +25 -25
- package/dist/actions/send-reminder.mjs.map +1 -1
- package/dist/actions/update-and-send-document.cjs +25 -25
- package/dist/actions/update-and-send-document.cjs.map +1 -1
- package/dist/actions/update-and-send-document.d.cts +113 -3
- package/dist/actions/update-and-send-document.d.cts.map +1 -1
- package/dist/actions/update-and-send-document.d.mts +113 -3
- package/dist/actions/update-and-send-document.d.mts.map +1 -1
- package/dist/actions/update-and-send-document.mjs +25 -25
- package/dist/actions/update-and-send-document.mjs.map +1 -1
- package/dist/actions/update-template.cjs +25 -25
- package/dist/actions/update-template.cjs.map +1 -1
- package/dist/actions/update-template.d.cts +84 -3
- package/dist/actions/update-template.d.cts.map +1 -1
- package/dist/actions/update-template.d.mts +84 -3
- package/dist/actions/update-template.d.mts.map +1 -1
- package/dist/actions/update-template.mjs +25 -25
- package/dist/actions/update-template.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,94 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-document.d.ts
|
|
4
|
-
declare const SignwellCreateDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SignwellCreateDocumentInput: z.ZodObject<{
|
|
5
|
+
draft: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
6
|
+
files: z.ZodArray<z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
file_url: z.ZodOptional<z.ZodString>;
|
|
9
|
+
file_base64: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
|
+
message: z.ZodOptional<z.ZodString>;
|
|
12
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
13
|
+
language: z.ZodOptional<z.ZodString>;
|
|
14
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
|
+
reminders: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
16
|
+
test_mode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
17
|
+
text_tags: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
18
|
+
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
email: z.ZodString;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
redirect_url: z.ZodOptional<z.ZodString>;
|
|
25
|
+
allow_decline: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
26
|
+
allow_reassign: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
27
|
+
embedded_signing: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
28
|
+
api_application_id: z.ZodOptional<z.ZodString>;
|
|
29
|
+
apply_signing_order: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
30
|
+
with_signature_page: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
31
|
+
decline_redirect_url: z.ZodOptional<z.ZodString>;
|
|
32
|
+
custom_requester_name: z.ZodOptional<z.ZodString>;
|
|
33
|
+
custom_requester_email: z.ZodOptional<z.ZodString>;
|
|
34
|
+
embedded_signing_notifications: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const SignwellCreateDocumentOutput: z.ZodObject<{
|
|
37
|
+
id: z.ZodNullable<z.ZodString>;
|
|
38
|
+
name: z.ZodNullable<z.ZodString>;
|
|
39
|
+
files: z.ZodArray<z.ZodObject<{
|
|
40
|
+
name: z.ZodNullable<z.ZodString>;
|
|
41
|
+
pages_number: z.ZodNullable<z.ZodNumber>;
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
|
+
status: z.ZodNullable<z.ZodString>;
|
|
44
|
+
test_mode: z.ZodNullable<z.ZodBoolean>;
|
|
45
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
46
|
+
expires_in: z.ZodNullable<z.ZodNumber>;
|
|
47
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
48
|
+
id: z.ZodNullable<z.ZodString>;
|
|
49
|
+
name: z.ZodNullable<z.ZodString>;
|
|
50
|
+
email: z.ZodNullable<z.ZodString>;
|
|
51
|
+
status: z.ZodNullable<z.ZodString>;
|
|
52
|
+
signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
signing_order: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
embedded_signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
}, z.core.$loose>>;
|
|
56
|
+
embedded_edit_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
}, z.core.$loose>;
|
|
58
|
+
declare const signwellCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
59
|
+
files: {
|
|
60
|
+
[x: string]: unknown;
|
|
61
|
+
name: string;
|
|
62
|
+
file_url?: string | undefined;
|
|
63
|
+
file_base64?: string | undefined;
|
|
64
|
+
}[];
|
|
65
|
+
recipients: {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
email: string;
|
|
70
|
+
}[];
|
|
71
|
+
draft?: boolean | undefined;
|
|
72
|
+
message?: string | undefined;
|
|
73
|
+
subject?: string | undefined;
|
|
74
|
+
language?: string | undefined;
|
|
75
|
+
metadata?: Record<string, unknown> | undefined;
|
|
76
|
+
reminders?: boolean | undefined;
|
|
77
|
+
test_mode?: boolean | undefined;
|
|
78
|
+
text_tags?: boolean | undefined;
|
|
79
|
+
expires_in?: number | undefined;
|
|
80
|
+
redirect_url?: string | undefined;
|
|
81
|
+
allow_decline?: boolean | undefined;
|
|
82
|
+
allow_reassign?: boolean | undefined;
|
|
83
|
+
embedded_signing?: boolean | undefined;
|
|
84
|
+
api_application_id?: string | undefined;
|
|
85
|
+
apply_signing_order?: boolean | undefined;
|
|
86
|
+
with_signature_page?: boolean | undefined;
|
|
87
|
+
decline_redirect_url?: string | undefined;
|
|
88
|
+
custom_requester_name?: string | undefined;
|
|
89
|
+
custom_requester_email?: string | undefined;
|
|
90
|
+
embedded_signing_notifications?: boolean | undefined;
|
|
91
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
92
|
//#endregion
|
|
8
93
|
export { signwellCreateDocument };
|
|
9
94
|
//# sourceMappingURL=create-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document.d.cts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-document.d.cts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAY5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;;;;;;aAMjC,MAAA"}
|
|
@@ -1,9 +1,94 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-document.d.ts
|
|
4
|
-
declare const SignwellCreateDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SignwellCreateDocumentInput: z.ZodObject<{
|
|
5
|
+
draft: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
6
|
+
files: z.ZodArray<z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
file_url: z.ZodOptional<z.ZodString>;
|
|
9
|
+
file_base64: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
|
+
message: z.ZodOptional<z.ZodString>;
|
|
12
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
13
|
+
language: z.ZodOptional<z.ZodString>;
|
|
14
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
|
+
reminders: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
16
|
+
test_mode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
17
|
+
text_tags: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
18
|
+
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
email: z.ZodString;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
redirect_url: z.ZodOptional<z.ZodString>;
|
|
25
|
+
allow_decline: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
26
|
+
allow_reassign: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
27
|
+
embedded_signing: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
28
|
+
api_application_id: z.ZodOptional<z.ZodString>;
|
|
29
|
+
apply_signing_order: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
30
|
+
with_signature_page: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
31
|
+
decline_redirect_url: z.ZodOptional<z.ZodString>;
|
|
32
|
+
custom_requester_name: z.ZodOptional<z.ZodString>;
|
|
33
|
+
custom_requester_email: z.ZodOptional<z.ZodString>;
|
|
34
|
+
embedded_signing_notifications: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const SignwellCreateDocumentOutput: z.ZodObject<{
|
|
37
|
+
id: z.ZodNullable<z.ZodString>;
|
|
38
|
+
name: z.ZodNullable<z.ZodString>;
|
|
39
|
+
files: z.ZodArray<z.ZodObject<{
|
|
40
|
+
name: z.ZodNullable<z.ZodString>;
|
|
41
|
+
pages_number: z.ZodNullable<z.ZodNumber>;
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
|
+
status: z.ZodNullable<z.ZodString>;
|
|
44
|
+
test_mode: z.ZodNullable<z.ZodBoolean>;
|
|
45
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
46
|
+
expires_in: z.ZodNullable<z.ZodNumber>;
|
|
47
|
+
recipients: z.ZodArray<z.ZodObject<{
|
|
48
|
+
id: z.ZodNullable<z.ZodString>;
|
|
49
|
+
name: z.ZodNullable<z.ZodString>;
|
|
50
|
+
email: z.ZodNullable<z.ZodString>;
|
|
51
|
+
status: z.ZodNullable<z.ZodString>;
|
|
52
|
+
signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
signing_order: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
embedded_signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
}, z.core.$loose>>;
|
|
56
|
+
embedded_edit_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
}, z.core.$loose>;
|
|
58
|
+
declare const signwellCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
59
|
+
files: {
|
|
60
|
+
[x: string]: unknown;
|
|
61
|
+
name: string;
|
|
62
|
+
file_url?: string | undefined;
|
|
63
|
+
file_base64?: string | undefined;
|
|
64
|
+
}[];
|
|
65
|
+
recipients: {
|
|
66
|
+
[x: string]: unknown;
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
email: string;
|
|
70
|
+
}[];
|
|
71
|
+
draft?: boolean | undefined;
|
|
72
|
+
message?: string | undefined;
|
|
73
|
+
subject?: string | undefined;
|
|
74
|
+
language?: string | undefined;
|
|
75
|
+
metadata?: Record<string, unknown> | undefined;
|
|
76
|
+
reminders?: boolean | undefined;
|
|
77
|
+
test_mode?: boolean | undefined;
|
|
78
|
+
text_tags?: boolean | undefined;
|
|
79
|
+
expires_in?: number | undefined;
|
|
80
|
+
redirect_url?: string | undefined;
|
|
81
|
+
allow_decline?: boolean | undefined;
|
|
82
|
+
allow_reassign?: boolean | undefined;
|
|
83
|
+
embedded_signing?: boolean | undefined;
|
|
84
|
+
api_application_id?: string | undefined;
|
|
85
|
+
apply_signing_order?: boolean | undefined;
|
|
86
|
+
with_signature_page?: boolean | undefined;
|
|
87
|
+
decline_redirect_url?: string | undefined;
|
|
88
|
+
custom_requester_name?: string | undefined;
|
|
89
|
+
custom_requester_email?: string | undefined;
|
|
90
|
+
embedded_signing_notifications?: boolean | undefined;
|
|
91
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
92
|
//#endregion
|
|
8
93
|
export { signwellCreateDocument };
|
|
9
94
|
//# sourceMappingURL=create-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document.d.mts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-document.d.mts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAY5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;;;;;;aAMjC,MAAA"}
|
|
@@ -7,11 +7,11 @@ const SignwellCreateDocumentInput = z.object({
|
|
|
7
7
|
name: z.string().describe("Friendly name for this file (e.g., 'Contract.pdf')."),
|
|
8
8
|
file_url: z.string().describe("Public URL to fetch the file. Either file_url or file_base64 is required.").optional(),
|
|
9
9
|
file_base64: z.string().describe("Base64-encoded file content. Either file_url or file_base64 is required.").optional()
|
|
10
|
-
}).describe("A file to include in the document. Specify exactly one of file_url or file_base64.")).describe("List of files to include in the document. At least one file is required."),
|
|
10
|
+
}).passthrough().describe("A file to include in the document. Specify exactly one of file_url or file_base64.")).describe("List of files to include in the document. At least one file is required."),
|
|
11
11
|
message: z.string().describe("Email message for the signature request. Defaults to system or template message.").optional(),
|
|
12
12
|
subject: z.string().describe("Email subject for the signature request. Defaults to system or template subject.").optional(),
|
|
13
13
|
language: z.string().describe("ISO 639-1 code for localization (e.g., en, fr, es). Defaults to en.").optional(),
|
|
14
|
-
metadata: z.
|
|
14
|
+
metadata: z.record(z.string(), z.unknown()).describe("Optional key/value data associated with the document.").optional(),
|
|
15
15
|
reminders: z.boolean().default(true).describe("If true, sends reminders on day 3, 6, and 10.").optional(),
|
|
16
16
|
test_mode: z.boolean().default(false).describe("Set to true to enable Test Mode (not legally binding & not billed). Defaults to false.").optional(),
|
|
17
17
|
text_tags: z.boolean().default(false).describe("If true, you may place fields via special text tags in your document.").optional(),
|
|
@@ -20,7 +20,7 @@ const SignwellCreateDocumentInput = z.object({
|
|
|
20
20
|
id: z.string().describe("Unique identifier for the recipient, used to track their signing status."),
|
|
21
21
|
name: z.string().describe("Full name of the recipient."),
|
|
22
22
|
email: z.string().describe("Email address of the recipient.")
|
|
23
|
-
}).describe("A person who must complete and/or sign the document.")).describe("People who must complete and/or sign this document."),
|
|
23
|
+
}).passthrough().describe("A person who must complete and/or sign the document.")).describe("People who must complete and/or sign this document."),
|
|
24
24
|
redirect_url: z.string().describe("URL to redirect recipients to after successful signing.").optional(),
|
|
25
25
|
allow_decline: z.boolean().default(true).describe("If true, recipients may decline to sign (which cancels the request).").optional(),
|
|
26
26
|
allow_reassign: z.boolean().default(true).describe("If true, signers may reassign their signing responsibility.").optional(),
|
|
@@ -34,34 +34,34 @@ const SignwellCreateDocumentInput = z.object({
|
|
|
34
34
|
embedded_signing_notifications: z.boolean().default(false).describe("If true, sends completion notifications when using embedded signing.").optional()
|
|
35
35
|
}).describe("Request model for creating and optionally sending a new document for signing.");
|
|
36
36
|
const SignwellCreateDocument_FileResponseSchema = z.object({
|
|
37
|
-
name: z.string().describe("Name of the file."),
|
|
38
|
-
pages_number: z.number().int().describe("Number of pages in the file.")
|
|
39
|
-
}).describe("Response model for a file in the created document.");
|
|
37
|
+
name: z.string().describe("Name of the file.").nullable(),
|
|
38
|
+
pages_number: z.number().int().describe("Number of pages in the file.").nullable()
|
|
39
|
+
}).passthrough().describe("Response model for a file in the created document.");
|
|
40
40
|
const SignwellCreateDocument_RecipientResponseSchema = z.object({
|
|
41
|
-
id: z.string().describe("The recipient's unique identifier."),
|
|
42
|
-
name: z.string().describe("Full name of the recipient."),
|
|
43
|
-
email: z.string().describe("Email address of the recipient."),
|
|
44
|
-
status: z.string().describe("Recipient's signing status (e.g., 'created', 'sent', 'completed')."),
|
|
41
|
+
id: z.string().describe("The recipient's unique identifier.").nullable(),
|
|
42
|
+
name: z.string().describe("Full name of the recipient.").nullable(),
|
|
43
|
+
email: z.string().describe("Email address of the recipient.").nullable(),
|
|
44
|
+
status: z.string().describe("Recipient's signing status (e.g., 'created', 'sent', 'completed').").nullable(),
|
|
45
45
|
signing_url: z.string().describe("URL for the recipient to sign the document (for standard signing).").nullable().optional(),
|
|
46
|
-
signing_order: z.number().int().describe("Order in which this recipient signs."),
|
|
46
|
+
signing_order: z.number().int().describe("Order in which this recipient signs.").nullable(),
|
|
47
47
|
embedded_signing_url: z.string().describe("URL for embedded signing (when embedded_signing is enabled).").nullable().optional()
|
|
48
|
-
}).describe("Response model for a recipient after document creation.");
|
|
48
|
+
}).passthrough().describe("Response model for a recipient after document creation.");
|
|
49
49
|
const signwellCreateDocument = action("SIGNWELL_CREATE_DOCUMENT", {
|
|
50
50
|
slug: "signwell-create-document",
|
|
51
51
|
name: "Create Document",
|
|
52
52
|
description: "Tool to create and optionally send a new document for signing. Use when you have files and recipients defined and want to programmatically submit a signature request in one call.",
|
|
53
53
|
input: SignwellCreateDocumentInput,
|
|
54
54
|
output: z.object({
|
|
55
|
-
id: z.string().describe("Unique identifier of the new document."),
|
|
56
|
-
name: z.string().describe("Name of the document (derived from the first file)."),
|
|
55
|
+
id: z.string().describe("Unique identifier of the new document.").nullable(),
|
|
56
|
+
name: z.string().describe("Name of the document (derived from the first file).").nullable(),
|
|
57
57
|
files: z.array(SignwellCreateDocument_FileResponseSchema).describe("List of files included in the document."),
|
|
58
|
-
status: z.string().describe("Current status of the document (e.g., 'Created', 'Pending', 'Completed')."),
|
|
59
|
-
test_mode: z.boolean().describe("Whether the document is in test mode (not legally binding)."),
|
|
60
|
-
created_at: z.string().describe("ISO 8601 timestamp when the document was created."),
|
|
61
|
-
expires_in: z.number().int().describe("Number of days before the signing request expires."),
|
|
58
|
+
status: z.string().describe("Current status of the document (e.g., 'Created', 'Pending', 'Completed').").nullable(),
|
|
59
|
+
test_mode: z.boolean().describe("Whether the document is in test mode (not legally binding).").nullable(),
|
|
60
|
+
created_at: z.string().describe("ISO 8601 timestamp when the document was created.").nullable(),
|
|
61
|
+
expires_in: z.number().int().describe("Number of days before the signing request expires.").nullable(),
|
|
62
62
|
recipients: z.array(SignwellCreateDocument_RecipientResponseSchema).describe("List of recipients with their signing URLs and status."),
|
|
63
63
|
embedded_edit_url: z.string().describe("URL to edit the document in SignWell's editor.").nullable().optional()
|
|
64
|
-
}).describe("Response model after creating a document.")
|
|
64
|
+
}).passthrough().describe("Response model after creating a document.")
|
|
65
65
|
});
|
|
66
66
|
//#endregion
|
|
67
67
|
export { signwellCreateDocument };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateDocumentInput: z.ZodTypeAny = z.object({\n draft: z.boolean().default(false).describe(\"If true, saves document as draft (no emails sent). If false, sends signature requests immediately.\").optional(),\n files: z.array(z.object({\n name: z.string().describe(\"Friendly name for this file (e.g., 'Contract.pdf').\"),\n file_url: z.string().describe(\"Public URL to fetch the file. Either file_url or file_base64 is required.\").optional(),\n file_base64: z.string().describe(\"Base64-encoded file content. Either file_url or file_base64 is required.\").optional(),\n}).describe(\"A file to include in the document. Specify exactly one of file_url or file_base64.\")).describe(\"List of files to include in the document. At least one file is required.\"),\n message: z.string().describe(\"Email message for the signature request. Defaults to system or template message.\").optional(),\n subject: z.string().describe(\"Email subject for the signature request. Defaults to system or template subject.\").optional(),\n language: z.string().describe(\"ISO 639-1 code for localization (e.g., en, fr, es). Defaults to en.\").optional(),\n metadata: z.object({}).describe(\"Optional key/value data associated with the document.\").optional(),\n reminders: z.boolean().default(true).describe(\"If true, sends reminders on day 3, 6, and 10.\").optional(),\n test_mode: z.boolean().default(false).describe(\"Set to true to enable Test Mode (not legally binding & not billed). Defaults to false.\").optional(),\n text_tags: z.boolean().default(false).describe(\"If true, you may place fields via special text tags in your document.\").optional(),\n expires_in: z.number().int().describe(\"Number of days before the request expires (>=1). Defaults to account or template setting.\").optional(),\n recipients: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the recipient, used to track their signing status.\"),\n name: z.string().describe(\"Full name of the recipient.\"),\n email: z.string().describe(\"Email address of the recipient.\"),\n}).describe(\"A person who must complete and/or sign the document.\")).describe(\"People who must complete and/or sign this document.\"),\n redirect_url: z.string().describe(\"URL to redirect recipients to after successful signing.\").optional(),\n allow_decline: z.boolean().default(true).describe(\"If true, recipients may decline to sign (which cancels the request).\").optional(),\n allow_reassign: z.boolean().default(true).describe(\"If true, signers may reassign their signing responsibility.\").optional(),\n embedded_signing: z.boolean().default(false).describe(\"If true, enables embedded signing (iframe) and disables email auth.\").optional(),\n api_application_id: z.string().describe(\"UUID of API Application settings to use (optional).\").optional(),\n apply_signing_order: z.boolean().default(false).describe(\"If true, enforces signing in the order provided by recipients.\").optional(),\n with_signature_page: z.boolean().default(false).describe(\"If true, appends a signature page to the end and requires signing there.\").optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect recipients to if they decline to sign.\").optional(),\n custom_requester_name: z.string().describe(\"Custom name used in all email communications and audit records.\").optional(),\n custom_requester_email: z.string().describe(\"Custom email used in communications instead of the API key owner.\").optional(),\n embedded_signing_notifications: z.boolean().default(false).describe(\"If true, sends completion notifications when using embedded signing.\").optional(),\n}).describe(\"Request model for creating and optionally sending a new document for signing.\");\nconst SignwellCreateDocument_FileResponseSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the file.\"),\n pages_number: z.number().int().describe(\"Number of pages in the file.\"),\n}).describe(\"Response model for a file in the created document.\");\nconst SignwellCreateDocument_RecipientResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The recipient's unique identifier.\"),\n name: z.string().describe(\"Full name of the recipient.\"),\n email: z.string().describe(\"Email address of the recipient.\"),\n status: z.string().describe(\"Recipient's signing status (e.g., 'created', 'sent', 'completed').\"),\n signing_url: z.string().describe(\"URL for the recipient to sign the document (for standard signing).\").nullable().optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient signs.\"),\n embedded_signing_url: z.string().describe(\"URL for embedded signing (when embedded_signing is enabled).\").nullable().optional(),\n}).describe(\"Response model for a recipient after document creation.\");\nexport const SignwellCreateDocumentOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the new document.\"),\n name: z.string().describe(\"Name of the document (derived from the first file).\"),\n files: z.array(SignwellCreateDocument_FileResponseSchema).describe(\"List of files included in the document.\"),\n status: z.string().describe(\"Current status of the document (e.g., 'Created', 'Pending', 'Completed').\"),\n test_mode: z.boolean().describe(\"Whether the document is in test mode (not legally binding).\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the document was created.\"),\n expires_in: z.number().int().describe(\"Number of days before the signing request expires.\"),\n recipients: z.array(SignwellCreateDocument_RecipientResponseSchema).describe(\"List of recipients with their signing URLs and status.\"),\n embedded_edit_url: z.string().describe(\"URL to edit the document in SignWell's editor.\").nullable().optional(),\n}).describe(\"Response model after creating a document.\");\n\nexport const signwellCreateDocument = action(\"SIGNWELL_CREATE_DOCUMENT\", {\n slug: \"signwell-create-document\",\n name: \"Create Document\",\n description: \"Tool to create and optionally send a new document for signing. Use when you have files and recipients defined and want to programmatically submit a signature request in one call.\",\n input: SignwellCreateDocumentInput,\n output: SignwellCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1J,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACpH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,CAAC,SAAS,0EAA0E;CACpL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC1H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC1H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxG,WAAW,EAAE,QAAQ,CAAC,CAAC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C;EAC5G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;EACvG,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D;EAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;EAC1F,YAAY,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,wDAAwD;EACrI,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateDocumentInput = z.object({\n draft: z.boolean().default(false).describe(\"If true, saves document as draft (no emails sent). If false, sends signature requests immediately.\").optional(),\n files: z.array(z.object({\n name: z.string().describe(\"Friendly name for this file (e.g., 'Contract.pdf').\"),\n file_url: z.string().describe(\"Public URL to fetch the file. Either file_url or file_base64 is required.\").optional(),\n file_base64: z.string().describe(\"Base64-encoded file content. Either file_url or file_base64 is required.\").optional(),\n}).passthrough().describe(\"A file to include in the document. Specify exactly one of file_url or file_base64.\")).describe(\"List of files to include in the document. At least one file is required.\"),\n message: z.string().describe(\"Email message for the signature request. Defaults to system or template message.\").optional(),\n subject: z.string().describe(\"Email subject for the signature request. Defaults to system or template subject.\").optional(),\n language: z.string().describe(\"ISO 639-1 code for localization (e.g., en, fr, es). Defaults to en.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional key/value data associated with the document.\").optional(),\n reminders: z.boolean().default(true).describe(\"If true, sends reminders on day 3, 6, and 10.\").optional(),\n test_mode: z.boolean().default(false).describe(\"Set to true to enable Test Mode (not legally binding & not billed). Defaults to false.\").optional(),\n text_tags: z.boolean().default(false).describe(\"If true, you may place fields via special text tags in your document.\").optional(),\n expires_in: z.number().int().describe(\"Number of days before the request expires (>=1). Defaults to account or template setting.\").optional(),\n recipients: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the recipient, used to track their signing status.\"),\n name: z.string().describe(\"Full name of the recipient.\"),\n email: z.string().describe(\"Email address of the recipient.\"),\n}).passthrough().describe(\"A person who must complete and/or sign the document.\")).describe(\"People who must complete and/or sign this document.\"),\n redirect_url: z.string().describe(\"URL to redirect recipients to after successful signing.\").optional(),\n allow_decline: z.boolean().default(true).describe(\"If true, recipients may decline to sign (which cancels the request).\").optional(),\n allow_reassign: z.boolean().default(true).describe(\"If true, signers may reassign their signing responsibility.\").optional(),\n embedded_signing: z.boolean().default(false).describe(\"If true, enables embedded signing (iframe) and disables email auth.\").optional(),\n api_application_id: z.string().describe(\"UUID of API Application settings to use (optional).\").optional(),\n apply_signing_order: z.boolean().default(false).describe(\"If true, enforces signing in the order provided by recipients.\").optional(),\n with_signature_page: z.boolean().default(false).describe(\"If true, appends a signature page to the end and requires signing there.\").optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect recipients to if they decline to sign.\").optional(),\n custom_requester_name: z.string().describe(\"Custom name used in all email communications and audit records.\").optional(),\n custom_requester_email: z.string().describe(\"Custom email used in communications instead of the API key owner.\").optional(),\n embedded_signing_notifications: z.boolean().default(false).describe(\"If true, sends completion notifications when using embedded signing.\").optional(),\n}).describe(\"Request model for creating and optionally sending a new document for signing.\");\nconst SignwellCreateDocument_FileResponseSchema = z.object({\n name: z.string().describe(\"Name of the file.\").nullable(),\n pages_number: z.number().int().describe(\"Number of pages in the file.\").nullable(),\n}).passthrough().describe(\"Response model for a file in the created document.\");\nconst SignwellCreateDocument_RecipientResponseSchema = z.object({\n id: z.string().describe(\"The recipient's unique identifier.\").nullable(),\n name: z.string().describe(\"Full name of the recipient.\").nullable(),\n email: z.string().describe(\"Email address of the recipient.\").nullable(),\n status: z.string().describe(\"Recipient's signing status (e.g., 'created', 'sent', 'completed').\").nullable(),\n signing_url: z.string().describe(\"URL for the recipient to sign the document (for standard signing).\").nullable().optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient signs.\").nullable(),\n embedded_signing_url: z.string().describe(\"URL for embedded signing (when embedded_signing is enabled).\").nullable().optional(),\n}).passthrough().describe(\"Response model for a recipient after document creation.\");\nexport const SignwellCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new document.\").nullable(),\n name: z.string().describe(\"Name of the document (derived from the first file).\").nullable(),\n files: z.array(SignwellCreateDocument_FileResponseSchema).describe(\"List of files included in the document.\"),\n status: z.string().describe(\"Current status of the document (e.g., 'Created', 'Pending', 'Completed').\").nullable(),\n test_mode: z.boolean().describe(\"Whether the document is in test mode (not legally binding).\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the document was created.\").nullable(),\n expires_in: z.number().int().describe(\"Number of days before the signing request expires.\").nullable(),\n recipients: z.array(SignwellCreateDocument_RecipientResponseSchema).describe(\"List of recipients with their signing URLs and status.\"),\n embedded_edit_url: z.string().describe(\"URL to edit the document in SignWell's editor.\").nullable().optional(),\n}).passthrough().describe(\"Response model after creating a document.\");\n\nexport const signwellCreateDocument = action(\"SIGNWELL_CREATE_DOCUMENT\", {\n slug: \"signwell-create-document\",\n name: \"Create Document\",\n description: \"Tool to create and optionally send a new document for signing. Use when you have files and recipients defined and want to programmatically submit a signature request in one call.\",\n input: SignwellCreateDocumentInput,\n output: SignwellCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC1J,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;E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CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -6,9 +6,9 @@ const SignwellCreateWebhookInput = zod.z.object({
|
|
|
6
6
|
apiApplicationId: zod.z.string().describe("UUID of the API Application to associate with this webhook.").optional()
|
|
7
7
|
}).describe("Request model for registering a webhook callback URL.");
|
|
8
8
|
const SignwellCreateWebhookOutput = zod.z.object({
|
|
9
|
-
id: zod.z.string().describe("Unique identifier of the new webhook."),
|
|
10
|
-
callback_url: zod.z.string().describe("The registered callback URL.")
|
|
11
|
-
}).describe("Response model after creating a webhook.");
|
|
9
|
+
id: zod.z.string().describe("Unique identifier of the new webhook.").nullable(),
|
|
10
|
+
callback_url: zod.z.string().describe("The registered callback URL.").nullable()
|
|
11
|
+
}).passthrough().describe("Response model after creating a webhook.");
|
|
12
12
|
const signwellCreateWebhook = require_action.action("SIGNWELL_CREATE_WEBHOOK", {
|
|
13
13
|
slug: "signwell-create-webhook",
|
|
14
14
|
name: "Create Webhook",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-webhook.cjs","names":["z","action"],"sources":["../../src/actions/create-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateWebhookInput
|
|
1
|
+
{"version":3,"file":"create-webhook.cjs","names":["z","action"],"sources":["../../src/actions/create-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateWebhookInput = z.object({\n callbackUrl: z.string().describe(\"URL where SignWell will post document event payloads.\"),\n apiApplicationId: z.string().describe(\"UUID of the API Application to associate with this webhook.\").optional(),\n}).describe(\"Request model for registering a webhook callback URL.\");\nexport const SignwellCreateWebhookOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new webhook.\").nullable(),\n callback_url: z.string().describe(\"The registered callback URL.\").nullable(),\n}).passthrough().describe(\"Response model after creating a webhook.\");\n\nexport const signwellCreateWebhook = action(\"SIGNWELL_CREATE_WEBHOOK\", {\n slug: \"signwell-create-webhook\",\n name: \"Create Webhook\",\n description: \"Tool to register a webhook callback URL. Use when you need to receive document event notifications.\",\n input: SignwellCreateWebhookInput,\n output: SignwellCreateWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACxF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-webhook.d.ts
|
|
4
|
-
declare const SignwellCreateWebhookInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SignwellCreateWebhookInput: z.ZodObject<{
|
|
5
|
+
callbackUrl: z.ZodString;
|
|
6
|
+
apiApplicationId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SignwellCreateWebhookOutput: z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
callback_url: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
|
+
declare const signwellCreateWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
callbackUrl: string;
|
|
14
|
+
apiApplicationId?: string | undefined;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { signwellCreateWebhook };
|
|
9
18
|
//# sourceMappingURL=create-webhook.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-webhook.d.cts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-webhook.d.cts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-webhook.d.ts
|
|
4
|
-
declare const SignwellCreateWebhookInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SignwellCreateWebhookInput: z.ZodObject<{
|
|
5
|
+
callbackUrl: z.ZodString;
|
|
6
|
+
apiApplicationId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SignwellCreateWebhookOutput: z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
callback_url: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
|
+
declare const signwellCreateWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
callbackUrl: string;
|
|
14
|
+
apiApplicationId?: string | undefined;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { signwellCreateWebhook };
|
|
9
18
|
//# sourceMappingURL=create-webhook.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-webhook.d.mts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-webhook.d.mts","names":[],"sources":["../../src/actions/create-webhook.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -9,9 +9,9 @@ const signwellCreateWebhook = action("SIGNWELL_CREATE_WEBHOOK", {
|
|
|
9
9
|
apiApplicationId: z.string().describe("UUID of the API Application to associate with this webhook.").optional()
|
|
10
10
|
}).describe("Request model for registering a webhook callback URL."),
|
|
11
11
|
output: z.object({
|
|
12
|
-
id: z.string().describe("Unique identifier of the new webhook."),
|
|
13
|
-
callback_url: z.string().describe("The registered callback URL.")
|
|
14
|
-
}).describe("Response model after creating a webhook.")
|
|
12
|
+
id: z.string().describe("Unique identifier of the new webhook.").nullable(),
|
|
13
|
+
callback_url: z.string().describe("The registered callback URL.").nullable()
|
|
14
|
+
}).passthrough().describe("Response model after creating a webhook.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { signwellCreateWebhook };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-webhook.mjs","names":[],"sources":["../../src/actions/create-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateWebhookInput
|
|
1
|
+
{"version":3,"file":"create-webhook.mjs","names":[],"sources":["../../src/actions/create-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellCreateWebhookInput = z.object({\n callbackUrl: z.string().describe(\"URL where SignWell will post document event payloads.\"),\n apiApplicationId: z.string().describe(\"UUID of the API Application to associate with this webhook.\").optional(),\n}).describe(\"Request model for registering a webhook callback URL.\");\nexport const SignwellCreateWebhookOutput = z.object({\n id: z.string().describe(\"Unique identifier of the new webhook.\").nullable(),\n callback_url: z.string().describe(\"The registered callback URL.\").nullable(),\n}).passthrough().describe(\"Response model after creating a webhook.\");\n\nexport const signwellCreateWebhook = action(\"SIGNWELL_CREATE_WEBHOOK\", {\n slug: \"signwell-create-webhook\",\n name: \"Create Webhook\",\n description: \"Tool to register a webhook callback URL. Use when you need to receive document event notifications.\",\n input: SignwellCreateWebhookInput,\n output: SignwellCreateWebhookOutput,\n});\n"],"mappings":";;AAaA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbwC,EAAE,OAAO;EACjD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACxF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,uDAUH;CACP,QAVyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const SignwellDeleteDocumentInput = zod.z.object({ id: zod.z.string().describe("
|
|
|
5
5
|
const SignwellDeleteDocumentOutput = zod.z.object({
|
|
6
6
|
deleted: zod.z.boolean().default(true).describe("Indicates whether the document was successfully deleted.").nullable().optional(),
|
|
7
7
|
message: zod.z.string().default("Document deleted successfully").describe("Confirmation message describing the result of the deletion.").nullable().optional()
|
|
8
|
-
}).describe("Response model for document deletion confirmation.");
|
|
8
|
+
}).passthrough().describe("Response model for document deletion confirmation.");
|
|
9
9
|
const signwellDeleteDocument = require_action.action("SIGNWELL_DELETE_DOCUMENT", {
|
|
10
10
|
slug: "signwell-delete-document",
|
|
11
11
|
name: "Delete Document",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-document.cjs","names":["z","action"],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellDeleteDocumentInput
|
|
1
|
+
{"version":3,"file":"delete-document.cjs","names":["z","action"],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellDeleteDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier (UUID) of the document to delete. This ID is returned when creating a document via SIGNWELL_CREATE_DOCUMENT or can be retrieved using SIGNWELL_GET_DOCUMENT.\"),\n}).describe(\"Request model for deleting a document.\");\nexport const SignwellDeleteDocumentOutput = z.object({\n deleted: z.boolean().default(true).describe(\"Indicates whether the document was successfully deleted.\").nullable().optional(),\n message: z.string().default(\"Document deleted successfully\").describe(\"Confirmation message describing the result of the deletion.\").nullable().optional(),\n}).passthrough().describe(\"Response model for document deletion confirmation.\");\n\nexport const signwellDeleteDocument = action(\"SIGNWELL_DELETE_DOCUMENT\", {\n slug: \"signwell-delete-document\",\n name: \"Delete Document\",\n description: \"Tool to delete a document (and cancel signing if in progress). Use when you need to remove a document by ID after confirming it.\",\n input: SignwellDeleteDocumentInput,\n output: SignwellDeleteDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,EAC9M,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,+BAA+B,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-document.d.ts
|
|
4
|
-
declare const SignwellDeleteDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SignwellDeleteDocumentInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SignwellDeleteDocumentOutput: z.ZodObject<{
|
|
8
|
+
deleted: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
9
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const signwellDeleteDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
id: string;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { signwellDeleteDocument };
|
|
9
16
|
//# sourceMappingURL=delete-document.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-document.d.cts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"delete-document.d.cts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-document.d.ts
|
|
4
|
-
declare const SignwellDeleteDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SignwellDeleteDocumentInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SignwellDeleteDocumentOutput: z.ZodObject<{
|
|
8
|
+
deleted: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
9
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const signwellDeleteDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
id: string;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { signwellDeleteDocument };
|
|
9
16
|
//# sourceMappingURL=delete-document.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-document.d.mts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"delete-document.d.mts","names":[],"sources":["../../src/actions/delete-document.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -8,7 +8,7 @@ const signwellDeleteDocument = action("SIGNWELL_DELETE_DOCUMENT", {
|
|
|
8
8
|
output: z.object({
|
|
9
9
|
deleted: z.boolean().default(true).describe("Indicates whether the document was successfully deleted.").nullable().optional(),
|
|
10
10
|
message: z.string().default("Document deleted successfully").describe("Confirmation message describing the result of the deletion.").nullable().optional()
|
|
11
|
-
}).describe("Response model for document deletion confirmation.")
|
|
11
|
+
}).passthrough().describe("Response model for document deletion confirmation.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { signwellDeleteDocument };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-document.mjs","names":[],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellDeleteDocumentInput
|
|
1
|
+
{"version":3,"file":"delete-document.mjs","names":[],"sources":["../../src/actions/delete-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellDeleteDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier (UUID) of the document to delete. This ID is returned when creating a document via SIGNWELL_CREATE_DOCUMENT or can be retrieved using SIGNWELL_GET_DOCUMENT.\"),\n}).describe(\"Request model for deleting a document.\");\nexport const SignwellDeleteDocumentOutput = z.object({\n deleted: z.boolean().default(true).describe(\"Indicates whether the document was successfully deleted.\").nullable().optional(),\n message: z.string().default(\"Document deleted successfully\").describe(\"Confirmation message describing the result of the deletion.\").nullable().optional(),\n}).passthrough().describe(\"Response model for document deletion confirmation.\");\n\nexport const signwellDeleteDocument = action(\"SIGNWELL_DELETE_DOCUMENT\", {\n slug: \"signwell-delete-document\",\n name: \"Delete Document\",\n description: \"Tool to delete a document (and cancel signing if in progress). Use when you need to remove a document by ID after confirming it.\",\n input: SignwellDeleteDocumentInput,\n output: SignwellDeleteDocumentOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyC,EAAE,OAAO,EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,EAC9M,CAAC,CAAC,CAAC,SAAS,wCAUH;CACP,QAV0C,EAAE,OAAO;EACnD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,+BAA+B,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/delete-webhook.ts
|
|
4
4
|
const SignwellDeleteWebhookInput = zod.z.object({ id: zod.z.string().describe("The UUID of the webhook to delete. Obtain this from the list webhooks action.") }).describe("Request model for deleting a webhook.");
|
|
5
|
-
const SignwellDeleteWebhookOutput = zod.z.
|
|
5
|
+
const SignwellDeleteWebhookOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty response returned after successful deletion (no content).");
|
|
6
6
|
const signwellDeleteWebhook = require_action.action("SIGNWELL_DELETE_WEBHOOK", {
|
|
7
7
|
slug: "signwell-delete-webhook",
|
|
8
8
|
name: "Delete Webhook",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-webhook.cjs","names":["z","action"],"sources":["../../src/actions/delete-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellDeleteWebhookInput
|
|
1
|
+
{"version":3,"file":"delete-webhook.cjs","names":["z","action"],"sources":["../../src/actions/delete-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellDeleteWebhookInput = z.object({\n id: z.string().describe(\"The UUID of the webhook to delete. Obtain this from the list webhooks action.\"),\n}).describe(\"Request model for deleting a webhook.\");\nexport const SignwellDeleteWebhookOutput = z.record(z.string(), z.unknown()).describe(\"Empty response returned after successful deletion (no content).\");\n\nexport const signwellDeleteWebhook = action(\"SIGNWELL_DELETE_WEBHOOK\", {\n slug: \"signwell-delete-webhook\",\n name: \"Delete Webhook\",\n description: \"Deletes a registered webhook by its ID. Use this to remove webhooks that are no longer needed. Returns no content on success.\",\n input: SignwellDeleteWebhookInput,\n output: SignwellDeleteWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,EACzG,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,8BAA8BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAEvJ,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-webhook.d.ts
|
|
4
|
-
declare const SignwellDeleteWebhookInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SignwellDeleteWebhookInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SignwellDeleteWebhookOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
|
+
declare const signwellDeleteWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
9
|
+
id: string;
|
|
10
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
11
|
//#endregion
|
|
8
12
|
export { signwellDeleteWebhook };
|
|
9
13
|
//# sourceMappingURL=delete-webhook.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-webhook.d.cts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"delete-webhook.d.cts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-webhook.d.ts
|
|
4
|
-
declare const SignwellDeleteWebhookInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SignwellDeleteWebhookInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SignwellDeleteWebhookOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
|
+
declare const signwellDeleteWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
9
|
+
id: string;
|
|
10
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
11
|
//#endregion
|
|
8
12
|
export { signwellDeleteWebhook };
|
|
9
13
|
//# sourceMappingURL=delete-webhook.d.mts.map
|