@keystrokehq/salesforce 0.1.3 → 0.1.4

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.
Files changed (154) hide show
  1. package/README.md +2 -2
  2. package/dist/actions/add-opportunity-line-item.cjs +1 -1
  3. package/dist/actions/add-opportunity-line-item.cjs.map +1 -1
  4. package/dist/actions/add-opportunity-line-item.mjs +1 -1
  5. package/dist/actions/add-opportunity-line-item.mjs.map +1 -1
  6. package/dist/actions/create-bulk-ingest-job.cjs +53 -0
  7. package/dist/actions/create-bulk-ingest-job.cjs.map +1 -0
  8. package/dist/actions/create-bulk-ingest-job.d.cts +57 -0
  9. package/dist/actions/create-bulk-ingest-job.d.cts.map +1 -0
  10. package/dist/actions/create-bulk-ingest-job.d.mts +57 -0
  11. package/dist/actions/create-bulk-ingest-job.d.mts.map +1 -0
  12. package/dist/actions/create-bulk-ingest-job.mjs +50 -0
  13. package/dist/actions/create-bulk-ingest-job.mjs.map +1 -0
  14. package/dist/actions/create-bulk-query-job.cjs +43 -0
  15. package/dist/actions/create-bulk-query-job.cjs.map +1 -0
  16. package/dist/actions/create-bulk-query-job.d.cts +48 -0
  17. package/dist/actions/create-bulk-query-job.d.cts.map +1 -0
  18. package/dist/actions/create-bulk-query-job.d.mts +48 -0
  19. package/dist/actions/create-bulk-query-job.d.mts.map +1 -0
  20. package/dist/actions/create-bulk-query-job.mjs +40 -0
  21. package/dist/actions/create-bulk-query-job.mjs.map +1 -0
  22. package/dist/actions/create-custom-field.cjs +1 -1
  23. package/dist/actions/create-custom-field.cjs.map +1 -1
  24. package/dist/actions/create-custom-field.mjs +1 -1
  25. package/dist/actions/create-custom-field.mjs.map +1 -1
  26. package/dist/actions/execute-global-quick-action.cjs +32 -0
  27. package/dist/actions/execute-global-quick-action.cjs.map +1 -0
  28. package/dist/actions/execute-global-quick-action.d.cts +28 -0
  29. package/dist/actions/execute-global-quick-action.d.cts.map +1 -0
  30. package/dist/actions/execute-global-quick-action.d.mts +28 -0
  31. package/dist/actions/execute-global-quick-action.d.mts.map +1 -0
  32. package/dist/actions/execute-global-quick-action.mjs +31 -0
  33. package/dist/actions/execute-global-quick-action.mjs.map +1 -0
  34. package/dist/actions/execute-invocable-action.cjs +28 -0
  35. package/dist/actions/execute-invocable-action.cjs.map +1 -0
  36. package/dist/actions/execute-invocable-action.d.cts +29 -0
  37. package/dist/actions/execute-invocable-action.d.cts.map +1 -0
  38. package/dist/actions/execute-invocable-action.d.mts +29 -0
  39. package/dist/actions/execute-invocable-action.d.mts.map +1 -0
  40. package/dist/actions/execute-invocable-action.mjs +27 -0
  41. package/dist/actions/execute-invocable-action.mjs.map +1 -0
  42. package/dist/actions/get-all-custom-objects.cjs +1 -1
  43. package/dist/actions/get-all-custom-objects.cjs.map +1 -1
  44. package/dist/actions/get-all-custom-objects.mjs +1 -1
  45. package/dist/actions/get-all-custom-objects.mjs.map +1 -1
  46. package/dist/actions/get-app.cjs +1 -1
  47. package/dist/actions/get-app.cjs.map +1 -1
  48. package/dist/actions/get-app.d.cts +2 -2
  49. package/dist/actions/get-app.d.mts +2 -2
  50. package/dist/actions/get-app.mjs +1 -1
  51. package/dist/actions/get-app.mjs.map +1 -1
  52. package/dist/actions/get-consent-action.cjs +1 -1
  53. package/dist/actions/get-consent-action.cjs.map +1 -1
  54. package/dist/actions/get-consent-action.mjs +1 -1
  55. package/dist/actions/get-consent-action.mjs.map +1 -1
  56. package/dist/actions/get-last-selected-app.cjs +1 -1
  57. package/dist/actions/get-last-selected-app.cjs.map +1 -1
  58. package/dist/actions/get-last-selected-app.d.cts +2 -2
  59. package/dist/actions/get-last-selected-app.d.mts +2 -2
  60. package/dist/actions/get-last-selected-app.mjs +1 -1
  61. package/dist/actions/get-last-selected-app.mjs.map +1 -1
  62. package/dist/actions/get-report-instance.cjs +117 -0
  63. package/dist/actions/get-report-instance.cjs.map +1 -0
  64. package/dist/actions/get-report-instance.d.cts +116 -0
  65. package/dist/actions/get-report-instance.d.cts.map +1 -0
  66. package/dist/actions/get-report-instance.d.mts +116 -0
  67. package/dist/actions/get-report-instance.d.mts.map +1 -0
  68. package/dist/actions/get-report-instance.mjs +116 -0
  69. package/dist/actions/get-report-instance.mjs.map +1 -0
  70. package/dist/actions/get-support.cjs +6 -6
  71. package/dist/actions/get-support.cjs.map +1 -1
  72. package/dist/actions/get-support.d.cts +6 -6
  73. package/dist/actions/get-support.d.mts +6 -6
  74. package/dist/actions/get-support.mjs +6 -6
  75. package/dist/actions/get-support.mjs.map +1 -1
  76. package/dist/actions/index.cjs +14 -4
  77. package/dist/actions/index.d.cts +8 -3
  78. package/dist/actions/index.d.mts +8 -3
  79. package/dist/actions/index.mjs +8 -3
  80. package/dist/actions/list-dashboards.cjs +1 -1
  81. package/dist/actions/list-dashboards.cjs.map +1 -1
  82. package/dist/actions/list-dashboards.mjs +1 -1
  83. package/dist/actions/list-dashboards.mjs.map +1 -1
  84. package/dist/actions/list-reports.cjs +1 -1
  85. package/dist/actions/list-reports.cjs.map +1 -1
  86. package/dist/actions/list-reports.mjs +1 -1
  87. package/dist/actions/list-reports.mjs.map +1 -1
  88. package/dist/actions/mass-transfer-ownership.cjs +1 -1
  89. package/dist/actions/mass-transfer-ownership.cjs.map +1 -1
  90. package/dist/actions/mass-transfer-ownership.mjs +1 -1
  91. package/dist/actions/mass-transfer-ownership.mjs.map +1 -1
  92. package/dist/actions/query-more.cjs +21 -0
  93. package/dist/actions/query-more.cjs.map +1 -0
  94. package/dist/actions/query-more.d.cts +18 -0
  95. package/dist/actions/query-more.d.cts.map +1 -0
  96. package/dist/actions/query-more.d.mts +18 -0
  97. package/dist/actions/query-more.d.mts.map +1 -0
  98. package/dist/actions/query-more.mjs +18 -0
  99. package/dist/actions/query-more.mjs.map +1 -0
  100. package/dist/actions/run-report-async.cjs +30 -0
  101. package/dist/actions/run-report-async.cjs.map +1 -0
  102. package/dist/actions/run-report-async.d.cts +27 -0
  103. package/dist/actions/run-report-async.d.cts.map +1 -0
  104. package/dist/actions/run-report-async.d.mts +27 -0
  105. package/dist/actions/run-report-async.d.mts.map +1 -0
  106. package/dist/actions/run-report-async.mjs +27 -0
  107. package/dist/actions/run-report-async.mjs.map +1 -0
  108. package/dist/actions/run-report.cjs +1 -1
  109. package/dist/actions/run-report.cjs.map +1 -1
  110. package/dist/actions/run-report.mjs +1 -1
  111. package/dist/actions/run-report.mjs.map +1 -1
  112. package/dist/actions/search-knowledge-articles.cjs +2 -2
  113. package/dist/actions/search-knowledge-articles.cjs.map +1 -1
  114. package/dist/actions/search-knowledge-articles.d.cts +5 -5
  115. package/dist/actions/search-knowledge-articles.d.mts +5 -5
  116. package/dist/actions/search-knowledge-articles.mjs +2 -2
  117. package/dist/actions/search-knowledge-articles.mjs.map +1 -1
  118. package/dist/actions/send-mass-email.cjs +1 -1
  119. package/dist/actions/send-mass-email.cjs.map +1 -1
  120. package/dist/actions/send-mass-email.mjs +1 -1
  121. package/dist/actions/send-mass-email.mjs.map +1 -1
  122. package/dist/actions/set-user-password.cjs +6 -3
  123. package/dist/actions/set-user-password.cjs.map +1 -1
  124. package/dist/actions/set-user-password.d.cts +2 -1
  125. package/dist/actions/set-user-password.d.cts.map +1 -1
  126. package/dist/actions/set-user-password.d.mts +2 -1
  127. package/dist/actions/set-user-password.d.mts.map +1 -1
  128. package/dist/actions/set-user-password.mjs +6 -3
  129. package/dist/actions/set-user-password.mjs.map +1 -1
  130. package/dist/execute.cjs +1 -1
  131. package/dist/execute.cjs.map +1 -1
  132. package/dist/execute.mjs +1 -1
  133. package/dist/execute.mjs.map +1 -1
  134. package/dist/index.cjs +14 -4
  135. package/dist/index.d.cts +8 -3
  136. package/dist/index.d.mts +8 -3
  137. package/dist/index.mjs +8 -3
  138. package/package.json +1 -1
  139. package/dist/actions/get-mru-list-view-metadata.cjs +0 -72
  140. package/dist/actions/get-mru-list-view-metadata.cjs.map +0 -1
  141. package/dist/actions/get-mru-list-view-metadata.d.cts +0 -58
  142. package/dist/actions/get-mru-list-view-metadata.d.cts.map +0 -1
  143. package/dist/actions/get-mru-list-view-metadata.d.mts +0 -58
  144. package/dist/actions/get-mru-list-view-metadata.d.mts.map +0 -1
  145. package/dist/actions/get-mru-list-view-metadata.mjs +0 -71
  146. package/dist/actions/get-mru-list-view-metadata.mjs.map +0 -1
  147. package/dist/actions/get-mru-list-view-records.cjs +0 -52
  148. package/dist/actions/get-mru-list-view-records.cjs.map +0 -1
  149. package/dist/actions/get-mru-list-view-records.d.cts +0 -50
  150. package/dist/actions/get-mru-list-view-records.d.cts.map +0 -1
  151. package/dist/actions/get-mru-list-view-records.d.mts +0 -50
  152. package/dist/actions/get-mru-list-view-records.d.mts.map +0 -1
  153. package/dist/actions/get-mru-list-view-records.mjs +0 -51
  154. package/dist/actions/get-mru-list-view-records.mjs.map +0 -1
