@keystrokehq/mailtrap 0.1.2 → 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/actions/clean-inbox.cjs +2 -2
- package/dist/actions/clean-inbox.cjs.map +1 -1
- package/dist/actions/clean-inbox.d.cts +2 -2
- package/dist/actions/clean-inbox.d.mts +2 -2
- package/dist/actions/clean-inbox.mjs +2 -2
- package/dist/actions/clean-inbox.mjs.map +1 -1
- package/dist/actions/create-contact-event.cjs +3 -3
- package/dist/actions/create-contact-event.cjs.map +1 -1
- package/dist/actions/create-contact-event.d.cts +4 -4
- package/dist/actions/create-contact-event.d.mts +4 -4
- package/dist/actions/create-contact-event.mjs +3 -3
- package/dist/actions/create-contact-event.mjs.map +1 -1
- package/dist/actions/create-contact-export.cjs +2 -2
- package/dist/actions/create-contact-export.cjs.map +1 -1
- package/dist/actions/create-contact-export.d.cts +3 -2
- package/dist/actions/create-contact-export.d.mts +3 -2
- package/dist/actions/create-contact-export.mjs +2 -2
- package/dist/actions/create-contact-export.mjs.map +1 -1
- package/dist/actions/create-contact-field.cjs +1 -1
- package/dist/actions/create-contact-field.cjs.map +1 -1
- package/dist/actions/create-contact-field.d.cts +1 -1
- package/dist/actions/create-contact-field.d.mts +1 -1
- package/dist/actions/create-contact-field.mjs +1 -1
- package/dist/actions/create-contact-field.mjs.map +1 -1
- package/dist/actions/create-contact-list.cjs +1 -1
- package/dist/actions/create-contact-list.cjs.map +1 -1
- package/dist/actions/create-contact-list.d.cts +1 -1
- package/dist/actions/create-contact-list.d.mts +1 -1
- package/dist/actions/create-contact-list.mjs +1 -1
- package/dist/actions/create-contact-list.mjs.map +1 -1
- package/dist/actions/create-contact.cjs +2 -2
- package/dist/actions/create-contact.cjs.map +1 -1
- package/dist/actions/create-contact.d.cts +2 -2
- package/dist/actions/create-contact.d.mts +2 -2
- package/dist/actions/create-contact.mjs +2 -2
- package/dist/actions/create-contact.mjs.map +1 -1
- package/dist/actions/create-email-template.cjs +1 -1
- package/dist/actions/create-email-template.cjs.map +1 -1
- package/dist/actions/create-email-template.d.cts +1 -1
- package/dist/actions/create-email-template.d.mts +1 -1
- package/dist/actions/create-email-template.mjs +1 -1
- package/dist/actions/create-email-template.mjs.map +1 -1
- package/dist/actions/create-sending-domain.cjs +3 -3
- package/dist/actions/create-sending-domain.cjs.map +1 -1
- package/dist/actions/create-sending-domain.d.cts +3 -3
- package/dist/actions/create-sending-domain.d.mts +3 -3
- package/dist/actions/create-sending-domain.mjs +3 -3
- package/dist/actions/create-sending-domain.mjs.map +1 -1
- package/dist/actions/delete-contact-field.cjs +1 -1
- package/dist/actions/delete-contact-field.cjs.map +1 -1
- package/dist/actions/delete-contact-field.d.cts +1 -1
- package/dist/actions/delete-contact-field.d.mts +1 -1
- package/dist/actions/delete-contact-field.mjs +1 -1
- package/dist/actions/delete-contact-field.mjs.map +1 -1
- package/dist/actions/delete-contact-list.cjs +1 -1
- package/dist/actions/delete-contact-list.cjs.map +1 -1
- package/dist/actions/delete-contact-list.d.cts +1 -1
- package/dist/actions/delete-contact-list.d.mts +1 -1
- package/dist/actions/delete-contact-list.mjs +1 -1
- package/dist/actions/delete-contact-list.mjs.map +1 -1
- package/dist/actions/delete-contact.cjs +1 -1
- package/dist/actions/delete-contact.cjs.map +1 -1
- package/dist/actions/delete-contact.d.cts +1 -1
- package/dist/actions/delete-contact.d.mts +1 -1
- package/dist/actions/delete-contact.mjs +1 -1
- package/dist/actions/delete-contact.mjs.map +1 -1
- package/dist/actions/delete-email-template.cjs +1 -1
- package/dist/actions/delete-email-template.cjs.map +1 -1
- package/dist/actions/delete-email-template.d.cts +1 -1
- package/dist/actions/delete-email-template.d.mts +1 -1
- package/dist/actions/delete-email-template.mjs +1 -1
- package/dist/actions/delete-email-template.mjs.map +1 -1
- package/dist/actions/delete-project.cjs +1 -1
- package/dist/actions/delete-project.cjs.map +1 -1
- package/dist/actions/delete-project.d.cts +1 -1
- package/dist/actions/delete-project.d.mts +1 -1
- package/dist/actions/delete-project.mjs +1 -1
- package/dist/actions/delete-project.mjs.map +1 -1
- package/dist/actions/delete-sending-domain.cjs +1 -1
- package/dist/actions/delete-sending-domain.cjs.map +1 -1
- package/dist/actions/delete-sending-domain.d.cts +1 -1
- package/dist/actions/delete-sending-domain.d.cts.map +1 -1
- package/dist/actions/delete-sending-domain.d.mts +1 -1
- package/dist/actions/delete-sending-domain.d.mts.map +1 -1
- package/dist/actions/delete-sending-domain.mjs +1 -1
- package/dist/actions/delete-sending-domain.mjs.map +1 -1
- package/dist/actions/get-billing-usage.cjs +6 -6
- package/dist/actions/get-billing-usage.cjs.map +1 -1
- package/dist/actions/get-billing-usage.d.cts +12 -12
- package/dist/actions/get-billing-usage.d.mts +12 -12
- package/dist/actions/get-billing-usage.mjs +6 -6
- package/dist/actions/get-billing-usage.mjs.map +1 -1
- package/dist/actions/get-contact-export.cjs +1 -1
- package/dist/actions/get-contact-export.cjs.map +1 -1
- package/dist/actions/get-contact-export.d.cts +1 -1
- package/dist/actions/get-contact-export.d.mts +1 -1
- package/dist/actions/get-contact-export.mjs +1 -1
- package/dist/actions/get-contact-export.mjs.map +1 -1
- package/dist/actions/get-contact-field.cjs +1 -1
- package/dist/actions/get-contact-field.cjs.map +1 -1
- package/dist/actions/get-contact-field.d.cts +1 -1
- package/dist/actions/get-contact-field.d.mts +1 -1
- package/dist/actions/get-contact-field.mjs +1 -1
- package/dist/actions/get-contact-field.mjs.map +1 -1
- package/dist/actions/get-contact-import.cjs +1 -1
- package/dist/actions/get-contact-import.cjs.map +1 -1
- package/dist/actions/get-contact-import.d.cts +1 -1
- package/dist/actions/get-contact-import.d.mts +1 -1
- package/dist/actions/get-contact-import.mjs +1 -1
- package/dist/actions/get-contact-import.mjs.map +1 -1
- package/dist/actions/get-contact-list.cjs +1 -1
- package/dist/actions/get-contact-list.cjs.map +1 -1
- package/dist/actions/get-contact-list.d.cts +1 -1
- package/dist/actions/get-contact-list.d.mts +1 -1
- package/dist/actions/get-contact-list.mjs +1 -1
- package/dist/actions/get-contact-list.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +3 -3
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +3 -3
- package/dist/actions/get-contact.d.mts +3 -3
- package/dist/actions/get-contact.mjs +3 -3
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-email-template.cjs +1 -1
- package/dist/actions/get-email-template.cjs.map +1 -1
- package/dist/actions/get-email-template.d.cts +1 -1
- package/dist/actions/get-email-template.d.mts +1 -1
- package/dist/actions/get-email-template.mjs +1 -1
- package/dist/actions/get-email-template.mjs.map +1 -1
- package/dist/actions/get-inbox.cjs +2 -2
- package/dist/actions/get-inbox.cjs.map +1 -1
- package/dist/actions/get-inbox.d.cts +2 -2
- package/dist/actions/get-inbox.d.mts +2 -2
- package/dist/actions/get-inbox.mjs +2 -2
- package/dist/actions/get-inbox.mjs.map +1 -1
- package/dist/actions/get-message-html.cjs +1 -1
- package/dist/actions/get-message-html.cjs.map +1 -1
- package/dist/actions/get-message-html.d.cts +1 -1
- package/dist/actions/get-message-html.d.mts +1 -1
- package/dist/actions/get-message-html.mjs +1 -1
- package/dist/actions/get-message-html.mjs.map +1 -1
- package/dist/actions/get-permission-resources.cjs +4 -4
- package/dist/actions/get-permission-resources.cjs.map +1 -1
- package/dist/actions/get-permission-resources.d.cts +4 -4
- package/dist/actions/get-permission-resources.d.mts +4 -4
- package/dist/actions/get-permission-resources.mjs +4 -4
- package/dist/actions/get-permission-resources.mjs.map +1 -1
- package/dist/actions/get-project.cjs +5 -5
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +5 -5
- package/dist/actions/get-project.d.mts +5 -5
- package/dist/actions/get-project.mjs +5 -5
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/get-sending-domain.cjs +3 -3
- package/dist/actions/get-sending-domain.cjs.map +1 -1
- package/dist/actions/get-sending-domain.d.cts +3 -3
- package/dist/actions/get-sending-domain.d.mts +3 -3
- package/dist/actions/get-sending-domain.mjs +3 -3
- package/dist/actions/get-sending-domain.mjs.map +1 -1
- package/dist/actions/get-sending-stats-by-categories.cjs +3 -3
- package/dist/actions/get-sending-stats-by-categories.cjs.map +1 -1
- package/dist/actions/get-sending-stats-by-categories.d.cts +3 -3
- package/dist/actions/get-sending-stats-by-categories.d.mts +3 -3
- package/dist/actions/get-sending-stats-by-categories.mjs +3 -3
- package/dist/actions/get-sending-stats-by-categories.mjs.map +1 -1
- package/dist/actions/get-sending-stats-by-date.cjs +3 -3
- package/dist/actions/get-sending-stats-by-date.cjs.map +1 -1
- package/dist/actions/get-sending-stats-by-date.d.cts +3 -3
- package/dist/actions/get-sending-stats-by-date.d.mts +3 -3
- package/dist/actions/get-sending-stats-by-date.mjs +3 -3
- package/dist/actions/get-sending-stats-by-date.mjs.map +1 -1
- package/dist/actions/get-sending-stats-by-domains.cjs +3 -3
- package/dist/actions/get-sending-stats-by-domains.cjs.map +1 -1
- package/dist/actions/get-sending-stats-by-domains.d.cts +3 -3
- package/dist/actions/get-sending-stats-by-domains.d.mts +3 -3
- package/dist/actions/get-sending-stats-by-domains.mjs +3 -3
- package/dist/actions/get-sending-stats-by-domains.mjs.map +1 -1
- package/dist/actions/get-sending-stats-by-esp.cjs +3 -3
- package/dist/actions/get-sending-stats-by-esp.cjs.map +1 -1
- package/dist/actions/get-sending-stats-by-esp.d.cts +3 -3
- package/dist/actions/get-sending-stats-by-esp.d.mts +3 -3
- package/dist/actions/get-sending-stats-by-esp.mjs +3 -3
- package/dist/actions/get-sending-stats-by-esp.mjs.map +1 -1
- package/dist/actions/get-sending-stats.cjs +1 -1
- package/dist/actions/get-sending-stats.cjs.map +1 -1
- package/dist/actions/get-sending-stats.d.cts +1 -1
- package/dist/actions/get-sending-stats.d.mts +1 -1
- package/dist/actions/get-sending-stats.mjs +1 -1
- package/dist/actions/get-sending-stats.mjs.map +1 -1
- package/dist/actions/import-contacts.cjs +2 -2
- package/dist/actions/import-contacts.cjs.map +1 -1
- package/dist/actions/import-contacts.d.cts +3 -2
- package/dist/actions/import-contacts.d.cts.map +1 -1
- package/dist/actions/import-contacts.d.mts +3 -2
- package/dist/actions/import-contacts.d.mts.map +1 -1
- package/dist/actions/import-contacts.mjs +2 -2
- package/dist/actions/import-contacts.mjs.map +1 -1
- package/dist/actions/list-accounts.cjs +2 -2
- package/dist/actions/list-accounts.cjs.map +1 -1
- package/dist/actions/list-accounts.d.cts +2 -2
- package/dist/actions/list-accounts.d.mts +2 -2
- package/dist/actions/list-accounts.mjs +2 -2
- package/dist/actions/list-accounts.mjs.map +1 -1
- package/dist/actions/list-contact-fields.cjs +2 -2
- package/dist/actions/list-contact-fields.cjs.map +1 -1
- package/dist/actions/list-contact-fields.d.cts +2 -2
- package/dist/actions/list-contact-fields.d.mts +2 -2
- package/dist/actions/list-contact-fields.mjs +2 -2
- package/dist/actions/list-contact-fields.mjs.map +1 -1
- package/dist/actions/list-contact-lists.cjs +2 -2
- package/dist/actions/list-contact-lists.cjs.map +1 -1
- package/dist/actions/list-contact-lists.d.cts +2 -2
- package/dist/actions/list-contact-lists.d.mts +2 -2
- package/dist/actions/list-contact-lists.mjs +2 -2
- package/dist/actions/list-contact-lists.mjs.map +1 -1
- package/dist/actions/list-email-templates.cjs +2 -2
- package/dist/actions/list-email-templates.cjs.map +1 -1
- package/dist/actions/list-email-templates.d.cts +2 -2
- package/dist/actions/list-email-templates.d.mts +2 -2
- package/dist/actions/list-email-templates.mjs +2 -2
- package/dist/actions/list-email-templates.mjs.map +1 -1
- package/dist/actions/list-inboxes.cjs +3 -3
- package/dist/actions/list-inboxes.cjs.map +1 -1
- package/dist/actions/list-inboxes.d.cts +3 -3
- package/dist/actions/list-inboxes.d.mts +3 -3
- package/dist/actions/list-inboxes.mjs +3 -3
- package/dist/actions/list-inboxes.mjs.map +1 -1
- package/dist/actions/list-messages.cjs +6 -6
- package/dist/actions/list-messages.cjs.map +1 -1
- package/dist/actions/list-messages.d.cts +6 -6
- package/dist/actions/list-messages.d.mts +6 -6
- package/dist/actions/list-messages.mjs +6 -6
- package/dist/actions/list-messages.mjs.map +1 -1
- package/dist/actions/list-projects.cjs +5 -5
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +5 -5
- package/dist/actions/list-projects.d.mts +5 -5
- package/dist/actions/list-projects.mjs +5 -5
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/actions/list-sending-domains.cjs +4 -4
- package/dist/actions/list-sending-domains.cjs.map +1 -1
- package/dist/actions/list-sending-domains.d.cts +4 -4
- package/dist/actions/list-sending-domains.d.mts +4 -4
- package/dist/actions/list-sending-domains.mjs +4 -4
- package/dist/actions/list-sending-domains.mjs.map +1 -1
- package/dist/actions/list-suppressions.cjs +2 -2
- package/dist/actions/list-suppressions.cjs.map +1 -1
- package/dist/actions/list-suppressions.d.cts +2 -2
- package/dist/actions/list-suppressions.d.mts +2 -2
- package/dist/actions/list-suppressions.mjs +2 -2
- package/dist/actions/list-suppressions.mjs.map +1 -1
- package/dist/actions/mark-inbox-as-read.cjs +2 -2
- package/dist/actions/mark-inbox-as-read.cjs.map +1 -1
- package/dist/actions/mark-inbox-as-read.d.cts +2 -2
- package/dist/actions/mark-inbox-as-read.d.mts +2 -2
- package/dist/actions/mark-inbox-as-read.mjs +2 -2
- package/dist/actions/mark-inbox-as-read.mjs.map +1 -1
- package/dist/actions/reset-inbox-credentials.cjs +2 -2
- package/dist/actions/reset-inbox-credentials.cjs.map +1 -1
- package/dist/actions/reset-inbox-credentials.d.cts +2 -2
- package/dist/actions/reset-inbox-credentials.d.mts +2 -2
- package/dist/actions/reset-inbox-credentials.mjs +2 -2
- package/dist/actions/reset-inbox-credentials.mjs.map +1 -1
- package/dist/actions/update-contact-field.cjs +1 -1
- package/dist/actions/update-contact-field.cjs.map +1 -1
- package/dist/actions/update-contact-field.d.cts +1 -1
- package/dist/actions/update-contact-field.d.mts +1 -1
- package/dist/actions/update-contact-field.mjs +1 -1
- package/dist/actions/update-contact-field.mjs.map +1 -1
- package/dist/actions/update-contact-list.cjs +1 -1
- package/dist/actions/update-contact-list.cjs.map +1 -1
- package/dist/actions/update-contact-list.d.cts +1 -1
- package/dist/actions/update-contact-list.d.mts +1 -1
- package/dist/actions/update-contact-list.mjs +1 -1
- package/dist/actions/update-contact-list.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +4 -4
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +5 -5
- package/dist/actions/update-contact.d.mts +5 -5
- package/dist/actions/update-contact.mjs +4 -4
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/actions/update-email-template.cjs +1 -1
- package/dist/actions/update-email-template.cjs.map +1 -1
- package/dist/actions/update-email-template.d.cts +1 -1
- package/dist/actions/update-email-template.d.mts +1 -1
- package/dist/actions/update-email-template.mjs +1 -1
- package/dist/actions/update-email-template.mjs.map +1 -1
- package/dist/actions/update-inbox.cjs +2 -2
- package/dist/actions/update-inbox.cjs.map +1 -1
- package/dist/actions/update-inbox.d.cts +2 -2
- package/dist/actions/update-inbox.d.mts +2 -2
- package/dist/actions/update-inbox.mjs +2 -2
- package/dist/actions/update-inbox.mjs.map +1 -1
- package/dist/actions/update-project.cjs +5 -5
- package/dist/actions/update-project.cjs.map +1 -1
- package/dist/actions/update-project.d.cts +5 -5
- package/dist/actions/update-project.d.mts +5 -5
- package/dist/actions/update-project.mjs +5 -5
- package/dist/actions/update-project.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7,27 +7,27 @@ const MailtrapGetPermissionResources_NestedResourceSchema = z.object({
|
|
|
7
7
|
name: z.string().describe("Name of the nested resource.").nullable(),
|
|
8
8
|
type: z.string().describe("Type of the nested resource (e.g., 'inbox').").nullable(),
|
|
9
9
|
access_level: z.number().int().describe("Access level for this nested resource based on the token used.").nullable()
|
|
10
|
-
}).describe("Represents a third-level nested resource.");
|
|
10
|
+
}).passthrough().describe("Represents a third-level nested resource.");
|
|
11
11
|
const MailtrapGetPermissionResources_SecondLevelResourceSchema = z.object({
|
|
12
12
|
id: z.number().int().describe("Unique identifier of the resource.").nullable(),
|
|
13
13
|
name: z.string().describe("Name of the resource.").nullable(),
|
|
14
14
|
type: z.string().describe("Type of the resource (e.g., 'project', 'inbox').").nullable(),
|
|
15
15
|
resources: z.array(MailtrapGetPermissionResources_NestedResourceSchema).describe("Optional nested array of third-level resources.").nullable().optional(),
|
|
16
16
|
access_level: z.number().int().describe("Access level for this resource based on the token used.").nullable()
|
|
17
|
-
}).describe("Represents a second-level resource with optional nested resources.");
|
|
17
|
+
}).passthrough().describe("Represents a second-level resource with optional nested resources.");
|
|
18
18
|
const MailtrapGetPermissionResources_PermissionResourceSchema = z.object({
|
|
19
19
|
id: z.number().int().describe("Unique identifier of the resource.").nullable(),
|
|
20
20
|
name: z.string().describe("Name of the resource.").nullable(),
|
|
21
21
|
type: z.string().describe("Type of the resource (e.g., 'project', 'inbox').").nullable(),
|
|
22
22
|
resources: z.array(MailtrapGetPermissionResources_SecondLevelResourceSchema).describe("Optional nested array of second-level resources (e.g., inboxes within a project).").nullable().optional(),
|
|
23
23
|
access_level: z.number().int().describe("Access level for this resource based on the token used to make the request.").nullable()
|
|
24
|
-
}).describe("Represents a top-level permission resource with hierarchical structure.");
|
|
24
|
+
}).passthrough().describe("Represents a top-level permission resource with hierarchical structure.");
|
|
25
25
|
const mailtrapGetPermissionResources = action("MAILTRAP_GET_PERMISSION_RESOURCES", {
|
|
26
26
|
slug: "mailtrap-get-permission-resources",
|
|
27
27
|
name: "Get Permission Resources",
|
|
28
28
|
description: "Tool to retrieve all resources in account for permission management. Use when you need to see the hierarchical structure of projects, inboxes, and other resources with their access levels for the current authentication token.",
|
|
29
29
|
input: MailtrapGetPermissionResourcesInput,
|
|
30
|
-
output: z.object({ resources: z.array(MailtrapGetPermissionResources_PermissionResourceSchema).describe("Array of top-level permission resources with their hierarchical structure. The access_level in this response represents the access level of the token used to make the request.") }).describe("Response model containing all permission resources nested according to their hierarchy.")
|
|
30
|
+
output: z.object({ resources: z.array(MailtrapGetPermissionResources_PermissionResourceSchema).describe("Array of top-level permission resources with their hierarchical structure. The access_level in this response represents the access level of the token used to make the request.") }).passthrough().describe("Response model containing all permission resources nested according to their hierarchy.")
|
|
31
31
|
});
|
|
32
32
|
//#endregion
|
|
33
33
|
export { mailtrapGetPermissionResources };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-permission-resources.mjs","names":[],"sources":["../../src/actions/get-permission-resources.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetPermissionResourcesInput = z.object({\n account_id: z.number().int().describe(\"Unique account ID for which to retrieve permission resources.\"),\n}).describe(\"Request model for getting permission resources.\");\nconst MailtrapGetPermissionResources_NestedResourceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the nested resource.\").nullable(),\n name: z.string().describe(\"Name of the nested resource.\").nullable(),\n type: z.string().describe(\"Type of the nested resource (e.g., 'inbox').\").nullable(),\n access_level: z.number().int().describe(\"Access level for this nested resource based on the token used.\").nullable(),\n}).describe(\"Represents a third-level nested resource.\");\nconst MailtrapGetPermissionResources_SecondLevelResourceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the resource.\").nullable(),\n name: z.string().describe(\"Name of the resource.\").nullable(),\n type: z.string().describe(\"Type of the resource (e.g., 'project', 'inbox').\").nullable(),\n resources: z.array(MailtrapGetPermissionResources_NestedResourceSchema).describe(\"Optional nested array of third-level resources.\").nullable().optional(),\n access_level: z.number().int().describe(\"Access level for this resource based on the token used.\").nullable(),\n}).describe(\"Represents a second-level resource with optional nested resources.\");\nconst MailtrapGetPermissionResources_PermissionResourceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the resource.\").nullable(),\n name: z.string().describe(\"Name of the resource.\").nullable(),\n type: z.string().describe(\"Type of the resource (e.g., 'project', 'inbox').\").nullable(),\n resources: z.array(MailtrapGetPermissionResources_SecondLevelResourceSchema).describe(\"Optional nested array of second-level resources (e.g., inboxes within a project).\").nullable().optional(),\n access_level: z.number().int().describe(\"Access level for this resource based on the token used to make the request.\").nullable(),\n}).describe(\"Represents a top-level permission resource with hierarchical structure.\");\nexport const MailtrapGetPermissionResourcesOutput = z.object({\n resources: z.array(MailtrapGetPermissionResources_PermissionResourceSchema).describe(\"Array of top-level permission resources with their hierarchical structure. The access_level in this response represents the access level of the token used to make the request.\"),\n}).describe(\"Response model containing all permission resources nested according to their hierarchy.\");\n\nexport const mailtrapGetPermissionResources = action(\"MAILTRAP_GET_PERMISSION_RESOURCES\", {\n slug: \"mailtrap-get-permission-resources\",\n name: \"Get Permission Resources\",\n description: \"Tool to retrieve all resources in account for permission management. Use when you need to see the hierarchical structure of projects, inboxes, and other resources with their access levels for the current authentication token.\",\n input: MailtrapGetPermissionResourcesInput,\n output: MailtrapGetPermissionResourcesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO,EAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,EACvG,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,sDAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,2CAA2C;
|
|
1
|
+
{"version":3,"file":"get-permission-resources.mjs","names":[],"sources":["../../src/actions/get-permission-resources.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetPermissionResourcesInput = z.object({\n account_id: z.number().int().describe(\"Unique account ID for which to retrieve permission resources.\"),\n}).describe(\"Request model for getting permission resources.\");\nconst MailtrapGetPermissionResources_NestedResourceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the nested resource.\").nullable(),\n name: z.string().describe(\"Name of the nested resource.\").nullable(),\n type: z.string().describe(\"Type of the nested resource (e.g., 'inbox').\").nullable(),\n access_level: z.number().int().describe(\"Access level for this nested resource based on the token used.\").nullable(),\n}).passthrough().describe(\"Represents a third-level nested resource.\");\nconst MailtrapGetPermissionResources_SecondLevelResourceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the resource.\").nullable(),\n name: z.string().describe(\"Name of the resource.\").nullable(),\n type: z.string().describe(\"Type of the resource (e.g., 'project', 'inbox').\").nullable(),\n resources: z.array(MailtrapGetPermissionResources_NestedResourceSchema).describe(\"Optional nested array of third-level resources.\").nullable().optional(),\n access_level: z.number().int().describe(\"Access level for this resource based on the token used.\").nullable(),\n}).passthrough().describe(\"Represents a second-level resource with optional nested resources.\");\nconst MailtrapGetPermissionResources_PermissionResourceSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the resource.\").nullable(),\n name: z.string().describe(\"Name of the resource.\").nullable(),\n type: z.string().describe(\"Type of the resource (e.g., 'project', 'inbox').\").nullable(),\n resources: z.array(MailtrapGetPermissionResources_SecondLevelResourceSchema).describe(\"Optional nested array of second-level resources (e.g., inboxes within a project).\").nullable().optional(),\n access_level: z.number().int().describe(\"Access level for this resource based on the token used to make the request.\").nullable(),\n}).passthrough().describe(\"Represents a top-level permission resource with hierarchical structure.\");\nexport const MailtrapGetPermissionResourcesOutput = z.object({\n resources: z.array(MailtrapGetPermissionResources_PermissionResourceSchema).describe(\"Array of top-level permission resources with their hierarchical structure. The access_level in this response represents the access level of the token used to make the request.\"),\n}).passthrough().describe(\"Response model containing all permission resources nested according to their hierarchy.\");\n\nexport const mailtrapGetPermissionResources = action(\"MAILTRAP_GET_PERMISSION_RESOURCES\", {\n slug: \"mailtrap-get-permission-resources\",\n name: \"Get Permission Resources\",\n description: \"Tool to retrieve all resources in account for permission management. Use when you need to see the hierarchical structure of projects, inboxes, and other resources with their access levels for the current authentication token.\",\n input: MailtrapGetPermissionResourcesInput,\n output: MailtrapGetPermissionResourcesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO,EAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,EACvG,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,sDAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,2DAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvF,WAAW,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAC9F,MAAM,0DAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvF,WAAW,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/L,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yEAAyE;AAKnG,MAAa,iCAAiC,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,WAAW,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,iLAAiL,EACxQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yFAOhB;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ const MailtrapGetProject_InboxPermissionsSchema = zod.z.object({
|
|
|
10
10
|
can_leave: zod.z.boolean().describe("Whether the token has permission to leave the inbox.").nullable(),
|
|
11
11
|
can_update: zod.z.boolean().describe("Whether the token has permission to update the inbox.").nullable(),
|
|
12
12
|
can_destroy: zod.z.boolean().describe("Whether the token has permission to destroy the inbox.").nullable()
|
|
13
|
-
}).describe("Permissions model for inbox operations within a project.");
|
|
13
|
+
}).passthrough().describe("Permissions model for inbox operations within a project.");
|
|
14
14
|
const MailtrapGetProject_ProjectInboxSchema = zod.z.object({
|
|
15
15
|
id: zod.z.number().int().describe("Unique identifier for the inbox.").nullable(),
|
|
16
16
|
name: zod.z.string().describe("Name of the inbox.").nullable(),
|
|
@@ -36,24 +36,24 @@ const MailtrapGetProject_ProjectInboxSchema = zod.z.object({
|
|
|
36
36
|
email_username_enabled: zod.z.boolean().describe("Whether the email username is enabled.").nullable(),
|
|
37
37
|
forwarded_messages_count: zod.z.number().int().describe("Total number of forwarded messages.").nullable(),
|
|
38
38
|
forward_from_email_address: zod.z.string().describe("Email address from which messages are forwarded.").nullable()
|
|
39
|
-
}).describe("Inbox information within a project.");
|
|
39
|
+
}).passthrough().describe("Inbox information within a project.");
|
|
40
40
|
const MailtrapGetProject_ProjectPermissionsSchema = zod.z.object({
|
|
41
41
|
can_read: zod.z.boolean().describe("Whether the token has permission to read the project.").nullable(),
|
|
42
42
|
can_leave: zod.z.boolean().describe("Whether the token has permission to leave the project.").nullable(),
|
|
43
43
|
can_update: zod.z.boolean().describe("Whether the token has permission to update the project.").nullable(),
|
|
44
44
|
can_destroy: zod.z.boolean().describe("Whether the token has permission to destroy the project.").nullable()
|
|
45
|
-
}).describe("Permissions model for project operations.");
|
|
45
|
+
}).passthrough().describe("Permissions model for project operations.");
|
|
46
46
|
const MailtrapGetProject_ProjectShareLinksSchema = zod.z.object({
|
|
47
47
|
admin: zod.z.string().describe("Admin share link for the project.").nullable().optional(),
|
|
48
48
|
viewer: zod.z.string().describe("Viewer share link for the project.").nullable().optional()
|
|
49
|
-
}).describe("Share links for project access.");
|
|
49
|
+
}).passthrough().describe("Share links for project access.");
|
|
50
50
|
const MailtrapGetProjectOutput = zod.z.object({
|
|
51
51
|
id: zod.z.number().int().describe("Unique identifier for the project.").nullable(),
|
|
52
52
|
name: zod.z.string().describe("Name of the project.").nullable(),
|
|
53
53
|
inboxes: zod.z.array(MailtrapGetProject_ProjectInboxSchema).describe("List of inboxes within the project."),
|
|
54
54
|
permissions: MailtrapGetProject_ProjectPermissionsSchema.nullable(),
|
|
55
55
|
share_links: MailtrapGetProject_ProjectShareLinksSchema.nullable().optional()
|
|
56
|
-
}).describe("Response model containing project details from Mailtrap.");
|
|
56
|
+
}).passthrough().describe("Response model containing project details from Mailtrap.");
|
|
57
57
|
const mailtrapGetProject = require_action.action("MAILTRAP_GET_PROJECT", {
|
|
58
58
|
slug: "mailtrap-get-project",
|
|
59
59
|
name: "Get Project by ID",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-project.cjs","names":["z","action"],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetProjectInput = z.object({\n account_id: z.number().int().describe(\"Unique account ID to identify the Mailtrap account.\"),\n project_id: z.number().int().describe(\"Unique project ID to identify the specific project.\"),\n}).describe(\"Request model for retrieving a project by ID from Mailtrap.\");\nconst MailtrapGetProject_InboxPermissionsSchema = z.object({\n can_read: z.boolean().describe(\"Whether the token has permission to read the inbox.\").nullable(),\n can_leave: z.boolean().describe(\"Whether the token has permission to leave the inbox.\").nullable(),\n can_update: z.boolean().describe(\"Whether the token has permission to update the inbox.\").nullable(),\n can_destroy: z.boolean().describe(\"Whether the token has permission to destroy the inbox.\").nullable(),\n}).describe(\"Permissions model for inbox operations within a project.\");\nconst MailtrapGetProject_ProjectInboxSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the inbox.\").nullable(),\n name: z.string().describe(\"Name of the inbox.\").nullable(),\n used: z.boolean().describe(\"Whether the inbox has been used.\").nullable(),\n domain: z.string().describe(\"Domain for the inbox.\").nullable(),\n status: z.string().describe(\"Current status of the inbox.\").nullable(),\n max_size: z.number().int().describe(\"Maximum size limit for the inbox in bytes.\").nullable(),\n password: z.string().describe(\"Password for accessing the inbox.\").nullable().optional(),\n username: z.string().describe(\"Username for accessing the inbox.\").nullable(),\n api_domain: z.string().describe(\"API domain for the inbox.\").nullable(),\n pop3_ports: z.array(z.number().int()).describe(\"List of POP3 ports available for the inbox.\"),\n project_id: z.number().int().describe(\"ID of the project this inbox belongs to.\").nullable(),\n smtp_ports: z.array(z.number().int()).describe(\"List of SMTP ports available for the inbox.\"),\n permissions: MailtrapGetProject_InboxPermissionsSchema.nullable(),\n pop3_domain: z.string().describe(\"POP3 domain for accessing the inbox.\").nullable(),\n email_domain: z.string().describe(\"Email domain for the inbox.\").nullable(),\n emails_count: z.number().int().describe(\"Total number of emails in the inbox.\").nullable(),\n email_username: z.string().describe(\"Email username for the inbox.\").nullable(),\n max_message_size: z.number().int().describe(\"Maximum message size allowed in bytes.\").nullable(),\n emails_unread_count: z.number().int().describe(\"Number of unread emails in the inbox.\").nullable(),\n sent_messages_count: z.number().int().describe(\"Total number of sent messages from the inbox.\").nullable(),\n last_message_sent_at: z.string().describe(\"Timestamp of the last message sent.\").nullable().optional(),\n email_username_enabled: z.boolean().describe(\"Whether the email username is enabled.\").nullable(),\n forwarded_messages_count: z.number().int().describe(\"Total number of forwarded messages.\").nullable(),\n forward_from_email_address: z.string().describe(\"Email address from which messages are forwarded.\").nullable(),\n}).describe(\"Inbox information within a project.\");\nconst MailtrapGetProject_ProjectPermissionsSchema = z.object({\n can_read: z.boolean().describe(\"Whether the token has permission to read the project.\").nullable(),\n can_leave: z.boolean().describe(\"Whether the token has permission to leave the project.\").nullable(),\n can_update: z.boolean().describe(\"Whether the token has permission to update the project.\").nullable(),\n can_destroy: z.boolean().describe(\"Whether the token has permission to destroy the project.\").nullable(),\n}).describe(\"Permissions model for project operations.\");\nconst MailtrapGetProject_ProjectShareLinksSchema = z.object({\n admin: z.string().describe(\"Admin share link for the project.\").nullable().optional(),\n viewer: z.string().describe(\"Viewer share link for the project.\").nullable().optional(),\n}).describe(\"Share links for project access.\");\nexport const MailtrapGetProjectOutput = z.object({\n id: z.number().int().describe(\"Unique identifier for the project.\").nullable(),\n name: z.string().describe(\"Name of the project.\").nullable(),\n inboxes: z.array(MailtrapGetProject_ProjectInboxSchema).describe(\"List of inboxes within the project.\"),\n permissions: MailtrapGetProject_ProjectPermissionsSchema.nullable(),\n share_links: MailtrapGetProject_ProjectShareLinksSchema.nullable().optional(),\n}).describe(\"Response model containing project details from Mailtrap.\");\n\nexport const mailtrapGetProject = action(\"MAILTRAP_GET_PROJECT\", {\n slug: \"mailtrap-get-project\",\n name: \"Get Project by ID\",\n description: \"Tool to retrieve project details from Mailtrap by project ID. Use when you need to get information about a specific project including its inboxes, permissions, and share links.\",\n input: MailtrapGetProjectInput,\n output: MailtrapGetProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;AAC7F,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC/F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,0DAA0D;
|
|
1
|
+
{"version":3,"file":"get-project.cjs","names":["z","action"],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetProjectInput = z.object({\n account_id: z.number().int().describe(\"Unique account ID to identify the Mailtrap account.\"),\n project_id: z.number().int().describe(\"Unique project ID to identify the specific project.\"),\n}).describe(\"Request model for retrieving a project by ID from Mailtrap.\");\nconst MailtrapGetProject_InboxPermissionsSchema = z.object({\n can_read: z.boolean().describe(\"Whether the token has permission to read the inbox.\").nullable(),\n can_leave: z.boolean().describe(\"Whether the token has permission to leave the inbox.\").nullable(),\n can_update: z.boolean().describe(\"Whether the token has permission to update the inbox.\").nullable(),\n can_destroy: z.boolean().describe(\"Whether the token has permission to destroy the inbox.\").nullable(),\n}).passthrough().describe(\"Permissions model for inbox operations within a project.\");\nconst MailtrapGetProject_ProjectInboxSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the inbox.\").nullable(),\n name: z.string().describe(\"Name of the inbox.\").nullable(),\n used: z.boolean().describe(\"Whether the inbox has been used.\").nullable(),\n domain: z.string().describe(\"Domain for the inbox.\").nullable(),\n status: z.string().describe(\"Current status of the inbox.\").nullable(),\n max_size: z.number().int().describe(\"Maximum size limit for the inbox in bytes.\").nullable(),\n password: z.string().describe(\"Password for accessing the inbox.\").nullable().optional(),\n username: z.string().describe(\"Username for accessing the inbox.\").nullable(),\n api_domain: z.string().describe(\"API domain for the inbox.\").nullable(),\n pop3_ports: z.array(z.number().int()).describe(\"List of POP3 ports available for the inbox.\"),\n project_id: z.number().int().describe(\"ID of the project this inbox belongs to.\").nullable(),\n smtp_ports: z.array(z.number().int()).describe(\"List of SMTP ports available for the inbox.\"),\n permissions: MailtrapGetProject_InboxPermissionsSchema.nullable(),\n pop3_domain: z.string().describe(\"POP3 domain for accessing the inbox.\").nullable(),\n email_domain: z.string().describe(\"Email domain for the inbox.\").nullable(),\n emails_count: z.number().int().describe(\"Total number of emails in the inbox.\").nullable(),\n email_username: z.string().describe(\"Email username for the inbox.\").nullable(),\n max_message_size: z.number().int().describe(\"Maximum message size allowed in bytes.\").nullable(),\n emails_unread_count: z.number().int().describe(\"Number of unread emails in the inbox.\").nullable(),\n sent_messages_count: z.number().int().describe(\"Total number of sent messages from the inbox.\").nullable(),\n last_message_sent_at: z.string().describe(\"Timestamp of the last message sent.\").nullable().optional(),\n email_username_enabled: z.boolean().describe(\"Whether the email username is enabled.\").nullable(),\n forwarded_messages_count: z.number().int().describe(\"Total number of forwarded messages.\").nullable(),\n forward_from_email_address: z.string().describe(\"Email address from which messages are forwarded.\").nullable(),\n}).passthrough().describe(\"Inbox information within a project.\");\nconst MailtrapGetProject_ProjectPermissionsSchema = z.object({\n can_read: z.boolean().describe(\"Whether the token has permission to read the project.\").nullable(),\n can_leave: z.boolean().describe(\"Whether the token has permission to leave the project.\").nullable(),\n can_update: z.boolean().describe(\"Whether the token has permission to update the project.\").nullable(),\n can_destroy: z.boolean().describe(\"Whether the token has permission to destroy the project.\").nullable(),\n}).passthrough().describe(\"Permissions model for project operations.\");\nconst MailtrapGetProject_ProjectShareLinksSchema = z.object({\n admin: z.string().describe(\"Admin share link for the project.\").nullable().optional(),\n viewer: z.string().describe(\"Viewer share link for the project.\").nullable().optional(),\n}).passthrough().describe(\"Share links for project access.\");\nexport const MailtrapGetProjectOutput = z.object({\n id: z.number().int().describe(\"Unique identifier for the project.\").nullable(),\n name: z.string().describe(\"Name of the project.\").nullable(),\n inboxes: z.array(MailtrapGetProject_ProjectInboxSchema).describe(\"List of inboxes within the project.\"),\n permissions: MailtrapGetProject_ProjectPermissionsSchema.nullable(),\n share_links: MailtrapGetProject_ProjectShareLinksSchema.nullable().optional(),\n}).passthrough().describe(\"Response model containing project details from Mailtrap.\");\n\nexport const mailtrapGetProject = action(\"MAILTRAP_GET_PROJECT\", {\n slug: \"mailtrap-get-project\",\n name: \"Get Project by ID\",\n description: \"Tool to retrieve project details from Mailtrap by project ID. Use when you need to get information about a specific project including its inboxes, permissions, and share links.\",\n input: MailtrapGetProjectInput,\n output: MailtrapGetProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;AAC7F,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,UAAUA,IA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AAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -26,7 +26,7 @@ declare const MailtrapGetProjectOutput: z.ZodObject<{
|
|
|
26
26
|
can_leave: z.ZodNullable<z.ZodBoolean>;
|
|
27
27
|
can_update: z.ZodNullable<z.ZodBoolean>;
|
|
28
28
|
can_destroy: z.ZodNullable<z.ZodBoolean>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
30
|
pop3_domain: z.ZodNullable<z.ZodString>;
|
|
31
31
|
email_domain: z.ZodNullable<z.ZodString>;
|
|
32
32
|
emails_count: z.ZodNullable<z.ZodNumber>;
|
|
@@ -38,18 +38,18 @@ declare const MailtrapGetProjectOutput: z.ZodObject<{
|
|
|
38
38
|
email_username_enabled: z.ZodNullable<z.ZodBoolean>;
|
|
39
39
|
forwarded_messages_count: z.ZodNullable<z.ZodNumber>;
|
|
40
40
|
forward_from_email_address: z.ZodNullable<z.ZodString>;
|
|
41
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
42
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
43
43
|
can_read: z.ZodNullable<z.ZodBoolean>;
|
|
44
44
|
can_leave: z.ZodNullable<z.ZodBoolean>;
|
|
45
45
|
can_update: z.ZodNullable<z.ZodBoolean>;
|
|
46
46
|
can_destroy: z.ZodNullable<z.ZodBoolean>;
|
|
47
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
48
|
share_links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
49
49
|
admin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
viewer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
-
}, z.core.$
|
|
52
|
-
}, z.core.$
|
|
51
|
+
}, z.core.$loose>>>;
|
|
52
|
+
}, z.core.$loose>;
|
|
53
53
|
declare const mailtrapGetProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
54
54
|
account_id: number;
|
|
55
55
|
project_id: number;
|
|
@@ -26,7 +26,7 @@ declare const MailtrapGetProjectOutput: z.ZodObject<{
|
|
|
26
26
|
can_leave: z.ZodNullable<z.ZodBoolean>;
|
|
27
27
|
can_update: z.ZodNullable<z.ZodBoolean>;
|
|
28
28
|
can_destroy: z.ZodNullable<z.ZodBoolean>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
30
|
pop3_domain: z.ZodNullable<z.ZodString>;
|
|
31
31
|
email_domain: z.ZodNullable<z.ZodString>;
|
|
32
32
|
emails_count: z.ZodNullable<z.ZodNumber>;
|
|
@@ -38,18 +38,18 @@ declare const MailtrapGetProjectOutput: z.ZodObject<{
|
|
|
38
38
|
email_username_enabled: z.ZodNullable<z.ZodBoolean>;
|
|
39
39
|
forwarded_messages_count: z.ZodNullable<z.ZodNumber>;
|
|
40
40
|
forward_from_email_address: z.ZodNullable<z.ZodString>;
|
|
41
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
42
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
43
43
|
can_read: z.ZodNullable<z.ZodBoolean>;
|
|
44
44
|
can_leave: z.ZodNullable<z.ZodBoolean>;
|
|
45
45
|
can_update: z.ZodNullable<z.ZodBoolean>;
|
|
46
46
|
can_destroy: z.ZodNullable<z.ZodBoolean>;
|
|
47
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
48
|
share_links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
49
49
|
admin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
viewer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
-
}, z.core.$
|
|
52
|
-
}, z.core.$
|
|
51
|
+
}, z.core.$loose>>>;
|
|
52
|
+
}, z.core.$loose>;
|
|
53
53
|
declare const mailtrapGetProject: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
54
54
|
account_id: number;
|
|
55
55
|
project_id: number;
|
|
@@ -10,7 +10,7 @@ const MailtrapGetProject_InboxPermissionsSchema = z.object({
|
|
|
10
10
|
can_leave: z.boolean().describe("Whether the token has permission to leave the inbox.").nullable(),
|
|
11
11
|
can_update: z.boolean().describe("Whether the token has permission to update the inbox.").nullable(),
|
|
12
12
|
can_destroy: z.boolean().describe("Whether the token has permission to destroy the inbox.").nullable()
|
|
13
|
-
}).describe("Permissions model for inbox operations within a project.");
|
|
13
|
+
}).passthrough().describe("Permissions model for inbox operations within a project.");
|
|
14
14
|
const MailtrapGetProject_ProjectInboxSchema = z.object({
|
|
15
15
|
id: z.number().int().describe("Unique identifier for the inbox.").nullable(),
|
|
16
16
|
name: z.string().describe("Name of the inbox.").nullable(),
|
|
@@ -36,17 +36,17 @@ const MailtrapGetProject_ProjectInboxSchema = z.object({
|
|
|
36
36
|
email_username_enabled: z.boolean().describe("Whether the email username is enabled.").nullable(),
|
|
37
37
|
forwarded_messages_count: z.number().int().describe("Total number of forwarded messages.").nullable(),
|
|
38
38
|
forward_from_email_address: z.string().describe("Email address from which messages are forwarded.").nullable()
|
|
39
|
-
}).describe("Inbox information within a project.");
|
|
39
|
+
}).passthrough().describe("Inbox information within a project.");
|
|
40
40
|
const MailtrapGetProject_ProjectPermissionsSchema = z.object({
|
|
41
41
|
can_read: z.boolean().describe("Whether the token has permission to read the project.").nullable(),
|
|
42
42
|
can_leave: z.boolean().describe("Whether the token has permission to leave the project.").nullable(),
|
|
43
43
|
can_update: z.boolean().describe("Whether the token has permission to update the project.").nullable(),
|
|
44
44
|
can_destroy: z.boolean().describe("Whether the token has permission to destroy the project.").nullable()
|
|
45
|
-
}).describe("Permissions model for project operations.");
|
|
45
|
+
}).passthrough().describe("Permissions model for project operations.");
|
|
46
46
|
const MailtrapGetProject_ProjectShareLinksSchema = z.object({
|
|
47
47
|
admin: z.string().describe("Admin share link for the project.").nullable().optional(),
|
|
48
48
|
viewer: z.string().describe("Viewer share link for the project.").nullable().optional()
|
|
49
|
-
}).describe("Share links for project access.");
|
|
49
|
+
}).passthrough().describe("Share links for project access.");
|
|
50
50
|
const mailtrapGetProject = action("MAILTRAP_GET_PROJECT", {
|
|
51
51
|
slug: "mailtrap-get-project",
|
|
52
52
|
name: "Get Project by ID",
|
|
@@ -58,7 +58,7 @@ const mailtrapGetProject = action("MAILTRAP_GET_PROJECT", {
|
|
|
58
58
|
inboxes: z.array(MailtrapGetProject_ProjectInboxSchema).describe("List of inboxes within the project."),
|
|
59
59
|
permissions: MailtrapGetProject_ProjectPermissionsSchema.nullable(),
|
|
60
60
|
share_links: MailtrapGetProject_ProjectShareLinksSchema.nullable().optional()
|
|
61
|
-
}).describe("Response model containing project details from Mailtrap.")
|
|
61
|
+
}).passthrough().describe("Response model containing project details from Mailtrap.")
|
|
62
62
|
});
|
|
63
63
|
//#endregion
|
|
64
64
|
export { mailtrapGetProject };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-project.mjs","names":[],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetProjectInput = z.object({\n account_id: z.number().int().describe(\"Unique account ID to identify the Mailtrap account.\"),\n project_id: z.number().int().describe(\"Unique project ID to identify the specific project.\"),\n}).describe(\"Request model for retrieving a project by ID from Mailtrap.\");\nconst MailtrapGetProject_InboxPermissionsSchema = z.object({\n can_read: z.boolean().describe(\"Whether the token has permission to read the inbox.\").nullable(),\n can_leave: z.boolean().describe(\"Whether the token has permission to leave the inbox.\").nullable(),\n can_update: z.boolean().describe(\"Whether the token has permission to update the inbox.\").nullable(),\n can_destroy: z.boolean().describe(\"Whether the token has permission to destroy the inbox.\").nullable(),\n}).describe(\"Permissions model for inbox operations within a project.\");\nconst MailtrapGetProject_ProjectInboxSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the inbox.\").nullable(),\n name: z.string().describe(\"Name of the inbox.\").nullable(),\n used: z.boolean().describe(\"Whether the inbox has been used.\").nullable(),\n domain: z.string().describe(\"Domain for the inbox.\").nullable(),\n status: z.string().describe(\"Current status of the inbox.\").nullable(),\n max_size: z.number().int().describe(\"Maximum size limit for the inbox in bytes.\").nullable(),\n password: z.string().describe(\"Password for accessing the inbox.\").nullable().optional(),\n username: z.string().describe(\"Username for accessing the inbox.\").nullable(),\n api_domain: z.string().describe(\"API domain for the inbox.\").nullable(),\n pop3_ports: z.array(z.number().int()).describe(\"List of POP3 ports available for the inbox.\"),\n project_id: z.number().int().describe(\"ID of the project this inbox belongs to.\").nullable(),\n smtp_ports: z.array(z.number().int()).describe(\"List of SMTP ports available for the inbox.\"),\n permissions: MailtrapGetProject_InboxPermissionsSchema.nullable(),\n pop3_domain: z.string().describe(\"POP3 domain for accessing the inbox.\").nullable(),\n email_domain: z.string().describe(\"Email domain for the inbox.\").nullable(),\n emails_count: z.number().int().describe(\"Total number of emails in the inbox.\").nullable(),\n email_username: z.string().describe(\"Email username for the inbox.\").nullable(),\n max_message_size: z.number().int().describe(\"Maximum message size allowed in bytes.\").nullable(),\n emails_unread_count: z.number().int().describe(\"Number of unread emails in the inbox.\").nullable(),\n sent_messages_count: z.number().int().describe(\"Total number of sent messages from the inbox.\").nullable(),\n last_message_sent_at: z.string().describe(\"Timestamp of the last message sent.\").nullable().optional(),\n email_username_enabled: z.boolean().describe(\"Whether the email username is enabled.\").nullable(),\n forwarded_messages_count: z.number().int().describe(\"Total number of forwarded messages.\").nullable(),\n forward_from_email_address: z.string().describe(\"Email address from which messages are forwarded.\").nullable(),\n}).describe(\"Inbox information within a project.\");\nconst MailtrapGetProject_ProjectPermissionsSchema = z.object({\n can_read: z.boolean().describe(\"Whether the token has permission to read the project.\").nullable(),\n can_leave: z.boolean().describe(\"Whether the token has permission to leave the project.\").nullable(),\n can_update: z.boolean().describe(\"Whether the token has permission to update the project.\").nullable(),\n can_destroy: z.boolean().describe(\"Whether the token has permission to destroy the project.\").nullable(),\n}).describe(\"Permissions model for project operations.\");\nconst MailtrapGetProject_ProjectShareLinksSchema = z.object({\n admin: z.string().describe(\"Admin share link for the project.\").nullable().optional(),\n viewer: z.string().describe(\"Viewer share link for the project.\").nullable().optional(),\n}).describe(\"Share links for project access.\");\nexport const MailtrapGetProjectOutput = z.object({\n id: z.number().int().describe(\"Unique identifier for the project.\").nullable(),\n name: z.string().describe(\"Name of the project.\").nullable(),\n inboxes: z.array(MailtrapGetProject_ProjectInboxSchema).describe(\"List of inboxes within the project.\"),\n permissions: MailtrapGetProject_ProjectPermissionsSchema.nullable(),\n share_links: MailtrapGetProject_ProjectShareLinksSchema.nullable().optional(),\n}).describe(\"Response model containing project details from Mailtrap.\");\n\nexport const mailtrapGetProject = action(\"MAILTRAP_GET_PROJECT\", {\n slug: \"mailtrap-get-project\",\n name: \"Get Project by ID\",\n description: \"Tool to retrieve project details from Mailtrap by project ID. Use when you need to get information about a specific project including its inboxes, permissions, and share links.\",\n input: MailtrapGetProjectInput,\n output: MailtrapGetProjectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD;AAC7F,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,4CAA4C,EAAE,OAAO;CACzD,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC/F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACjG,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACnG,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,0DAA0D;
|
|
1
|
+
{"version":3,"file":"get-project.mjs","names":[],"sources":["../../src/actions/get-project.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetProjectInput = z.object({\n account_id: z.number().int().describe(\"Unique account ID to identify the Mailtrap account.\"),\n project_id: z.number().int().describe(\"Unique project ID to identify the specific project.\"),\n}).describe(\"Request model for retrieving a project by ID from Mailtrap.\");\nconst MailtrapGetProject_InboxPermissionsSchema = z.object({\n can_read: z.boolean().describe(\"Whether the token has permission to read the inbox.\").nullable(),\n can_leave: z.boolean().describe(\"Whether the token has permission to leave the inbox.\").nullable(),\n can_update: z.boolean().describe(\"Whether the token has permission to update the inbox.\").nullable(),\n can_destroy: z.boolean().describe(\"Whether the token has permission to destroy the inbox.\").nullable(),\n}).passthrough().describe(\"Permissions model for inbox operations within a project.\");\nconst MailtrapGetProject_ProjectInboxSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the inbox.\").nullable(),\n name: z.string().describe(\"Name of the inbox.\").nullable(),\n used: z.boolean().describe(\"Whether the inbox has been used.\").nullable(),\n domain: z.string().describe(\"Domain for the inbox.\").nullable(),\n status: z.string().describe(\"Current status of the inbox.\").nullable(),\n max_size: z.number().int().describe(\"Maximum size limit for the inbox in bytes.\").nullable(),\n password: z.string().describe(\"Password for accessing the inbox.\").nullable().optional(),\n username: z.string().describe(\"Username for accessing the inbox.\").nullable(),\n api_domain: z.string().describe(\"API domain for the inbox.\").nullable(),\n pop3_ports: z.array(z.number().int()).describe(\"List of POP3 ports available for the inbox.\"),\n project_id: z.number().int().describe(\"ID of the project this inbox belongs to.\").nullable(),\n smtp_ports: z.array(z.number().int()).describe(\"List of SMTP ports available for the inbox.\"),\n permissions: MailtrapGetProject_InboxPermissionsSchema.nullable(),\n pop3_domain: z.string().describe(\"POP3 domain for accessing the inbox.\").nullable(),\n email_domain: z.string().describe(\"Email domain for the inbox.\").nullable(),\n emails_count: z.number().int().describe(\"Total number of emails in the inbox.\").nullable(),\n email_username: z.string().describe(\"Email username for the inbox.\").nullable(),\n max_message_size: z.number().int().describe(\"Maximum message size allowed in bytes.\").nullable(),\n emails_unread_count: z.number().int().describe(\"Number of unread emails in the inbox.\").nullable(),\n sent_messages_count: z.number().int().describe(\"Total number of sent messages from the inbox.\").nullable(),\n last_message_sent_at: z.string().describe(\"Timestamp of the last message sent.\").nullable().optional(),\n email_username_enabled: z.boolean().describe(\"Whether the email username is enabled.\").nullable(),\n forwarded_messages_count: z.number().int().describe(\"Total number of forwarded messages.\").nullable(),\n forward_from_email_address: z.string().describe(\"Email address from which messages are forwarded.\").nullable(),\n}).passthrough().describe(\"Inbox information within a project.\");\nconst MailtrapGetProject_ProjectPermissionsSchema = z.object({\n can_read: z.boolean().describe(\"Whether the token has permission to read the project.\").nullable(),\n can_leave: z.boolean().describe(\"Whether the token has permission to leave the project.\").nullable(),\n can_update: z.boolean().describe(\"Whether the token has permission to update the project.\").nullable(),\n can_destroy: z.boolean().describe(\"Whether the token has permission to destroy the project.\").nullable(),\n}).passthrough().describe(\"Permissions model for project operations.\");\nconst MailtrapGetProject_ProjectShareLinksSchema = z.object({\n admin: z.string().describe(\"Admin share link for the project.\").nullable().optional(),\n viewer: z.string().describe(\"Viewer share link for the project.\").nullable().optional(),\n}).passthrough().describe(\"Share links for project access.\");\nexport const MailtrapGetProjectOutput = z.object({\n id: z.number().int().describe(\"Unique identifier for the project.\").nullable(),\n name: z.string().describe(\"Name of the project.\").nullable(),\n inboxes: z.array(MailtrapGetProject_ProjectInboxSchema).describe(\"List of inboxes within the project.\"),\n permissions: MailtrapGetProject_ProjectPermissionsSchema.nullable(),\n share_links: MailtrapGetProject_ProjectShareLinksSchema.nullable().optional(),\n}).passthrough().describe(\"Response model containing project details from Mailtrap.\");\n\nexport const mailtrapGetProject = action(\"MAILTRAP_GET_PROJECT\", {\n slug: \"mailtrap-get-project\",\n name: \"Get Project by ID\",\n description: \"Tool to retrieve project details from Mailtrap by project ID. Use when you need to get information about a specific project including its inboxes, permissions, and share links.\",\n input: MailtrapGetProject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const MailtrapGetSendingDomain_DnsRecordSchema = zod.z.object({
|
|
|
12
12
|
value: zod.z.string().describe("DNS record value").nullable().optional(),
|
|
13
13
|
domain: zod.z.string().describe("DNS domain name").nullable().optional(),
|
|
14
14
|
status: zod.z.string().describe("DNS record verification status").nullable().optional()
|
|
15
|
-
}).describe("DNS record details for the sending domain");
|
|
15
|
+
}).passthrough().describe("DNS record details for the sending domain");
|
|
16
16
|
const MailtrapGetSendingDomain_PermissionsSchema = zod.z.object({
|
|
17
17
|
can_read: zod.z.boolean().describe("Whether the domain can be read").nullable().optional(),
|
|
18
18
|
can_update: zod.z.boolean().describe("Whether the domain can be updated").nullable().optional(),
|
|
19
19
|
can_destroy: zod.z.boolean().describe("Whether the domain can be deleted").nullable().optional()
|
|
20
|
-
}).describe("Permissions for the sending domain");
|
|
20
|
+
}).passthrough().describe("Permissions for the sending domain");
|
|
21
21
|
const MailtrapGetSendingDomain_ComplianceStatusSchema = zod.z.enum([
|
|
22
22
|
"initial",
|
|
23
23
|
"unverified_dns",
|
|
@@ -45,7 +45,7 @@ const MailtrapGetSendingDomainOutput = zod.z.object({
|
|
|
45
45
|
critical_alerts_enabled: zod.z.boolean().describe("Whether critical alerts are enabled").nullable().optional(),
|
|
46
46
|
auto_unsubscribe_link_enabled: zod.z.boolean().describe("Whether auto-unsubscribe link is enabled").nullable().optional(),
|
|
47
47
|
custom_domain_tracking_enabled: zod.z.boolean().describe("Whether custom domain tracking is enabled").nullable().optional()
|
|
48
|
-
}).describe("Response model for sending domain details");
|
|
48
|
+
}).passthrough().describe("Response model for sending domain details");
|
|
49
49
|
const mailtrapGetSendingDomain = require_action.action("MAILTRAP_GET_SENDING_DOMAIN", {
|
|
50
50
|
slug: "mailtrap-get-sending-domain",
|
|
51
51
|
name: "Get Sending Domain",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sending-domain.cjs","names":["z","action"],"sources":["../../src/actions/get-sending-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingDomainInput = z.object({\n account_id: z.number().int().describe(\"Account ID\"),\n sending_domain_id: z.number().int().describe(\"Sending domain ID\"),\n}).describe(\"Request model for getting a sending domain\");\nconst MailtrapGetSendingDomain_DnsRecordSchema = z.object({\n key: z.string().describe(\"DNS record key (e.g., verification, spf, dkim1, dkim2, dmarc, link_verification)\").nullable().optional(),\n name: z.string().describe(\"DNS record name\").nullable().optional(),\n type: z.string().describe(\"DNS record type (e.g., CNAME, TXT)\").nullable().optional(),\n value: z.string().describe(\"DNS record value\").nullable().optional(),\n domain: z.string().describe(\"DNS domain name\").nullable().optional(),\n status: z.string().describe(\"DNS record verification status\").nullable().optional(),\n}).describe(\"DNS record details for the sending domain\");\nconst MailtrapGetSendingDomain_PermissionsSchema = z.object({\n can_read: z.boolean().describe(\"Whether the domain can be read\").nullable().optional(),\n can_update: z.boolean().describe(\"Whether the domain can be updated\").nullable().optional(),\n can_destroy: z.boolean().describe(\"Whether the domain can be deleted\").nullable().optional(),\n}).describe(\"Permissions for the sending domain\");\nconst MailtrapGetSendingDomain_ComplianceStatusSchema = z.enum([\"initial\", \"unverified_dns\", \"demo\", \"missing_company_info\", \"pending\", \"under_review\", \"non_compliant\", \"suspended\", \"compliant\"]).describe(\"Compliance status of the sending domain\");\nexport const MailtrapGetSendingDomainOutput = z.object({\n id: z.number().int().describe(\"Sending domain ID\").nullable().optional(),\n demo: z.boolean().describe(\"Whether this is a demo domain\").nullable().optional(),\n dns_records: z.array(MailtrapGetSendingDomain_DnsRecordSchema).describe(\"List of DNS records for domain verification\").nullable().optional(),\n domain_name: z.string().describe(\"Domain name\").nullable().optional(),\n permissions: MailtrapGetSendingDomain_PermissionsSchema.nullable().optional(),\n dns_verified: z.boolean().describe(\"Whether DNS is verified\").nullable().optional(),\n dns_verified_at: z.string().describe(\"Timestamp when DNS was verified (ISO 8601 format)\").nullable().optional(),\n compliance_status: MailtrapGetSendingDomain_ComplianceStatusSchema.nullable().optional(),\n alert_recipient_email: z.string().describe(\"Email address for alert notifications\").nullable().optional(),\n health_alerts_enabled: z.boolean().describe(\"Whether health alerts are enabled\").nullable().optional(),\n open_tracking_enabled: z.boolean().describe(\"Whether open tracking is enabled\").nullable().optional(),\n click_tracking_enabled: z.boolean().describe(\"Whether click tracking is enabled\").nullable().optional(),\n critical_alerts_enabled: z.boolean().describe(\"Whether critical alerts are enabled\").nullable().optional(),\n auto_unsubscribe_link_enabled: z.boolean().describe(\"Whether auto-unsubscribe link is enabled\").nullable().optional(),\n custom_domain_tracking_enabled: z.boolean().describe(\"Whether custom domain tracking is enabled\").nullable().optional(),\n}).describe(\"Response model for sending domain details\");\n\nexport const mailtrapGetSendingDomain = action(\"MAILTRAP_GET_SENDING_DOMAIN\", {\n slug: \"mailtrap-get-sending-domain\",\n name: \"Get Sending Domain\",\n description: \"Tool to retrieve sending domain details from Mailtrap. Use when you need to check domain configuration, DNS verification status, or tracking settings.\",\n input: MailtrapGetSendingDomainInput,\n output: MailtrapGetSendingDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY;CAClD,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB;AAClE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,2CAA2C;
|
|
1
|
+
{"version":3,"file":"get-sending-domain.cjs","names":["z","action"],"sources":["../../src/actions/get-sending-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingDomainInput = z.object({\n account_id: z.number().int().describe(\"Account ID\"),\n sending_domain_id: z.number().int().describe(\"Sending domain ID\"),\n}).describe(\"Request model for getting a sending domain\");\nconst MailtrapGetSendingDomain_DnsRecordSchema = z.object({\n key: z.string().describe(\"DNS record key (e.g., verification, spf, dkim1, dkim2, dmarc, link_verification)\").nullable().optional(),\n name: z.string().describe(\"DNS record name\").nullable().optional(),\n type: z.string().describe(\"DNS record type (e.g., CNAME, TXT)\").nullable().optional(),\n value: z.string().describe(\"DNS record value\").nullable().optional(),\n domain: z.string().describe(\"DNS domain name\").nullable().optional(),\n status: z.string().describe(\"DNS record verification status\").nullable().optional(),\n}).passthrough().describe(\"DNS record details for the sending domain\");\nconst MailtrapGetSendingDomain_PermissionsSchema = z.object({\n can_read: z.boolean().describe(\"Whether the domain can be read\").nullable().optional(),\n can_update: z.boolean().describe(\"Whether the domain can be updated\").nullable().optional(),\n can_destroy: z.boolean().describe(\"Whether the domain can be deleted\").nullable().optional(),\n}).passthrough().describe(\"Permissions for the sending domain\");\nconst MailtrapGetSendingDomain_ComplianceStatusSchema = z.enum([\"initial\", \"unverified_dns\", \"demo\", \"missing_company_info\", \"pending\", \"under_review\", \"non_compliant\", \"suspended\", \"compliant\"]).describe(\"Compliance status of the sending domain\");\nexport const MailtrapGetSendingDomainOutput = z.object({\n id: z.number().int().describe(\"Sending domain ID\").nullable().optional(),\n demo: z.boolean().describe(\"Whether this is a demo domain\").nullable().optional(),\n dns_records: z.array(MailtrapGetSendingDomain_DnsRecordSchema).describe(\"List of DNS records for domain verification\").nullable().optional(),\n domain_name: z.string().describe(\"Domain name\").nullable().optional(),\n permissions: MailtrapGetSendingDomain_PermissionsSchema.nullable().optional(),\n dns_verified: z.boolean().describe(\"Whether DNS is verified\").nullable().optional(),\n dns_verified_at: z.string().describe(\"Timestamp when DNS was verified (ISO 8601 format)\").nullable().optional(),\n compliance_status: MailtrapGetSendingDomain_ComplianceStatusSchema.nullable().optional(),\n alert_recipient_email: z.string().describe(\"Email address for alert notifications\").nullable().optional(),\n health_alerts_enabled: z.boolean().describe(\"Whether health alerts are enabled\").nullable().optional(),\n open_tracking_enabled: z.boolean().describe(\"Whether open tracking is enabled\").nullable().optional(),\n click_tracking_enabled: z.boolean().describe(\"Whether click tracking is enabled\").nullable().optional(),\n critical_alerts_enabled: z.boolean().describe(\"Whether critical alerts are enabled\").nullable().optional(),\n auto_unsubscribe_link_enabled: z.boolean().describe(\"Whether auto-unsubscribe link is enabled\").nullable().optional(),\n custom_domain_tracking_enabled: z.boolean().describe(\"Whether custom domain tracking is enabled\").nullable().optional(),\n}).passthrough().describe(\"Response model for sending domain details\");\n\nexport const mailtrapGetSendingDomain = action(\"MAILTRAP_GET_SENDING_DOMAIN\", {\n slug: \"mailtrap-get-sending-domain\",\n name: \"Get Sending Domain\",\n description: \"Tool to retrieve sending domain details from Mailtrap. Use when you need to check domain configuration, DNS verification status, or tracking settings.\",\n input: MailtrapGetSendingDomainInput,\n output: MailtrapGetSendingDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY;CAClD,mBAAmBA,I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CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,+BAA+BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,gCAAgCA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,13 +15,13 @@ declare const MailtrapGetSendingDomainOutput: z.ZodObject<{
|
|
|
15
15
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
19
19
|
domain_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
permissions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
21
21
|
can_read: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
22
22
|
can_update: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
23
23
|
can_destroy: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>>;
|
|
25
25
|
dns_verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
26
|
dns_verified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
compliance_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
@@ -42,7 +42,7 @@ declare const MailtrapGetSendingDomainOutput: z.ZodObject<{
|
|
|
42
42
|
critical_alerts_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
43
43
|
auto_unsubscribe_link_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
44
44
|
custom_domain_tracking_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const mailtrapGetSendingDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
account_id: number;
|
|
48
48
|
sending_domain_id: number;
|
|
@@ -15,13 +15,13 @@ declare const MailtrapGetSendingDomainOutput: z.ZodObject<{
|
|
|
15
15
|
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>>>;
|
|
19
19
|
domain_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
permissions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
21
21
|
can_read: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
22
22
|
can_update: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
23
23
|
can_destroy: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>>;
|
|
25
25
|
dns_verified: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
26
|
dns_verified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
compliance_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
@@ -42,7 +42,7 @@ declare const MailtrapGetSendingDomainOutput: z.ZodObject<{
|
|
|
42
42
|
critical_alerts_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
43
43
|
auto_unsubscribe_link_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
44
44
|
custom_domain_tracking_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const mailtrapGetSendingDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
account_id: number;
|
|
48
48
|
sending_domain_id: number;
|
|
@@ -12,12 +12,12 @@ const MailtrapGetSendingDomain_DnsRecordSchema = z.object({
|
|
|
12
12
|
value: z.string().describe("DNS record value").nullable().optional(),
|
|
13
13
|
domain: z.string().describe("DNS domain name").nullable().optional(),
|
|
14
14
|
status: z.string().describe("DNS record verification status").nullable().optional()
|
|
15
|
-
}).describe("DNS record details for the sending domain");
|
|
15
|
+
}).passthrough().describe("DNS record details for the sending domain");
|
|
16
16
|
const MailtrapGetSendingDomain_PermissionsSchema = z.object({
|
|
17
17
|
can_read: z.boolean().describe("Whether the domain can be read").nullable().optional(),
|
|
18
18
|
can_update: z.boolean().describe("Whether the domain can be updated").nullable().optional(),
|
|
19
19
|
can_destroy: z.boolean().describe("Whether the domain can be deleted").nullable().optional()
|
|
20
|
-
}).describe("Permissions for the sending domain");
|
|
20
|
+
}).passthrough().describe("Permissions for the sending domain");
|
|
21
21
|
const MailtrapGetSendingDomain_ComplianceStatusSchema = z.enum([
|
|
22
22
|
"initial",
|
|
23
23
|
"unverified_dns",
|
|
@@ -50,7 +50,7 @@ const mailtrapGetSendingDomain = action("MAILTRAP_GET_SENDING_DOMAIN", {
|
|
|
50
50
|
critical_alerts_enabled: z.boolean().describe("Whether critical alerts are enabled").nullable().optional(),
|
|
51
51
|
auto_unsubscribe_link_enabled: z.boolean().describe("Whether auto-unsubscribe link is enabled").nullable().optional(),
|
|
52
52
|
custom_domain_tracking_enabled: z.boolean().describe("Whether custom domain tracking is enabled").nullable().optional()
|
|
53
|
-
}).describe("Response model for sending domain details")
|
|
53
|
+
}).passthrough().describe("Response model for sending domain details")
|
|
54
54
|
});
|
|
55
55
|
//#endregion
|
|
56
56
|
export { mailtrapGetSendingDomain };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sending-domain.mjs","names":[],"sources":["../../src/actions/get-sending-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingDomainInput = z.object({\n account_id: z.number().int().describe(\"Account ID\"),\n sending_domain_id: z.number().int().describe(\"Sending domain ID\"),\n}).describe(\"Request model for getting a sending domain\");\nconst MailtrapGetSendingDomain_DnsRecordSchema = z.object({\n key: z.string().describe(\"DNS record key (e.g., verification, spf, dkim1, dkim2, dmarc, link_verification)\").nullable().optional(),\n name: z.string().describe(\"DNS record name\").nullable().optional(),\n type: z.string().describe(\"DNS record type (e.g., CNAME, TXT)\").nullable().optional(),\n value: z.string().describe(\"DNS record value\").nullable().optional(),\n domain: z.string().describe(\"DNS domain name\").nullable().optional(),\n status: z.string().describe(\"DNS record verification status\").nullable().optional(),\n}).describe(\"DNS record details for the sending domain\");\nconst MailtrapGetSendingDomain_PermissionsSchema = z.object({\n can_read: z.boolean().describe(\"Whether the domain can be read\").nullable().optional(),\n can_update: z.boolean().describe(\"Whether the domain can be updated\").nullable().optional(),\n can_destroy: z.boolean().describe(\"Whether the domain can be deleted\").nullable().optional(),\n}).describe(\"Permissions for the sending domain\");\nconst MailtrapGetSendingDomain_ComplianceStatusSchema = z.enum([\"initial\", \"unverified_dns\", \"demo\", \"missing_company_info\", \"pending\", \"under_review\", \"non_compliant\", \"suspended\", \"compliant\"]).describe(\"Compliance status of the sending domain\");\nexport const MailtrapGetSendingDomainOutput = z.object({\n id: z.number().int().describe(\"Sending domain ID\").nullable().optional(),\n demo: z.boolean().describe(\"Whether this is a demo domain\").nullable().optional(),\n dns_records: z.array(MailtrapGetSendingDomain_DnsRecordSchema).describe(\"List of DNS records for domain verification\").nullable().optional(),\n domain_name: z.string().describe(\"Domain name\").nullable().optional(),\n permissions: MailtrapGetSendingDomain_PermissionsSchema.nullable().optional(),\n dns_verified: z.boolean().describe(\"Whether DNS is verified\").nullable().optional(),\n dns_verified_at: z.string().describe(\"Timestamp when DNS was verified (ISO 8601 format)\").nullable().optional(),\n compliance_status: MailtrapGetSendingDomain_ComplianceStatusSchema.nullable().optional(),\n alert_recipient_email: z.string().describe(\"Email address for alert notifications\").nullable().optional(),\n health_alerts_enabled: z.boolean().describe(\"Whether health alerts are enabled\").nullable().optional(),\n open_tracking_enabled: z.boolean().describe(\"Whether open tracking is enabled\").nullable().optional(),\n click_tracking_enabled: z.boolean().describe(\"Whether click tracking is enabled\").nullable().optional(),\n critical_alerts_enabled: z.boolean().describe(\"Whether critical alerts are enabled\").nullable().optional(),\n auto_unsubscribe_link_enabled: z.boolean().describe(\"Whether auto-unsubscribe link is enabled\").nullable().optional(),\n custom_domain_tracking_enabled: z.boolean().describe(\"Whether custom domain tracking is enabled\").nullable().optional(),\n}).describe(\"Response model for sending domain details\");\n\nexport const mailtrapGetSendingDomain = action(\"MAILTRAP_GET_SENDING_DOMAIN\", {\n slug: \"mailtrap-get-sending-domain\",\n name: \"Get Sending Domain\",\n description: \"Tool to retrieve sending domain details from Mailtrap. Use when you need to check domain configuration, DNS verification status, or tracking settings.\",\n input: MailtrapGetSendingDomainInput,\n output: MailtrapGetSendingDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY;CAClD,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB;AAClE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,2CAA2C,EAAE,OAAO;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,2CAA2C;
|
|
1
|
+
{"version":3,"file":"get-sending-domain.mjs","names":[],"sources":["../../src/actions/get-sending-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingDomainInput = z.object({\n account_id: z.number().int().describe(\"Account ID\"),\n sending_domain_id: z.number().int().describe(\"Sending domain ID\"),\n}).describe(\"Request model for getting a sending domain\");\nconst MailtrapGetSendingDomain_DnsRecordSchema = z.object({\n key: z.string().describe(\"DNS record key (e.g., verification, spf, dkim1, dkim2, dmarc, link_verification)\").nullable().optional(),\n name: z.string().describe(\"DNS record name\").nullable().optional(),\n type: z.string().describe(\"DNS record type (e.g., CNAME, TXT)\").nullable().optional(),\n value: z.string().describe(\"DNS record value\").nullable().optional(),\n domain: z.string().describe(\"DNS domain name\").nullable().optional(),\n status: z.string().describe(\"DNS record verification status\").nullable().optional(),\n}).passthrough().describe(\"DNS record details for the sending domain\");\nconst MailtrapGetSendingDomain_PermissionsSchema = z.object({\n can_read: z.boolean().describe(\"Whether the domain can be read\").nullable().optional(),\n can_update: z.boolean().describe(\"Whether the domain can be updated\").nullable().optional(),\n can_destroy: z.boolean().describe(\"Whether the domain can be deleted\").nullable().optional(),\n}).passthrough().describe(\"Permissions for the sending domain\");\nconst MailtrapGetSendingDomain_ComplianceStatusSchema = z.enum([\"initial\", \"unverified_dns\", \"demo\", \"missing_company_info\", \"pending\", \"under_review\", \"non_compliant\", \"suspended\", \"compliant\"]).describe(\"Compliance status of the sending domain\");\nexport const MailtrapGetSendingDomainOutput = z.object({\n id: z.number().int().describe(\"Sending domain ID\").nullable().optional(),\n demo: z.boolean().describe(\"Whether this is a demo domain\").nullable().optional(),\n dns_records: z.array(MailtrapGetSendingDomain_DnsRecordSchema).describe(\"List of DNS records for domain verification\").nullable().optional(),\n domain_name: z.string().describe(\"Domain name\").nullable().optional(),\n permissions: MailtrapGetSendingDomain_PermissionsSchema.nullable().optional(),\n dns_verified: z.boolean().describe(\"Whether DNS is verified\").nullable().optional(),\n dns_verified_at: z.string().describe(\"Timestamp when DNS was verified (ISO 8601 format)\").nullable().optional(),\n compliance_status: MailtrapGetSendingDomain_ComplianceStatusSchema.nullable().optional(),\n alert_recipient_email: z.string().describe(\"Email address for alert notifications\").nullable().optional(),\n health_alerts_enabled: z.boolean().describe(\"Whether health alerts are enabled\").nullable().optional(),\n open_tracking_enabled: z.boolean().describe(\"Whether open tracking is enabled\").nullable().optional(),\n click_tracking_enabled: z.boolean().describe(\"Whether click tracking is enabled\").nullable().optional(),\n critical_alerts_enabled: z.boolean().describe(\"Whether critical alerts are enabled\").nullable().optional(),\n auto_unsubscribe_link_enabled: z.boolean().describe(\"Whether auto-unsubscribe link is enabled\").nullable().optional(),\n custom_domain_tracking_enabled: z.boolean().describe(\"Whether custom domain tracking is enabled\").nullable().optional(),\n}).passthrough().describe(\"Response model for sending domain details\");\n\nexport const mailtrapGetSendingDomain = action(\"MAILTRAP_GET_SENDING_DOMAIN\", {\n slug: \"mailtrap-get-sending-domain\",\n name: \"Get Sending Domain\",\n description: \"Tool to retrieve sending domain details from Mailtrap. Use when you need to check domain configuration, DNS verification status, or tracking settings.\",\n input: MailtrapGetSendingDomainInput,\n output: MailtrapGetSendingDomainOutput,\n});\n"],"mappings":";;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S,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,+BAA+B,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,gCAAgC,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -21,12 +21,12 @@ const MailtrapGetSendingStatsByCategories_SendingStatsSchema = zod.z.object({
|
|
|
21
21
|
bounce_count: zod.z.number().int().describe("Number of bounced emails").nullable().optional(),
|
|
22
22
|
delivery_rate: zod.z.number().describe("Rate of successfully delivered emails (0.0 to 1.0)").nullable().optional(),
|
|
23
23
|
delivery_count: zod.z.number().int().describe("Number of successfully delivered emails").nullable().optional()
|
|
24
|
-
}).describe("Statistics for email sending metrics.");
|
|
24
|
+
}).passthrough().describe("Statistics for email sending metrics.");
|
|
25
25
|
const MailtrapGetSendingStatsByCategories_CategoryStatsSchema = zod.z.object({
|
|
26
26
|
stats: zod.z.array(MailtrapGetSendingStatsByCategories_SendingStatsSchema).describe("Array of sending statistics for this category"),
|
|
27
27
|
category: zod.z.string().describe("Email category name").nullable()
|
|
28
|
-
}).describe("Statistics grouped by category.");
|
|
29
|
-
const MailtrapGetSendingStatsByCategoriesOutput = zod.z.object({ categories: zod.z.array(MailtrapGetSendingStatsByCategories_CategoryStatsSchema).describe("List of statistics grouped by email categories") }).describe("Response model containing email sending statistics grouped by categories.");
|
|
28
|
+
}).passthrough().describe("Statistics grouped by category.");
|
|
29
|
+
const MailtrapGetSendingStatsByCategoriesOutput = zod.z.object({ categories: zod.z.array(MailtrapGetSendingStatsByCategories_CategoryStatsSchema).describe("List of statistics grouped by email categories") }).passthrough().describe("Response model containing email sending statistics grouped by categories.");
|
|
30
30
|
const mailtrapGetSendingStatsByCategories = require_action.action("MAILTRAP_GET_SENDING_STATS_BY_CATEGORIES", {
|
|
31
31
|
slug: "mailtrap-get-sending-stats-by-categories",
|
|
32
32
|
name: "Get Sending Stats by Categories",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sending-stats-by-categories.cjs","names":["z","action"],"sources":["../../src/actions/get-sending-stats-by-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByCategoriesInput = z.object({\n end_date: z.string().describe(\"End date for the statistics period in YYYY-MM-DD format\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve statistics\"),\n categories: z.array(z.string()).describe(\"Email categories to filter results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for the statistics period in YYYY-MM-DD format\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams to filter results (e.g., transactional, bulk). If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains to filter results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers to filter results (e.g., Google, Yahoo). If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request model for retrieving email sending statistics by categories.\");\nconst MailtrapGetSendingStatsByCategories_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Rate of opened emails (0.0 to 1.0)\").nullable().optional(),\n spam_rate: z.number().describe(\"Rate of emails marked as spam (0.0 to 1.0)\").nullable().optional(),\n click_rate: z.number().describe(\"Rate of clicked emails (0.0 to 1.0)\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of opened emails\").nullable().optional(),\n spam_count: z.number().int().describe(\"Number of emails marked as spam\").nullable().optional(),\n bounce_rate: z.number().describe(\"Rate of bounced emails (0.0 to 1.0)\").nullable().optional(),\n click_count: z.number().int().describe(\"Number of clicked emails\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Number of bounced emails\").nullable().optional(),\n delivery_rate: z.number().describe(\"Rate of successfully delivered emails (0.0 to 1.0)\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails\").nullable().optional(),\n}).describe(\"Statistics for email sending metrics.\");\nconst MailtrapGetSendingStatsByCategories_CategoryStatsSchema = z.object({\n stats: z.array(MailtrapGetSendingStatsByCategories_SendingStatsSchema).describe(\"Array of sending statistics for this category\"),\n category: z.string().describe(\"Email category name\").nullable(),\n}).describe(\"Statistics grouped by category.\");\nexport const MailtrapGetSendingStatsByCategoriesOutput = z.object({\n categories: z.array(MailtrapGetSendingStatsByCategories_CategoryStatsSchema).describe(\"List of statistics grouped by email categories\"),\n}).describe(\"Response model containing email sending statistics grouped by categories.\");\n\nexport const mailtrapGetSendingStatsByCategories = action(\"MAILTRAP_GET_SENDING_STATS_BY_CATEGORIES\", {\n slug: \"mailtrap-get-sending-stats-by-categories\",\n name: \"Get Sending Stats by Categories\",\n description: \"Tool to retrieve email sending statistics grouped by categories. Use when you need to analyze email performance metrics (delivery, bounce, open, click, spam rates) segmented by email categories within a date range.\",\n input: MailtrapGetSendingStatsByCategoriesInput,\n output: MailtrapGetSendingStatsByCategoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CACnF,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC3F,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CAC5L,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,I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,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,uCAAuC;
|
|
1
|
+
{"version":3,"file":"get-sending-stats-by-categories.cjs","names":["z","action"],"sources":["../../src/actions/get-sending-stats-by-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MailtrapGetSendingStatsByCategoriesInput = z.object({\n end_date: z.string().describe(\"End date for the statistics period in YYYY-MM-DD format\"),\n account_id: z.number().int().describe(\"Account ID for which to retrieve statistics\"),\n categories: z.array(z.string()).describe(\"Email categories to filter results. If not provided, results for all categories will be included.\").optional(),\n start_date: z.string().describe(\"Start date for the statistics period in YYYY-MM-DD format\"),\n sending_streams: z.array(z.string()).describe(\"Sending streams to filter results (e.g., transactional, bulk). If not provided, results for all sending streams will be included.\").optional(),\n sending_domain_ids: z.array(z.number().int()).describe(\"IDs of the sending domains to filter results. If not provided, results for all sending domains will be included.\").optional(),\n email_service_providers: z.array(z.string()).describe(\"Email service providers to filter results (e.g., Google, Yahoo). If not provided, results for all ESPs will be included.\").optional(),\n}).describe(\"Request model for retrieving email sending statistics by categories.\");\nconst MailtrapGetSendingStatsByCategories_SendingStatsSchema = z.object({\n open_rate: z.number().describe(\"Rate of opened emails (0.0 to 1.0)\").nullable().optional(),\n spam_rate: z.number().describe(\"Rate of emails marked as spam (0.0 to 1.0)\").nullable().optional(),\n click_rate: z.number().describe(\"Rate of clicked emails (0.0 to 1.0)\").nullable().optional(),\n open_count: z.number().int().describe(\"Number of opened emails\").nullable().optional(),\n spam_count: z.number().int().describe(\"Number of emails marked as spam\").nullable().optional(),\n bounce_rate: z.number().describe(\"Rate of bounced emails (0.0 to 1.0)\").nullable().optional(),\n click_count: z.number().int().describe(\"Number of clicked emails\").nullable().optional(),\n bounce_count: z.number().int().describe(\"Number of bounced emails\").nullable().optional(),\n delivery_rate: z.number().describe(\"Rate of successfully delivered emails (0.0 to 1.0)\").nullable().optional(),\n delivery_count: z.number().int().describe(\"Number of successfully delivered emails\").nullable().optional(),\n}).passthrough().describe(\"Statistics for email sending metrics.\");\nconst MailtrapGetSendingStatsByCategories_CategoryStatsSchema = z.object({\n stats: z.array(MailtrapGetSendingStatsByCategories_SendingStatsSchema).describe(\"Array of sending statistics for this category\"),\n category: z.string().describe(\"Email category name\").nullable(),\n}).passthrough().describe(\"Statistics grouped by category.\");\nexport const MailtrapGetSendingStatsByCategoriesOutput = z.object({\n categories: z.array(MailtrapGetSendingStatsByCategories_CategoryStatsSchema).describe(\"List of statistics grouped by email categories\"),\n}).passthrough().describe(\"Response model containing email sending statistics grouped by categories.\");\n\nexport const mailtrapGetSendingStatsByCategories = action(\"MAILTRAP_GET_SENDING_STATS_BY_CATEGORIES\", {\n slug: \"mailtrap-get-sending-stats-by-categories\",\n name: \"Get Sending Stats by Categories\",\n description: \"Tool to retrieve email sending statistics grouped by categories. Use when you need to analyze email performance metrics (delivery, bounce, open, click, spam rates) segmented by email categories within a date range.\",\n input: MailtrapGetSendingStatsByCategoriesInput,\n output: MailtrapGetSendingStatsByCategoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CACnF,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC3F,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CAC5L,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAA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AAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,+CAA+C;CAC/H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAC3D,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,YAAYA,IAAAA,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,EACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E;AAErG,MAAa,sCAAsCC,eAAAA,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -23,10 +23,10 @@ declare const MailtrapGetSendingStatsByCategoriesOutput: z.ZodObject<{
|
|
|
23
23
|
bounce_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
24
|
delivery_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
25
|
delivery_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
27
|
category: z.ZodNullable<z.ZodString>;
|
|
28
|
-
}, z.core.$
|
|
29
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
30
|
declare const mailtrapGetSendingStatsByCategories: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
31
|
end_date: string;
|
|
32
32
|
account_id: number;
|
|
@@ -23,10 +23,10 @@ declare const MailtrapGetSendingStatsByCategoriesOutput: z.ZodObject<{
|
|
|
23
23
|
bounce_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
24
|
delivery_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
25
|
delivery_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
27
|
category: z.ZodNullable<z.ZodString>;
|
|
28
|
-
}, z.core.$
|
|
29
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
30
|
declare const mailtrapGetSendingStatsByCategories: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
31
|
end_date: string;
|
|
32
32
|
account_id: number;
|
|
@@ -21,17 +21,17 @@ const MailtrapGetSendingStatsByCategories_SendingStatsSchema = z.object({
|
|
|
21
21
|
bounce_count: z.number().int().describe("Number of bounced emails").nullable().optional(),
|
|
22
22
|
delivery_rate: z.number().describe("Rate of successfully delivered emails (0.0 to 1.0)").nullable().optional(),
|
|
23
23
|
delivery_count: z.number().int().describe("Number of successfully delivered emails").nullable().optional()
|
|
24
|
-
}).describe("Statistics for email sending metrics.");
|
|
24
|
+
}).passthrough().describe("Statistics for email sending metrics.");
|
|
25
25
|
const MailtrapGetSendingStatsByCategories_CategoryStatsSchema = z.object({
|
|
26
26
|
stats: z.array(MailtrapGetSendingStatsByCategories_SendingStatsSchema).describe("Array of sending statistics for this category"),
|
|
27
27
|
category: z.string().describe("Email category name").nullable()
|
|
28
|
-
}).describe("Statistics grouped by category.");
|
|
28
|
+
}).passthrough().describe("Statistics grouped by category.");
|
|
29
29
|
const mailtrapGetSendingStatsByCategories = action("MAILTRAP_GET_SENDING_STATS_BY_CATEGORIES", {
|
|
30
30
|
slug: "mailtrap-get-sending-stats-by-categories",
|
|
31
31
|
name: "Get Sending Stats by Categories",
|
|
32
32
|
description: "Tool to retrieve email sending statistics grouped by categories. Use when you need to analyze email performance metrics (delivery, bounce, open, click, spam rates) segmented by email categories within a date range.",
|
|
33
33
|
input: MailtrapGetSendingStatsByCategoriesInput,
|
|
34
|
-
output: z.object({ categories: z.array(MailtrapGetSendingStatsByCategories_CategoryStatsSchema).describe("List of statistics grouped by email categories") }).describe("Response model containing email sending statistics grouped by categories.")
|
|
34
|
+
output: z.object({ categories: z.array(MailtrapGetSendingStatsByCategories_CategoryStatsSchema).describe("List of statistics grouped by email categories") }).passthrough().describe("Response model containing email sending statistics grouped by categories.")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { mailtrapGetSendingStatsByCategories };
|