@bubblelab/shared-schemas 0.1.78 → 0.1.79
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 +107 -1
- package/dist/index.js.map +1 -1
- package/dist/trigger.d.ts +43 -0
- package/dist/trigger.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4247,6 +4247,55 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
4247
4247
|
type: "string",
|
|
4248
4248
|
description: "Type of channel (channel, group, im, mpim)"
|
|
4249
4249
|
},
|
|
4250
|
+
files: {
|
|
4251
|
+
type: "array",
|
|
4252
|
+
description: "Files/images attached to the message. Present when user shares files. Use url_private with bot token to download.",
|
|
4253
|
+
items: {
|
|
4254
|
+
type: "object",
|
|
4255
|
+
properties: {
|
|
4256
|
+
id: { type: "string", description: "Unique file identifier" },
|
|
4257
|
+
name: { type: "string", description: "Filename with extension" },
|
|
4258
|
+
title: { type: "string", description: "Display title" },
|
|
4259
|
+
mimetype: {
|
|
4260
|
+
type: "string",
|
|
4261
|
+
description: "MIME type (e.g., image/png)"
|
|
4262
|
+
},
|
|
4263
|
+
filetype: {
|
|
4264
|
+
type: "string",
|
|
4265
|
+
description: "File extension (e.g., png)"
|
|
4266
|
+
},
|
|
4267
|
+
size: { type: "number", description: "File size in bytes" },
|
|
4268
|
+
url_private: {
|
|
4269
|
+
type: "string",
|
|
4270
|
+
description: "Private URL to access file (requires bot token)"
|
|
4271
|
+
},
|
|
4272
|
+
url_private_download: {
|
|
4273
|
+
type: "string",
|
|
4274
|
+
description: "Private URL to download file (requires bot token)"
|
|
4275
|
+
},
|
|
4276
|
+
thumb_360: {
|
|
4277
|
+
type: "string",
|
|
4278
|
+
description: "360px thumbnail URL for images"
|
|
4279
|
+
},
|
|
4280
|
+
thumb_480: {
|
|
4281
|
+
type: "string",
|
|
4282
|
+
description: "480px thumbnail URL for images"
|
|
4283
|
+
},
|
|
4284
|
+
original_w: {
|
|
4285
|
+
type: "number",
|
|
4286
|
+
description: "Original image width in pixels"
|
|
4287
|
+
},
|
|
4288
|
+
original_h: {
|
|
4289
|
+
type: "number",
|
|
4290
|
+
description: "Original image height in pixels"
|
|
4291
|
+
},
|
|
4292
|
+
permalink: {
|
|
4293
|
+
type: "string",
|
|
4294
|
+
description: "Permanent link to the file"
|
|
4295
|
+
}
|
|
4296
|
+
}
|
|
4297
|
+
}
|
|
4298
|
+
},
|
|
4250
4299
|
slack_event: {
|
|
4251
4300
|
type: "object",
|
|
4252
4301
|
description: "Full Slack event wrapper",
|
|
@@ -4299,7 +4348,11 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
4299
4348
|
},
|
|
4300
4349
|
subtype: {
|
|
4301
4350
|
type: "string",
|
|
4302
|
-
description: "Message subtype (
|
|
4351
|
+
description: "Message subtype (e.g., file_share when files attached)"
|
|
4352
|
+
},
|
|
4353
|
+
files: {
|
|
4354
|
+
type: "array",
|
|
4355
|
+
description: "Files attached to the message"
|
|
4303
4356
|
}
|
|
4304
4357
|
},
|
|
4305
4358
|
required: [
|
|
@@ -4374,6 +4427,55 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
4374
4427
|
type: "string",
|
|
4375
4428
|
description: "Thread timestamp (if replying in a thread)"
|
|
4376
4429
|
},
|
|
4430
|
+
files: {
|
|
4431
|
+
type: "array",
|
|
4432
|
+
description: "Files/images attached to the mention message. Use url_private with bot token to download.",
|
|
4433
|
+
items: {
|
|
4434
|
+
type: "object",
|
|
4435
|
+
properties: {
|
|
4436
|
+
id: { type: "string", description: "Unique file identifier" },
|
|
4437
|
+
name: { type: "string", description: "Filename with extension" },
|
|
4438
|
+
title: { type: "string", description: "Display title" },
|
|
4439
|
+
mimetype: {
|
|
4440
|
+
type: "string",
|
|
4441
|
+
description: "MIME type (e.g., image/png)"
|
|
4442
|
+
},
|
|
4443
|
+
filetype: {
|
|
4444
|
+
type: "string",
|
|
4445
|
+
description: "File extension (e.g., png)"
|
|
4446
|
+
},
|
|
4447
|
+
size: { type: "number", description: "File size in bytes" },
|
|
4448
|
+
url_private: {
|
|
4449
|
+
type: "string",
|
|
4450
|
+
description: "Private URL to access file (requires bot token)"
|
|
4451
|
+
},
|
|
4452
|
+
url_private_download: {
|
|
4453
|
+
type: "string",
|
|
4454
|
+
description: "Private URL to download file (requires bot token)"
|
|
4455
|
+
},
|
|
4456
|
+
thumb_360: {
|
|
4457
|
+
type: "string",
|
|
4458
|
+
description: "360px thumbnail URL for images"
|
|
4459
|
+
},
|
|
4460
|
+
thumb_480: {
|
|
4461
|
+
type: "string",
|
|
4462
|
+
description: "480px thumbnail URL for images"
|
|
4463
|
+
},
|
|
4464
|
+
original_w: {
|
|
4465
|
+
type: "number",
|
|
4466
|
+
description: "Original image width in pixels"
|
|
4467
|
+
},
|
|
4468
|
+
original_h: {
|
|
4469
|
+
type: "number",
|
|
4470
|
+
description: "Original image height in pixels"
|
|
4471
|
+
},
|
|
4472
|
+
permalink: {
|
|
4473
|
+
type: "string",
|
|
4474
|
+
description: "Permanent link to the file"
|
|
4475
|
+
}
|
|
4476
|
+
}
|
|
4477
|
+
}
|
|
4478
|
+
},
|
|
4377
4479
|
slack_event: {
|
|
4378
4480
|
type: "object",
|
|
4379
4481
|
description: "Full Slack event wrapper",
|
|
@@ -4425,6 +4527,10 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
4425
4527
|
thread_ts: {
|
|
4426
4528
|
type: "string",
|
|
4427
4529
|
description: "Thread timestamp (if in a thread)"
|
|
4530
|
+
},
|
|
4531
|
+
files: {
|
|
4532
|
+
type: "array",
|
|
4533
|
+
description: "Files attached to the mention message"
|
|
4428
4534
|
}
|
|
4429
4535
|
},
|
|
4430
4536
|
required: ["type", "user", "text", "ts", "channel", "event_ts"]
|