@bubblelab/shared-schemas 0.1.14 → 0.1.16

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
@@ -3086,7 +3086,79 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
3086
3086
  },
3087
3087
  slack_event: {
3088
3088
  type: "object",
3089
- description: "Full Slack event wrapper"
3089
+ description: "Full Slack event wrapper",
3090
+ properties: {
3091
+ token: { type: "string", description: "Verification token" },
3092
+ team_id: { type: "string", description: "Workspace ID" },
3093
+ api_app_id: { type: "string", description: "Slack App ID" },
3094
+ type: {
3095
+ type: "string",
3096
+ enum: ["event_callback"],
3097
+ description: "Event type"
3098
+ },
3099
+ event_id: { type: "string", description: "Unique event ID" },
3100
+ event_time: { type: "number", description: "Event timestamp" },
3101
+ event_context: { type: "string", description: "Event context" },
3102
+ authorizations: {
3103
+ type: "array",
3104
+ description: "Bot authorizations",
3105
+ items: {
3106
+ type: "object",
3107
+ properties: {
3108
+ enterprise_id: { type: "string" },
3109
+ team_id: { type: "string" },
3110
+ user_id: { type: "string" },
3111
+ is_bot: { type: "boolean" }
3112
+ }
3113
+ }
3114
+ },
3115
+ event: {
3116
+ type: "object",
3117
+ description: "Inner message event data",
3118
+ properties: {
3119
+ type: {
3120
+ type: "string",
3121
+ enum: ["message"],
3122
+ description: "Event type"
3123
+ },
3124
+ user: {
3125
+ type: "string",
3126
+ description: "User ID who sent the message"
3127
+ },
3128
+ text: { type: "string", description: "Message text content" },
3129
+ ts: { type: "string", description: "Message timestamp" },
3130
+ channel: { type: "string", description: "Channel ID" },
3131
+ event_ts: { type: "string", description: "Event timestamp" },
3132
+ channel_type: {
3133
+ type: "string",
3134
+ enum: ["channel", "group", "im", "mpim"],
3135
+ description: "Type of channel"
3136
+ },
3137
+ subtype: {
3138
+ type: "string",
3139
+ description: "Message subtype (if any)"
3140
+ }
3141
+ },
3142
+ required: [
3143
+ "type",
3144
+ "user",
3145
+ "text",
3146
+ "ts",
3147
+ "channel",
3148
+ "event_ts",
3149
+ "channel_type"
3150
+ ]
3151
+ }
3152
+ },
3153
+ required: [
3154
+ "token",
3155
+ "team_id",
3156
+ "api_app_id",
3157
+ "type",
3158
+ "event_id",
3159
+ "event_time",
3160
+ "event"
3161
+ ]
3090
3162
  }
3091
3163
  },
3092
3164
  required: ["text", "channel", "user", "slack_event"]
@@ -3141,7 +3213,69 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
3141
3213
  },
3142
3214
  slack_event: {
3143
3215
  type: "object",
3144
- description: "Full Slack event wrapper"
3216
+ description: "Full Slack event wrapper",
3217
+ properties: {
3218
+ token: { type: "string", description: "Verification token" },
3219
+ team_id: { type: "string", description: "Workspace ID" },
3220
+ api_app_id: { type: "string", description: "Slack App ID" },
3221
+ type: {
3222
+ type: "string",
3223
+ enum: ["event_callback"],
3224
+ description: "Event type"
3225
+ },
3226
+ event_id: { type: "string", description: "Unique event ID" },
3227
+ event_time: { type: "number", description: "Event timestamp" },
3228
+ event_context: { type: "string", description: "Event context" },
3229
+ authorizations: {
3230
+ type: "array",
3231
+ description: "Bot authorizations",
3232
+ items: {
3233
+ type: "object",
3234
+ properties: {
3235
+ enterprise_id: { type: "string" },
3236
+ team_id: { type: "string" },
3237
+ user_id: { type: "string" },
3238
+ is_bot: { type: "boolean" }
3239
+ }
3240
+ }
3241
+ },
3242
+ event: {
3243
+ type: "object",
3244
+ description: "Inner app_mention event data",
3245
+ properties: {
3246
+ type: {
3247
+ type: "string",
3248
+ enum: ["app_mention"],
3249
+ description: "Event type"
3250
+ },
3251
+ user: {
3252
+ type: "string",
3253
+ description: "User ID who mentioned the bot"
3254
+ },
3255
+ text: {
3256
+ type: "string",
3257
+ description: "Message text containing the mention"
3258
+ },
3259
+ ts: { type: "string", description: "Message timestamp" },
3260
+ channel: { type: "string", description: "Channel ID" },
3261
+ event_ts: { type: "string", description: "Event timestamp" },
3262
+ thread_ts: {
3263
+ type: "string",
3264
+ description: "Thread timestamp (if in a thread)"
3265
+ }
3266
+ },
3267
+ required: ["type", "user", "text", "ts", "channel", "event_ts"]
3268
+ }
3269
+ },
3270
+ required: [
3271
+ "token",
3272
+ "team_id",
3273
+ "api_app_id",
3274
+ "type",
3275
+ "event_id",
3276
+ "event_time",
3277
+ "event"
3278
+ ]
3145
3279
  }
3146
3280
  },
3147
3281
  required: ["text", "channel", "user", "slack_event"]