@bubblelab/shared-schemas 0.1.10 → 0.1.11

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.
Files changed (94) hide show
  1. package/dist/agent-memory.d.ts +21 -0
  2. package/dist/agent-memory.d.ts.map +1 -0
  3. package/dist/agent-memory.js +11 -0
  4. package/dist/agent-memory.js.map +1 -0
  5. package/dist/ai-models.d.ts +1 -1
  6. package/dist/ai-models.d.ts.map +1 -1
  7. package/dist/ai-models.js +12 -0
  8. package/dist/ai-models.js.map +1 -1
  9. package/dist/api-schema.d.ts +2 -2
  10. package/dist/bubble-definition-schema.d.ts +559 -75
  11. package/dist/bubble-definition-schema.d.ts.map +1 -1
  12. package/dist/bubble-definition-schema.js +184 -0
  13. package/dist/bubble-definition-schema.js.map +1 -1
  14. package/dist/bubbleflow-execution-schema.d.ts +586 -175
  15. package/dist/bubbleflow-execution-schema.d.ts.map +1 -1
  16. package/dist/bubbleflow-execution-schema.js +40 -26
  17. package/dist/bubbleflow-execution-schema.js.map +1 -1
  18. package/dist/bubbleflow-generation-prompts.d.ts +13 -7
  19. package/dist/bubbleflow-generation-prompts.d.ts.map +1 -1
  20. package/dist/bubbleflow-generation-prompts.js +384 -15
  21. package/dist/bubbleflow-generation-prompts.js.map +1 -1
  22. package/dist/bubbleflow-schema.d.ts +1112 -123
  23. package/dist/bubbleflow-schema.d.ts.map +1 -1
  24. package/dist/bubbleflow-schema.js +94 -4
  25. package/dist/bubbleflow-schema.js.map +1 -1
  26. package/dist/coffee.d.ts +2201 -0
  27. package/dist/coffee.d.ts.map +1 -0
  28. package/dist/coffee.js +258 -0
  29. package/dist/coffee.js.map +1 -0
  30. package/dist/credential-schema.d.ts +27 -13
  31. package/dist/credential-schema.d.ts.map +1 -1
  32. package/dist/credential-schema.js +137 -4
  33. package/dist/credential-schema.js.map +1 -1
  34. package/dist/database-definition-schema.d.ts +8 -8
  35. package/dist/error-enhancer.d.ts +6 -0
  36. package/dist/error-enhancer.d.ts.map +1 -0
  37. package/dist/error-enhancer.js +88 -0
  38. package/dist/error-enhancer.js.map +1 -0
  39. package/dist/generate-bubbleflow-schema.d.ts +1001 -79
  40. package/dist/generate-bubbleflow-schema.d.ts.map +1 -1
  41. package/dist/generate-bubbleflow-schema.js +23 -7
  42. package/dist/generate-bubbleflow-schema.js.map +1 -1
  43. package/dist/hash-utils.d.ts +26 -0
  44. package/dist/hash-utils.d.ts.map +1 -0
  45. package/dist/hash-utils.js +37 -0
  46. package/dist/hash-utils.js.map +1 -0
  47. package/dist/index.d.ts +6 -0
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +6 -0
  50. package/dist/index.js.map +1 -1
  51. package/dist/milk-tea.d.ts +18 -20
  52. package/dist/milk-tea.d.ts.map +1 -1
  53. package/dist/milk-tea.js +1 -4
  54. package/dist/milk-tea.js.map +1 -1
  55. package/dist/oauth-schema.d.ts +2 -2
  56. package/dist/param-utils.d.ts +10 -0
  57. package/dist/param-utils.d.ts.map +1 -0
  58. package/dist/param-utils.js +13 -0
  59. package/dist/param-utils.js.map +1 -0
  60. package/dist/pearl.d.ts +96 -29
  61. package/dist/pearl.d.ts.map +1 -1
  62. package/dist/pearl.js +20 -9
  63. package/dist/pearl.js.map +1 -1
  64. package/dist/storage-utils.d.ts +19 -0
  65. package/dist/storage-utils.d.ts.map +1 -0
  66. package/dist/storage-utils.js +54 -0
  67. package/dist/storage-utils.js.map +1 -0
  68. package/dist/streaming-events.d.ts +28 -2
  69. package/dist/streaming-events.d.ts.map +1 -1
  70. package/dist/subscription-status-schema.d.ts +192 -32
  71. package/dist/subscription-status-schema.d.ts.map +1 -1
  72. package/dist/subscription-status-schema.js +85 -7
  73. package/dist/subscription-status-schema.js.map +1 -1
  74. package/dist/trigger.d.ts +45 -51
  75. package/dist/trigger.d.ts.map +1 -1
  76. package/dist/trigger.js +0 -2
  77. package/dist/trigger.js.map +1 -1
  78. package/dist/types.d.ts +11 -2
  79. package/dist/types.d.ts.map +1 -1
  80. package/dist/types.js +14 -0
  81. package/dist/types.js.map +1 -1
  82. package/package.json +1 -1
  83. package/dist/general-chat.d.ts +0 -81
  84. package/dist/general-chat.d.ts.map +0 -1
  85. package/dist/general-chat.js +0 -58
  86. package/dist/general-chat.js.map +0 -1
  87. package/dist/generation-result-schema.d.ts +0 -73
  88. package/dist/generation-result-schema.d.ts.map +0 -1
  89. package/dist/generation-result-schema.js +0 -55
  90. package/dist/generation-result-schema.js.map +0 -1
  91. package/dist/mock-data-generator.test.d.ts +0 -2
  92. package/dist/mock-data-generator.test.d.ts.map +0 -1
  93. package/dist/mock-data-generator.test.js +0 -176
  94. package/dist/mock-data-generator.test.js.map +0 -1
