@bubblelab/shared-schemas 0.1.78 → 0.1.80
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/ai-models.d.ts +1 -1
- package/dist/ai-models.d.ts.map +1 -1
- package/dist/index.js +109 -1
- package/dist/index.js.map +1 -1
- package/dist/milk-tea.d.ts +3 -3
- package/dist/pearl.d.ts +3 -3
- package/dist/rice.d.ts +3 -3
- package/dist/trigger.d.ts +43 -0
- package/dist/trigger.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ai-models.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const AvailableModels: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>;
|
|
2
|
+
export declare const AvailableModels: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>;
|
|
3
3
|
export type AvailableModel = z.infer<typeof AvailableModels>;
|
|
4
4
|
//# sourceMappingURL=ai-models.d.ts.map
|
package/dist/ai-models.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-models.d.ts","sourceRoot":"","sources":["../src/ai-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"ai-models.d.ts","sourceRoot":"","sources":["../src/ai-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe,8vBA6B1B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3852,7 +3852,9 @@ var AvailableModels = z15.enum([
|
|
|
3852
3852
|
// OpenRouter models
|
|
3853
3853
|
"openrouter/x-ai/grok-code-fast-1",
|
|
3854
3854
|
"openrouter/z-ai/glm-4.6",
|
|
3855
|
+
"openrouter/z-ai/glm-4.7",
|
|
3855
3856
|
"openrouter/anthropic/claude-sonnet-4.5",
|
|
3857
|
+
"openrouter/anthropic/claude-opus-4.5",
|
|
3856
3858
|
"openrouter/google/gemini-3-pro-preview",
|
|
3857
3859
|
"openrouter/morph/morph-v3-large",
|
|
3858
3860
|
"openrouter/openai/gpt-oss-120b",
|
|
@@ -4247,6 +4249,55 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
4247
4249
|
type: "string",
|
|
4248
4250
|
description: "Type of channel (channel, group, im, mpim)"
|
|
4249
4251
|
},
|
|
4252
|
+
files: {
|
|
4253
|
+
type: "array",
|
|
4254
|
+
description: "Files/images attached to the message. Present when user shares files. Use url_private with bot token to download.",
|
|
4255
|
+
items: {
|
|
4256
|
+
type: "object",
|
|
4257
|
+
properties: {
|
|
4258
|
+
id: { type: "string", description: "Unique file identifier" },
|
|
4259
|
+
name: { type: "string", description: "Filename with extension" },
|
|
4260
|
+
title: { type: "string", description: "Display title" },
|
|
4261
|
+
mimetype: {
|
|
4262
|
+
type: "string",
|
|
4263
|
+
description: "MIME type (e.g., image/png)"
|
|
4264
|
+
},
|
|
4265
|
+
filetype: {
|
|
4266
|
+
type: "string",
|
|
4267
|
+
description: "File extension (e.g., png)"
|
|
4268
|
+
},
|
|
4269
|
+
size: { type: "number", description: "File size in bytes" },
|
|
4270
|
+
url_private: {
|
|
4271
|
+
type: "string",
|
|
4272
|
+
description: "Private URL to access file (requires bot token)"
|
|
4273
|
+
},
|
|
4274
|
+
url_private_download: {
|
|
4275
|
+
type: "string",
|
|
4276
|
+
description: "Private URL to download file (requires bot token)"
|
|
4277
|
+
},
|
|
4278
|
+
thumb_360: {
|
|
4279
|
+
type: "string",
|
|
4280
|
+
description: "360px thumbnail URL for images"
|
|
4281
|
+
},
|
|
4282
|
+
thumb_480: {
|
|
4283
|
+
type: "string",
|
|
4284
|
+
description: "480px thumbnail URL for images"
|
|
4285
|
+
},
|
|
4286
|
+
original_w: {
|
|
4287
|
+
type: "number",
|
|
4288
|
+
description: "Original image width in pixels"
|
|
4289
|
+
},
|
|
4290
|
+
original_h: {
|
|
4291
|
+
type: "number",
|
|
4292
|
+
description: "Original image height in pixels"
|
|
4293
|
+
},
|
|
4294
|
+
permalink: {
|
|
4295
|
+
type: "string",
|
|
4296
|
+
description: "Permanent link to the file"
|
|
4297
|
+
}
|
|
4298
|
+
}
|
|
4299
|
+
}
|
|
4300
|
+
},
|
|
4250
4301
|
slack_event: {
|
|
4251
4302
|
type: "object",
|
|
4252
4303
|
description: "Full Slack event wrapper",
|
|
@@ -4299,7 +4350,11 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
4299
4350
|
},
|
|
4300
4351
|
subtype: {
|
|
4301
4352
|
type: "string",
|
|
4302
|
-
description: "Message subtype (
|
|
4353
|
+
description: "Message subtype (e.g., file_share when files attached)"
|
|
4354
|
+
},
|
|
4355
|
+
files: {
|
|
4356
|
+
type: "array",
|
|
4357
|
+
description: "Files attached to the message"
|
|
4303
4358
|
}
|
|
4304
4359
|
},
|
|
4305
4360
|
required: [
|
|
@@ -4374,6 +4429,55 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
4374
4429
|
type: "string",
|
|
4375
4430
|
description: "Thread timestamp (if replying in a thread)"
|
|
4376
4431
|
},
|
|
4432
|
+
files: {
|
|
4433
|
+
type: "array",
|
|
4434
|
+
description: "Files/images attached to the mention message. Use url_private with bot token to download.",
|
|
4435
|
+
items: {
|
|
4436
|
+
type: "object",
|
|
4437
|
+
properties: {
|
|
4438
|
+
id: { type: "string", description: "Unique file identifier" },
|
|
4439
|
+
name: { type: "string", description: "Filename with extension" },
|
|
4440
|
+
title: { type: "string", description: "Display title" },
|
|
4441
|
+
mimetype: {
|
|
4442
|
+
type: "string",
|
|
4443
|
+
description: "MIME type (e.g., image/png)"
|
|
4444
|
+
},
|
|
4445
|
+
filetype: {
|
|
4446
|
+
type: "string",
|
|
4447
|
+
description: "File extension (e.g., png)"
|
|
4448
|
+
},
|
|
4449
|
+
size: { type: "number", description: "File size in bytes" },
|
|
4450
|
+
url_private: {
|
|
4451
|
+
type: "string",
|
|
4452
|
+
description: "Private URL to access file (requires bot token)"
|
|
4453
|
+
},
|
|
4454
|
+
url_private_download: {
|
|
4455
|
+
type: "string",
|
|
4456
|
+
description: "Private URL to download file (requires bot token)"
|
|
4457
|
+
},
|
|
4458
|
+
thumb_360: {
|
|
4459
|
+
type: "string",
|
|
4460
|
+
description: "360px thumbnail URL for images"
|
|
4461
|
+
},
|
|
4462
|
+
thumb_480: {
|
|
4463
|
+
type: "string",
|
|
4464
|
+
description: "480px thumbnail URL for images"
|
|
4465
|
+
},
|
|
4466
|
+
original_w: {
|
|
4467
|
+
type: "number",
|
|
4468
|
+
description: "Original image width in pixels"
|
|
4469
|
+
},
|
|
4470
|
+
original_h: {
|
|
4471
|
+
type: "number",
|
|
4472
|
+
description: "Original image height in pixels"
|
|
4473
|
+
},
|
|
4474
|
+
permalink: {
|
|
4475
|
+
type: "string",
|
|
4476
|
+
description: "Permanent link to the file"
|
|
4477
|
+
}
|
|
4478
|
+
}
|
|
4479
|
+
}
|
|
4480
|
+
},
|
|
4377
4481
|
slack_event: {
|
|
4378
4482
|
type: "object",
|
|
4379
4483
|
description: "Full Slack event wrapper",
|
|
@@ -4425,6 +4529,10 @@ Copy the **Bot User OAuth Token** (starts with \`xoxb-\`) from the OAuth & Permi
|
|
|
4425
4529
|
thread_ts: {
|
|
4426
4530
|
type: "string",
|
|
4427
4531
|
description: "Thread timestamp (if in a thread)"
|
|
4532
|
+
},
|
|
4533
|
+
files: {
|
|
4534
|
+
type: "array",
|
|
4535
|
+
description: "Files attached to the mention message"
|
|
4428
4536
|
}
|
|
4429
4537
|
},
|
|
4430
4538
|
required: ["type", "user", "text", "ts", "channel", "event_ts"]
|