@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/milk-tea.d.ts
CHANGED
|
@@ -30,10 +30,10 @@ export declare const MilkTeaRequestSchema: z.ZodObject<{
|
|
|
30
30
|
toolCallId?: string | undefined;
|
|
31
31
|
name?: string | undefined;
|
|
32
32
|
}>, "many">>>;
|
|
33
|
-
model: z.ZodDefault<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"]>>;
|
|
33
|
+
model: z.ZodDefault<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"]>>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
35
|
bubbleName: string;
|
|
36
|
-
model: "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";
|
|
36
|
+
model: "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";
|
|
37
37
|
userRequest: string;
|
|
38
38
|
bubbleSchema: Record<string, unknown>;
|
|
39
39
|
availableCredentials: string[];
|
|
@@ -51,7 +51,7 @@ export declare const MilkTeaRequestSchema: z.ZodObject<{
|
|
|
51
51
|
userRequest: string;
|
|
52
52
|
bubbleSchema: Record<string, unknown>;
|
|
53
53
|
userName: string;
|
|
54
|
-
model?: "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" | undefined;
|
|
54
|
+
model?: "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" | undefined;
|
|
55
55
|
currentCode?: string | undefined;
|
|
56
56
|
availableCredentials?: string[] | undefined;
|
|
57
57
|
insertLocation?: string | undefined;
|
package/dist/pearl.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const PearlRequestSchema: z.ZodObject<{
|
|
|
27
27
|
toolCallId?: string | undefined;
|
|
28
28
|
name?: string | undefined;
|
|
29
29
|
}>, "many">>>;
|
|
30
|
-
model: z.ZodDefault<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"]>>;
|
|
30
|
+
model: z.ZodDefault<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"]>>;
|
|
31
31
|
additionalContext: z.ZodOptional<z.ZodString>;
|
|
32
32
|
uploadedFiles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33
33
|
name: z.ZodString;
|
|
@@ -43,7 +43,7 @@ export declare const PearlRequestSchema: z.ZodObject<{
|
|
|
43
43
|
fileType: "text" | "image";
|
|
44
44
|
}>, "many">>>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
model: "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";
|
|
46
|
+
model: "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";
|
|
47
47
|
userRequest: string;
|
|
48
48
|
userName: string;
|
|
49
49
|
conversationHistory: {
|
|
@@ -64,7 +64,7 @@ export declare const PearlRequestSchema: z.ZodObject<{
|
|
|
64
64
|
userRequest: string;
|
|
65
65
|
userName: string;
|
|
66
66
|
availableVariables: any[];
|
|
67
|
-
model?: "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" | undefined;
|
|
67
|
+
model?: "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" | undefined;
|
|
68
68
|
currentCode?: string | undefined;
|
|
69
69
|
conversationHistory?: {
|
|
70
70
|
role: "user" | "assistant" | "tool";
|
package/dist/rice.d.ts
CHANGED
|
@@ -39,11 +39,11 @@ export declare const RiceRequestSchema: z.ZodObject<{
|
|
|
39
39
|
workflowCode: z.ZodString;
|
|
40
40
|
executionId: z.ZodNumber;
|
|
41
41
|
bubbleFlowId: z.ZodNumber;
|
|
42
|
-
model: z.ZodDefault<z.ZodOptional<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"]>>>;
|
|
42
|
+
model: z.ZodDefault<z.ZodOptional<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"]>>>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
executionLogs: unknown[];
|
|
45
45
|
executionId: number;
|
|
46
|
-
model: "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";
|
|
46
|
+
model: "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";
|
|
47
47
|
workflowCode: string;
|
|
48
48
|
bubbleFlowId: number;
|
|
49
49
|
}, {
|
|
@@ -51,7 +51,7 @@ export declare const RiceRequestSchema: z.ZodObject<{
|
|
|
51
51
|
executionId: number;
|
|
52
52
|
workflowCode: string;
|
|
53
53
|
bubbleFlowId: number;
|
|
54
|
-
model?: "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" | undefined;
|
|
54
|
+
model?: "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" | undefined;
|
|
55
55
|
}>;
|
|
56
56
|
/**
|
|
57
57
|
* Response schema for Rice evaluation agent
|
package/dist/trigger.d.ts
CHANGED
|
@@ -62,6 +62,36 @@ export interface BubbleTrigger {
|
|
|
62
62
|
timeout?: number;
|
|
63
63
|
retries?: number;
|
|
64
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Slack file object - included in message events when files/images are shared
|
|
67
|
+
* @see https://api.slack.com/types/file
|
|
68
|
+
*/
|
|
69
|
+
export interface SlackFile {
|
|
70
|
+
/** Unique file identifier */
|
|
71
|
+
id: string;
|
|
72
|
+
/** Filename with extension */
|
|
73
|
+
name: string;
|
|
74
|
+
/** Display title of the file */
|
|
75
|
+
title?: string;
|
|
76
|
+
/** MIME type (e.g., 'image/png', 'application/pdf') */
|
|
77
|
+
mimetype: string;
|
|
78
|
+
/** File extension without dot (e.g., 'png', 'pdf') */
|
|
79
|
+
filetype: string;
|
|
80
|
+
/** File size in bytes */
|
|
81
|
+
size: number;
|
|
82
|
+
/** User ID who uploaded the file */
|
|
83
|
+
user?: string;
|
|
84
|
+
/** Private URL to view the file (requires bot token auth) */
|
|
85
|
+
url_private?: string;
|
|
86
|
+
/** Private URL to download the file (requires bot token auth) */
|
|
87
|
+
url_private_download?: string;
|
|
88
|
+
/** Original image width in pixels */
|
|
89
|
+
original_w?: number;
|
|
90
|
+
/** Original image height in pixels */
|
|
91
|
+
original_h?: number;
|
|
92
|
+
/** Permanent link to the file */
|
|
93
|
+
permalink?: string;
|
|
94
|
+
}
|
|
65
95
|
export interface SlackEventWrapper {
|
|
66
96
|
token: string;
|
|
67
97
|
team_id: string;
|
|
@@ -86,6 +116,10 @@ export interface SlackAppMentionEvent {
|
|
|
86
116
|
channel: string;
|
|
87
117
|
event_ts: string;
|
|
88
118
|
thread_ts?: string;
|
|
119
|
+
/** Files/images attached to the mention message */
|
|
120
|
+
files?: SlackFile[];
|
|
121
|
+
/** Whether this message was an upload */
|
|
122
|
+
upload?: boolean;
|
|
89
123
|
}
|
|
90
124
|
export interface SlackMessageEvent {
|
|
91
125
|
type: 'message';
|
|
@@ -95,6 +129,7 @@ export interface SlackMessageEvent {
|
|
|
95
129
|
channel: string;
|
|
96
130
|
event_ts: string;
|
|
97
131
|
channel_type: 'channel' | 'group' | 'im' | 'mpim';
|
|
132
|
+
/** Message subtype (e.g., 'file_share', 'bot_message', 'channel_join') */
|
|
98
133
|
subtype?: string;
|
|
99
134
|
bot_id?: string;
|
|
100
135
|
bot_profile?: {
|
|
@@ -102,6 +137,10 @@ export interface SlackMessageEvent {
|
|
|
102
137
|
name: string;
|
|
103
138
|
app_id: string;
|
|
104
139
|
};
|
|
140
|
+
/** Files/images attached to this message (present when subtype is 'file_share' or user uploads files) */
|
|
141
|
+
files?: SlackFile[];
|
|
142
|
+
/** Whether this message was an upload */
|
|
143
|
+
upload?: boolean;
|
|
105
144
|
}
|
|
106
145
|
export interface SlackMentionEvent extends BubbleTriggerEvent {
|
|
107
146
|
slack_event: SlackEventWrapper;
|
|
@@ -109,6 +148,8 @@ export interface SlackMentionEvent extends BubbleTriggerEvent {
|
|
|
109
148
|
user: string;
|
|
110
149
|
text: string;
|
|
111
150
|
thread_ts?: string;
|
|
151
|
+
/** Files/images attached to the mention message */
|
|
152
|
+
files?: SlackFile[];
|
|
112
153
|
}
|
|
113
154
|
export interface SlackMessageReceivedEvent extends BubbleTriggerEvent {
|
|
114
155
|
slack_event: SlackEventWrapper;
|
|
@@ -117,6 +158,8 @@ export interface SlackMessageReceivedEvent extends BubbleTriggerEvent {
|
|
|
117
158
|
text: string;
|
|
118
159
|
channel_type: 'channel' | 'group' | 'im' | 'mpim';
|
|
119
160
|
subtype?: string;
|
|
161
|
+
/** Files/images attached to this message */
|
|
162
|
+
files?: SlackFile[];
|
|
120
163
|
}
|
|
121
164
|
/**
|
|
122
165
|
* JSON Schema type for payload validation
|
package/dist/trigger.d.ts.map
CHANGED
|
@@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