terse-types 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Tools.d.ts CHANGED
@@ -1400,7 +1400,8 @@ export declare const linearGetUsersInputSchema: z.ZodObject<{
1400
1400
  }, z.core.$strip>;
1401
1401
  export declare const slackSendMessageInputSchema: z.ZodObject<{
1402
1402
  integrationId: z.ZodString;
1403
- channelId: z.ZodString;
1403
+ channelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1404
+ slackUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1404
1405
  message: z.ZodString;
1405
1406
  thread_ts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1406
1407
  blocks: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2097,7 +2098,8 @@ export declare const slackSendMessageTool: {
2097
2098
  name: "slack_send_message";
2098
2099
  inputSchema: z.ZodObject<{
2099
2100
  integrationId: z.ZodString;
2100
- channelId: z.ZodString;
2101
+ channelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2102
+ slackUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2101
2103
  message: z.ZodString;
2102
2104
  thread_ts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2103
2105
  blocks: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5739,7 +5741,8 @@ export declare const ToolDefinitions: {
5739
5741
  name: "slack_send_message";
5740
5742
  inputSchema: z.ZodObject<{
5741
5743
  integrationId: z.ZodString;
5742
- channelId: z.ZodString;
5744
+ channelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5745
+ slackUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5743
5746
  message: z.ZodString;
5744
5747
  thread_ts: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5745
5748
  blocks: z.ZodOptional<z.ZodNullable<z.ZodString>>;
package/dist/Tools.js CHANGED
@@ -540,9 +540,15 @@ export const linearGetTeamsInputSchema = z.object({
540
540
  export const linearGetUsersInputSchema = z.object({
541
541
  integrationId: z.string().describe("The integration ID of the Linear integration to use.")
542
542
  });
543
- export const slackSendMessageInputSchema = z.object({
543
+ export const slackSendMessageInputSchema = z
544
+ .object({
544
545
  integrationId: z.string().describe("The integration ID of the Slack workspace to use."),
545
- channelId: z.string().describe("Slack channel or DM channel ID from the configured output destinations."),
546
+ channelId: z.string().nullable().optional().describe("Slack channel ID (C…/G…) or existing DM channel ID (D…). Omit when sending via slackUserId (opens DM if needed)."),
547
+ slackUserId: z
548
+ .string()
549
+ .nullable()
550
+ .optional()
551
+ .describe("Slack member ID (U…) to send a direct message. The workspace opens the DM conversation if one does not exist yet. Omit when sending to channelId."),
546
552
  message: z.string().describe("Message content (mrkdwn). Used as fallback for Block Kit or main message."),
547
553
  thread_ts: z
548
554
  .string()
@@ -550,6 +556,14 @@ export const slackSendMessageInputSchema = z.object({
550
556
  .optional()
551
557
  .describe("Thread timestamp to reply to existing thread. If sending a message to a thread, this should be the timestamp of the thread to reply to. If sending an unthreaded message, this should be set to null."),
552
558
  blocks: z.string().nullable().optional().describe("Block Kit JSON array string for interactive messages with buttons, structured layouts")
559
+ })
560
+ .superRefine((data, ctx) => {
561
+ if (!data.channelId && !data.slackUserId) {
562
+ ctx.addIssue({
563
+ code: z.ZodIssueCode.custom,
564
+ message: "Provide channelId (channel or existing DM) or slackUserId (workspace member to DM)."
565
+ });
566
+ }
553
567
  });
554
568
  export const slackListChannelsTypesSchema = z.enum(["public", "private", "im", "mpim", "all"]);
555
569
  export const slackListChannelsInputSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "type": "module",
5
5
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
6
  "main": "./dist/index.js",