@bubblelab/shared-schemas 0.1.126 → 0.1.127

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/index.js CHANGED
@@ -4404,6 +4404,7 @@ Navigate to **OAuth & Permissions** and add these Bot Token Scopes:
4404
4404
  - \`im:history\` - To read direct messages
4405
4405
  - \`mpim:history\` - To read group direct messages
4406
4406
  - \`chat:write\` - To send messages
4407
+ - \`users:read\` - To look up user names and timezones
4407
4408
 
4408
4409
  ### 3. Enable Event Subscriptions
4409
4410
  1. Go to **Event Subscriptions**
@@ -4481,6 +4482,34 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
4481
4482
  }
4482
4483
  }
4483
4484
  },
4485
+ thread_histories: {
4486
+ type: "array",
4487
+ description: "Thread history messages including current message for non-threaded events",
4488
+ items: {
4489
+ type: "object",
4490
+ properties: {
4491
+ user_id: {
4492
+ type: "string",
4493
+ description: "Slack user ID or bot ID"
4494
+ },
4495
+ name: {
4496
+ type: "string",
4497
+ description: "User display name (best effort)"
4498
+ },
4499
+ timezone: {
4500
+ type: ["string", "null"],
4501
+ description: "User timezone (best effort)"
4502
+ },
4503
+ message: { type: "string", description: "Message text" },
4504
+ image_url_private_downloads: {
4505
+ type: "array",
4506
+ description: "Private download URLs for images attached to the message",
4507
+ items: { type: "string" }
4508
+ }
4509
+ },
4510
+ required: ["user_id", "name", "timezone", "message"]
4511
+ }
4512
+ },
4484
4513
  slack_event: {
4485
4514
  type: "object",
4486
4515
  description: "Full Slack event wrapper",
@@ -4562,7 +4591,7 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
4562
4591
  ]
4563
4592
  }
4564
4593
  },
4565
- required: ["text", "channel", "user", "slack_event"]
4594
+ required: ["text", "channel", "user", "thread_histories", "slack_event"]
4566
4595
  }
4567
4596
  },
4568
4597
  "slack/bot_mentioned": {
@@ -4581,6 +4610,7 @@ Navigate to **OAuth & Permissions** and add these Bot Token Scopes:
4581
4610
  - \`app_mentions:read\` - To receive mention events
4582
4611
  - \`chat:write\` - To send messages
4583
4612
  - \`channels:history\` - To read channel messages (optional)
4613
+ - \`users:read\` - To look up user names and timezones
4584
4614
 
4585
4615
  ### 3. Enable Event Subscriptions
4586
4616
  1. Go to **Event Subscriptions**
@@ -4661,6 +4691,34 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
4661
4691
  }
4662
4692
  }
4663
4693
  },
4694
+ thread_histories: {
4695
+ type: "array",
4696
+ description: "Thread history messages including current message for non-threaded events",
4697
+ items: {
4698
+ type: "object",
4699
+ properties: {
4700
+ user_id: {
4701
+ type: "string",
4702
+ description: "Slack user ID or bot ID"
4703
+ },
4704
+ name: {
4705
+ type: "string",
4706
+ description: "User display name (best effort)"
4707
+ },
4708
+ timezone: {
4709
+ type: ["string", "null"],
4710
+ description: "User timezone (best effort)"
4711
+ },
4712
+ message: { type: "string", description: "Message text" },
4713
+ image_url_private_downloads: {
4714
+ type: "array",
4715
+ description: "Private download URLs for images attached to the message",
4716
+ items: { type: "string" }
4717
+ }
4718
+ },
4719
+ required: ["user_id", "name", "timezone", "message"]
4720
+ }
4721
+ },
4664
4722
  slack_event: {
4665
4723
  type: "object",
4666
4724
  description: "Full Slack event wrapper",
@@ -4732,7 +4790,7 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
4732
4790
  ]
4733
4791
  }
4734
4792
  },
4735
- required: ["text", "channel", "user", "slack_event"]
4793
+ required: ["text", "channel", "user", "thread_histories", "slack_event"]
4736
4794
  }
4737
4795
  },
4738
4796
  "airtable/record_created": {