@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-webhook.d.mts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"delete-webhook.d.mts","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"}
|
|
@@ -5,7 +5,7 @@ const signwellDeleteWebhook = action("SIGNWELL_DELETE_WEBHOOK", {
|
|
|
5
5
|
name: "Delete Webhook",
|
|
6
6
|
description: "Deletes a registered webhook by its ID. Use this to remove webhooks that are no longer needed. Returns no content on success.",
|
|
7
7
|
input: z.object({ id: z.string().describe("The UUID of the webhook to delete. Obtain this from the list webhooks action.") }).describe("Request model for deleting a webhook."),
|
|
8
|
-
output: z.
|
|
8
|
+
output: z.record(z.string(), z.unknown()).describe("Empty response returned after successful deletion (no content).")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { signwellDeleteWebhook };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-webhook.mjs","names":[],"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.mjs","names":[],"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":";;AASA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATwC,EAAE,OAAO,EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,EACzG,CAAC,CAAC,CAAC,SAAS,uCAOH;CACP,QAPyC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAO5E;AACV,CAAC"}
|
|
@@ -3,48 +3,48 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-credentials.ts
|
|
4
4
|
const SignwellGetCredentialsInput = zod.z.object({}).describe("Request model for retrieving account information. No parameters required.");
|
|
5
5
|
const SignwellGetCredentials_UserInfoSchema = zod.z.object({
|
|
6
|
-
id: zod.z.string().describe("Unique identifier for the user"),
|
|
7
|
-
name: zod.z.string().describe("Full name of the user"),
|
|
8
|
-
email: zod.z.string().describe("Email address of the user"),
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the user").nullable(),
|
|
7
|
+
name: zod.z.string().describe("Full name of the user").nullable(),
|
|
8
|
+
email: zod.z.string().describe("Email address of the user").nullable(),
|
|
9
9
|
first_name: zod.z.string().describe("First name of the user").nullable().optional(),
|
|
10
10
|
has_google_registration: zod.z.boolean().default(false).describe("Whether user registered via Google").nullable().optional()
|
|
11
|
-
}).describe("Current authenticated user information.");
|
|
11
|
+
}).passthrough().describe("Current authenticated user information.");
|
|
12
12
|
const SignwellGetCredentials_ActiveUserSchema = zod.z.object({
|
|
13
|
-
id: zod.z.string().describe("Unique identifier for the user"),
|
|
14
|
-
name: zod.z.string().describe("Full name of the user"),
|
|
15
|
-
email: zod.z.string().describe("Email address of the user"),
|
|
13
|
+
id: zod.z.string().describe("Unique identifier for the user").nullable(),
|
|
14
|
+
name: zod.z.string().describe("Full name of the user").nullable(),
|
|
15
|
+
email: zod.z.string().describe("Email address of the user").nullable(),
|
|
16
16
|
has_google_registration: zod.z.boolean().default(false).describe("Whether user registered via Google").nullable().optional()
|
|
17
|
-
}).describe("A user within the account/workspace.");
|
|
17
|
+
}).passthrough().describe("A user within the account/workspace.");
|
|
18
18
|
const SignwellGetCredentials_AccountInfoSchema = zod.z.object({
|
|
19
|
-
id: zod.z.string().describe("Unique identifier for the account"),
|
|
20
|
-
name: zod.z.string().describe("Name of the account"),
|
|
21
|
-
plan_tier: zod.z.string().describe("Current plan tier (e.g., 'free', 'pro')"),
|
|
19
|
+
id: zod.z.string().describe("Unique identifier for the account").nullable(),
|
|
20
|
+
name: zod.z.string().describe("Name of the account").nullable(),
|
|
21
|
+
plan_tier: zod.z.string().describe("Current plan tier (e.g., 'free', 'pro')").nullable(),
|
|
22
22
|
active_users: zod.z.array(SignwellGetCredentials_ActiveUserSchema).describe("List of active users in the account").nullable().optional(),
|
|
23
23
|
active_templates: zod.z.number().int().default(0).describe("Number of active templates").nullable().optional(),
|
|
24
24
|
can_create_template: zod.z.boolean().default(true).describe("Whether user can create templates").nullable().optional(),
|
|
25
25
|
can_create_tracking_document: zod.z.boolean().default(true).describe("Whether user can create tracking documents").nullable().optional(),
|
|
26
26
|
can_create_completion_document: zod.z.boolean().default(true).describe("Whether user can create completion documents").nullable().optional()
|
|
27
|
-
}).describe("Account/workspace information.");
|
|
27
|
+
}).passthrough().describe("Account/workspace information.");
|
|
28
28
|
const SignwellGetCredentials_ContactInfoSchema = zod.z.object({
|
|
29
|
-
id: zod.z.string().describe("Unique identifier for the contact"),
|
|
30
|
-
name: zod.z.string().describe("Full name"),
|
|
31
|
-
email: zod.z.string().describe("Email address"),
|
|
29
|
+
id: zod.z.string().describe("Unique identifier for the contact").nullable(),
|
|
30
|
+
name: zod.z.string().describe("Full name").nullable(),
|
|
31
|
+
email: zod.z.string().describe("Email address").nullable(),
|
|
32
32
|
website: zod.z.string().describe("Website URL").nullable().optional(),
|
|
33
33
|
archived: zod.z.boolean().default(false).describe("Whether contact is archived").nullable().optional(),
|
|
34
34
|
initials: zod.z.string().describe("User initials").nullable().optional(),
|
|
35
35
|
company_name: zod.z.string().describe("Company name").nullable().optional(),
|
|
36
36
|
phone_number: zod.z.string().describe("Primary phone number").nullable().optional(),
|
|
37
37
|
alt_phone_number: zod.z.string().describe("Alternative phone number").nullable().optional()
|
|
38
|
-
}).describe("Contact information for the authenticated user.");
|
|
38
|
+
}).passthrough().describe("Contact information for the authenticated user.");
|
|
39
39
|
const SignwellGetCredentialsOutput = zod.z.object({
|
|
40
|
-
id: zod.z.string().describe("Unique membership ID for the user-account relationship"),
|
|
41
|
-
role: zod.z.string().describe("User's role in the account (e.g., 'owner', 'admin', 'user')"),
|
|
40
|
+
id: zod.z.string().describe("Unique membership ID for the user-account relationship").nullable(),
|
|
41
|
+
role: zod.z.string().describe("User's role in the account (e.g., 'owner', 'admin', 'user')").nullable(),
|
|
42
42
|
user: SignwellGetCredentials_UserInfoSchema.nullable(),
|
|
43
43
|
account: SignwellGetCredentials_AccountInfoSchema.nullable(),
|
|
44
44
|
contact: SignwellGetCredentials_ContactInfoSchema.nullable(),
|
|
45
45
|
archived: zod.z.boolean().default(false).describe("Whether membership is archived").nullable().optional(),
|
|
46
46
|
workspace: SignwellGetCredentials_AccountInfoSchema.nullable()
|
|
47
|
-
}).describe("Account information associated with the current API key.");
|
|
47
|
+
}).passthrough().describe("Account information associated with the current API key.");
|
|
48
48
|
const signwellGetCredentials = require_action.action("SIGNWELL_GET_CREDENTIALS", {
|
|
49
49
|
slug: "signwell-get-credentials",
|
|
50
50
|
name: "Get Credentials",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-credentials.cjs","names":["z","action"],"sources":["../../src/actions/get-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellGetCredentialsInput
|
|
1
|
+
{"version":3,"file":"get-credentials.cjs","names":["z","action"],"sources":["../../src/actions/get-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellGetCredentialsInput = z.object({}).describe(\"Request model for retrieving account information. No parameters required.\");\nconst SignwellGetCredentials_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n has_google_registration: z.boolean().default(false).describe(\"Whether user registered via Google\").nullable().optional(),\n}).passthrough().describe(\"Current authenticated user information.\");\nconst SignwellGetCredentials_ActiveUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n has_google_registration: z.boolean().default(false).describe(\"Whether user registered via Google\").nullable().optional(),\n}).passthrough().describe(\"A user within the account/workspace.\");\nconst SignwellGetCredentials_AccountInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the account\").nullable(),\n name: z.string().describe(\"Name of the account\").nullable(),\n plan_tier: z.string().describe(\"Current plan tier (e.g., 'free', 'pro')\").nullable(),\n active_users: z.array(SignwellGetCredentials_ActiveUserSchema).describe(\"List of active users in the account\").nullable().optional(),\n active_templates: z.number().int().default(0).describe(\"Number of active templates\").nullable().optional(),\n can_create_template: z.boolean().default(true).describe(\"Whether user can create templates\").nullable().optional(),\n can_create_tracking_document: z.boolean().default(true).describe(\"Whether user can create tracking documents\").nullable().optional(),\n can_create_completion_document: z.boolean().default(true).describe(\"Whether user can create completion documents\").nullable().optional(),\n}).passthrough().describe(\"Account/workspace information.\");\nconst SignwellGetCredentials_ContactInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the contact\").nullable(),\n name: z.string().describe(\"Full name\").nullable(),\n email: z.string().describe(\"Email address\").nullable(),\n website: z.string().describe(\"Website URL\").nullable().optional(),\n archived: z.boolean().default(false).describe(\"Whether contact is archived\").nullable().optional(),\n initials: z.string().describe(\"User initials\").nullable().optional(),\n company_name: z.string().describe(\"Company name\").nullable().optional(),\n phone_number: z.string().describe(\"Primary phone number\").nullable().optional(),\n alt_phone_number: z.string().describe(\"Alternative phone number\").nullable().optional(),\n}).passthrough().describe(\"Contact information for the authenticated user.\");\nexport const SignwellGetCredentialsOutput = z.object({\n id: z.string().describe(\"Unique membership ID for the user-account relationship\").nullable(),\n role: z.string().describe(\"User's role in the account (e.g., 'owner', 'admin', 'user')\").nullable(),\n user: SignwellGetCredentials_UserInfoSchema.nullable(),\n account: SignwellGetCredentials_AccountInfoSchema.nullable(),\n contact: SignwellGetCredentials_ContactInfoSchema.nullable(),\n archived: z.boolean().default(false).describe(\"Whether membership is archived\").nullable().optional(),\n workspace: SignwellGetCredentials_AccountInfoSchema.nullable(),\n}).passthrough().describe(\"Account information associated with the current API key.\");\n\nexport const signwellGetCredentials = action(\"SIGNWELL_GET_CREDENTIALS\", {\n slug: \"signwell-get-credentials\",\n name: \"Get Credentials\",\n description: \"Retrieve account information for the authenticated API key. Returns comprehensive details including user profile, account settings, workspace configuration, and contact information. Use this to validate API credentials, check account capabilities (like template creation limits), or get user/account IDs for other API calls.\",\n input: SignwellGetCredentialsInput,\n output: SignwellGetCredentialsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAC5I,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,yBAAyBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAg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AAS;CAC3D,SAAS,yCAAyC,SAAS;CAC3D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,WAAW,yCAAyC,SAAS;AAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,61 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-credentials.d.ts
|
|
4
|
-
declare const SignwellGetCredentialsInput: z.
|
|
5
|
-
declare const SignwellGetCredentialsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SignwellGetCredentialsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SignwellGetCredentialsOutput: z.ZodObject<{
|
|
6
|
+
id: z.ZodNullable<z.ZodString>;
|
|
7
|
+
role: z.ZodNullable<z.ZodString>;
|
|
8
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
email: z.ZodNullable<z.ZodString>;
|
|
12
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
has_google_registration: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
plan_tier: z.ZodNullable<z.ZodString>;
|
|
19
|
+
active_users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodNullable<z.ZodString>;
|
|
21
|
+
name: z.ZodNullable<z.ZodString>;
|
|
22
|
+
email: z.ZodNullable<z.ZodString>;
|
|
23
|
+
has_google_registration: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
24
|
+
}, z.core.$loose>>>>;
|
|
25
|
+
active_templates: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
26
|
+
can_create_template: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
27
|
+
can_create_tracking_document: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
28
|
+
can_create_completion_document: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
contact: z.ZodNullable<z.ZodObject<{
|
|
31
|
+
id: z.ZodNullable<z.ZodString>;
|
|
32
|
+
name: z.ZodNullable<z.ZodString>;
|
|
33
|
+
email: z.ZodNullable<z.ZodString>;
|
|
34
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
archived: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
36
|
+
initials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
alt_phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
archived: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
42
|
+
workspace: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
id: z.ZodNullable<z.ZodString>;
|
|
44
|
+
name: z.ZodNullable<z.ZodString>;
|
|
45
|
+
plan_tier: z.ZodNullable<z.ZodString>;
|
|
46
|
+
active_users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
|
+
id: z.ZodNullable<z.ZodString>;
|
|
48
|
+
name: z.ZodNullable<z.ZodString>;
|
|
49
|
+
email: z.ZodNullable<z.ZodString>;
|
|
50
|
+
has_google_registration: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
51
|
+
}, z.core.$loose>>>>;
|
|
52
|
+
active_templates: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
53
|
+
can_create_template: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
54
|
+
can_create_tracking_document: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
55
|
+
can_create_completion_document: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>;
|
|
58
|
+
declare const signwellGetCredentials: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
59
|
//#endregion
|
|
8
60
|
export { signwellGetCredentials };
|
|
9
61
|
//# sourceMappingURL=get-credentials.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-credentials.d.cts","names":[],"sources":["../../src/actions/get-credentials.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-credentials.d.cts","names":[],"sources":["../../src/actions/get-credentials.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAmC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU5B,sBAAA,gCAAsB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,61 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-credentials.d.ts
|
|
4
|
-
declare const SignwellGetCredentialsInput: z.
|
|
5
|
-
declare const SignwellGetCredentialsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SignwellGetCredentialsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SignwellGetCredentialsOutput: z.ZodObject<{
|
|
6
|
+
id: z.ZodNullable<z.ZodString>;
|
|
7
|
+
role: z.ZodNullable<z.ZodString>;
|
|
8
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
email: z.ZodNullable<z.ZodString>;
|
|
12
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
has_google_registration: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
id: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
plan_tier: z.ZodNullable<z.ZodString>;
|
|
19
|
+
active_users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodNullable<z.ZodString>;
|
|
21
|
+
name: z.ZodNullable<z.ZodString>;
|
|
22
|
+
email: z.ZodNullable<z.ZodString>;
|
|
23
|
+
has_google_registration: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
24
|
+
}, z.core.$loose>>>>;
|
|
25
|
+
active_templates: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
26
|
+
can_create_template: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
27
|
+
can_create_tracking_document: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
28
|
+
can_create_completion_document: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
contact: z.ZodNullable<z.ZodObject<{
|
|
31
|
+
id: z.ZodNullable<z.ZodString>;
|
|
32
|
+
name: z.ZodNullable<z.ZodString>;
|
|
33
|
+
email: z.ZodNullable<z.ZodString>;
|
|
34
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
archived: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
36
|
+
initials: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
company_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
alt_phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
archived: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
42
|
+
workspace: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
id: z.ZodNullable<z.ZodString>;
|
|
44
|
+
name: z.ZodNullable<z.ZodString>;
|
|
45
|
+
plan_tier: z.ZodNullable<z.ZodString>;
|
|
46
|
+
active_users: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
|
+
id: z.ZodNullable<z.ZodString>;
|
|
48
|
+
name: z.ZodNullable<z.ZodString>;
|
|
49
|
+
email: z.ZodNullable<z.ZodString>;
|
|
50
|
+
has_google_registration: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
51
|
+
}, z.core.$loose>>>>;
|
|
52
|
+
active_templates: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
53
|
+
can_create_template: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
54
|
+
can_create_tracking_document: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
55
|
+
can_create_completion_document: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>;
|
|
58
|
+
declare const signwellGetCredentials: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
59
|
//#endregion
|
|
8
60
|
export { signwellGetCredentials };
|
|
9
61
|
//# sourceMappingURL=get-credentials.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-credentials.d.mts","names":[],"sources":["../../src/actions/get-credentials.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-credentials.d.mts","names":[],"sources":["../../src/actions/get-credentials.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAmC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU5B,sBAAA,gCAAsB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,53 +3,53 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-credentials.ts
|
|
4
4
|
const SignwellGetCredentialsInput = z.object({}).describe("Request model for retrieving account information. No parameters required.");
|
|
5
5
|
const SignwellGetCredentials_UserInfoSchema = z.object({
|
|
6
|
-
id: z.string().describe("Unique identifier for the user"),
|
|
7
|
-
name: z.string().describe("Full name of the user"),
|
|
8
|
-
email: z.string().describe("Email address of the user"),
|
|
6
|
+
id: z.string().describe("Unique identifier for the user").nullable(),
|
|
7
|
+
name: z.string().describe("Full name of the user").nullable(),
|
|
8
|
+
email: z.string().describe("Email address of the user").nullable(),
|
|
9
9
|
first_name: z.string().describe("First name of the user").nullable().optional(),
|
|
10
10
|
has_google_registration: z.boolean().default(false).describe("Whether user registered via Google").nullable().optional()
|
|
11
|
-
}).describe("Current authenticated user information.");
|
|
11
|
+
}).passthrough().describe("Current authenticated user information.");
|
|
12
12
|
const SignwellGetCredentials_ActiveUserSchema = z.object({
|
|
13
|
-
id: z.string().describe("Unique identifier for the user"),
|
|
14
|
-
name: z.string().describe("Full name of the user"),
|
|
15
|
-
email: z.string().describe("Email address of the user"),
|
|
13
|
+
id: z.string().describe("Unique identifier for the user").nullable(),
|
|
14
|
+
name: z.string().describe("Full name of the user").nullable(),
|
|
15
|
+
email: z.string().describe("Email address of the user").nullable(),
|
|
16
16
|
has_google_registration: z.boolean().default(false).describe("Whether user registered via Google").nullable().optional()
|
|
17
|
-
}).describe("A user within the account/workspace.");
|
|
17
|
+
}).passthrough().describe("A user within the account/workspace.");
|
|
18
18
|
const SignwellGetCredentials_AccountInfoSchema = z.object({
|
|
19
|
-
id: z.string().describe("Unique identifier for the account"),
|
|
20
|
-
name: z.string().describe("Name of the account"),
|
|
21
|
-
plan_tier: z.string().describe("Current plan tier (e.g., 'free', 'pro')"),
|
|
19
|
+
id: z.string().describe("Unique identifier for the account").nullable(),
|
|
20
|
+
name: z.string().describe("Name of the account").nullable(),
|
|
21
|
+
plan_tier: z.string().describe("Current plan tier (e.g., 'free', 'pro')").nullable(),
|
|
22
22
|
active_users: z.array(SignwellGetCredentials_ActiveUserSchema).describe("List of active users in the account").nullable().optional(),
|
|
23
23
|
active_templates: z.number().int().default(0).describe("Number of active templates").nullable().optional(),
|
|
24
24
|
can_create_template: z.boolean().default(true).describe("Whether user can create templates").nullable().optional(),
|
|
25
25
|
can_create_tracking_document: z.boolean().default(true).describe("Whether user can create tracking documents").nullable().optional(),
|
|
26
26
|
can_create_completion_document: z.boolean().default(true).describe("Whether user can create completion documents").nullable().optional()
|
|
27
|
-
}).describe("Account/workspace information.");
|
|
27
|
+
}).passthrough().describe("Account/workspace information.");
|
|
28
28
|
const SignwellGetCredentials_ContactInfoSchema = z.object({
|
|
29
|
-
id: z.string().describe("Unique identifier for the contact"),
|
|
30
|
-
name: z.string().describe("Full name"),
|
|
31
|
-
email: z.string().describe("Email address"),
|
|
29
|
+
id: z.string().describe("Unique identifier for the contact").nullable(),
|
|
30
|
+
name: z.string().describe("Full name").nullable(),
|
|
31
|
+
email: z.string().describe("Email address").nullable(),
|
|
32
32
|
website: z.string().describe("Website URL").nullable().optional(),
|
|
33
33
|
archived: z.boolean().default(false).describe("Whether contact is archived").nullable().optional(),
|
|
34
34
|
initials: z.string().describe("User initials").nullable().optional(),
|
|
35
35
|
company_name: z.string().describe("Company name").nullable().optional(),
|
|
36
36
|
phone_number: z.string().describe("Primary phone number").nullable().optional(),
|
|
37
37
|
alt_phone_number: z.string().describe("Alternative phone number").nullable().optional()
|
|
38
|
-
}).describe("Contact information for the authenticated user.");
|
|
38
|
+
}).passthrough().describe("Contact information for the authenticated user.");
|
|
39
39
|
const signwellGetCredentials = action("SIGNWELL_GET_CREDENTIALS", {
|
|
40
40
|
slug: "signwell-get-credentials",
|
|
41
41
|
name: "Get Credentials",
|
|
42
42
|
description: "Retrieve account information for the authenticated API key. Returns comprehensive details including user profile, account settings, workspace configuration, and contact information. Use this to validate API credentials, check account capabilities (like template creation limits), or get user/account IDs for other API calls.",
|
|
43
43
|
input: SignwellGetCredentialsInput,
|
|
44
44
|
output: z.object({
|
|
45
|
-
id: z.string().describe("Unique membership ID for the user-account relationship"),
|
|
46
|
-
role: z.string().describe("User's role in the account (e.g., 'owner', 'admin', 'user')"),
|
|
45
|
+
id: z.string().describe("Unique membership ID for the user-account relationship").nullable(),
|
|
46
|
+
role: z.string().describe("User's role in the account (e.g., 'owner', 'admin', 'user')").nullable(),
|
|
47
47
|
user: SignwellGetCredentials_UserInfoSchema.nullable(),
|
|
48
48
|
account: SignwellGetCredentials_AccountInfoSchema.nullable(),
|
|
49
49
|
contact: SignwellGetCredentials_ContactInfoSchema.nullable(),
|
|
50
50
|
archived: z.boolean().default(false).describe("Whether membership is archived").nullable().optional(),
|
|
51
51
|
workspace: SignwellGetCredentials_AccountInfoSchema.nullable()
|
|
52
|
-
}).describe("Account information associated with the current API key.")
|
|
52
|
+
}).passthrough().describe("Account information associated with the current API key.")
|
|
53
53
|
});
|
|
54
54
|
//#endregion
|
|
55
55
|
export { signwellGetCredentials };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-credentials.mjs","names":[],"sources":["../../src/actions/get-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellGetCredentialsInput
|
|
1
|
+
{"version":3,"file":"get-credentials.mjs","names":[],"sources":["../../src/actions/get-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellGetCredentialsInput = z.object({}).describe(\"Request model for retrieving account information. No parameters required.\");\nconst SignwellGetCredentials_UserInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n has_google_registration: z.boolean().default(false).describe(\"Whether user registered via Google\").nullable().optional(),\n}).passthrough().describe(\"Current authenticated user information.\");\nconst SignwellGetCredentials_ActiveUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user\").nullable(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n has_google_registration: z.boolean().default(false).describe(\"Whether user registered via Google\").nullable().optional(),\n}).passthrough().describe(\"A user within the account/workspace.\");\nconst SignwellGetCredentials_AccountInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the account\").nullable(),\n name: z.string().describe(\"Name of the account\").nullable(),\n plan_tier: z.string().describe(\"Current plan tier (e.g., 'free', 'pro')\").nullable(),\n active_users: z.array(SignwellGetCredentials_ActiveUserSchema).describe(\"List of active users in the account\").nullable().optional(),\n active_templates: z.number().int().default(0).describe(\"Number of active templates\").nullable().optional(),\n can_create_template: z.boolean().default(true).describe(\"Whether user can create templates\").nullable().optional(),\n can_create_tracking_document: z.boolean().default(true).describe(\"Whether user can create tracking documents\").nullable().optional(),\n can_create_completion_document: z.boolean().default(true).describe(\"Whether user can create completion documents\").nullable().optional(),\n}).passthrough().describe(\"Account/workspace information.\");\nconst SignwellGetCredentials_ContactInfoSchema = z.object({\n id: z.string().describe(\"Unique identifier for the contact\").nullable(),\n name: z.string().describe(\"Full name\").nullable(),\n email: z.string().describe(\"Email address\").nullable(),\n website: z.string().describe(\"Website URL\").nullable().optional(),\n archived: z.boolean().default(false).describe(\"Whether contact is archived\").nullable().optional(),\n initials: z.string().describe(\"User initials\").nullable().optional(),\n company_name: z.string().describe(\"Company name\").nullable().optional(),\n phone_number: z.string().describe(\"Primary phone number\").nullable().optional(),\n alt_phone_number: z.string().describe(\"Alternative phone number\").nullable().optional(),\n}).passthrough().describe(\"Contact information for the authenticated user.\");\nexport const SignwellGetCredentialsOutput = z.object({\n id: z.string().describe(\"Unique membership ID for the user-account relationship\").nullable(),\n role: z.string().describe(\"User's role in the account (e.g., 'owner', 'admin', 'user')\").nullable(),\n user: SignwellGetCredentials_UserInfoSchema.nullable(),\n account: SignwellGetCredentials_AccountInfoSchema.nullable(),\n contact: SignwellGetCredentials_ContactInfoSchema.nullable(),\n archived: z.boolean().default(false).describe(\"Whether membership is archived\").nullable().optional(),\n workspace: SignwellGetCredentials_AccountInfoSchema.nullable(),\n}).passthrough().describe(\"Account information associated with the current API key.\");\n\nexport const signwellGetCredentials = action(\"SIGNWELL_GET_CREDENTIALS\", {\n slug: \"signwell-get-credentials\",\n name: \"Get Credentials\",\n description: \"Retrieve account information for the authenticated API key. Returns comprehensive details including user profile, account settings, workspace configuration, and contact information. Use this to validate API credentials, check account capabilities (like template creation limits), or get user/account IDs for other API calls.\",\n input: SignwellGetCredentialsInput,\n output: SignwellGetCredentialsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAC5I,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,yBAAyB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,yBAAyB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EA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AAS,CAAC,CAAC,SAAS;CACjG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAW3E,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAC3F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAClG,MAAM,sCAAsC,SAAS;EACrD,SAAS,yCAAyC,SAAS;EAC3D,SAAS,yCAAyC,SAAS;EAC3D,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,WAAW,yCAAyC,SAAS;CAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
|
|
@@ -3,44 +3,44 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-document.ts
|
|
4
4
|
const SignwellGetDocumentInput = zod.z.object({ id: zod.z.string().describe("The unique identifier (UUID) for the document to retrieve. This ID is returned when creating a document via the API.") }).describe("Request model for fetching a document by its unique ID.");
|
|
5
5
|
const SignwellGetDocument_DocumentFileSchema = zod.z.object({
|
|
6
|
-
name: zod.z.string().describe("The name of the file."),
|
|
7
|
-
pages_number: zod.z.number().int().describe("Number of pages in the file.")
|
|
8
|
-
}).describe("Information about a file in the document.");
|
|
6
|
+
name: zod.z.string().describe("The name of the file.").nullable(),
|
|
7
|
+
pages_number: zod.z.number().int().describe("Number of pages in the file.").nullable()
|
|
8
|
+
}).passthrough().describe("Information about a file in the document.");
|
|
9
9
|
const SignwellGetDocument_RecipientSchema = zod.z.object({
|
|
10
|
-
id: zod.z.string().describe("Unique identifier for this recipient."),
|
|
11
|
-
name: zod.z.string().describe("Full name of the recipient."),
|
|
12
|
-
email: zod.z.string().describe("Email address of the recipient."),
|
|
13
|
-
status: zod.z.string().describe("Current signing status (e.g., 'draft', 'sent', 'completed', 'declined')."),
|
|
10
|
+
id: zod.z.string().describe("Unique identifier for this recipient.").nullable(),
|
|
11
|
+
name: zod.z.string().describe("Full name of the recipient.").nullable(),
|
|
12
|
+
email: zod.z.string().describe("Email address of the recipient.").nullable(),
|
|
13
|
+
status: zod.z.string().describe("Current signing status (e.g., 'draft', 'sent', 'completed', 'declined').").nullable(),
|
|
14
14
|
bounced: zod.z.boolean().describe("Whether the email to this recipient bounced.").nullable().optional(),
|
|
15
15
|
message: zod.z.string().describe("Custom message for this recipient.").nullable().optional(),
|
|
16
16
|
subject: zod.z.string().describe("Custom subject for this recipient.").nullable().optional(),
|
|
17
17
|
passcode: zod.z.string().describe("Passcode for signing access.").nullable().optional(),
|
|
18
18
|
send_email: zod.z.boolean().default(false).describe("Whether to send signing request via email.").nullable().optional(),
|
|
19
19
|
signing_url: zod.z.string().describe("URL where the recipient can sign the document.").nullable().optional(),
|
|
20
|
-
signing_order: zod.z.number().int().describe("Order in which this recipient signs."),
|
|
20
|
+
signing_order: zod.z.number().int().describe("Order in which this recipient signs.").nullable(),
|
|
21
21
|
bounced_details: zod.z.string().describe("Details about why the email bounced.").nullable().optional(),
|
|
22
22
|
send_email_delay: zod.z.number().int().default(0).describe("Delay in hours before sending email.").nullable().optional(),
|
|
23
23
|
attachment_requests: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of attachment requests for this recipient.").nullable().optional(),
|
|
24
24
|
embedded_signing_url: zod.z.string().describe("URL for embedded signing (when embedded_signing is enabled).").nullable().optional()
|
|
25
|
-
}).describe("Information about a document recipient/signer.");
|
|
25
|
+
}).passthrough().describe("Information about a document recipient/signer.");
|
|
26
26
|
const SignwellGetDocumentOutput = zod.z.object({
|
|
27
|
-
id: zod.z.string().describe("Unique identifier of the document."),
|
|
28
|
-
name: zod.z.string().describe("Name of the document."),
|
|
27
|
+
id: zod.z.string().describe("Unique identifier of the document.").nullable(),
|
|
28
|
+
name: zod.z.string().describe("Name of the document.").nullable(),
|
|
29
29
|
files: zod.z.array(SignwellGetDocument_DocumentFileSchema).describe("List of files attached to this document.").nullable().optional(),
|
|
30
30
|
fields: zod.z.array(zod.z.unknown()).describe("Form fields defined in the document.").nullable().optional(),
|
|
31
31
|
labels: zod.z.array(zod.z.string()).describe("Labels/tags applied to the document.").nullable().optional(),
|
|
32
|
-
status: zod.z.string().describe("Current document status: 'Draft', 'Created', 'Pending', 'Completed', 'Cancelled', 'Expired', 'Bounced', or 'Declined'."),
|
|
32
|
+
status: zod.z.string().describe("Current document status: 'Draft', 'Created', 'Pending', 'Completed', 'Cancelled', 'Expired', 'Bounced', or 'Declined'.").nullable(),
|
|
33
33
|
message: zod.z.string().describe("Email message for signature requests.").nullable().optional(),
|
|
34
34
|
subject: zod.z.string().describe("Email subject for signature requests.").nullable().optional(),
|
|
35
|
-
archived: zod.z.boolean().describe("Whether the document has been archived."),
|
|
36
|
-
language: zod.z.string().describe("Language code for the document (e.g., 'en', 'fr')."),
|
|
37
|
-
metadata: zod.z.
|
|
35
|
+
archived: zod.z.boolean().describe("Whether the document has been archived.").nullable(),
|
|
36
|
+
language: zod.z.string().describe("Language code for the document (e.g., 'en', 'fr').").nullable(),
|
|
37
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value metadata associated with the document.").nullable().optional(),
|
|
38
38
|
reminders: zod.z.boolean().default(true).describe("Whether reminders are enabled.").nullable().optional(),
|
|
39
|
-
test_mode: zod.z.boolean().describe("Whether this is a test document (not legally binding)."),
|
|
40
|
-
created_at: zod.z.string().describe("ISO 8601 timestamp when document was created."),
|
|
39
|
+
test_mode: zod.z.boolean().describe("Whether this is a test document (not legally binding).").nullable(),
|
|
40
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when document was created.").nullable(),
|
|
41
41
|
expires_in: zod.z.number().int().describe("Number of days before the signing request expires.").nullable().optional(),
|
|
42
42
|
recipients: zod.z.array(SignwellGetDocument_RecipientSchema).describe("List of recipients/signers for this document.").nullable().optional(),
|
|
43
|
-
updated_at: zod.z.string().describe("ISO 8601 timestamp when document was last updated."),
|
|
43
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when document was last updated.").nullable(),
|
|
44
44
|
redirect_url: zod.z.string().describe("URL to redirect to after successful signing.").nullable().optional(),
|
|
45
45
|
allow_decline: zod.z.boolean().default(true).describe("Whether recipients can decline to sign.").nullable().optional(),
|
|
46
46
|
error_message: zod.z.string().describe("Error message if document has issues (e.g., bounced email).").nullable().optional(),
|
|
@@ -56,8 +56,8 @@ const SignwellGetDocumentOutput = zod.z.object({
|
|
|
56
56
|
embedded_preview_url: zod.z.string().describe("URL to preview the document.").nullable().optional(),
|
|
57
57
|
custom_requester_name: zod.z.string().describe("Custom name used in email communications.").nullable().optional(),
|
|
58
58
|
custom_requester_email: zod.z.string().describe("Custom email used in communications.").nullable().optional(),
|
|
59
|
-
requester_email_address: zod.z.string().describe("Email address of the person who created the document.")
|
|
60
|
-
}).describe("Response containing detailed document information from SignWell.");
|
|
59
|
+
requester_email_address: zod.z.string().describe("Email address of the person who created the document.").nullable()
|
|
60
|
+
}).passthrough().describe("Response containing detailed document information from SignWell.");
|
|
61
61
|
const signwellGetDocument = require_action.action("SIGNWELL_GET_DOCUMENT", {
|
|
62
62
|
slug: "signwell-get-document",
|
|
63
63
|
name: "Get Document",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellGetDocumentInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier (UUID) for the document to retrieve. This ID is returned when creating a document via the API.\"),\n}).describe(\"Request model for fetching a document by its unique ID.\");\nconst SignwellGetDocument_DocumentFileSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the file.\"),\n pages_number: z.number().int().describe(\"Number of pages in the file.\"),\n}).describe(\"Information about a file in the document.\");\nconst SignwellGetDocument_RecipientSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for this recipient.\"),\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(\"Current signing status (e.g., 'draft', 'sent', 'completed', 'declined').\"),\n bounced: z.boolean().describe(\"Whether the email to this recipient bounced.\").nullable().optional(),\n message: z.string().describe(\"Custom message for this recipient.\").nullable().optional(),\n subject: z.string().describe(\"Custom subject for this recipient.\").nullable().optional(),\n passcode: z.string().describe(\"Passcode for signing access.\").nullable().optional(),\n send_email: z.boolean().default(false).describe(\"Whether to send signing request via email.\").nullable().optional(),\n signing_url: z.string().describe(\"URL where the recipient can sign the document.\").nullable().optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient signs.\"),\n bounced_details: z.string().describe(\"Details about why the email bounced.\").nullable().optional(),\n send_email_delay: z.number().int().default(0).describe(\"Delay in hours before sending email.\").nullable().optional(),\n attachment_requests: z.array(z.record(z.string(), z.unknown())).describe(\"List of attachment requests for this recipient.\").nullable().optional(),\n embedded_signing_url: z.string().describe(\"URL for embedded signing (when embedded_signing is enabled).\").nullable().optional(),\n}).describe(\"Information about a document recipient/signer.\");\nexport const SignwellGetDocumentOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the document.\"),\n name: z.string().describe(\"Name of the document.\"),\n files: z.array(SignwellGetDocument_DocumentFileSchema).describe(\"List of files attached to this document.\").nullable().optional(),\n fields: z.array(z.unknown()).describe(\"Form fields defined in the document.\").nullable().optional(),\n labels: z.array(z.string()).describe(\"Labels/tags applied to the document.\").nullable().optional(),\n status: z.string().describe(\"Current document status: 'Draft', 'Created', 'Pending', 'Completed', 'Cancelled', 'Expired', 'Bounced', or 'Declined'.\"),\n message: z.string().describe(\"Email message for signature requests.\").nullable().optional(),\n subject: z.string().describe(\"Email subject for signature requests.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the document has been archived.\"),\n language: z.string().describe(\"Language code for the document (e.g., 'en', 'fr').\"),\n metadata: z.object({}).describe(\"Custom key-value metadata associated with the document.\").nullable().optional(),\n reminders: z.boolean().default(true).describe(\"Whether reminders are enabled.\").nullable().optional(),\n test_mode: z.boolean().describe(\"Whether this is a test document (not legally binding).\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when document was created.\"),\n expires_in: z.number().int().describe(\"Number of days before the signing request expires.\").nullable().optional(),\n recipients: z.array(SignwellGetDocument_RecipientSchema).describe(\"List of recipients/signers for this document.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when document was last updated.\"),\n redirect_url: z.string().describe(\"URL to redirect to after successful signing.\").nullable().optional(),\n allow_decline: z.boolean().default(true).describe(\"Whether recipients can decline to sign.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if document has issues (e.g., bounced email).\").nullable().optional(),\n allow_reassign: z.boolean().default(true).describe(\"Whether signers can reassign their responsibility.\").nullable().optional(),\n checkbox_groups: z.array(z.record(z.string(), z.unknown())).describe(\"Checkbox groups defined in the document.\").nullable().optional(),\n copied_contacts: z.array(z.record(z.string(), z.unknown())).describe(\"Contacts who receive copies of completed documents.\").nullable().optional(),\n decline_message: z.string().describe(\"Message provided if the document was declined.\").nullable().optional(),\n embedded_signing: z.boolean().default(false).describe(\"Whether embedded signing (iframe) is enabled.\").nullable().optional(),\n embedded_edit_url: z.string().describe(\"URL to edit the document in SignWell's editor.\").nullable().optional(),\n api_application_id: z.string().describe(\"UUID of the API Application settings used.\").nullable().optional(),\n apply_signing_order: z.boolean().default(false).describe(\"Whether signing must follow a specific order.\").nullable().optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect to if signing is declined.\").nullable().optional(),\n embedded_preview_url: z.string().describe(\"URL to preview the document.\").nullable().optional(),\n custom_requester_name: z.string().describe(\"Custom name used in email communications.\").nullable().optional(),\n custom_requester_email: z.string().describe(\"Custom email used in communications.\").nullable().optional(),\n requester_email_address: z.string().describe(\"Email address of the person who created the document.\"),\n}).describe(\"Response containing detailed document information from SignWell.\");\n\nexport const signwellGetDocument = action(\"SIGNWELL_GET_DOCUMENT\", {\n slug: \"signwell-get-document\",\n name: \"Get Document\",\n description: \"Tool to return a document and all associated document data. Use when you need to fetch document details by ID.\",\n input: SignwellGetDocumentInput,\n output: SignwellGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,EAChJ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;AACxE,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC5D,QAAQA,IAAAA,EAAE,OA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CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AACtG,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9E,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SignwellGetDocumentInput = z.object({\n id: z.string().describe(\"The unique identifier (UUID) for the document to retrieve. This ID is returned when creating a document via the API.\"),\n}).describe(\"Request model for fetching a document by its unique ID.\");\nconst SignwellGetDocument_DocumentFileSchema = z.object({\n name: z.string().describe(\"The name of the file.\").nullable(),\n pages_number: z.number().int().describe(\"Number of pages in the file.\").nullable(),\n}).passthrough().describe(\"Information about a file in the document.\");\nconst SignwellGetDocument_RecipientSchema = z.object({\n id: z.string().describe(\"Unique identifier for this recipient.\").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(\"Current signing status (e.g., 'draft', 'sent', 'completed', 'declined').\").nullable(),\n bounced: z.boolean().describe(\"Whether the email to this recipient bounced.\").nullable().optional(),\n message: z.string().describe(\"Custom message for this recipient.\").nullable().optional(),\n subject: z.string().describe(\"Custom subject for this recipient.\").nullable().optional(),\n passcode: z.string().describe(\"Passcode for signing access.\").nullable().optional(),\n send_email: z.boolean().default(false).describe(\"Whether to send signing request via email.\").nullable().optional(),\n signing_url: z.string().describe(\"URL where the recipient can sign the document.\").nullable().optional(),\n signing_order: z.number().int().describe(\"Order in which this recipient signs.\").nullable(),\n bounced_details: z.string().describe(\"Details about why the email bounced.\").nullable().optional(),\n send_email_delay: z.number().int().default(0).describe(\"Delay in hours before sending email.\").nullable().optional(),\n attachment_requests: z.array(z.record(z.string(), z.unknown())).describe(\"List of attachment requests for this recipient.\").nullable().optional(),\n embedded_signing_url: z.string().describe(\"URL for embedded signing (when embedded_signing is enabled).\").nullable().optional(),\n}).passthrough().describe(\"Information about a document recipient/signer.\");\nexport const SignwellGetDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier of the document.\").nullable(),\n name: z.string().describe(\"Name of the document.\").nullable(),\n files: z.array(SignwellGetDocument_DocumentFileSchema).describe(\"List of files attached to this document.\").nullable().optional(),\n fields: z.array(z.unknown()).describe(\"Form fields defined in the document.\").nullable().optional(),\n labels: z.array(z.string()).describe(\"Labels/tags applied to the document.\").nullable().optional(),\n status: z.string().describe(\"Current document status: 'Draft', 'Created', 'Pending', 'Completed', 'Cancelled', 'Expired', 'Bounced', or 'Declined'.\").nullable(),\n message: z.string().describe(\"Email message for signature requests.\").nullable().optional(),\n subject: z.string().describe(\"Email subject for signature requests.\").nullable().optional(),\n archived: z.boolean().describe(\"Whether the document has been archived.\").nullable(),\n language: z.string().describe(\"Language code for the document (e.g., 'en', 'fr').\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata associated with the document.\").nullable().optional(),\n reminders: z.boolean().default(true).describe(\"Whether reminders are enabled.\").nullable().optional(),\n test_mode: z.boolean().describe(\"Whether this is a test document (not legally binding).\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when document was created.\").nullable(),\n expires_in: z.number().int().describe(\"Number of days before the signing request expires.\").nullable().optional(),\n recipients: z.array(SignwellGetDocument_RecipientSchema).describe(\"List of recipients/signers for this document.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when document was last updated.\").nullable(),\n redirect_url: z.string().describe(\"URL to redirect to after successful signing.\").nullable().optional(),\n allow_decline: z.boolean().default(true).describe(\"Whether recipients can decline to sign.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if document has issues (e.g., bounced email).\").nullable().optional(),\n allow_reassign: z.boolean().default(true).describe(\"Whether signers can reassign their responsibility.\").nullable().optional(),\n checkbox_groups: z.array(z.record(z.string(), z.unknown())).describe(\"Checkbox groups defined in the document.\").nullable().optional(),\n copied_contacts: z.array(z.record(z.string(), z.unknown())).describe(\"Contacts who receive copies of completed documents.\").nullable().optional(),\n decline_message: z.string().describe(\"Message provided if the document was declined.\").nullable().optional(),\n embedded_signing: z.boolean().default(false).describe(\"Whether embedded signing (iframe) is enabled.\").nullable().optional(),\n embedded_edit_url: z.string().describe(\"URL to edit the document in SignWell's editor.\").nullable().optional(),\n api_application_id: z.string().describe(\"UUID of the API Application settings used.\").nullable().optional(),\n apply_signing_order: z.boolean().default(false).describe(\"Whether signing must follow a specific order.\").nullable().optional(),\n decline_redirect_url: z.string().describe(\"URL to redirect to if signing is declined.\").nullable().optional(),\n embedded_preview_url: z.string().describe(\"URL to preview the document.\").nullable().optional(),\n custom_requester_name: z.string().describe(\"Custom name used in email communications.\").nullable().optional(),\n custom_requester_email: z.string().describe(\"Custom email used in communications.\").nullable().optional(),\n requester_email_address: z.string().describe(\"Email address of the person who created the document.\").nullable(),\n}).passthrough().describe(\"Response containing detailed document information from SignWell.\");\n\nexport const signwellGetDocument = action(\"SIGNWELL_GET_DOCUMENT\", {\n slug: \"signwell-get-document\",\n name: \"Get Document\",\n description: \"Tool to return a document and all associated document data. Use when you need to fetch document details by ID.\",\n input: SignwellGetDocumentInput,\n output: SignwellGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,EAChJ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CA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1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-document.d.ts
|
|
4
|
-
declare const SignwellGetDocumentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SignwellGetDocumentInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SignwellGetDocumentOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
pages_number: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
}, z.core.$loose>>>>;
|
|
14
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
15
|
+
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
16
|
+
status: z.ZodNullable<z.ZodString>;
|
|
17
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
archived: z.ZodNullable<z.ZodBoolean>;
|
|
20
|
+
language: z.ZodNullable<z.ZodString>;
|
|
21
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
22
|
+
reminders: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
23
|
+
test_mode: z.ZodNullable<z.ZodBoolean>;
|
|
24
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
25
|
+
expires_in: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
27
|
+
id: z.ZodNullable<z.ZodString>;
|
|
28
|
+
name: z.ZodNullable<z.ZodString>;
|
|
29
|
+
email: z.ZodNullable<z.ZodString>;
|
|
30
|
+
status: z.ZodNullable<z.ZodString>;
|
|
31
|
+
bounced: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
32
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
passcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
send_email: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
36
|
+
signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
signing_order: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
bounced_details: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
send_email_delay: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
40
|
+
attachment_requests: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
41
|
+
embedded_signing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
}, z.core.$loose>>>>;
|
|
43
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
44
|
+
redirect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
allow_decline: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
46
|
+
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
allow_reassign: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
48
|
+
checkbox_groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
49
|
+
copied_contacts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
50
|
+
decline_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
embedded_signing: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
52
|
+
embedded_edit_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
api_application_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
apply_signing_order: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
55
|
+
decline_redirect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
embedded_preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
custom_requester_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
custom_requester_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
requester_email_address: z.ZodNullable<z.ZodString>;
|
|
60
|
+
}, z.core.$loose>;
|
|
61
|
+
declare const signwellGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
62
|
+
id: string;
|
|
63
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
64
|
//#endregion
|
|
8
65
|
export { signwellGetDocument };
|
|
9
66
|
//# sourceMappingURL=get-document.d.cts.map
|