@@ -0,0 +1,27 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/run-report-async.d.ts
4
+ declare const SalesforceRunReportAsyncInput: z.ZodObject<{
5
+ report_id: z.ZodString;
6
+ include_details: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
+ report_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ }, z.core.$strip>;
9
+ declare const SalesforceRunReportAsyncOutput: z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ status: z.ZodNullable<z.ZodString>;
14
+ ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ requestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ queryOptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17
+ hasDetailRows: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
18
+ completionDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, z.core.$loose>;
20
+ declare const salesforceRunReportAsync: import("@keystrokehq/action").WorkflowActionDefinition<{
21
+ report_id: string;
22
+ include_details?: boolean | undefined;
23
+ report_metadata?: Record<string, unknown> | undefined;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
25
+ //#endregion
26
+ export { salesforceRunReportAsync };
27
+ //# sourceMappingURL=run-report-async.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-report-async.d.mts","names":[],"sources":["../../src/actions/run-report-async.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAK7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY9B,wBAAA,gCAAwB,wBAAA;;;oBAMnC,MAAA;AAAA"}
@@ -0,0 +1,27 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const salesforceRunReportAsync = action("SALESFORCE_RUN_REPORT_ASYNC", {
4
+ slug: "salesforce-run-report-async",
5
+ name: "Run report async",
6
+ description: "Run a Salesforce report asynchronously (POST /analytics/reports/{id}/instances). Returns an instance id and status; the report runs in the background. Retrieve results later with get_report_instance using the returned instance id. Use this (instead of the synchronous run_report) for large reports or to avoid blocking. Without this action, get_report_instance had no obtainable instance id.",
7
+ input: z.object({
8
+ report_id: z.string().describe("The Salesforce ID of the report to run asynchronously."),
9
+ include_details: z.boolean().default(false).describe("If true, the async run includes detailed (row-level) results in addition to aggregates. Passed as the includeDetails query parameter.").optional(),
10
+ report_metadata: z.record(z.string(), z.unknown()).describe("Optional reportMetadata object to override the report's filters/settings for this run only (e.g. reportFilters, standardDateFilter). Sent as the request body when provided.").optional()
11
+ }),
12
+ output: z.object({
13
+ id: z.string().describe("The instance ID for this async run. Poll get_report_instance with this id (and the report_id) to retrieve results once status is 'Success'.").nullable(),
14
+ url: z.string().describe("Relative URL of this instance for fetching results.").nullable().optional(),
15
+ type: z.string().describe("Resource type, typically 'reportMetadata'.").nullable().optional(),
16
+ status: z.string().describe("Run status: 'New', 'Running', 'Success', or 'Error'.").nullable(),
17
+ ownerId: z.string().describe("ID of the user who requested the async run.").nullable().optional(),
18
+ requestDate: z.string().describe("ISO 8601 datetime when the run was requested.").nullable().optional(),
19
+ queryOptions: z.record(z.string(), z.unknown()).describe("Query options applied to the run, if any.").nullable().optional(),
20
+ hasDetailRows: z.boolean().describe("Whether the instance includes detail (row-level) rows.").nullable().optional(),
21
+ completionDate: z.string().describe("ISO 8601 datetime when the run completed. Null until finished.").nullable().optional()
22
+ }).passthrough().describe("Metadata for the asynchronous report run instance.")
23
+ });
24
+ //#endregion
25
+ export { salesforceRunReportAsync };
26
+
27
+ //# sourceMappingURL=run-report-async.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-report-async.mjs","names":[],"sources":["../../src/actions/run-report-async.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceRunReportAsyncInput = z.object({\n report_id: z.string().describe(\"The Salesforce ID of the report to run asynchronously.\"),\n include_details: z.boolean().default(false).describe(\"If true, the async run includes detailed (row-level) results in addition to aggregates. Passed as the includeDetails query parameter.\").optional(),\n report_metadata: z.record(z.string(), z.unknown()).describe(\"Optional reportMetadata object to override the report's filters/settings for this run only (e.g. reportFilters, standardDateFilter). Sent as the request body when provided.\").optional(),\n});\nexport const SalesforceRunReportAsyncOutput = z.object({\n id: z.string().describe(\"The instance ID for this async run. Poll get_report_instance with this id (and the report_id) to retrieve results once status is 'Success'.\").nullable(),\n url: z.string().describe(\"Relative URL of this instance for fetching results.\").nullable().optional(),\n type: z.string().describe(\"Resource type, typically 'reportMetadata'.\").nullable().optional(),\n status: z.string().describe(\"Run status: 'New', 'Running', 'Success', or 'Error'.\").nullable(),\n ownerId: z.string().describe(\"ID of the user who requested the async run.\").nullable().optional(),\n requestDate: z.string().describe(\"ISO 8601 datetime when the run was requested.\").nullable().optional(),\n queryOptions: z.record(z.string(), z.unknown()).describe(\"Query options applied to the run, if any.\").nullable().optional(),\n hasDetailRows: z.boolean().describe(\"Whether the instance includes detail (row-level) rows.\").nullable().optional(),\n completionDate: z.string().describe(\"ISO 8601 datetime when the run completed. Null until finished.\").nullable().optional(),\n}).passthrough().describe(\"Metadata for the asynchronous report run instance.\");\n\nexport const salesforceRunReportAsync = action(\"SALESFORCE_RUN_REPORT_ASYNC\", {\n slug: \"salesforce-run-report-async\",\n name: \"Run report async\",\n description: \"Run a Salesforce report asynchronously (POST /analytics/reports/{id}/instances). Returns an instance id and status; the report runs in the background. Retrieve results later with get_report_instance using the returned instance id. Use this (instead of the synchronous run_report) for large reports or to avoid blocking. Without this action, get_report_instance had no obtainable instance id.\",\n input: SalesforceRunReportAsyncInput,\n output: SalesforceRunReportAsyncOutput,\n});\n"],"mappings":";;AAqBA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB2C,EAAE,OAAO;EACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EACvF,iBAAiB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;EACvM,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;CACvP,CAiBS;CACP,QAjB4C,EAAE,OAAO;EACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;EAChL,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC7F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
@@ -97,7 +97,7 @@ const SalesforceRunReportOutput = zod.z.object({
97
97
  const salesforceRunReport = require_action.action("SALESFORCE_RUN_REPORT", {
98
98
  slug: "salesforce-run-report",
99
99
  name: "Run report",
100
- description: "Runs a report and returns the results. Creates a report instance that can be checked for completion. Results are returned in a nested structure (factMap, reportExtendedMetadata), not a flat record list; an empty factMap/rows is a valid result. Avoid repeated calls when freshness allows — reuse an existing instance_id instead.",
100
+ description: "Runs a report synchronously (GET /analytics/reports/{id}?includeDetails=true) and returns the results in one call. This does NOT create an asynchronous report instance — for that, use the async run resource. Results are returned in a nested structure (factMap, reportExtendedMetadata), not a flat record list; an empty factMap/rows is a valid result. Avoid repeated calls when freshness allows.",
101
101
  input: SalesforceRunReportInput,
102
102
  output: SalesforceRunReportOutput
103
103
  });
@@ -1 +1 @@
1
- {"version":3,"file":"run-report.cjs","names":["z","action"],"sources":["../../src/actions/run-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceRunReportInput = z.object({\n report_id: z.string().describe(\"The Salesforce ID of the report to run.\"),\n});\nconst SalesforceRunReport_ReportAttributesSchema = z.object({\n type: z.string().describe(\"Resource type, typically 'Report'.\").nullable().optional(),\n reportId: z.string().describe(\"The unique identifier of the report.\").nullable().optional(),\n reportName: z.string().describe(\"Name of the report.\").nullable().optional(),\n describeUrl: z.string().describe(\"URL to retrieve report metadata.\").nullable().optional(),\n instancesUrl: z.string().describe(\"URL for report instances.\").nullable().optional(),\n}).passthrough().describe(\"Contains metadata URLs and identifiers for the report.\");\nconst SalesforceRunReport_GroupingSchema = z.object({\n key: z.string().describe(\"Key used to reference corresponding data in the factMap object.\").nullable().optional(),\n label: z.string().describe(\"Display label for the grouping value.\").nullable().optional(),\n value: z.unknown().describe(\"Actual value of the grouping field, can be null.\").nullable().optional(),\n groupings: z.array(z.unknown()).describe(\"Nested groupings array for sub-groupings.\").nullable().optional(),\n}).passthrough().describe(\"Grouping object for row or column groupings.\");\nconst SalesforceRunReport_GroupingsContainerSchema = z.object({\n groupings: z.array(SalesforceRunReport_GroupingSchema).describe(\"Array of grouping objects.\").nullable().optional(),\n}).passthrough().describe(\"Container for groupings array.\");\nconst SalesforceRunReport_SortConfigSchema = z.object({\n sortOrder: z.string().describe(\"Sort direction ('Asc' or 'Desc').\").nullable().optional(),\n sortColumn: z.string().describe(\"API name of the column to sort by.\").nullable().optional(),\n}).passthrough().describe(\"Sort configuration for the report.\");\nconst SalesforceRunReport_ReportTypeSchema = z.object({\n type: z.string().describe(\"API name of the report type (e.g., 'Opportunity', 'Account').\").nullable().optional(),\n label: z.string().describe(\"Display label for the report type.\").nullable().optional(),\n}).passthrough().describe(\"Information about the report type.\");\nconst SalesforceRunReport_GroupingConfigSchema = z.object({\n name: z.string().describe(\"API name of the field to group by.\").nullable().optional(),\n sortOrder: z.string().describe(\"Sort direction ('Asc' or 'Desc').\").nullable().optional(),\n sortAggregate: z.string().describe(\"Aggregate to sort by, or null to sort by grouping value.\").nullable().optional(),\n dateGranularity: z.string().describe(\"Granularity for date fields (e.g., 'None', 'Day', 'Week', 'Month', 'Quarter', 'Year').\").nullable().optional(),\n}).passthrough().describe(\"Configuration for a grouping level.\");\nconst SalesforceRunReport_ReportFilterSchema = z.object({\n value: z.string().describe(\"Value to filter by. Multiple values can be comma-separated.\").nullable().optional(),\n column: z.string().describe(\"API name of the field to filter on.\").nullable().optional(),\n operator: z.string().describe(\"Filter operator (e.g., 'equals', 'notEqual', 'lessThan', 'greaterThan', 'contains').\").nullable().optional(),\n filterType: z.string().describe(\"Type of filter (e.g., 'fieldValue').\").nullable().optional(),\n isRunPageEditable: z.boolean().describe(\"Boolean indicating if the filter can be edited when running the report.\").nullable().optional(),\n}).passthrough().describe(\"Filter condition applied to the report.\");\nconst SalesforceRunReport_StandardDateFilterSchema = z.object({\n column: z.string().describe(\"API name of the date field to filter on (e.g., 'CLOSE_DATE', 'CREATED_DATE').\").nullable().optional(),\n endDate: z.string().describe(\"End date for custom date ranges (ISO format: 'YYYY-MM-DD').\").nullable().optional(),\n startDate: z.string().describe(\"Start date for custom date ranges (ISO format: 'YYYY-MM-DD').\").nullable().optional(),\n durationValue: z.string().describe(\"Time period value (e.g., 'THIS_FISCAL_QUARTER', 'LAST_MONTH', 'CUSTOM').\").nullable().optional(),\n}).passthrough().describe(\"Standard date filter configuration applied to the report.\");\nconst SalesforceRunReport_ReportMetadataSchema = z.object({\n id: z.string().describe(\"ID of the report, or null for unsaved reports.\").nullable().optional(),\n name: z.string().describe(\"Name of the report.\").nullable().optional(),\n chart: z.unknown().describe(\"Chart configuration for the report, or null if no chart is configured.\").nullable().optional(),\n scope: z.string().describe(\"Scope of the report (e.g., 'organization', 'user', 'team').\").nullable().optional(),\n sortBy: z.array(SalesforceRunReport_SortConfigSchema).describe(\"Array of sort configurations for the report.\").nullable().optional(),\n buckets: z.array(z.unknown()).describe(\"Array of bucket field configurations that categorize field values into custom groupings.\").nullable().optional(),\n topRows: z.unknown().describe(\"Configuration for limiting the number of rows returned in the report.\").nullable().optional(),\n currency: z.string().describe(\"Currency code used for the report, or null if not applicable.\").nullable().optional(),\n division: z.string().describe(\"Division associated with the report, or null if not applicable.\").nullable().optional(),\n folderId: z.string().describe(\"ID of the folder containing the report.\").nullable().optional(),\n aggregates: z.array(z.string()).describe(\"Array of aggregate function names applied to columns (e.g., 'RowCount', 'sum', 'average').\").nullable().optional(),\n reportType: SalesforceRunReport_ReportTypeSchema.nullable().optional(),\n description: z.string().describe(\"Description of the report, or null if not provided.\").nullable().optional(),\n crossFilters: z.array(z.unknown()).describe(\"Array of cross-filter configurations applied to the report.\").nullable().optional(),\n reportFormat: z.string().describe(\"Format type of the report: 'TABULAR', 'SUMMARY', or 'MATRIX'.\").nullable().optional(),\n detailColumns: z.array(z.string()).describe(\"Array of API names for detail columns included in the report.\").nullable().optional(),\n developerName: z.string().describe(\"API developer name of the report, or null for unsaved reports.\").nullable().optional(),\n groupingsDown: z.array(SalesforceRunReport_GroupingConfigSchema).describe(\"Array of grouping configurations for row-level groupings in summary and matrix reports.\").nullable().optional(),\n hasDetailRows: z.boolean().describe(\"Boolean indicating if detail rows are included in the report.\").nullable().optional(),\n reportFilters: z.array(SalesforceRunReport_ReportFilterSchema).describe(\"Array of filter conditions applied to the report.\").nullable().optional(),\n showSubtotals: z.boolean().describe(\"Boolean indicating if subtotals are shown.\").nullable().optional(),\n hasRecordCount: z.boolean().describe(\"Boolean indicating if record count is included.\").nullable().optional(),\n showGrandTotal: z.boolean().describe(\"Boolean indicating if grand totals are shown.\").nullable().optional(),\n groupingsAcross: z.array(SalesforceRunReport_GroupingConfigSchema).describe(\"Array of grouping configurations for column-level groupings in matrix reports.\").nullable().optional(),\n standardFilters: z.array(z.unknown()).describe(\"Array of standard filters applied to the report, or null if not used.\").nullable().optional(),\n standardDateFilter: SalesforceRunReport_StandardDateFilterSchema.nullable().optional(),\n reportBooleanFilter: z.string().describe(\"Boolean filter logic applied to report filters (e.g., '1 AND 2 OR 3'), or null if not used.\").nullable().optional(),\n customSummaryFormula: z.unknown().describe(\"Map of custom summary formula definitions used in the report.\").nullable().optional(),\n historicalSnapshotDates: z.array(z.string()).describe(\"Array of historical snapshot dates for historical trend reports.\").nullable().optional(),\n}).passthrough().describe(\"Contains information about the report and its report type, including information on fields used in the report for filters, groupings, detailed data, and summaries.\");\nconst SalesforceRunReport_ReportTypeMetadataSchema = z.object({\n columns: z.array(z.unknown()).describe(\"Array of column definitions describing available report fields and their properties.\").nullable().optional(),\n categories: z.array(z.unknown()).describe(\"Array of category objects that organize report type fields into logical groups.\").nullable().optional(),\n}).passthrough().describe(\"Contains detailed information about the report type, including available categories and columns. This is included when the report is described or created.\");\nconst SalesforceRunReport_ReportExtendedMetadataSchema = z.object({\n detailColumnInfo: z.record(z.string(), z.unknown()).describe(\"Map of detail column API names to their metadata.\").nullable().optional(),\n groupingColumnInfo: z.record(z.string(), z.unknown()).describe(\"Map of grouping column names to their metadata. Can be empty if there are no groupings in the report.\").nullable().optional(),\n aggregateColumnInfo: z.record(z.string(), z.unknown()).describe(\"Map of aggregate column names to their metadata.\").nullable().optional(),\n}).passthrough().describe(\"Contains detailed metadata about report columns including data types and labels for detail, aggregate, and grouping columns.\");\nexport const SalesforceRunReportOutput = z.object({\n allData: z.boolean().describe(\"Indicates whether all data was retrieved from the API. True only if all data was retrieved (used to handle API pagination limits).\").nullable().optional(),\n factMap: z.record(z.string(), z.unknown()).describe(\"Contains values for summary or both summary and detailed data, expressed as keys which can be programmatically used to visualize the report data. Keys use patterns like 'T!T' for tabular reports, '0!T', '1!T' for row grouping totals, or '<rowGrouping>!<columnGrouping>' for matrix reports.\"),\n attributes: SalesforceRunReport_ReportAttributesSchema.nullable(),\n groupingsDown: SalesforceRunReport_GroupingsContainerSchema.nullable().optional(),\n hasDetailRows: z.boolean().describe(\"Boolean indicating if the report has detail rows.\").nullable().optional(),\n reportMetadata: SalesforceRunReport_ReportMetadataSchema.nullable(),\n groupingsAcross: SalesforceRunReport_GroupingsContainerSchema.nullable().optional(),\n reportTypeMetadata: SalesforceRunReport_ReportTypeMetadataSchema.nullable().optional(),\n reportExtendedMetadata: SalesforceRunReport_ReportExtendedMetadataSchema.nullable(),\n}).passthrough().describe(\"Response from running a Salesforce report.\");\n\nexport const salesforceRunReport = action(\"SALESFORCE_RUN_REPORT\", {\n slug: \"salesforce-run-report\",\n name: \"Run report\",\n description: \"Runs a report and returns the results. Creates a report instance that can be checked for completion. Results are returned in a nested structure (factMap, reportExtendedMetadata), not a flat record list; an empty factMap/rows is a valid result. Avoid repeated calls when freshness allows — reuse an existing instance_id instead.\",\n input: SalesforceRunReportInput,\n output: SalesforceRunReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EAC1E,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,S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oBAAoBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5L,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8HAA8H;AACxJ,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxL,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mSAAmS;CACvV,YAAY,2CAA2C,SAAS;CAChE,eAAe,6CAA6C,SAAS,CAAC,CAAC,SAAS;CAChF,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,gBAAgB,yCAAyC,SAAS;CAClE,iBAAiB,6CAA6C,SAAS,CAAC,CAAC,SAAS;CAClF,oBAAoB,6CAA6C,SAAS,CAAC,CAAC,SAAS;CACrF,wBAAwB,iDAAiD,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"run-report.cjs","names":["z","action"],"sources":["../../src/actions/run-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceRunReportInput = z.object({\n report_id: z.string().describe(\"The Salesforce ID of the report to run.\"),\n});\nconst SalesforceRunReport_ReportAttributesSchema = z.object({\n type: z.string().describe(\"Resource type, typically 'Report'.\").nullable().optional(),\n reportId: z.string().describe(\"The unique identifier of the report.\").nullable().optional(),\n reportName: z.string().describe(\"Name of the report.\").nullable().optional(),\n describeUrl: z.string().describe(\"URL to retrieve report metadata.\").nullable().optional(),\n instancesUrl: z.string().describe(\"URL for report instances.\").nullable().optional(),\n}).passthrough().describe(\"Contains metadata URLs and identifiers for the report.\");\nconst SalesforceRunReport_GroupingSchema = z.object({\n key: z.string().describe(\"Key used to reference corresponding data in the factMap object.\").nullable().optional(),\n label: z.string().describe(\"Display label for the grouping value.\").nullable().optional(),\n value: z.unknown().describe(\"Actual value of the grouping field, can be null.\").nullable().optional(),\n groupings: z.array(z.unknown()).describe(\"Nested groupings array for sub-groupings.\").nullable().optional(),\n}).passthrough().describe(\"Grouping object for row or column groupings.\");\nconst SalesforceRunReport_GroupingsContainerSchema = z.object({\n groupings: z.array(SalesforceRunReport_GroupingSchema).describe(\"Array of grouping objects.\").nullable().optional(),\n}).passthrough().describe(\"Container for groupings array.\");\nconst SalesforceRunReport_SortConfigSchema = z.object({\n sortOrder: z.string().describe(\"Sort direction ('Asc' or 'Desc').\").nullable().optional(),\n sortColumn: z.string().describe(\"API name of the column to sort by.\").nullable().optional(),\n}).passthrough().describe(\"Sort configuration for the report.\");\nconst SalesforceRunReport_ReportTypeSchema = z.object({\n type: z.string().describe(\"API name of the report type (e.g., 'Opportunity', 'Account').\").nullable().optional(),\n label: z.string().describe(\"Display label for the report type.\").nullable().optional(),\n}).passthrough().describe(\"Information about the report type.\");\nconst SalesforceRunReport_GroupingConfigSchema = z.object({\n name: z.string().describe(\"API name of the field to group by.\").nullable().optional(),\n sortOrder: z.string().describe(\"Sort direction ('Asc' or 'Desc').\").nullable().optional(),\n sortAggregate: z.string().describe(\"Aggregate to sort by, or null to sort by grouping value.\").nullable().optional(),\n dateGranularity: z.string().describe(\"Granularity for date fields (e.g., 'None', 'Day', 'Week', 'Month', 'Quarter', 'Year').\").nullable().optional(),\n}).passthrough().describe(\"Configuration for a grouping level.\");\nconst SalesforceRunReport_ReportFilterSchema = z.object({\n value: z.string().describe(\"Value to filter by. Multiple values can be comma-separated.\").nullable().optional(),\n column: z.string().describe(\"API name of the field to filter on.\").nullable().optional(),\n operator: z.string().describe(\"Filter operator (e.g., 'equals', 'notEqual', 'lessThan', 'greaterThan', 'contains').\").nullable().optional(),\n filterType: z.string().describe(\"Type of filter (e.g., 'fieldValue').\").nullable().optional(),\n isRunPageEditable: z.boolean().describe(\"Boolean indicating if the filter can be edited when running the report.\").nullable().optional(),\n}).passthrough().describe(\"Filter condition applied to the report.\");\nconst SalesforceRunReport_StandardDateFilterSchema = z.object({\n column: z.string().describe(\"API name of the date field to filter on (e.g., 'CLOSE_DATE', 'CREATED_DATE').\").nullable().optional(),\n endDate: z.string().describe(\"End date for custom date ranges (ISO format: 'YYYY-MM-DD').\").nullable().optional(),\n startDate: z.string().describe(\"Start date for custom date ranges (ISO format: 'YYYY-MM-DD').\").nullable().optional(),\n durationValue: z.string().describe(\"Time period value (e.g., 'THIS_FISCAL_QUARTER', 'LAST_MONTH', 'CUSTOM').\").nullable().optional(),\n}).passthrough().describe(\"Standard date filter configuration applied to the report.\");\nconst SalesforceRunReport_ReportMetadataSchema = z.object({\n id: z.string().describe(\"ID of the report, or null for unsaved reports.\").nullable().optional(),\n name: z.string().describe(\"Name of the report.\").nullable().optional(),\n chart: z.unknown().describe(\"Chart configuration for the report, or null if no chart is configured.\").nullable().optional(),\n scope: z.string().describe(\"Scope of the report (e.g., 'organization', 'user', 'team').\").nullable().optional(),\n sortBy: z.array(SalesforceRunReport_SortConfigSchema).describe(\"Array of sort configurations for the report.\").nullable().optional(),\n buckets: z.array(z.unknown()).describe(\"Array of bucket field configurations that categorize field values into custom groupings.\").nullable().optional(),\n topRows: z.unknown().describe(\"Configuration for limiting the number of rows returned in the report.\").nullable().optional(),\n currency: z.string().describe(\"Currency code used for the report, or null if not applicable.\").nullable().optional(),\n division: z.string().describe(\"Division associated with the report, or null if not applicable.\").nullable().optional(),\n folderId: z.string().describe(\"ID of the folder containing the report.\").nullable().optional(),\n aggregates: z.array(z.string()).describe(\"Array of aggregate function names applied to columns (e.g., 'RowCount', 'sum', 'average').\").nullable().optional(),\n reportType: SalesforceRunReport_ReportTypeSchema.nullable().optional(),\n description: z.string().describe(\"Description of the report, or null if not provided.\").nullable().optional(),\n crossFilters: z.array(z.unknown()).describe(\"Array of cross-filter configurations applied to the report.\").nullable().optional(),\n reportFormat: z.string().describe(\"Format type of the report: 'TABULAR', 'SUMMARY', or 'MATRIX'.\").nullable().optional(),\n detailColumns: z.array(z.string()).describe(\"Array of API names for detail columns included in the report.\").nullable().optional(),\n developerName: z.string().describe(\"API developer name of the report, or null for unsaved reports.\").nullable().optional(),\n groupingsDown: z.array(SalesforceRunReport_GroupingConfigSchema).describe(\"Array of grouping configurations for row-level groupings in summary and matrix reports.\").nullable().optional(),\n hasDetailRows: z.boolean().describe(\"Boolean indicating if detail rows are included in the report.\").nullable().optional(),\n reportFilters: z.array(SalesforceRunReport_ReportFilterSchema).describe(\"Array of filter conditions applied to the report.\").nullable().optional(),\n showSubtotals: z.boolean().describe(\"Boolean indicating if subtotals are shown.\").nullable().optional(),\n hasRecordCount: z.boolean().describe(\"Boolean indicating if record count is included.\").nullable().optional(),\n showGrandTotal: z.boolean().describe(\"Boolean indicating if grand totals are shown.\").nullable().optional(),\n groupingsAcross: z.array(SalesforceRunReport_GroupingConfigSchema).describe(\"Array of grouping configurations for column-level groupings in matrix reports.\").nullable().optional(),\n standardFilters: z.array(z.unknown()).describe(\"Array of standard filters applied to the report, or null if not used.\").nullable().optional(),\n standardDateFilter: SalesforceRunReport_StandardDateFilterSchema.nullable().optional(),\n reportBooleanFilter: z.string().describe(\"Boolean filter logic applied to report filters (e.g., '1 AND 2 OR 3'), or null if not used.\").nullable().optional(),\n customSummaryFormula: z.unknown().describe(\"Map of custom summary formula definitions used in the report.\").nullable().optional(),\n historicalSnapshotDates: z.array(z.string()).describe(\"Array of historical snapshot dates for historical trend reports.\").nullable().optional(),\n}).passthrough().describe(\"Contains information about the report and its report type, including information on fields used in the report for filters, groupings, detailed data, and summaries.\");\nconst SalesforceRunReport_ReportTypeMetadataSchema = z.object({\n columns: z.array(z.unknown()).describe(\"Array of column definitions describing available report fields and their properties.\").nullable().optional(),\n categories: z.array(z.unknown()).describe(\"Array of category objects that organize report type fields into logical groups.\").nullable().optional(),\n}).passthrough().describe(\"Contains detailed information about the report type, including available categories and columns. This is included when the report is described or created.\");\nconst SalesforceRunReport_ReportExtendedMetadataSchema = z.object({\n detailColumnInfo: z.record(z.string(), z.unknown()).describe(\"Map of detail column API names to their metadata.\").nullable().optional(),\n groupingColumnInfo: z.record(z.string(), z.unknown()).describe(\"Map of grouping column names to their metadata. Can be empty if there are no groupings in the report.\").nullable().optional(),\n aggregateColumnInfo: z.record(z.string(), z.unknown()).describe(\"Map of aggregate column names to their metadata.\").nullable().optional(),\n}).passthrough().describe(\"Contains detailed metadata about report columns including data types and labels for detail, aggregate, and grouping columns.\");\nexport const SalesforceRunReportOutput = z.object({\n allData: z.boolean().describe(\"Indicates whether all data was retrieved from the API. True only if all data was retrieved (used to handle API pagination limits).\").nullable().optional(),\n factMap: z.record(z.string(), z.unknown()).describe(\"Contains values for summary or both summary and detailed data, expressed as keys which can be programmatically used to visualize the report data. Keys use patterns like 'T!T' for tabular reports, '0!T', '1!T' for row grouping totals, or '<rowGrouping>!<columnGrouping>' for matrix reports.\"),\n attributes: SalesforceRunReport_ReportAttributesSchema.nullable(),\n groupingsDown: SalesforceRunReport_GroupingsContainerSchema.nullable().optional(),\n hasDetailRows: z.boolean().describe(\"Boolean indicating if the report has detail rows.\").nullable().optional(),\n reportMetadata: SalesforceRunReport_ReportMetadataSchema.nullable(),\n groupingsAcross: SalesforceRunReport_GroupingsContainerSchema.nullable().optional(),\n reportTypeMetadata: SalesforceRunReport_ReportTypeMetadataSchema.nullable().optional(),\n reportExtendedMetadata: SalesforceRunReport_ReportExtendedMetadataSchema.nullable(),\n}).passthrough().describe(\"Response from running a Salesforce report.\");\n\nexport const salesforceRunReport = action(\"SALESFORCE_RUN_REPORT\", {\n slug: \"salesforce-run-report\",\n name: \"Run report\",\n description: \"Runs a report synchronously (GET /analytics/reports/{id}?includeDetails=true) and returns the results in one call. This does NOT create an asynchronous report instance — for that, use the async run resource. Results are returned in a nested structure (factMap, reportExtendedMetadata), not a flat record list; an empty factMap/rows is a valid result. Avoid repeated calls when freshness allows.\",\n input: SalesforceRunReportInput,\n output: SalesforceRunReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EAC1E,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC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ReportExtendedMetadataSchema = z.object({
86
86
  const salesforceRunReport = action("SALESFORCE_RUN_REPORT", {
87
87
  slug: "salesforce-run-report",
88
88
  name: "Run report",
89
- description: "Runs a report and returns the results. Creates a report instance that can be checked for completion. Results are returned in a nested structure (factMap, reportExtendedMetadata), not a flat record list; an empty factMap/rows is a valid result. Avoid repeated calls when freshness allows — reuse an existing instance_id instead.",
89
+ description: "Runs a report synchronously (GET /analytics/reports/{id}?includeDetails=true) and returns the results in one call. This does NOT create an asynchronous report instance — for that, use the async run resource. Results are returned in a nested structure (factMap, reportExtendedMetadata), not a flat record list; an empty factMap/rows is a valid result. Avoid repeated calls when freshness allows.",
90
90
  input: SalesforceRunReportInput,
91
91
  output: z.object({
92
92
  allData: z.boolean().describe("Indicates whether all data was retrieved from the API. True only if all data was retrieved (used to handle API pagination limits).").nullable().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"run-report.mjs","names":[],"sources":["../../src/actions/run-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceRunReportInput = z.object({\n report_id: z.string().describe(\"The Salesforce ID of the report to run.\"),\n});\nconst SalesforceRunReport_ReportAttributesSchema = z.object({\n type: z.string().describe(\"Resource type, typically 'Report'.\").nullable().optional(),\n reportId: z.string().describe(\"The unique identifier of the report.\").nullable().optional(),\n reportName: z.string().describe(\"Name of the report.\").nullable().optional(),\n describeUrl: z.string().describe(\"URL to retrieve report metadata.\").nullable().optional(),\n instancesUrl: z.string().describe(\"URL for report instances.\").nullable().optional(),\n}).passthrough().describe(\"Contains metadata URLs and identifiers for the report.\");\nconst SalesforceRunReport_GroupingSchema = z.object({\n key: z.string().describe(\"Key used to reference corresponding data in the factMap object.\").nullable().optional(),\n label: z.string().describe(\"Display label for the grouping value.\").nullable().optional(),\n value: z.unknown().describe(\"Actual value of the grouping field, can be null.\").nullable().optional(),\n groupings: z.array(z.unknown()).describe(\"Nested groupings array for sub-groupings.\").nullable().optional(),\n}).passthrough().describe(\"Grouping object for row or column groupings.\");\nconst SalesforceRunReport_GroupingsContainerSchema = z.object({\n groupings: z.array(SalesforceRunReport_GroupingSchema).describe(\"Array of grouping objects.\").nullable().optional(),\n}).passthrough().describe(\"Container for groupings array.\");\nconst SalesforceRunReport_SortConfigSchema = z.object({\n sortOrder: z.string().describe(\"Sort direction ('Asc' or 'Desc').\").nullable().optional(),\n sortColumn: z.string().describe(\"API name of the column to sort by.\").nullable().optional(),\n}).passthrough().describe(\"Sort configuration for the report.\");\nconst SalesforceRunReport_ReportTypeSchema = z.object({\n type: z.string().describe(\"API name of the report type (e.g., 'Opportunity', 'Account').\").nullable().optional(),\n label: z.string().describe(\"Display label for the report type.\").nullable().optional(),\n}).passthrough().describe(\"Information about the report type.\");\nconst SalesforceRunReport_GroupingConfigSchema = z.object({\n name: z.string().describe(\"API name of the field to group by.\").nullable().optional(),\n sortOrder: z.string().describe(\"Sort direction ('Asc' or 'Desc').\").nullable().optional(),\n sortAggregate: z.string().describe(\"Aggregate to sort by, or null to sort by grouping value.\").nullable().optional(),\n dateGranularity: z.string().describe(\"Granularity for date fields (e.g., 'None', 'Day', 'Week', 'Month', 'Quarter', 'Year').\").nullable().optional(),\n}).passthrough().describe(\"Configuration for a grouping level.\");\nconst SalesforceRunReport_ReportFilterSchema = z.object({\n value: z.string().describe(\"Value to filter by. Multiple values can be comma-separated.\").nullable().optional(),\n column: z.string().describe(\"API name of the field to filter on.\").nullable().optional(),\n operator: z.string().describe(\"Filter operator (e.g., 'equals', 'notEqual', 'lessThan', 'greaterThan', 'contains').\").nullable().optional(),\n filterType: z.string().describe(\"Type of filter (e.g., 'fieldValue').\").nullable().optional(),\n isRunPageEditable: z.boolean().describe(\"Boolean indicating if the filter can be edited when running the report.\").nullable().optional(),\n}).passthrough().describe(\"Filter condition applied to the report.\");\nconst SalesforceRunReport_StandardDateFilterSchema = z.object({\n column: z.string().describe(\"API name of the date field to filter on (e.g., 'CLOSE_DATE', 'CREATED_DATE').\").nullable().optional(),\n endDate: z.string().describe(\"End date for custom date ranges (ISO format: 'YYYY-MM-DD').\").nullable().optional(),\n startDate: z.string().describe(\"Start date for custom date ranges (ISO format: 'YYYY-MM-DD').\").nullable().optional(),\n durationValue: z.string().describe(\"Time period value (e.g., 'THIS_FISCAL_QUARTER', 'LAST_MONTH', 'CUSTOM').\").nullable().optional(),\n}).passthrough().describe(\"Standard date filter configuration applied to the report.\");\nconst SalesforceRunReport_ReportMetadataSchema = z.object({\n id: z.string().describe(\"ID of the report, or null for unsaved reports.\").nullable().optional(),\n name: z.string().describe(\"Name of the report.\").nullable().optional(),\n chart: z.unknown().describe(\"Chart configuration for the report, or null if no chart is configured.\").nullable().optional(),\n scope: z.string().describe(\"Scope of the report (e.g., 'organization', 'user', 'team').\").nullable().optional(),\n sortBy: z.array(SalesforceRunReport_SortConfigSchema).describe(\"Array of sort configurations for the report.\").nullable().optional(),\n buckets: z.array(z.unknown()).describe(\"Array of bucket field configurations that categorize field values into custom groupings.\").nullable().optional(),\n topRows: z.unknown().describe(\"Configuration for limiting the number of rows returned in the report.\").nullable().optional(),\n currency: z.string().describe(\"Currency code used for the report, or null if not applicable.\").nullable().optional(),\n division: z.string().describe(\"Division associated with the report, or null if not applicable.\").nullable().optional(),\n folderId: z.string().describe(\"ID of the folder containing the report.\").nullable().optional(),\n aggregates: z.array(z.string()).describe(\"Array of aggregate function names applied to columns (e.g., 'RowCount', 'sum', 'average').\").nullable().optional(),\n reportType: SalesforceRunReport_ReportTypeSchema.nullable().optional(),\n description: z.string().describe(\"Description of the report, or null if not provided.\").nullable().optional(),\n crossFilters: z.array(z.unknown()).describe(\"Array of cross-filter configurations applied to the report.\").nullable().optional(),\n reportFormat: z.string().describe(\"Format type of the report: 'TABULAR', 'SUMMARY', or 'MATRIX'.\").nullable().optional(),\n detailColumns: z.array(z.string()).describe(\"Array of API names for detail columns included in the report.\").nullable().optional(),\n developerName: z.string().describe(\"API developer name of the report, or null for unsaved reports.\").nullable().optional(),\n groupingsDown: z.array(SalesforceRunReport_GroupingConfigSchema).describe(\"Array of grouping configurations for row-level groupings in summary and matrix reports.\").nullable().optional(),\n hasDetailRows: z.boolean().describe(\"Boolean indicating if detail rows are included in the report.\").nullable().optional(),\n reportFilters: z.array(SalesforceRunReport_ReportFilterSchema).describe(\"Array of filter conditions applied to the report.\").nullable().optional(),\n showSubtotals: z.boolean().describe(\"Boolean indicating if subtotals are shown.\").nullable().optional(),\n hasRecordCount: z.boolean().describe(\"Boolean indicating if record count is included.\").nullable().optional(),\n showGrandTotal: z.boolean().describe(\"Boolean indicating if grand totals are shown.\").nullable().optional(),\n groupingsAcross: z.array(SalesforceRunReport_GroupingConfigSchema).describe(\"Array of grouping configurations for column-level groupings in matrix reports.\").nullable().optional(),\n standardFilters: z.array(z.unknown()).describe(\"Array of standard filters applied to the report, or null if not used.\").nullable().optional(),\n standardDateFilter: SalesforceRunReport_StandardDateFilterSchema.nullable().optional(),\n reportBooleanFilter: z.string().describe(\"Boolean filter logic applied to report filters (e.g., '1 AND 2 OR 3'), or null if not used.\").nullable().optional(),\n customSummaryFormula: z.unknown().describe(\"Map of custom summary formula definitions used in the report.\").nullable().optional(),\n historicalSnapshotDates: z.array(z.string()).describe(\"Array of historical snapshot dates for historical trend reports.\").nullable().optional(),\n}).passthrough().describe(\"Contains information about the report and its report type, including information on fields used in the report for filters, groupings, detailed data, and summaries.\");\nconst SalesforceRunReport_ReportTypeMetadataSchema = z.object({\n columns: z.array(z.unknown()).describe(\"Array of column definitions describing available report fields and their properties.\").nullable().optional(),\n categories: z.array(z.unknown()).describe(\"Array of category objects that organize report type fields into logical groups.\").nullable().optional(),\n}).passthrough().describe(\"Contains detailed information about the report type, including available categories and columns. This is included when the report is described or created.\");\nconst SalesforceRunReport_ReportExtendedMetadataSchema = z.object({\n detailColumnInfo: z.record(z.string(), z.unknown()).describe(\"Map of detail column API names to their metadata.\").nullable().optional(),\n groupingColumnInfo: z.record(z.string(), z.unknown()).describe(\"Map of grouping column names to their metadata. Can be empty if there are no groupings in the report.\").nullable().optional(),\n aggregateColumnInfo: z.record(z.string(), z.unknown()).describe(\"Map of aggregate column names to their metadata.\").nullable().optional(),\n}).passthrough().describe(\"Contains detailed metadata about report columns including data types and labels for detail, aggregate, and grouping columns.\");\nexport const SalesforceRunReportOutput = z.object({\n allData: z.boolean().describe(\"Indicates whether all data was retrieved from the API. True only if all data was retrieved (used to handle API pagination limits).\").nullable().optional(),\n factMap: z.record(z.string(), z.unknown()).describe(\"Contains values for summary or both summary and detailed data, expressed as keys which can be programmatically used to visualize the report data. Keys use patterns like 'T!T' for tabular reports, '0!T', '1!T' for row grouping totals, or '<rowGrouping>!<columnGrouping>' for matrix reports.\"),\n attributes: SalesforceRunReport_ReportAttributesSchema.nullable(),\n groupingsDown: SalesforceRunReport_GroupingsContainerSchema.nullable().optional(),\n hasDetailRows: z.boolean().describe(\"Boolean indicating if the report has detail rows.\").nullable().optional(),\n reportMetadata: SalesforceRunReport_ReportMetadataSchema.nullable(),\n groupingsAcross: SalesforceRunReport_GroupingsContainerSchema.nullable().optional(),\n reportTypeMetadata: SalesforceRunReport_ReportTypeMetadataSchema.nullable().optional(),\n reportExtendedMetadata: SalesforceRunReport_ReportExtendedMetadataSchema.nullable(),\n}).passthrough().describe(\"Response from running a Salesforce report.\");\n\nexport const salesforceRunReport = action(\"SALESFORCE_RUN_REPORT\", {\n slug: \"salesforce-run-report\",\n name: \"Run report\",\n description: \"Runs a report and returns the results. Creates a report instance that can be checked for completion. Results are returned in a nested structure (factMap, reportExtendedMetadata), not a flat record list; an empty factMap/rows is a valid result. Avoid repeated calls when freshness allows — reuse an existing instance_id instead.\",\n input: SalesforceRunReportInput,\n output: SalesforceRunReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EAC1E,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO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C,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,oBAAoB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5L,qBAAqB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8HAA8H;AAaxJ,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBuC,EAAE,OAAO;EAChD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxL,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mSAAmS;EACvV,YAAY,2CAA2C,SAAS;EAChE,eAAe,6CAA6C,SAAS,CAAC,CAAC,SAAS;EAChF,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,gBAAgB,yCAAyC,SAAS;EAClE,iBAAiB,6CAA6C,SAAS,CAAC,CAAC,SAAS;EAClF,oBAAoB,6CAA6C,SAAS,CAAC,CAAC,SAAS;EACrF,wBAAwB,iDAAiD,SAAS;CACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"run-report.mjs","names":[],"sources":["../../src/actions/run-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceRunReportInput = z.object({\n report_id: z.string().describe(\"The Salesforce ID of the report to run.\"),\n});\nconst SalesforceRunReport_ReportAttributesSchema = z.object({\n type: z.string().describe(\"Resource type, typically 'Report'.\").nullable().optional(),\n reportId: z.string().describe(\"The unique identifier of the report.\").nullable().optional(),\n reportName: z.string().describe(\"Name of the report.\").nullable().optional(),\n describeUrl: z.string().describe(\"URL to retrieve report metadata.\").nullable().optional(),\n instancesUrl: z.string().describe(\"URL for report instances.\").nullable().optional(),\n}).passthrough().describe(\"Contains metadata URLs and identifiers for the report.\");\nconst SalesforceRunReport_GroupingSchema = z.object({\n key: z.string().describe(\"Key used to reference corresponding data in the factMap object.\").nullable().optional(),\n label: z.string().describe(\"Display label for the grouping value.\").nullable().optional(),\n value: z.unknown().describe(\"Actual value of the grouping field, can be null.\").nullable().optional(),\n groupings: z.array(z.unknown()).describe(\"Nested groupings array for sub-groupings.\").nullable().optional(),\n}).passthrough().describe(\"Grouping object for row or column groupings.\");\nconst SalesforceRunReport_GroupingsContainerSchema = z.object({\n groupings: z.array(SalesforceRunReport_GroupingSchema).describe(\"Array of grouping objects.\").nullable().optional(),\n}).passthrough().describe(\"Container for groupings array.\");\nconst SalesforceRunReport_SortConfigSchema = z.object({\n sortOrder: z.string().describe(\"Sort direction ('Asc' or 'Desc').\").nullable().optional(),\n sortColumn: z.string().describe(\"API name of the column to sort by.\").nullable().optional(),\n}).passthrough().describe(\"Sort configuration for the report.\");\nconst SalesforceRunReport_ReportTypeSchema = z.object({\n type: z.string().describe(\"API name of the report type (e.g., 'Opportunity', 'Account').\").nullable().optional(),\n label: z.string().describe(\"Display label for the report type.\").nullable().optional(),\n}).passthrough().describe(\"Information about the report type.\");\nconst SalesforceRunReport_GroupingConfigSchema = z.object({\n name: z.string().describe(\"API name of the field to group by.\").nullable().optional(),\n sortOrder: z.string().describe(\"Sort direction ('Asc' or 'Desc').\").nullable().optional(),\n sortAggregate: z.string().describe(\"Aggregate to sort by, or null to sort by grouping value.\").nullable().optional(),\n dateGranularity: z.string().describe(\"Granularity for date fields (e.g., 'None', 'Day', 'Week', 'Month', 'Quarter', 'Year').\").nullable().optional(),\n}).passthrough().describe(\"Configuration for a grouping level.\");\nconst SalesforceRunReport_ReportFilterSchema = z.object({\n value: z.string().describe(\"Value to filter by. Multiple values can be comma-separated.\").nullable().optional(),\n column: z.string().describe(\"API name of the field to filter on.\").nullable().optional(),\n operator: z.string().describe(\"Filter operator (e.g., 'equals', 'notEqual', 'lessThan', 'greaterThan', 'contains').\").nullable().optional(),\n filterType: z.string().describe(\"Type of filter (e.g., 'fieldValue').\").nullable().optional(),\n isRunPageEditable: z.boolean().describe(\"Boolean indicating if the filter can be edited when running the report.\").nullable().optional(),\n}).passthrough().describe(\"Filter condition applied to the report.\");\nconst SalesforceRunReport_StandardDateFilterSchema = z.object({\n column: z.string().describe(\"API name of the date field to filter on (e.g., 'CLOSE_DATE', 'CREATED_DATE').\").nullable().optional(),\n endDate: z.string().describe(\"End date for custom date ranges (ISO format: 'YYYY-MM-DD').\").nullable().optional(),\n startDate: z.string().describe(\"Start date for custom date ranges (ISO format: 'YYYY-MM-DD').\").nullable().optional(),\n durationValue: z.string().describe(\"Time period value (e.g., 'THIS_FISCAL_QUARTER', 'LAST_MONTH', 'CUSTOM').\").nullable().optional(),\n}).passthrough().describe(\"Standard date filter configuration applied to the report.\");\nconst SalesforceRunReport_ReportMetadataSchema = z.object({\n id: z.string().describe(\"ID of the report, or null for unsaved reports.\").nullable().optional(),\n name: z.string().describe(\"Name of the report.\").nullable().optional(),\n chart: z.unknown().describe(\"Chart configuration for the report, or null if no chart is configured.\").nullable().optional(),\n scope: z.string().describe(\"Scope of the report (e.g., 'organization', 'user', 'team').\").nullable().optional(),\n sortBy: z.array(SalesforceRunReport_SortConfigSchema).describe(\"Array of sort configurations for the report.\").nullable().optional(),\n buckets: z.array(z.unknown()).describe(\"Array of bucket field configurations that categorize field values into custom groupings.\").nullable().optional(),\n topRows: z.unknown().describe(\"Configuration for limiting the number of rows returned in the report.\").nullable().optional(),\n currency: z.string().describe(\"Currency code used for the report, or null if not applicable.\").nullable().optional(),\n division: z.string().describe(\"Division associated with the report, or null if not applicable.\").nullable().optional(),\n folderId: z.string().describe(\"ID of the folder containing the report.\").nullable().optional(),\n aggregates: z.array(z.string()).describe(\"Array of aggregate function names applied to columns (e.g., 'RowCount', 'sum', 'average').\").nullable().optional(),\n reportType: SalesforceRunReport_ReportTypeSchema.nullable().optional(),\n description: z.string().describe(\"Description of the report, or null if not provided.\").nullable().optional(),\n crossFilters: z.array(z.unknown()).describe(\"Array of cross-filter configurations applied to the report.\").nullable().optional(),\n reportFormat: z.string().describe(\"Format type of the report: 'TABULAR', 'SUMMARY', or 'MATRIX'.\").nullable().optional(),\n detailColumns: z.array(z.string()).describe(\"Array of API names for detail columns included in the report.\").nullable().optional(),\n developerName: z.string().describe(\"API developer name of the report, or null for unsaved reports.\").nullable().optional(),\n groupingsDown: z.array(SalesforceRunReport_GroupingConfigSchema).describe(\"Array of grouping configurations for row-level groupings in summary and matrix reports.\").nullable().optional(),\n hasDetailRows: z.boolean().describe(\"Boolean indicating if detail rows are included in the report.\").nullable().optional(),\n reportFilters: z.array(SalesforceRunReport_ReportFilterSchema).describe(\"Array of filter conditions applied to the report.\").nullable().optional(),\n showSubtotals: z.boolean().describe(\"Boolean indicating if subtotals are shown.\").nullable().optional(),\n hasRecordCount: z.boolean().describe(\"Boolean indicating if record count is included.\").nullable().optional(),\n showGrandTotal: z.boolean().describe(\"Boolean indicating if grand totals are shown.\").nullable().optional(),\n groupingsAcross: z.array(SalesforceRunReport_GroupingConfigSchema).describe(\"Array of grouping configurations for column-level groupings in matrix reports.\").nullable().optional(),\n standardFilters: z.array(z.unknown()).describe(\"Array of standard filters applied to the report, or null if not used.\").nullable().optional(),\n standardDateFilter: SalesforceRunReport_StandardDateFilterSchema.nullable().optional(),\n reportBooleanFilter: z.string().describe(\"Boolean filter logic applied to report filters (e.g., '1 AND 2 OR 3'), or null if not used.\").nullable().optional(),\n customSummaryFormula: z.unknown().describe(\"Map of custom summary formula definitions used in the report.\").nullable().optional(),\n historicalSnapshotDates: z.array(z.string()).describe(\"Array of historical snapshot dates for historical trend reports.\").nullable().optional(),\n}).passthrough().describe(\"Contains information about the report and its report type, including information on fields used in the report for filters, groupings, detailed data, and summaries.\");\nconst SalesforceRunReport_ReportTypeMetadataSchema = z.object({\n columns: z.array(z.unknown()).describe(\"Array of column definitions describing available report fields and their properties.\").nullable().optional(),\n categories: z.array(z.unknown()).describe(\"Array of category objects that organize report type fields into logical groups.\").nullable().optional(),\n}).passthrough().describe(\"Contains detailed information about the report type, including available categories and columns. This is included when the report is described or created.\");\nconst SalesforceRunReport_ReportExtendedMetadataSchema = z.object({\n detailColumnInfo: z.record(z.string(), z.unknown()).describe(\"Map of detail column API names to their metadata.\").nullable().optional(),\n groupingColumnInfo: z.record(z.string(), z.unknown()).describe(\"Map of grouping column names to their metadata. Can be empty if there are no groupings in the report.\").nullable().optional(),\n aggregateColumnInfo: z.record(z.string(), z.unknown()).describe(\"Map of aggregate column names to their metadata.\").nullable().optional(),\n}).passthrough().describe(\"Contains detailed metadata about report columns including data types and labels for detail, aggregate, and grouping columns.\");\nexport const SalesforceRunReportOutput = z.object({\n allData: z.boolean().describe(\"Indicates whether all data was retrieved from the API. True only if all data was retrieved (used to handle API pagination limits).\").nullable().optional(),\n factMap: z.record(z.string(), z.unknown()).describe(\"Contains values for summary or both summary and detailed data, expressed as keys which can be programmatically used to visualize the report data. Keys use patterns like 'T!T' for tabular reports, '0!T', '1!T' for row grouping totals, or '<rowGrouping>!<columnGrouping>' for matrix reports.\"),\n attributes: SalesforceRunReport_ReportAttributesSchema.nullable(),\n groupingsDown: SalesforceRunReport_GroupingsContainerSchema.nullable().optional(),\n hasDetailRows: z.boolean().describe(\"Boolean indicating if the report has detail rows.\").nullable().optional(),\n reportMetadata: SalesforceRunReport_ReportMetadataSchema.nullable(),\n groupingsAcross: SalesforceRunReport_GroupingsContainerSchema.nullable().optional(),\n reportTypeMetadata: SalesforceRunReport_ReportTypeMetadataSchema.nullable().optional(),\n reportExtendedMetadata: SalesforceRunReport_ReportExtendedMetadataSchema.nullable(),\n}).passthrough().describe(\"Response from running a Salesforce report.\");\n\nexport const salesforceRunReport = action(\"SALESFORCE_RUN_REPORT\", {\n slug: \"salesforce-run-report\",\n name: \"Run report\",\n description: \"Runs a report synchronously (GET /analytics/reports/{id}?includeDetails=true) and returns the results in one call. This does NOT create an asynchronous report instance — for that, use the async run resource. Results are returned in a nested structure (factMap, reportExtendedMetadata), not a flat record list; an empty factMap/rows is a valid result. Avoid repeated calls when freshness allows.\",\n input: SalesforceRunReportInput,\n output: SalesforceRunReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EAC1E,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAM,qCAAqC,EAAE,OAAO;CAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,QAAQ,C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A6C,SAAS,CAAC,CAAC,SAAS;EAChF,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,gBAAgB,yCAAyC,SAAS;EAClE,iBAAiB,6CAA6C,SAAS,CAAC,CAAC,SAAS;EAClF,oBAAoB,6CAA6C,SAAS,CAAC,CAAC,SAAS;EACrF,wBAAwB,iDAAiD,SAAS;CACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -11,12 +11,12 @@ const SalesforceSearchKnowledgeArticlesInput = zod.z.object({
11
11
  "Prm",
12
12
  "App"
13
13
  ]).describe("The channel for which the article is visible. Valid values: 'Pkb' (Public Knowledge Base), 'Csp' (Customer Portal), 'Prm' (Partner Portal), 'App' (Application).").optional(),
14
- language: zod.z.string().describe("The article language API name (e.g., 'en_US', 'fr_FR', 'de_DE'). Filters results to articles in the specified language. If not provided, returns articles in all languages.").optional(),
14
+ language: zod.z.string().describe("The article language API name (e.g., 'en_US', 'fr_FR', 'de_DE'). REQUIRED by the suggestTitleMatches API omitting it returns HTTP 400."),
15
15
  publishStatus: zod.z.enum([
16
16
  "Draft",
17
17
  "Online",
18
18
  "Archived"
19
- ]).describe("The article publication status. Valid values: 'Draft', 'Online', 'Archived'. Filters results to articles with the specified publication status.").optional(),
19
+ ]).describe("The article publication status. Valid values: 'Draft', 'Online', 'Archived'. REQUIRED by the suggestTitleMatches API omitting it returns HTTP 400."),
20
20
  validationStatus: zod.z.enum([
21
21
  "Draft",
22
22
  "Validated",
@@ -1 +1 @@
1
- {"version":3,"file":"search-knowledge-articles.cjs","names":["z","action"],"sources":["../../src/actions/search-knowledge-articles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceSearchKnowledgeArticlesInput = z.object({\n q: z.string().describe(\"The user's search query string to match against article titles. This is the text that will be matched against Knowledge article titles.\"),\n limit: z.number().int().describe(\"Maximum number of suggested articles to return. Default: 5, Maximum: 10. Controls how many article suggestions are included in the response.\").optional(),\n topics: z.string().describe(\"Knowledge article topic names to filter results. Provide topic names to narrow down the search to articles tagged with specific topics.\").optional(),\n channel: z.enum([\"Pkb\", \"Csp\", \"Prm\", \"App\"]).describe(\"The channel for which the article is visible. Valid values: 'Pkb' (Public Knowledge Base), 'Csp' (Customer Portal), 'Prm' (Partner Portal), 'App' (Application).\").optional(),\n language: z.string().describe(\"The article language API name (e.g., 'en_US', 'fr_FR', 'de_DE'). Filters results to articles in the specified language. If not provided, returns articles in all languages.\").optional(),\n publishStatus: z.enum([\"Draft\", \"Online\", \"Archived\"]).describe(\"The article publication status. Valid values: 'Draft', 'Online', 'Archived'. Filters results to articles with the specified publication status.\").optional(),\n validationStatus: z.enum([\"Draft\", \"Validated\", \"Published\"]).describe(\"The article's validation status. Valid values: 'Draft', 'Validated', 'Published'. Filters results by the article's validation state.\").optional(),\n});\nconst SalesforceSearchKnowledgeArticles_ArticleAttributesSchema = z.object({\n url: z.string().describe(\"REST API URL for accessing this specific article version.\").nullable(),\n type: z.string().describe(\"Object type, always 'KnowledgeArticleVersion' for article version records.\").nullable(),\n}).passthrough().describe(\"Metadata about the Knowledge article version record.\");\nconst SalesforceSearchKnowledgeArticles_KnowledgeArticleVersionSchema = z.object({\n Id: z.string().describe(\"The unique ID of the article version.\").nullable().optional(),\n Title: z.string().describe(\"The article title that matched the search query.\").nullable().optional(),\n UrlName: z.string().describe(\"URL-friendly name of the article, used in the article's public URL.\").nullable().optional(),\n attributes: SalesforceSearchKnowledgeArticles_ArticleAttributesSchema.nullable(),\n isMasterLanguage: z.boolean().describe(\"Indicates if this is the master language version of the article. True if this version is in the article's original language.\").nullable().optional(),\n KnowledgeArticleId: z.string().describe(\"The parent knowledge article ID that this version belongs to.\").nullable().optional(),\n}).passthrough().describe(\"Represents a Knowledge article version with title and metadata.\");\nexport const SalesforceSearchKnowledgeArticlesOutput = z.object({\n hasMoreResults: z.boolean().describe(\"Indicates whether additional results exist beyond those returned. True if more matching articles exist than the limit specified.\").nullable(),\n autoSuggestResults: z.array(SalesforceSearchKnowledgeArticles_KnowledgeArticleVersionSchema).describe(\"Array of KnowledgeArticleVersion objects with titles matching the search query. Each object contains article metadata including ID, title, and URL name.\"),\n}).passthrough().describe(\"Response containing Knowledge article suggestions based on title matches.\");\n\nexport const salesforceSearchKnowledgeArticles = action(\"SALESFORCE_SEARCH_KNOWLEDGE_ARTICLES\", {\n slug: \"salesforce-search-knowledge-articles\",\n name: \"Search suggested article title matches\",\n description: \"Search for Salesforce Knowledge articles with titles matching the search query. Returns auto-suggest results for Knowledge articles based on title matches.\",\n input: SalesforceSearchKnowledgeArticlesInput,\n output: SalesforceSearchKnowledgeArticlesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;CAChK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CAC1L,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAChL,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACpO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;CACtN,eAAeA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CAC5N,kBAAkBA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAa;CAAW,CAAC,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;AAC1N,CAAC;AACD,MAAM,4DAA4DA,IAAAA,EAAE,OAAO;CACz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../../src/actions/search-knowledge-articles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceSearchKnowledgeArticlesInput = z.object({\n q: z.string().describe(\"The user's search query string to match against article titles. This is the text that will be matched against Knowledge article titles.\"),\n limit: z.number().int().describe(\"Maximum number of suggested articles to return. Default: 5, Maximum: 10. Controls how many article suggestions are included in the response.\").optional(),\n topics: z.string().describe(\"Knowledge article topic names to filter results. Provide topic names to narrow down the search to articles tagged with specific topics.\").optional(),\n channel: z.enum([\"Pkb\", \"Csp\", \"Prm\", \"App\"]).describe(\"The channel for which the article is visible. Valid values: 'Pkb' (Public Knowledge Base), 'Csp' (Customer Portal), 'Prm' (Partner Portal), 'App' (Application).\").optional(),\n language: z.string().describe(\"The article language API name (e.g., 'en_US', 'fr_FR', 'de_DE'). REQUIRED by the suggestTitleMatches API omitting it returns HTTP 400.\"),\n publishStatus: z.enum([\"Draft\", \"Online\", \"Archived\"]).describe(\"The article publication status. Valid values: 'Draft', 'Online', 'Archived'. REQUIRED by the suggestTitleMatches API omitting it returns HTTP 400.\"),\n validationStatus: z.enum([\"Draft\", \"Validated\", \"Published\"]).describe(\"The article's validation status. Valid values: 'Draft', 'Validated', 'Published'. Filters results by the article's validation state.\").optional(),\n});\nconst SalesforceSearchKnowledgeArticles_ArticleAttributesSchema = z.object({\n url: z.string().describe(\"REST API URL for accessing this specific article version.\").nullable(),\n type: z.string().describe(\"Object type, always 'KnowledgeArticleVersion' for article version records.\").nullable(),\n}).passthrough().describe(\"Metadata about the Knowledge article version record.\");\nconst SalesforceSearchKnowledgeArticles_KnowledgeArticleVersionSchema = z.object({\n Id: z.string().describe(\"The unique ID of the article version.\").nullable().optional(),\n Title: z.string().describe(\"The article title that matched the search query.\").nullable().optional(),\n UrlName: z.string().describe(\"URL-friendly name of the article, used in the article's public URL.\").nullable().optional(),\n attributes: SalesforceSearchKnowledgeArticles_ArticleAttributesSchema.nullable(),\n isMasterLanguage: z.boolean().describe(\"Indicates if this is the master language version of the article. True if this version is in the article's original language.\").nullable().optional(),\n KnowledgeArticleId: z.string().describe(\"The parent knowledge article ID that this version belongs to.\").nullable().optional(),\n}).passthrough().describe(\"Represents a Knowledge article version with title and metadata.\");\nexport const SalesforceSearchKnowledgeArticlesOutput = z.object({\n hasMoreResults: z.boolean().describe(\"Indicates whether additional results exist beyond those returned. True if more matching articles exist than the limit specified.\").nullable(),\n autoSuggestResults: z.array(SalesforceSearchKnowledgeArticles_KnowledgeArticleVersionSchema).describe(\"Array of KnowledgeArticleVersion objects with titles matching the search query. Each object contains article metadata including ID, title, and URL name.\"),\n}).passthrough().describe(\"Response containing Knowledge article suggestions based on title matches.\");\n\nexport const salesforceSearchKnowledgeArticles = action(\"SALESFORCE_SEARCH_KNOWLEDGE_ARTICLES\", {\n slug: \"salesforce-search-knowledge-articles\",\n name: \"Search suggested article title matches\",\n description: \"Search for Salesforce Knowledge articles with titles matching the search query. Returns auto-suggest results for Knowledge articles based on title matches.\",\n input: SalesforceSearchKnowledgeArticlesInput,\n output: SalesforceSearchKnowledgeArticlesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;CAChK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CAC1L,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAChL,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACpO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;CACxK,eAAeA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,sJAAsJ;CACtN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ErG,MAAa,oCAAoCC,eAAAA,OAAO,wCAAwC;CAC9F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -11,12 +11,12 @@ declare const SalesforceSearchKnowledgeArticlesInput: z.ZodObject<{
11
11
  Prm: "Prm";
12
12
  App: "App";
13
13
  }>>;
14
- language: z.ZodOptional<z.ZodString>;
15
- publishStatus: z.ZodOptional<z.ZodEnum<{
14
+ language: z.ZodString;
15
+ publishStatus: z.ZodEnum<{
16
16
  Draft: "Draft";
17
17
  Online: "Online";
18
18
  Archived: "Archived";
19
- }>>;
19
+ }>;
20
20
  validationStatus: z.ZodOptional<z.ZodEnum<{
21
21
  Draft: "Draft";
22
22
  Validated: "Validated";
@@ -39,11 +39,11 @@ declare const SalesforceSearchKnowledgeArticlesOutput: z.ZodObject<{
39
39
  }, z.core.$loose>;
40
40
  declare const salesforceSearchKnowledgeArticles: import("@keystrokehq/action").WorkflowActionDefinition<{
41
41
  q: string;
42
+ language: string;
43
+ publishStatus: "Draft" | "Online" | "Archived";
42
44
  limit?: number | undefined;
43
45
  topics?: string | undefined;
44
46
  channel?: "Pkb" | "Csp" | "Prm" | "App" | undefined;
45
- language?: string | undefined;
46
- publishStatus?: "Draft" | "Online" | "Archived" | undefined;
47
47
  validationStatus?: "Draft" | "Validated" | "Published" | undefined;
48
48
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
49
49
  //#endregion
@@ -11,12 +11,12 @@ declare const SalesforceSearchKnowledgeArticlesInput: z.ZodObject<{
11
11
  Prm: "Prm";
12
12
  App: "App";
13
13
  }>>;
14
- language: z.ZodOptional<z.ZodString>;
15
- publishStatus: z.ZodOptional<z.ZodEnum<{
14
+ language: z.ZodString;
15
+ publishStatus: z.ZodEnum<{
16
16
  Draft: "Draft";
17
17
  Online: "Online";
18
18
  Archived: "Archived";
19
- }>>;
19
+ }>;
20
20
  validationStatus: z.ZodOptional<z.ZodEnum<{
21
21
  Draft: "Draft";
22
22
  Validated: "Validated";
@@ -39,11 +39,11 @@ declare const SalesforceSearchKnowledgeArticlesOutput: z.ZodObject<{
39
39
  }, z.core.$loose>;
40
40
  declare const salesforceSearchKnowledgeArticles: import("@keystrokehq/action").WorkflowActionDefinition<{
41
41
  q: string;
42
+ language: string;
43
+ publishStatus: "Draft" | "Online" | "Archived";
42
44
  limit?: number | undefined;
43
45
  topics?: string | undefined;
44
46
  channel?: "Pkb" | "Csp" | "Prm" | "App" | undefined;
45
- language?: string | undefined;
46
- publishStatus?: "Draft" | "Online" | "Archived" | undefined;
47
47
  validationStatus?: "Draft" | "Validated" | "Published" | undefined;
48
48
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
49
49
  //#endregion
@@ -11,12 +11,12 @@ const SalesforceSearchKnowledgeArticlesInput = z.object({
11
11
  "Prm",
12
12
  "App"
13
13
  ]).describe("The channel for which the article is visible. Valid values: 'Pkb' (Public Knowledge Base), 'Csp' (Customer Portal), 'Prm' (Partner Portal), 'App' (Application).").optional(),
14
- language: z.string().describe("The article language API name (e.g., 'en_US', 'fr_FR', 'de_DE'). Filters results to articles in the specified language. If not provided, returns articles in all languages.").optional(),
14
+ language: z.string().describe("The article language API name (e.g., 'en_US', 'fr_FR', 'de_DE'). REQUIRED by the suggestTitleMatches API omitting it returns HTTP 400."),
15
15
  publishStatus: z.enum([
16
16
  "Draft",
17
17
  "Online",
18
18
  "Archived"
19
- ]).describe("The article publication status. Valid values: 'Draft', 'Online', 'Archived'. Filters results to articles with the specified publication status.").optional(),
19
+ ]).describe("The article publication status. Valid values: 'Draft', 'Online', 'Archived'. REQUIRED by the suggestTitleMatches API omitting it returns HTTP 400."),
20
20
  validationStatus: z.enum([
21
21
  "Draft",
22
22
  "Validated",
@@ -1 +1 @@
1
- {"version":3,"file":"search-knowledge-articles.mjs","names":[],"sources":["../../src/actions/search-knowledge-articles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceSearchKnowledgeArticlesInput = z.object({\n q: z.string().describe(\"The user's search query string to match against article titles. This is the text that will be matched against Knowledge article titles.\"),\n limit: z.number().int().describe(\"Maximum number of suggested articles to return. Default: 5, Maximum: 10. Controls how many article suggestions are included in the response.\").optional(),\n topics: z.string().describe(\"Knowledge article topic names to filter results. Provide topic names to narrow down the search to articles tagged with specific topics.\").optional(),\n channel: z.enum([\"Pkb\", \"Csp\", \"Prm\", \"App\"]).describe(\"The channel for which the article is visible. Valid values: 'Pkb' (Public Knowledge Base), 'Csp' (Customer Portal), 'Prm' (Partner Portal), 'App' (Application).\").optional(),\n language: z.string().describe(\"The article language API name (e.g., 'en_US', 'fr_FR', 'de_DE'). Filters results to articles in the specified language. If not provided, returns articles in all languages.\").optional(),\n publishStatus: z.enum([\"Draft\", \"Online\", \"Archived\"]).describe(\"The article publication status. Valid values: 'Draft', 'Online', 'Archived'. Filters results to articles with the specified publication status.\").optional(),\n validationStatus: z.enum([\"Draft\", \"Validated\", \"Published\"]).describe(\"The article's validation status. Valid values: 'Draft', 'Validated', 'Published'. Filters results by the article's validation state.\").optional(),\n});\nconst SalesforceSearchKnowledgeArticles_ArticleAttributesSchema = z.object({\n url: z.string().describe(\"REST API URL for accessing this specific article version.\").nullable(),\n type: z.string().describe(\"Object type, always 'KnowledgeArticleVersion' for article version records.\").nullable(),\n}).passthrough().describe(\"Metadata about the Knowledge article version record.\");\nconst SalesforceSearchKnowledgeArticles_KnowledgeArticleVersionSchema = z.object({\n Id: z.string().describe(\"The unique ID of the article version.\").nullable().optional(),\n Title: z.string().describe(\"The article title that matched the search query.\").nullable().optional(),\n UrlName: z.string().describe(\"URL-friendly name of the article, used in the article's public URL.\").nullable().optional(),\n attributes: SalesforceSearchKnowledgeArticles_ArticleAttributesSchema.nullable(),\n isMasterLanguage: z.boolean().describe(\"Indicates if this is the master language version of the article. True if this version is in the article's original language.\").nullable().optional(),\n KnowledgeArticleId: z.string().describe(\"The parent knowledge article ID that this version belongs to.\").nullable().optional(),\n}).passthrough().describe(\"Represents a Knowledge article version with title and metadata.\");\nexport const SalesforceSearchKnowledgeArticlesOutput = z.object({\n hasMoreResults: z.boolean().describe(\"Indicates whether additional results exist beyond those returned. True if more matching articles exist than the limit specified.\").nullable(),\n autoSuggestResults: z.array(SalesforceSearchKnowledgeArticles_KnowledgeArticleVersionSchema).describe(\"Array of KnowledgeArticleVersion objects with titles matching the search query. Each object contains article metadata including ID, title, and URL name.\"),\n}).passthrough().describe(\"Response containing Knowledge article suggestions based on title matches.\");\n\nexport const salesforceSearchKnowledgeArticles = action(\"SALESFORCE_SEARCH_KNOWLEDGE_ARTICLES\", {\n slug: \"salesforce-search-knowledge-articles\",\n name: \"Search suggested article title matches\",\n description: \"Search for Salesforce Knowledge articles with titles matching the search query. Returns auto-suggest results for Knowledge articles based on title matches.\",\n input: SalesforceSearchKnowledgeArticlesInput,\n output: SalesforceSearchKnowledgeArticlesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyC,EAAE,OAAO;CAC7D,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;CAChK,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CAC1L,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAChL,SAAS,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACpO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;CACtN,eAAe,EAAE,KAAK;EAAC;EAAS;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CAC5N,kBAAkB,EAAE,KAAK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../src/actions/search-knowledge-articles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceSearchKnowledgeArticlesInput = z.object({\n q: z.string().describe(\"The user's search query string to match against article titles. This is the text that will be matched against Knowledge article titles.\"),\n limit: z.number().int().describe(\"Maximum number of suggested articles to return. Default: 5, Maximum: 10. Controls how many article suggestions are included in the response.\").optional(),\n topics: z.string().describe(\"Knowledge article topic names to filter results. Provide topic names to narrow down the search to articles tagged with specific topics.\").optional(),\n channel: z.enum([\"Pkb\", \"Csp\", \"Prm\", \"App\"]).describe(\"The channel for which the article is visible. Valid values: 'Pkb' (Public Knowledge Base), 'Csp' (Customer Portal), 'Prm' (Partner Portal), 'App' (Application).\").optional(),\n language: z.string().describe(\"The article language API name (e.g., 'en_US', 'fr_FR', 'de_DE'). REQUIRED by the suggestTitleMatches API omitting it returns HTTP 400.\"),\n publishStatus: z.enum([\"Draft\", \"Online\", \"Archived\"]).describe(\"The article publication status. Valid values: 'Draft', 'Online', 'Archived'. REQUIRED by the suggestTitleMatches API omitting it returns HTTP 400.\"),\n validationStatus: z.enum([\"Draft\", \"Validated\", \"Published\"]).describe(\"The article's validation status. Valid values: 'Draft', 'Validated', 'Published'. Filters results by the article's validation state.\").optional(),\n});\nconst SalesforceSearchKnowledgeArticles_ArticleAttributesSchema = z.object({\n url: z.string().describe(\"REST API URL for accessing this specific article version.\").nullable(),\n type: z.string().describe(\"Object type, always 'KnowledgeArticleVersion' for article version records.\").nullable(),\n}).passthrough().describe(\"Metadata about the Knowledge article version record.\");\nconst SalesforceSearchKnowledgeArticles_KnowledgeArticleVersionSchema = z.object({\n Id: z.string().describe(\"The unique ID of the article version.\").nullable().optional(),\n Title: z.string().describe(\"The article title that matched the search query.\").nullable().optional(),\n UrlName: z.string().describe(\"URL-friendly name of the article, used in the article's public URL.\").nullable().optional(),\n attributes: SalesforceSearchKnowledgeArticles_ArticleAttributesSchema.nullable(),\n isMasterLanguage: z.boolean().describe(\"Indicates if this is the master language version of the article. True if this version is in the article's original language.\").nullable().optional(),\n KnowledgeArticleId: z.string().describe(\"The parent knowledge article ID that this version belongs to.\").nullable().optional(),\n}).passthrough().describe(\"Represents a Knowledge article version with title and metadata.\");\nexport const SalesforceSearchKnowledgeArticlesOutput = z.object({\n hasMoreResults: z.boolean().describe(\"Indicates whether additional results exist beyond those returned. True if more matching articles exist than the limit specified.\").nullable(),\n autoSuggestResults: z.array(SalesforceSearchKnowledgeArticles_KnowledgeArticleVersionSchema).describe(\"Array of KnowledgeArticleVersion objects with titles matching the search query. Each object contains article metadata including ID, title, and URL name.\"),\n}).passthrough().describe(\"Response containing Knowledge article suggestions based on title matches.\");\n\nexport const salesforceSearchKnowledgeArticles = action(\"SALESFORCE_SEARCH_KNOWLEDGE_ARTICLES\", {\n slug: \"salesforce-search-knowledge-articles\",\n name: \"Search suggested article title matches\",\n description: \"Search for Salesforce Knowledge articles with titles matching the search query. Returns auto-suggest results for Knowledge articles based on title matches.\",\n input: SalesforceSearchKnowledgeArticlesInput,\n output: SalesforceSearchKnowledgeArticlesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyC,EAAE,OAAO;CAC7D,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;CAChK,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8IAA8I,CAAC,CAAC,SAAS;CAC1L,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CAChL,SAAS,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,kKAAkK,CAAC,CAAC,SAAS;CACpO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;CACxK,eAAe,EAAE,KAAK;EAAC;EAAS;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,sJAAsJ;CACtN,kBAAkB,EAAE,KAAK;EAAC;EAAS;EAAa;CAAW,CAAC,CAAC,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Email = require_action.action("SALESFORCE_SEND_MASS_EMAIL", {
31
31
  slug: "salesforce-send-mass-email",
32
32
  name: "Send mass email",
33
- description: "Sends bulk emails to multiple recipients immediately and irreversibly using a template or custom content. Requires either a valid template_id or both subject and body; omitting all three causes errors. Processes in batches for performance. Check failedRecipients and summary.failureCount in the response even when success=true, as individual recipient failures can occur without an overall failure.",
33
+ description: "Sends an email to each recipient immediately and irreversibly, using a template or custom subject/body (requires either a valid template_id or both subject and body). Recipients are processed in batches of up to 150 via the emailSimple action. IMPORTANT: this sends one individual email per recipient, so it consumes the org's daily single-email allocation and can hit send/rate limits on large recipient lists — it is not a true bulk/marketing-email mechanism. The response is a `results` array with one entry per recipient; inspect each entry's `success` and `errors`, since individual recipients can fail even when the overall call succeeds.",
34
34
  input: SalesforceSendMassEmailInput,
35
35
  output: SalesforceSendMassEmailOutput
36
36
  });
@@ -1 +1 @@
1
- {"version":3,"file":"send-mass-email.cjs","names":["z","action"],"sources":["../../src/actions/send-mass-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceSendMassEmailInput = z.object({\n body: z.string().default(\"\").describe(\"Body content of the email. Required if template_id is not provided.\").optional(),\n is_html: z.boolean().default(false).describe(\"Whether the email body is HTML formatted. Only applies when not using a template.\").optional(),\n subject: z.string().default(\"\").describe(\"Subject line of the email. Required if template_id is not provided.\").optional(),\n batch_size: z.number().int().default(50).describe(\"Number of recipients to process in each batch. Maximum is 150.\").optional(),\n log_emails: z.boolean().default(true).describe(\"Whether to log the emails on each recipient's activity timeline.\").optional(),\n sender_type: z.enum([\"CurrentUser\", \"DefaultWorkflowUser\", \"OrgWideEmailAddress\"]).default(\"CurrentUser\").describe(\"Type of sender.\").optional(),\n template_id: z.string().default(\"\").describe(\"ID of the email template to use. If not specified, subject and body must be provided.\").optional(),\n recipient_ids: z.array(z.string()).describe(\"List of IDs for leads, contacts, or person accounts to send emails to. Maximum 150 recipients per call. All recipient records must have a non-null Email field; null emails generate per-recipient errors.\"),\n sender_address: z.string().default(\"\").describe(\"Organization-wide email address. Required only when sender_type is OrgWideEmailAddress.\").optional(),\n});\nconst SalesforceSendMassEmail_SendEmailErrorSchema = z.object({\n fields: z.array(z.string()).describe(\"Array of field names that were affected by or caused this error.\").nullable().optional(),\n message: z.string().describe(\"The error message describing what went wrong with the email send operation.\").nullable(),\n statusCode: z.string().describe(\"The status code indicating the type of error that occurred (e.g., INVALID_EMAIL_ADDRESS, REQUIRED_FIELD_MISSING, UNVERIFIED_SENDER_ADDRESS, UNKNOWN_EXCEPTION).\").nullable(),\n targetObjectId: z.string().describe(\"The ID of the target object (Contact, Lead, or User) related to the error, if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Error information when an email send operation fails.\");\nconst SalesforceSendMassEmail_SendEmailResultSchema = z.object({\n errors: z.array(SalesforceSendMassEmail_SendEmailErrorSchema).describe(\"Array of SendEmailError objects containing detailed error information when the email send operation fails. Null or empty array when success is true.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the email was successfully accepted by Salesforce for delivery. Note: true means Salesforce accepted the request to send the email, but does not guarantee actual delivery as email sending is handled asynchronously.\").nullable(),\n}).passthrough().describe(\"Result of a single email send operation.\");\nexport const SalesforceSendMassEmailOutput = z.object({\n results: z.array(SalesforceSendMassEmail_SendEmailResultSchema).describe(\"Array of SendEmailResult objects, one for each recipient email send operation.\"),\n}).passthrough().describe(\"Response containing results for all email send operations.\");\n\nexport const salesforceSendMassEmail = action(\"SALESFORCE_SEND_MASS_EMAIL\", {\n slug: \"salesforce-send-mass-email\",\n name: \"Send mass email\",\n description: \"Sends bulk emails to multiple recipients immediately and irreversibly using a template or custom content. Requires either a valid template_id or both subject and body; omitting all three causes errors. Processes in batches for performance. Check failedRecipients and summary.failureCount in the response even when success=true, as individual recipient failures can occur without an overall failure.\",\n input: SalesforceSendMassEmailInput,\n output: SalesforceSendMassEmailOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,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,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CAC5M,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnP,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0OAA0O,CAAC,CAAC,SAAS;AACrR,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,SAASA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,gFAAgF,EAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAEtF,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"send-mass-email.cjs","names":["z","action"],"sources":["../../src/actions/send-mass-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceSendMassEmailInput = z.object({\n body: z.string().default(\"\").describe(\"Body content of the email. Required if template_id is not provided.\").optional(),\n is_html: z.boolean().default(false).describe(\"Whether the email body is HTML formatted. Only applies when not using a template.\").optional(),\n subject: z.string().default(\"\").describe(\"Subject line of the email. Required if template_id is not provided.\").optional(),\n batch_size: z.number().int().default(50).describe(\"Number of recipients to process in each batch. Maximum is 150.\").optional(),\n log_emails: z.boolean().default(true).describe(\"Whether to log the emails on each recipient's activity timeline.\").optional(),\n sender_type: z.enum([\"CurrentUser\", \"DefaultWorkflowUser\", \"OrgWideEmailAddress\"]).default(\"CurrentUser\").describe(\"Type of sender.\").optional(),\n template_id: z.string().default(\"\").describe(\"ID of the email template to use. If not specified, subject and body must be provided.\").optional(),\n recipient_ids: z.array(z.string()).describe(\"List of IDs for leads, contacts, or person accounts to send emails to. Maximum 150 recipients per call. All recipient records must have a non-null Email field; null emails generate per-recipient errors.\"),\n sender_address: z.string().default(\"\").describe(\"Organization-wide email address. Required only when sender_type is OrgWideEmailAddress.\").optional(),\n});\nconst SalesforceSendMassEmail_SendEmailErrorSchema = z.object({\n fields: z.array(z.string()).describe(\"Array of field names that were affected by or caused this error.\").nullable().optional(),\n message: z.string().describe(\"The error message describing what went wrong with the email send operation.\").nullable(),\n statusCode: z.string().describe(\"The status code indicating the type of error that occurred (e.g., INVALID_EMAIL_ADDRESS, REQUIRED_FIELD_MISSING, UNVERIFIED_SENDER_ADDRESS, UNKNOWN_EXCEPTION).\").nullable(),\n targetObjectId: z.string().describe(\"The ID of the target object (Contact, Lead, or User) related to the error, if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Error information when an email send operation fails.\");\nconst SalesforceSendMassEmail_SendEmailResultSchema = z.object({\n errors: z.array(SalesforceSendMassEmail_SendEmailErrorSchema).describe(\"Array of SendEmailError objects containing detailed error information when the email send operation fails. Null or empty array when success is true.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the email was successfully accepted by Salesforce for delivery. Note: true means Salesforce accepted the request to send the email, but does not guarantee actual delivery as email sending is handled asynchronously.\").nullable(),\n}).passthrough().describe(\"Result of a single email send operation.\");\nexport const SalesforceSendMassEmailOutput = z.object({\n results: z.array(SalesforceSendMassEmail_SendEmailResultSchema).describe(\"Array of SendEmailResult objects, one for each recipient email send operation.\"),\n}).passthrough().describe(\"Response containing results for all email send operations.\");\n\nexport const salesforceSendMassEmail = action(\"SALESFORCE_SEND_MASS_EMAIL\", {\n slug: \"salesforce-send-mass-email\",\n name: \"Send mass email\",\n description: \"Sends an email to each recipient immediately and irreversibly, using a template or custom subject/body (requires either a valid template_id or both subject and body). Recipients are processed in batches of up to 150 via the emailSimple action. IMPORTANT: this sends one individual email per recipient, so it consumes the org's daily single-email allocation and can hit send/rate limits on large recipient lists — it is not a true bulk/marketing-email mechanism. The response is a `results` array with one entry per recipient; inspect each entry's `success` and `errors`, since individual recipients can fail even when the overall call succeeds.\",\n input: SalesforceSendMassEmailInput,\n output: SalesforceSendMassEmailOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACtH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC3I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACzH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC7H,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC5H,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAuB;CAAqB,CAAC,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAC/I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC/I,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4MAA4M;CACxP,gBAAgBA,IAAAA,EA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{
30
30
  slug: "salesforce-send-mass-email",
31
31
  name: "Send mass email",
32
- description: "Sends bulk emails to multiple recipients immediately and irreversibly using a template or custom content. Requires either a valid template_id or both subject and body; omitting all three causes errors. Processes in batches for performance. Check failedRecipients and summary.failureCount in the response even when success=true, as individual recipient failures can occur without an overall failure.",
32
+ description: "Sends an email to each recipient immediately and irreversibly, using a template or custom subject/body (requires either a valid template_id or both subject and body). Recipients are processed in batches of up to 150 via the emailSimple action. IMPORTANT: this sends one individual email per recipient, so it consumes the org's daily single-email allocation and can hit send/rate limits on large recipient lists — it is not a true bulk/marketing-email mechanism. The response is a `results` array with one entry per recipient; inspect each entry's `success` and `errors`, since individual recipients can fail even when the overall call succeeds.",
33
33
  input: SalesforceSendMassEmailInput,
34
34
  output: z.object({ results: z.array(SalesforceSendMassEmail_SendEmailResultSchema).describe("Array of SendEmailResult objects, one for each recipient email send operation.") }).passthrough().describe("Response containing results for all email send operations.")
35
35
  });
@@ -1 +1 @@
1
- {"version":3,"file":"send-mass-email.mjs","names":[],"sources":["../../src/actions/send-mass-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceSendMassEmailInput = z.object({\n body: z.string().default(\"\").describe(\"Body content of the email. Required if template_id is not provided.\").optional(),\n is_html: z.boolean().default(false).describe(\"Whether the email body is HTML formatted. Only applies when not using a template.\").optional(),\n subject: z.string().default(\"\").describe(\"Subject line of the email. Required if template_id is not provided.\").optional(),\n batch_size: z.number().int().default(50).describe(\"Number of recipients to process in each batch. Maximum is 150.\").optional(),\n log_emails: z.boolean().default(true).describe(\"Whether to log the emails on each recipient's activity timeline.\").optional(),\n sender_type: z.enum([\"CurrentUser\", \"DefaultWorkflowUser\", \"OrgWideEmailAddress\"]).default(\"CurrentUser\").describe(\"Type of sender.\").optional(),\n template_id: z.string().default(\"\").describe(\"ID of the email template to use. If not specified, subject and body must be provided.\").optional(),\n recipient_ids: z.array(z.string()).describe(\"List of IDs for leads, contacts, or person accounts to send emails to. Maximum 150 recipients per call. All recipient records must have a non-null Email field; null emails generate per-recipient errors.\"),\n sender_address: z.string().default(\"\").describe(\"Organization-wide email address. Required only when sender_type is OrgWideEmailAddress.\").optional(),\n});\nconst SalesforceSendMassEmail_SendEmailErrorSchema = z.object({\n fields: z.array(z.string()).describe(\"Array of field names that were affected by or caused this error.\").nullable().optional(),\n message: z.string().describe(\"The error message describing what went wrong with the email send operation.\").nullable(),\n statusCode: z.string().describe(\"The status code indicating the type of error that occurred (e.g., INVALID_EMAIL_ADDRESS, REQUIRED_FIELD_MISSING, UNVERIFIED_SENDER_ADDRESS, UNKNOWN_EXCEPTION).\").nullable(),\n targetObjectId: z.string().describe(\"The ID of the target object (Contact, Lead, or User) related to the error, if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Error information when an email send operation fails.\");\nconst SalesforceSendMassEmail_SendEmailResultSchema = z.object({\n errors: z.array(SalesforceSendMassEmail_SendEmailErrorSchema).describe(\"Array of SendEmailError objects containing detailed error information when the email send operation fails. Null or empty array when success is true.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the email was successfully accepted by Salesforce for delivery. Note: true means Salesforce accepted the request to send the email, but does not guarantee actual delivery as email sending is handled asynchronously.\").nullable(),\n}).passthrough().describe(\"Result of a single email send operation.\");\nexport const SalesforceSendMassEmailOutput = z.object({\n results: z.array(SalesforceSendMassEmail_SendEmailResultSchema).describe(\"Array of SendEmailResult objects, one for each recipient email send operation.\"),\n}).passthrough().describe(\"Response containing results for all email send operations.\");\n\nexport const salesforceSendMassEmail = action(\"SALESFORCE_SEND_MASS_EMAIL\", {\n slug: \"salesforce-send-mass-email\",\n name: \"Send mass email\",\n description: \"Sends bulk emails to multiple recipients immediately and irreversibly using a template or custom content. Requires either a valid template_id or both subject and body; omitting all three causes errors. Processes in batches for performance. Check failedRecipients and summary.failureCount in the response even when success=true, as individual recipient failures can occur without an overall failure.\",\n input: SalesforceSendMassEmailInput,\n output: SalesforceSendMassEmailOutput,\n});\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EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,gDAAgD,EAAE,OAAO;CAC7D,QAAQ,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnP,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0OAA0O,CAAC,CAAC,SAAS;AACrR,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAKpE,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,SAAS,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,gFAAgF,EAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"send-mass-email.mjs","names":[],"sources":["../../src/actions/send-mass-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceSendMassEmailInput = z.object({\n body: z.string().default(\"\").describe(\"Body content of the email. Required if template_id is not provided.\").optional(),\n is_html: z.boolean().default(false).describe(\"Whether the email body is HTML formatted. Only applies when not using a template.\").optional(),\n subject: z.string().default(\"\").describe(\"Subject line of the email. Required if template_id is not provided.\").optional(),\n batch_size: z.number().int().default(50).describe(\"Number of recipients to process in each batch. Maximum is 150.\").optional(),\n log_emails: z.boolean().default(true).describe(\"Whether to log the emails on each recipient's activity timeline.\").optional(),\n sender_type: z.enum([\"CurrentUser\", \"DefaultWorkflowUser\", \"OrgWideEmailAddress\"]).default(\"CurrentUser\").describe(\"Type of sender.\").optional(),\n template_id: z.string().default(\"\").describe(\"ID of the email template to use. If not specified, subject and body must be provided.\").optional(),\n recipient_ids: z.array(z.string()).describe(\"List of IDs for leads, contacts, or person accounts to send emails to. Maximum 150 recipients per call. All recipient records must have a non-null Email field; null emails generate per-recipient errors.\"),\n sender_address: z.string().default(\"\").describe(\"Organization-wide email address. Required only when sender_type is OrgWideEmailAddress.\").optional(),\n});\nconst SalesforceSendMassEmail_SendEmailErrorSchema = z.object({\n fields: z.array(z.string()).describe(\"Array of field names that were affected by or caused this error.\").nullable().optional(),\n message: z.string().describe(\"The error message describing what went wrong with the email send operation.\").nullable(),\n statusCode: z.string().describe(\"The status code indicating the type of error that occurred (e.g., INVALID_EMAIL_ADDRESS, REQUIRED_FIELD_MISSING, UNVERIFIED_SENDER_ADDRESS, UNKNOWN_EXCEPTION).\").nullable(),\n targetObjectId: z.string().describe(\"The ID of the target object (Contact, Lead, or User) related to the error, if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Error information when an email send operation fails.\");\nconst SalesforceSendMassEmail_SendEmailResultSchema = z.object({\n errors: z.array(SalesforceSendMassEmail_SendEmailErrorSchema).describe(\"Array of SendEmailError objects containing detailed error information when the email send operation fails. Null or empty array when success is true.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the email was successfully accepted by Salesforce for delivery. Note: true means Salesforce accepted the request to send the email, but does not guarantee actual delivery as email sending is handled asynchronously.\").nullable(),\n}).passthrough().describe(\"Result of a single email send operation.\");\nexport const SalesforceSendMassEmailOutput = z.object({\n results: z.array(SalesforceSendMassEmail_SendEmailResultSchema).describe(\"Array of SendEmailResult objects, one for each recipient email send operation.\"),\n}).passthrough().describe(\"Response containing results for all email send operations.\");\n\nexport const salesforceSendMassEmail = action(\"SALESFORCE_SEND_MASS_EMAIL\", {\n slug: \"salesforce-send-mass-email\",\n name: \"Send mass email\",\n description: \"Sends an email to each recipient immediately and irreversibly, using a template or custom subject/body (requires either a valid template_id or both subject and body). Recipients are processed in batches of up to 150 via the emailSimple action. IMPORTANT: this sends one individual email per recipient, so it consumes the org's daily single-email allocation and can hit send/rate limits on large recipient lists — it is not a true bulk/marketing-email mechanism. The response is a `results` array with one entry per recipient; inspect each entry's `success` and `errors`, since individual recipients can fail even when the overall call succeeds.\",\n input: SalesforceSendMassEmailInput,\n output: SalesforceSendMassEmailOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACtH,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC3I,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACzH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC7H,YAAY,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC5H,aAAa,EAAE,KAAK;EAAC;EAAe;EAAuB;CAAqB,CAAC,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAC/I,aAAa,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC/I,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4MAA4M;CACxP,gBAAgB,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;AACtJ,CAAC;AACD,MAAM,+CAA+C,EAAE,OAAO;CAC5D,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CAC5M,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,gDAAgD,EAAE,OAAO;CAC7D,QAAQ,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnP,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0OAA0O,CAAC,CAAC,SAAS;AACrR,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAKpE,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,SAAS,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,gFAAgF,EAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAOhB;AACV,CAAC"}
@@ -3,13 +3,16 @@ let zod = require("zod");
3
3
  //#region src/actions/set-user-password.ts
4
4
  const SalesforceSetUserPasswordInput = zod.z.object({
5
5
  user_id: zod.z.string().describe("The Salesforce User ID for which to set the password. Must be a valid 15 or 18-character Salesforce User ID."),
6
- new_password: zod.z.string().describe("The new password to set for the user. If omitted, Salesforce will generate and return a random password. The password must meet the organization's password policies including length and complexity requirements.").optional()
6
+ new_password: zod.z.string().describe("The new password to set for the user. Must meet the org's password policies (length/complexity). DESTRUCTIVE if omitted: leaving this blank does NOT generate a password you can read back — it triggers a password RESET (HTTP DELETE) that invalidates the user's current password and emails them a reset link. Only omit it if you intend to reset and notify the user.").optional()
7
7
  });
8
- const SalesforceSetUserPasswordOutput = zod.z.object({ NewPassword: zod.z.string().describe("The randomly generated password. Only present when no password was provided in the request (password reset).").nullable().optional() }).passthrough().describe("Response from setting a user password in Salesforce.\n\nWhen a specific password is provided (POST), returns HTTP 204 with no content.\nWhen no password is provided (DELETE for reset), returns the generated password.");
8
+ const SalesforceSetUserPasswordOutput = zod.z.object({
9
+ reset: zod.z.boolean().default(false).describe("True when this call performed a password RESET (no new_password provided): the user's password was invalidated and Salesforce emailed them a reset link. No password is returned in either case.").nullable().optional(),
10
+ success: zod.z.boolean().default(true).describe("True when the password was set or reset successfully (Salesforce returns HTTP 204 No Content).").nullable().optional()
11
+ }).passthrough().describe("Response from setting or resetting a user password in Salesforce.\n\nBoth operations return HTTP 204 with no body on success:\n - Set (POST, new_password provided): sets the password to the given value.\n - Reset (DELETE, new_password omitted): invalidates the password and emails\n the user a reset link. No password is returned by this REST endpoint.");
9
12
  const salesforceSetUserPassword = require_action.action("SALESFORCE_SET_USER_PASSWORD", {
10
13
  slug: "salesforce-set-user-password",
11
14
  name: "Set user password",
12
- description: "Tool to set or reset a user's password in Salesforce. Use when you need to assign a specific password or generate a random one for a user.",
15
+ description: "Set or reset a Salesforce user's password. Provide new_password to set a specific value (silent). Omit new_password to RESET: this is destructive — it invalidates the user's current password and emails them a reset link, and does NOT return a password. This endpoint never returns a generated password.",
13
16
  input: SalesforceSetUserPasswordInput,
14
17
  output: SalesforceSetUserPasswordOutput
15
18
  });
@@ -1 +1 @@
1
- {"version":3,"file":"set-user-password.cjs","names":["z","action"],"sources":["../../src/actions/set-user-password.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceSetUserPasswordInput = z.object({\n user_id: z.string().describe(\"The Salesforce User ID for which to set the password. Must be a valid 15 or 18-character Salesforce User ID.\"),\n new_password: z.string().describe(\"The new password to set for the user. If omitted, Salesforce will generate and return a random password. The password must meet the organization's password policies including length and complexity requirements.\").optional(),\n});\nexport const SalesforceSetUserPasswordOutput = z.object({\n NewPassword: z.string().describe(\"The randomly generated password. Only present when no password was provided in the request (password reset).\").nullable().optional(),\n}).passthrough().describe(\"Response from setting a user password in Salesforce.\\n\\nWhen a specific password is provided (POST), returns HTTP 204 with no content.\\nWhen no password is provided (DELETE for reset), returns the generated password.\");\n\nexport const salesforceSetUserPassword = action(\"SALESFORCE_SET_USER_PASSWORD\", {\n slug: \"salesforce-set-user-password\",\n name: \"Set user password\",\n description: \"Tool to set or reset a user's password in Salesforce. Use when you need to assign a specific password or generate a random one for a user.\",\n input: SalesforceSetUserPasswordInput,\n output: SalesforceSetUserPasswordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;CAC3I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oNAAoN,CAAC,CAAC,SAAS;AACnQ,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACvK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0NAA0N;AAEpP,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"set-user-password.cjs","names":["z","action"],"sources":["../../src/actions/set-user-password.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesforceSetUserPasswordInput = z.object({\n user_id: z.string().describe(\"The Salesforce User ID for which to set the password. Must be a valid 15 or 18-character Salesforce User ID.\"),\n new_password: z.string().describe(\"The new password to set for the user. Must meet the org's password policies (length/complexity). DESTRUCTIVE if omitted: leaving this blank does NOT generate a password you can read back — it triggers a password RESET (HTTP DELETE) that invalidates the user's current password and emails them a reset link. Only omit it if you intend to reset and notify the user.\").optional(),\n});\nexport const SalesforceSetUserPasswordOutput = z.object({\n reset: z.boolean().default(false).describe(\"True when this call performed a password RESET (no new_password provided): the user's password was invalidated and Salesforce emailed them a reset link. No password is returned in either case.\").nullable().optional(),\n success: z.boolean().default(true).describe(\"True when the password was set or reset successfully (Salesforce returns HTTP 204 No Content).\").nullable().optional(),\n}).passthrough().describe(\"Response from setting or resetting a user password in Salesforce.\\n\\nBoth operations return HTTP 204 with no body on success:\\n - Set (POST, new_password provided): sets the password to the given value.\\n - Reset (DELETE, new_password omitted): invalidates the password and emails\\n the user a reset link. No password is returned by this REST endpoint.\");\n\nexport const salesforceSetUserPassword = action(\"SALESFORCE_SET_USER_PASSWORD\", {\n slug: \"salesforce-set-user-password\",\n name: \"Set user password\",\n description: \"Set or reset a Salesforce user's password. Provide new_password to set a specific value (silent). Omit new_password to RESET: this is destructive — it invalidates the user's current password and emails them a reset link, and does NOT return a password. This endpoint never returns a generated password.\",\n input: SalesforceSetUserPasswordInput,\n output: SalesforceSetUserPasswordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;CAC3I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6WAA6W,CAAC,CAAC,SAAS;AAC5Z,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnQ,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uWAAuW;AAEjY,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}