@@ -1,13 +1,65 @@
1
1
  import { z } from '@hono/zod-openapi';
2
+ export declare const hackathonOfferSchema: z.ZodObject<{
3
+ isActive: z.ZodBoolean;
4
+ expiresAt: z.ZodString;
5
+ redeemedAt: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ isActive: boolean;
8
+ expiresAt: string;
9
+ redeemedAt: string;
10
+ }, {
11
+ isActive: boolean;
12
+ expiresAt: string;
13
+ redeemedAt: string;
14
+ }>;
15
+ export type HackathonOffer = z.infer<typeof hackathonOfferSchema>;
16
+ export declare const specialOfferSchema: z.ZodObject<{
17
+ isActive: z.ZodBoolean;
18
+ plan: z.ZodString;
19
+ expiresAt: z.ZodNullable<z.ZodString>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ isActive: boolean;
22
+ plan: string;
23
+ expiresAt: string | null;
24
+ }, {
25
+ isActive: boolean;
26
+ plan: string;
27
+ expiresAt: string | null;
28
+ }>;
29
+ export type SpecialOffer = z.infer<typeof specialOfferSchema>;
30
+ export declare const redeemCouponRequestSchema: z.ZodObject<{
31
+ code: z.ZodString;
32
+ }, "strip", z.ZodTypeAny, {
33
+ code: string;
34
+ }, {
35
+ code: string;
36
+ }>;
37
+ export type RedeemCouponRequest = z.infer<typeof redeemCouponRequestSchema>;
38
+ export declare const redeemCouponResponseSchema: z.ZodObject<{
39
+ success: z.ZodBoolean;
40
+ message: z.ZodString;
41
+ expiresAt: z.ZodOptional<z.ZodString>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ message: string;
44
+ success: boolean;
45
+ expiresAt?: string | undefined;
46
+ }, {
47
+ message: string;
48
+ success: boolean;
49
+ expiresAt?: string | undefined;
50
+ }>;
51
+ export type RedeemCouponResponse = z.infer<typeof redeemCouponResponseSchema>;
2
52
  export declare const subscriptionStatusResponseSchema: z.ZodObject<{
3
53
  userId: z.ZodString;
4
54
  plan: z.ZodString;
5
55
  planDisplayName: z.ZodString;
6
56
  features: z.ZodArray<z.ZodString, "many">;
7
57
  usage: z.ZodObject<{
8
- current: z.ZodNumber;
9
- limit: z.ZodNumber;
10
- percentage: z.ZodNumber;
58
+ executionCount: z.ZodNumber;
59
+ executionLimit: z.ZodNumber;
60
+ creditLimit: z.ZodNumber;
61
+ activeFlowLimit: z.ZodNumber;
62
+ estimatedMonthlyCost: z.ZodNumber;
11
63
  resetDate: z.ZodString;
12
64
  tokenUsage: z.ZodArray<z.ZodObject<{
13
65
  modelName: z.ZodString;
@@ -15,76 +67,184 @@ export declare const subscriptionStatusResponseSchema: z.ZodObject<{
15
67
  outputTokens: z.ZodNumber;
16
68
  totalTokens: z.ZodNumber;
17
69
  }, "strip", z.ZodTypeAny, {
70
+ modelName: string;
18
71
  inputTokens: number;
19
72
  outputTokens: number;
20
73
  totalTokens: number;
21
- modelName: string;
22
74
  }, {
75
+ modelName: string;
23
76
  inputTokens: number;
24
77
  outputTokens: number;
25
78
  totalTokens: number;
26
- modelName: string;
79
+ }>, "many">;
80
+ serviceUsage: z.ZodArray<z.ZodObject<{
81
+ service: z.ZodNativeEnum<typeof import("./types").CredentialType>;
82
+ subService: z.ZodOptional<z.ZodString>;
83
+ unit: z.ZodString;
84
+ usage: z.ZodNumber;
85
+ unitCost: z.ZodNumber;
86
+ totalCost: z.ZodNumber;
87
+ }, "strip", z.ZodTypeAny, {
88
+ service: import("./types").CredentialType;
89
+ unit: string;
90
+ usage: number;
91
+ unitCost: number;
92
+ totalCost: number;
93
+ subService?: string | undefined;
94
+ }, {
95
+ service: import("./types").CredentialType;
96
+ unit: string;
97
+ usage: number;
98
+ unitCost: number;
99
+ totalCost: number;
100
+ subService?: string | undefined;
27
101
  }>, "many">;
28
102
  }, "strip", z.ZodTypeAny, {
103
+ serviceUsage: {
104
+ service: import("./types").CredentialType;
105
+ unit: string;
106
+ usage: number;
107
+ unitCost: number;
108
+ totalCost: number;
109
+ subService?: string | undefined;
110
+ }[];
111
+ executionCount: number;
112
+ executionLimit: number;
113
+ creditLimit: number;
114
+ activeFlowLimit: number;
115
+ estimatedMonthlyCost: number;
116
+ resetDate: string;
29
117
  tokenUsage: {
118
+ modelName: string;
30
119
  inputTokens: number;
31
120
  outputTokens: number;
32
121
  totalTokens: number;
33
- modelName: string;
34
122
  }[];
35
- current: number;
36
- limit: number;
37
- percentage: number;
38
- resetDate: string;
39
123
  }, {
124
+ serviceUsage: {
125
+ service: import("./types").CredentialType;
126
+ unit: string;
127
+ usage: number;
128
+ unitCost: number;
129
+ totalCost: number;
130
+ subService?: string | undefined;
131
+ }[];
132
+ executionCount: number;
133
+ executionLimit: number;
134
+ creditLimit: number;
135
+ activeFlowLimit: number;
136
+ estimatedMonthlyCost: number;
137
+ resetDate: string;
40
138
  tokenUsage: {
139
+ modelName: string;
41
140
  inputTokens: number;
42
141
  outputTokens: number;
43
142
  totalTokens: number;
44
- modelName: string;
45
143
  }[];
46
- current: number;
47
- limit: number;
48
- percentage: number;
49
- resetDate: string;
50
144
  }>;
51
145
  isActive: z.ZodBoolean;
146
+ hackathonOffer: z.ZodOptional<z.ZodObject<{
147
+ isActive: z.ZodBoolean;
148
+ expiresAt: z.ZodString;
149
+ redeemedAt: z.ZodString;
150
+ }, "strip", z.ZodTypeAny, {
151
+ isActive: boolean;
152
+ expiresAt: string;
153
+ redeemedAt: string;
154
+ }, {
155
+ isActive: boolean;
156
+ expiresAt: string;
157
+ redeemedAt: string;
158
+ }>>;
159
+ specialOffer: z.ZodOptional<z.ZodObject<{
160
+ isActive: z.ZodBoolean;
161
+ plan: z.ZodString;
162
+ expiresAt: z.ZodNullable<z.ZodString>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ isActive: boolean;
165
+ plan: string;
166
+ expiresAt: string | null;
167
+ }, {
168
+ isActive: boolean;
169
+ plan: string;
170
+ expiresAt: string | null;
171
+ }>>;
52
172
  }, "strip", z.ZodTypeAny, {
53
- isActive: boolean;
54
- userId: string;
55
- plan: string;
56
- planDisplayName: string;
57
- features: string[];
58
173
  usage: {
174
+ serviceUsage: {
175
+ service: import("./types").CredentialType;
176
+ unit: string;
177
+ usage: number;
178
+ unitCost: number;
179
+ totalCost: number;
180
+ subService?: string | undefined;
181
+ }[];
182
+ executionCount: number;
183
+ executionLimit: number;
184
+ creditLimit: number;
185
+ activeFlowLimit: number;
186
+ estimatedMonthlyCost: number;
187
+ resetDate: string;
59
188
  tokenUsage: {
189
+ modelName: string;
60
190
  inputTokens: number;
61
191
  outputTokens: number;
62
192
  totalTokens: number;
63
- modelName: string;
64
193
  }[];
65
- current: number;
66
- limit: number;
67
- percentage: number;
68
- resetDate: string;
69
194
  };
70
- }, {
71
195
  isActive: boolean;
72
- userId: string;
73
196
  plan: string;
197
+ userId: string;
74
198
  planDisplayName: string;
75
199
  features: string[];
200
+ hackathonOffer?: {
201
+ isActive: boolean;
202
+ expiresAt: string;
203
+ redeemedAt: string;
204
+ } | undefined;
205
+ specialOffer?: {
206
+ isActive: boolean;
207
+ plan: string;
208
+ expiresAt: string | null;
209
+ } | undefined;
210
+ }, {
76
211
  usage: {
212
+ serviceUsage: {
213
+ service: import("./types").CredentialType;
214
+ unit: string;
215
+ usage: number;
216
+ unitCost: number;
217
+ totalCost: number;
218
+ subService?: string | undefined;
219
+ }[];
220
+ executionCount: number;
221
+ executionLimit: number;
222
+ creditLimit: number;
223
+ activeFlowLimit: number;
224
+ estimatedMonthlyCost: number;
225
+ resetDate: string;
77
226
  tokenUsage: {
227
+ modelName: string;
78
228
  inputTokens: number;
79
229
  outputTokens: number;
80
230
  totalTokens: number;
81
- modelName: string;
82
231
  }[];
83
- current: number;
84
- limit: number;
85
- percentage: number;
86
- resetDate: string;
87
232
  };
233
+ isActive: boolean;
234
+ plan: string;
235
+ userId: string;
236
+ planDisplayName: string;
237
+ features: string[];
238
+ hackathonOffer?: {
239
+ isActive: boolean;
240
+ expiresAt: string;
241
+ redeemedAt: string;
242
+ } | undefined;
243
+ specialOffer?: {
244
+ isActive: boolean;
245
+ plan: string;
246
+ expiresAt: string | null;
247
+ } | undefined;
88
248
  }>;
89
249
  export type SubscriptionStatusResponse = z.infer<typeof subscriptionStatusResponseSchema>;
90
250
  //# sourceMappingURL=subscription-status-schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-status-schema.d.ts","sourceRoot":"","sources":["../src/subscription-status-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiEL,CAAC;AAEzC,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC"}
1
+ {"version":3,"file":"subscription-status-schema.d.ts","sourceRoot":"","sources":["../src/subscription-status-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAItC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAeL,CAAC;AAE7B,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGlE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAgBL,CAAC;AAE3B,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAG9D,eAAO,MAAM,yBAAyB;;;;;;EAOL,CAAC;AAElC,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAG5E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAeL,CAAC;AAEnC,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmFL,CAAC;AAEzC,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC"}
@@ -1,4 +1,65 @@
1
1
  import { z } from '@hono/zod-openapi';
2
+ import { ServiceUsageSchema } from './bubbleflow-execution-schema';
3
+ // Hackathon offer schema for promotional code redemptions
4
+ export const hackathonOfferSchema = z
5
+ .object({
6
+ isActive: z.boolean().openapi({
7
+ description: 'Whether a hackathon offer is currently active',
8
+ example: true,
9
+ }),
10
+ expiresAt: z.string().openapi({
11
+ description: 'ISO date when the hackathon offer expires',
12
+ example: '2025-01-15T14:30:00.000Z',
13
+ }),
14
+ redeemedAt: z.string().openapi({
15
+ description: 'ISO date when the code was redeemed',
16
+ example: '2025-01-14T14:30:00.000Z',
17
+ }),
18
+ })
19
+ .openapi('HackathonOffer');
20
+ // Special offer schema for private metadata overrides (exclusive members)
21
+ export const specialOfferSchema = z
22
+ .object({
23
+ isActive: z.boolean().openapi({
24
+ description: 'Whether a special offer is currently active',
25
+ example: true,
26
+ }),
27
+ plan: z.string().openapi({
28
+ description: 'The plan granted by the special offer',
29
+ example: 'unlimited',
30
+ }),
31
+ expiresAt: z.string().nullable().openapi({
32
+ description: 'ISO date when the special offer expires (null = never expires)',
33
+ example: '2025-06-15T14:30:00.000Z',
34
+ }),
35
+ })
36
+ .openapi('SpecialOffer');
37
+ // Coupon redemption request schema
38
+ export const redeemCouponRequestSchema = z
39
+ .object({
40
+ code: z.string().min(1).openapi({
41
+ description: 'The coupon code to redeem',
42
+ example: 'HACKATHON2025',
43
+ }),
44
+ })
45
+ .openapi('RedeemCouponRequest');
46
+ // Coupon redemption response schema
47
+ export const redeemCouponResponseSchema = z
48
+ .object({
49
+ success: z.boolean().openapi({
50
+ description: 'Whether the redemption was successful',
51
+ example: true,
52
+ }),
53
+ message: z.string().openapi({
54
+ description: 'Human-readable message about the redemption result',
55
+ example: 'Coupon redeemed successfully! You now have Pro access.',
56
+ }),
57
+ expiresAt: z.string().optional().openapi({
58
+ description: 'When the offer expires (if successful)',
59
+ example: '2025-01-15T14:30:00.000Z',
60
+ }),
61
+ })
62
+ .openapi('RedeemCouponResponse');
2
63
  export const subscriptionStatusResponseSchema = z
3
64
  .object({
4
65
  userId: z.string().openapi({
@@ -18,17 +79,25 @@ export const subscriptionStatusResponseSchema = z
18
79
  example: ['unlimited_usage', 'priority_support'],
19
80
  }),
20
81
  usage: z.object({
21
- current: z.number().openapi({
22
- description: 'Current monthly usage count',
82
+ executionCount: z.number().openapi({
83
+ description: 'Current monthly execution count',
84
+ example: 100,
85
+ }),
86
+ executionLimit: z.number().openapi({
87
+ description: 'Current monthly execution limit',
23
88
  example: 42,
24
89
  }),
25
- limit: z.number().openapi({
26
- description: 'Monthly usage limit',
90
+ creditLimit: z.number().openapi({
91
+ description: 'Monthly credit limit',
27
92
  example: 100,
28
93
  }),
29
- percentage: z.number().openapi({
30
- description: 'Usage percentage',
31
- example: 42,
94
+ activeFlowLimit: z.number().openapi({
95
+ description: 'Current monthly active flow limit',
96
+ example: 2,
97
+ }),
98
+ estimatedMonthlyCost: z.number().openapi({
99
+ description: 'Projected monthly cost based on current usage trend',
100
+ example: 14.19,
32
101
  }),
33
102
  resetDate: z.string().openapi({
34
103
  description: 'ISO date when usage resets',
@@ -56,11 +125,20 @@ export const subscriptionStatusResponseSchema = z
56
125
  .openapi({
57
126
  description: 'Token usage breakdown by model for current month',
58
127
  }),
128
+ serviceUsage: z.array(ServiceUsageSchema).openapi({
129
+ description: 'Service usage and cost breakdown for current month',
130
+ }),
59
131
  }),
60
132
  isActive: z.boolean().openapi({
61
133
  description: 'Whether the subscription is active',
62
134
  example: true,
63
135
  }),
136
+ hackathonOffer: hackathonOfferSchema.optional().openapi({
137
+ description: 'Active hackathon promotional offer information',
138
+ }),
139
+ specialOffer: specialOfferSchema.optional().openapi({
140
+ description: 'Special offer from private metadata (takes precedence over hackathon offer)',
141
+ }),
64
142
  })
65
143
  .openapi('SubscriptionStatusResponse');
66
144
  //# sourceMappingURL=subscription-status-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription-status-schema.js","sourceRoot":"","sources":["../src/subscription-status-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;QACzB,WAAW,EAAE,oBAAoB;QACjC,OAAO,EAAE,kCAAkC;KAC5C,CAAC;IACF,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;QACvB,WAAW,EAAE,2BAA2B;QACxC,OAAO,EAAE,UAAU;KACpB,CAAC;IACF,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;QAClC,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,UAAU;KACpB,CAAC;IACF,QAAQ,EAAE,CAAC,C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AE,IAAI;aACd,CAAC;SACH,CAAC,CACH;aACA,OAAO,CAAC;YACP,WAAW,EAAE,kDAAkD;SAChE,CAAC;KACL,CAAC;IACF,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QAC5B,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,IAAI;KACd,CAAC;CACH,CAAC;KACD,OAAO,CAAC,4BAA4B,CAAC,CAAC"}
1
+ {"version":3,"file":"subscription-status-schema.js","sourceRoot":"","sources":["../src/subscription-status-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,0DAA0D;AAC1D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,MAAM,CAAC;IACN,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QAC5B,WAAW,EAAE,+CAA+C;QAC5D,OAAO,EAAE,IAAI;KACd,CAAC;IACF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;QAC5B,WAAW,EAAE,2CAA2C;QACxD,OAAO,EAAE,0BAA0B;KACpC,CAAC;IACF,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;QAC7B,WAAW,EAAE,qCAAqC;QAClD,OAAO,EAAE,0BAA0B;KACpC,CAAC;CACH,CAAC;KACD,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAI7B,0EAA0E;AAC1E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QAC5B,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,IAAI;KACd,CAAC;IACF,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;QACvB,WAAW,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AC,CAAC,MAAM,CAAC;YACP,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;gBAC5B,WAAW,EAAE,YAAY;gBACzB,OAAO,EAAE,OAAO;aACjB,CAAC;YACF,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;gBAC9B,WAAW,EAAE,8BAA8B;gBAC3C,OAAO,EAAE,IAAI;aACd,CAAC;YACF,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;gBAC/B,WAAW,EAAE,+BAA+B;gBAC5C,OAAO,EAAE,GAAG;aACb,CAAC;YACF,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;gBAC9B,WAAW,EAAE,8BAA8B;gBAC3C,OAAO,EAAE,IAAI;aACd,CAAC;SACH,CAAC,CACH;aACA,OAAO,CAAC;YACP,WAAW,EAAE,kDAAkD;SAChE,CAAC;QACJ,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC;YAChD,WAAW,EAAE,oDAAoD;SAClE,CAAC;KACH,CAAC;IACF,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QAC5B,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,IAAI;KACd,CAAC;IACF,cAAc,EAAE,oBAAoB,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC;QACtD,WAAW,EAAE,gDAAgD;KAC9D,CAAC;IACF,YAAY,EAAE,kBAAkB,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC;QAClD,WAAW,EACT,6EAA6E;KAChF,CAAC;CACH,CAAC;KACD,OAAO,CAAC,4BAA4B,CAAC,CAAC"}
package/dist/trigger.d.ts CHANGED
@@ -1,14 +1,10 @@
1
1
  export interface BubbleTriggerEventRegistry {
2
2
  'slack/bot_mentioned': SlackMentionEvent;
3
- 'slack/message_received': SlackMessageReceivedEvent;
4
- 'gmail/email_received': GmailEmailEvent;
5
3
  'schedule/cron': CronEvent;
6
4
  'webhook/http': WebhookEvent;
7
5
  }
8
6
  export declare const BUBBLE_TRIGGER_EVENTS: {
9
7
  readonly 'slack/bot_mentioned': true;
10
- readonly 'slack/message_received': true;
11
- readonly 'gmail/email_received': true;
12
8
  readonly 'schedule/cron': true;
13
9
  readonly 'webhook/http': true;
14
10
  };
@@ -16,9 +12,54 @@ export declare function isValidBubbleTriggerEvent(eventType: string): eventType
16
12
  export interface BubbleTriggerEvent {
17
13
  type: keyof BubbleTriggerEventRegistry;
18
14
  timestamp: string;
15
+ executionId: string;
19
16
  path: string;
20
17
  [key: string]: unknown;
21
18
  }
19
+ /**
20
+ * Cron event payload structure
21
+ *
22
+ * The 'cron' field contains the cron expression in standard 5-part cron format:
23
+ *
24
+ * ┌───────────── minute (0 - 59)
25
+ * │ ┌───────────── hour (0 - 23)
26
+ * │ │ ┌───────────── day of month (1 - 31)
27
+ * │ │ │ ┌───────────── month (1 - 12)
28
+ * │ │ │ │ ┌───────────── day of week (0 - 6) (Sunday to Saturday)
29
+ * │ │ │ │ │
30
+ * * * * * *
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * // Daily at midnight
35
+ * { cron: '0 0 * * *' }
36
+ *
37
+ * // Every weekday at 9am
38
+ * { cron: '0 9 * * 1-5' }
39
+ *
40
+ * // Every 15 minutes
41
+ * { cron: '*\/15 * * * *' }
42
+ *
43
+ * // First day of every month at midnight
44
+ * { cron: '0 0 1 * *' }
45
+ * ```
46
+ */
47
+ export interface CronEvent extends BubbleTriggerEvent {
48
+ /** The cron expression defining when this event triggers */
49
+ cron: string;
50
+ body?: Record<string, unknown>;
51
+ }
52
+ export interface WebhookEvent extends BubbleTriggerEvent {
53
+ body?: Record<string, unknown>;
54
+ }
55
+ export interface BubbleTrigger {
56
+ type: keyof BubbleTriggerEventRegistry;
57
+ cronSchedule?: string;
58
+ name?: string;
59
+ description?: string;
60
+ timeout?: number;
61
+ retries?: number;
62
+ }
22
63
  export interface SlackEventWrapper {
23
64
  token: string;
24
65
  team_id: string;
@@ -69,51 +110,4 @@ export interface SlackMessageReceivedEvent extends BubbleTriggerEvent {
69
110
  channel_type: 'channel' | 'group' | 'im' | 'mpim';
70
111
  subtype?: string;
71
112
  }
72
- export interface GmailEmailEvent extends BubbleTriggerEvent {
73
- email: string;
74
- }
75
- /**
76
- * Cron event payload structure
77
- *
78
- * The 'cron' field contains the cron expression in standard 5-part cron format:
79
- *
80
- * ┌───────────── minute (0 - 59)
81
- * │ ┌───────────── hour (0 - 23)
82
- * │ │ ┌───────────── day of month (1 - 31)
83
- * │ │ │ ┌───────────── month (1 - 12)
84
- * │ │ │ │ ┌───────────── day of week (0 - 6) (Sunday to Saturday)
85
- * │ │ │ │ │
86
- * * * * * *
87
- *
88
- * @example
89
- * ```typescript
90
- * // Daily at midnight
91
- * { cron: '0 0 * * *' }
92
- *
93
- * // Every weekday at 9am
94
- * { cron: '0 9 * * 1-5' }
95
- *
96
- * // Every 15 minutes
97
- * { cron: '*\/15 * * * *' }
98
- *
99
- * // First day of every month at midnight
100
- * { cron: '0 0 1 * *' }
101
- * ```
102
- */
103
- export interface CronEvent extends BubbleTriggerEvent {
104
- /** The cron expression defining when this event triggers */
105
- cron: string;
106
- body?: Record<string, unknown>;
107
- }
108
- export interface WebhookEvent extends BubbleTriggerEvent {
109
- body?: Record<string, unknown>;
110
- }
111
- export interface BubbleTrigger {
112
- type: keyof BubbleTriggerEventRegistry;
113
- cronSchedule?: string;
114
- name?: string;
115
- description?: string;
116
- timeout?: number;
117
- retries?: number;
118
- }
119
113
  //# sourceMappingURL=trigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../src/trigger.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,qBAAqB,EAAE,iBAAiB,CAAC;IACzC,wBAAwB,EAAE,yBAAyB,CAAC;IACpD,sBAAsB,EAAE,eAAe,CA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O,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,SAAS,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
package/dist/trigger.js CHANGED
@@ -2,8 +2,6 @@
2
2
  // This allows us to validate event types at runtime
3
3
  export const BUBBLE_TRIGGER_EVENTS = {
4
4
  'slack/bot_mentioned': true,
5
- 'slack/message_received': true,
6
- 'gmail/email_received': true,
7
5
  'schedule/cron': true,
8
6
  'webhook/http': true,
9
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"trigger.js","sourceRoot":"","sources":["../src/trigger.ts"],"names":[],"mappings":"AAQA,iDAAiD;AACjD,oDAAoD;AACpD,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,qBAAqB,EAAE,IAAI;IAC3B,wBAAwB,EAAE,IAAI;IAC9B,sBAAsB,EAAE,IAAI;IAC5B,eAAe,EAAE,IAAI;IACrB,cAAc,EAAE,IAAI;CAC6C,CAAC;AAEpE,qDAAqD;AACrD,MAAM,UAAU,yBAAyB,CACvC,SAAiB;IAEjB,OAAO,SAAS,IAAI,qBAAqB,CAAC;AAC5C,CAAC"}
1
+ {"version":3,"file":"trigger.js","sourceRoot":"","sources":["../src/trigger.ts"],"names":[],"mappings":"AAMA,iDAAiD;AACjD,oDAAoD;AACpD,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,qBAAqB,EAAE,IAAI;IAC3B,eAAe,EAAE,IAAI;IACrB,cAAc,EAAE,IAAI;CAC6C,CAAC;AAEpE,qDAAqD;AACrD,MAAM,UAAU,yBAAyB,CACvC,SAAiB;IAEjB,OAAO,SAAS,IAAI,qBAAqB,CAAC;AAC5C,CAAC"}
package/dist/types.d.ts CHANGED
@@ -6,15 +6,24 @@ export declare enum CredentialType {
6
6
  FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY",
7
7
  DATABASE_CRED = "DATABASE_CRED",
8
8
  SLACK_CRED = "SLACK_CRED",
9
+ TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN",
9
10
  RESEND_CRED = "RESEND_CRED",
10
11
  CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY",
11
12
  CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY",
12
13
  CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID",
13
14
  APIFY_CRED = "APIFY_CRED",
15
+ ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY",
14
16
  GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED",
15
17
  GMAIL_CRED = "GMAIL_CRED",
16
18
  GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED",
17
- GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED"
19
+ GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED",
20
+ FUB_CRED = "FUB_CRED",
21
+ NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN",
22
+ GITHUB_TOKEN = "GITHUB_TOKEN",
23
+ AGI_API_KEY = "AGI_API_KEY",
24
+ AIRTABLE_CRED = "AIRTABLE_CRED",
25
+ INSFORGE_BASE_URL = "INSFORGE_BASE_URL",
26
+ INSFORGE_API_KEY = "INSFORGE_API_KEY"
18
27
  }
19
- export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'list-bubbles-tool' | 'sql-query-tool' | 'chart-js-tool' | 'web-search-tool' | 'web-scrape-tool' | 'web-crawl-tool' | 'web-extract-tool' | 'research-agent-tool' | 'reddit-scrape-tool' | 'slack-data-assistant' | 'bubbleflow-code-generator' | 'bubbleflow-generator' | 'pdf-form-operations' | 'pdf-ocr-workflow' | 'generate-document-workflow' | 'parse-document-workflow' | 'bubbleflow-validation-tool' | 'storage' | 'google-drive' | 'gmail' | 'google-sheets' | 'google-calendar' | 'apify' | 'instagram-tool' | 'linkedin-tool' | 'youtube-tool';
28
+ export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'list-bubbles-tool' | 'sql-query-tool' | 'chart-js-tool' | 'web-search-tool' | 'web-scrape-tool' | 'web-crawl-tool' | 'web-extract-tool' | 'research-agent-tool' | 'reddit-scrape-tool' | 'slack-data-assistant' | 'bubbleflow-code-generator' | 'bubbleflow-generator' | 'pdf-form-operations' | 'pdf-ocr-workflow' | 'generate-document-workflow' | 'parse-document-workflow' | 'bubbleflow-validation-tool' | 'code-edit-tool' | 'storage' | 'google-drive' | 'gmail' | 'google-sheets' | 'google-calendar' | 'apify' | 'instagram-tool' | 'linkedin-tool' | 'tiktok-tool' | 'twitter-tool' | 'google-maps-tool' | 'youtube-tool' | 'github' | 'eleven-labs' | 'followupboss' | 'agi-inc' | 'telegram' | 'airtable' | 'notion' | 'firecrawl' | 'insforge-db';
20
29
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,oBAAY,cAAc;IAExB,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IAEnC,iBAAiB,sBAAsB;IAEvC,aAAa,kBAAkB;IAE/B,UAAU,eAAe;IAEzB,WAAW,gBAAgB;IAE3B,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IAErD,UAAU,eAAe;IAGzB,iBAAiB,sBAAsB;IACvC,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,oBAAoB,yBAAyB;CAC9C;AAGD,MAAM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ACN,uBAAuB,GACvB,mBAAmB,GACnB,gBAAgB,GAChB,yBAAyB,GACzB,mBAAmB,GACnB,gBAAgB,GAChB,eAAe,GACf,iBAAiB,GACjB,iBAAiB,GACjB,gBAAgB,GAChB,kBAAkB,GAClB,qBAAqB,GACrB,oBAAoB,GACpB,sBAAsB,GACtB,2BAA2B,GAC3B,sBAAsB,GACtB,qBAAqB,GACrB,kBAAkB,GAClB,4BAA4B,GAC5B,yBAAyB,GACzB,4BAA4B,GAC5B,gBAAgB,GAChB,SAAS,GACT,cAAc,GACd,OAAO,GACP,eAAe,GACf,iBAAiB,GACjB,OAAO,GACP,gBAAgB,GAChB,eAAe,GACf,aAAa,GACb,cAAc,GACd,kBAAkB,GAClB,cAAc,GACd,QAAQ,GACR,aAAa,GACb,cAAc,GACd,SAAS,GACT,UAAU,GACV,UAAU,GACV,QAAQ,GACR,WAAW,GACX,aAAa,CAAC"}
package/dist/types.js CHANGED
@@ -12,6 +12,7 @@ export var CredentialType;
12
12
  CredentialType["DATABASE_CRED"] = "DATABASE_CRED";
13
13
  // Communication Credentials
14
14
  CredentialType["SLACK_CRED"] = "SLACK_CRED";
15
+ CredentialType["TELEGRAM_BOT_TOKEN"] = "TELEGRAM_BOT_TOKEN";
15
16
  // Email Credentials
16
17
  CredentialType["RESEND_CRED"] = "RESEND_CRED";
17
18
  // Storage Credentials
@@ -20,10 +21,23 @@ export var CredentialType;
20
21
  CredentialType["CLOUDFLARE_R2_ACCOUNT_ID"] = "CLOUDFLARE_R2_ACCOUNT_ID";
21
22
  // Scraping Credentials
22
23
  CredentialType["APIFY_CRED"] = "APIFY_CRED";
24
+ // Voice Credentials
25
+ CredentialType["ELEVENLABS_API_KEY"] = "ELEVENLABS_API_KEY";
23
26
  // OAuth Credentials
24
27
  CredentialType["GOOGLE_DRIVE_CRED"] = "GOOGLE_DRIVE_CRED";
25
28
  CredentialType["GMAIL_CRED"] = "GMAIL_CRED";
26
29
  CredentialType["GOOGLE_SHEETS_CRED"] = "GOOGLE_SHEETS_CRED";
27
30
  CredentialType["GOOGLE_CALENDAR_CRED"] = "GOOGLE_CALENDAR_CRED";
31
+ CredentialType["FUB_CRED"] = "FUB_CRED";
32
+ CredentialType["NOTION_OAUTH_TOKEN"] = "NOTION_OAUTH_TOKEN";
33
+ // Development Platform Credentials
34
+ CredentialType["GITHUB_TOKEN"] = "GITHUB_TOKEN";
35
+ // Browser Automation Credentials
36
+ CredentialType["AGI_API_KEY"] = "AGI_API_KEY";
37
+ // Database/Storage Credentials
38
+ CredentialType["AIRTABLE_CRED"] = "AIRTABLE_CRED";
39
+ // InsForge Credentials
40
+ CredentialType["INSFORGE_BASE_URL"] = "INSFORGE_BASE_URL";
41
+ CredentialType["INSFORGE_API_KEY"] = "INSFORGE_API_KEY";
28
42
  })(CredentialType || (CredentialType = {}));
29
43
  //# sourceMappingURL=types.js.map
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,iEAAiE;AAEjE,MAAM,CAAN,IAAY,cA0BX;AA1BD,WAAY,cAAc;IACxB,iBAAiB;IACjB,6CAA2B,CAAA;IAC3B,2DAAyC,CAAA;IACzC,mDAAiC,CAAA;IACjC,qDAAmC,CAAA;IACnC,qBAAqB;IACrB,yDAAuC,CAAA;IACvC,uBAAuB;IACvB,iDAA+B,CAAA;IAC/B,4BAA4B;IAC5B,2CAAyB,CAAA;IACzB,oBAAoB;IACpB,6CAA2B,CAAA;IAC3B,sBAAsB;IACtB,uEAAqD,CAAA;IACrD,uEAAqD,CAAA;IACrD,uEAAqD,CAAA;IACrD,uBAAuB;IACvB,2CAAyB,CAAA;IAEzB,oBAAoB;IACpB,yDAAuC,CAAA;IACvC,2CAAyB,CAAA;IACzB,2DAAyC,CAAA;IACzC,+DAA6C,CAAA;AAC/C,CAAC,EA1BW,cAAc,KAAd,cAAc,QA0BzB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,iEAAiE;AAEjE,MAAM,CAAN,IAAY,cA6CX;AA7CD,WAAY,cAAc;IACxB,iBAAiB;IACjB,6CAA2B,CAAA;IAC3B,2DAAyC,CAAA;IACzC,mDAAiC,CAAA;IACjC,qDAAmC,CAAA;IACnC,qBAAqB;IACrB,yDAAuC,CAAA;IACvC,uBAAuB;IACvB,iDAA+B,CAAA;IAC/B,4BAA4B;IAC5B,2CAAyB,CAAA;IACzB,2DAAyC,CAAA;IACzC,oBAAoB;IACpB,6CAA2B,CAAA;IAC3B,sBAAsB;IACtB,uEAAqD,CAAA;IACrD,uEAAqD,CAAA;IACrD,uEAAqD,CAAA;IACrD,uBAAuB;IACvB,2CAAyB,CAAA;IAEzB,oBAAoB;IACpB,2DAAyC,CAAA;IAEzC,oBAAoB;IACpB,yDAAuC,CAAA;IACvC,2CAAyB,CAAA;IACzB,2DAAyC,CAAA;IACzC,+DAA6C,CAAA;IAC7C,uCAAqB,CAAA;IACrB,2DAAyC,CAAA;IAEzC,mCAAmC;IACnC,+CAA6B,CAAA;IAE7B,iCAAiC;IACjC,6CAA2B,CAAA;IAE3B,+BAA+B;IAC/B,iDAA+B,CAAA;IAE/B,uBAAuB;IACvB,yDAAuC,CAAA;IACvC,uDAAqC,CAAA;AACvC,CAAC,EA7CW,cAAc,KAAd,cAAc,QA6CzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bubblelab/shared-schemas",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",