@bubblelab/shared-schemas 0.1.11 → 0.1.13
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.d.ts +10076 -28
- package/dist/index.js +3328 -29
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/dist/agent-memory.d.ts +0 -21
- package/dist/agent-memory.d.ts.map +0 -1
- package/dist/agent-memory.js +0 -11
- package/dist/agent-memory.js.map +0 -1
- package/dist/ai-models.d.ts +0 -4
- package/dist/ai-models.d.ts.map +0 -1
- package/dist/ai-models.js +0 -31
- package/dist/ai-models.js.map +0 -1
- package/dist/api-schema.d.ts +0 -38
- package/dist/api-schema.d.ts.map +0 -1
- package/dist/api-schema.js +0 -26
- package/dist/api-schema.js.map +0 -1
- package/dist/bubble-definition-schema.d.ts +0 -840
- package/dist/bubble-definition-schema.d.ts.map +0 -1
- package/dist/bubble-definition-schema.js +0 -297
- package/dist/bubble-definition-schema.js.map +0 -1
- package/dist/bubbleflow-execution-schema.d.ts +0 -1261
- package/dist/bubbleflow-execution-schema.d.ts.map +0 -1
- package/dist/bubbleflow-execution-schema.js +0 -354
- package/dist/bubbleflow-execution-schema.js.map +0 -1
- package/dist/bubbleflow-generation-prompts.d.ts +0 -25
- package/dist/bubbleflow-generation-prompts.d.ts.map +0 -1
- package/dist/bubbleflow-generation-prompts.js +0 -426
- package/dist/bubbleflow-generation-prompts.js.map +0 -1
- package/dist/bubbleflow-schema.d.ts +0 -2071
- package/dist/bubbleflow-schema.d.ts.map +0 -1
- package/dist/bubbleflow-schema.js +0 -336
- package/dist/bubbleflow-schema.js.map +0 -1
- package/dist/coffee.d.ts +0 -2201
- package/dist/coffee.d.ts.map +0 -1
- package/dist/coffee.js +0 -258
- package/dist/coffee.js.map +0 -1
- package/dist/credential-schema.d.ts +0 -419
- package/dist/credential-schema.d.ts.map +0 -1
- package/dist/credential-schema.js +0 -458
- package/dist/credential-schema.js.map +0 -1
- package/dist/cron-utils.d.ts +0 -47
- package/dist/cron-utils.d.ts.map +0 -1
- package/dist/cron-utils.js +0 -228
- package/dist/cron-utils.js.map +0 -1
- package/dist/database-definition-schema.d.ts +0 -97
- package/dist/database-definition-schema.d.ts.map +0 -1
- package/dist/database-definition-schema.js +0 -36
- package/dist/database-definition-schema.js.map +0 -1
- package/dist/error-enhancer.d.ts +0 -6
- package/dist/error-enhancer.d.ts.map +0 -1
- package/dist/error-enhancer.js +0 -88
- package/dist/error-enhancer.js.map +0 -1
- package/dist/generate-bubbleflow-schema.d.ts +0 -1525
- package/dist/generate-bubbleflow-schema.d.ts.map +0 -1
- package/dist/generate-bubbleflow-schema.js +0 -304
- package/dist/generate-bubbleflow-schema.js.map +0 -1
- package/dist/hash-utils.d.ts +0 -26
- package/dist/hash-utils.d.ts.map +0 -1
- package/dist/hash-utils.js +0 -37
- package/dist/hash-utils.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/milk-tea.d.ts +0 -106
- package/dist/milk-tea.d.ts.map +0 -1
- package/dist/milk-tea.js +0 -71
- package/dist/milk-tea.js.map +0 -1
- package/dist/mock-data-generator.d.ts +0 -51
- package/dist/mock-data-generator.d.ts.map +0 -1
- package/dist/mock-data-generator.js +0 -335
- package/dist/mock-data-generator.js.map +0 -1
- package/dist/oauth-schema.d.ts +0 -61
- package/dist/oauth-schema.d.ts.map +0 -1
- package/dist/oauth-schema.js +0 -75
- package/dist/oauth-schema.js.map +0 -1
- package/dist/param-utils.d.ts +0 -10
- package/dist/param-utils.d.ts.map +0 -1
- package/dist/param-utils.js +0 -13
- package/dist/param-utils.js.map +0 -1
- package/dist/pearl.d.ts +0 -346
- package/dist/pearl.d.ts.map +0 -1
- package/dist/pearl.js +0 -90
- package/dist/pearl.js.map +0 -1
- package/dist/storage-utils.d.ts +0 -19
- package/dist/storage-utils.d.ts.map +0 -1
- package/dist/storage-utils.js +0 -54
- package/dist/storage-utils.js.map +0 -1
- package/dist/streaming-events.d.ts +0 -132
- package/dist/streaming-events.d.ts.map +0 -1
- package/dist/streaming-events.js +0 -5
- package/dist/streaming-events.js.map +0 -1
- package/dist/subscription-status-schema.d.ts +0 -250
- package/dist/subscription-status-schema.d.ts.map +0 -1
- package/dist/subscription-status-schema.js +0 -144
- package/dist/subscription-status-schema.js.map +0 -1
- package/dist/trigger.d.ts +0 -113
- package/dist/trigger.d.ts.map +0 -1
- package/dist/trigger.js +0 -12
- package/dist/trigger.js.map +0 -1
- package/dist/types.d.ts +0 -29
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -43
- package/dist/types.js.map +0 -1
- package/dist/waitlist-schema.d.ts +0 -30
- package/dist/waitlist-schema.d.ts.map +0 -1
- package/dist/waitlist-schema.js +0 -39
- package/dist/waitlist-schema.js.map +0 -1
- package/dist/webhook-schema.d.ts +0 -95
- package/dist/webhook-schema.d.ts.map +0 -1
- package/dist/webhook-schema.js +0 -50
- package/dist/webhook-schema.js.map +0 -1
package/dist/streaming-events.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"streaming-events.js","sourceRoot":"","sources":["../src/streaming-events.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -1,250 +0,0 @@
|
|
|
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>;
|
|
52
|
-
export declare const subscriptionStatusResponseSchema: z.ZodObject<{
|
|
53
|
-
userId: z.ZodString;
|
|
54
|
-
plan: z.ZodString;
|
|
55
|
-
planDisplayName: z.ZodString;
|
|
56
|
-
features: z.ZodArray<z.ZodString, "many">;
|
|
57
|
-
usage: z.ZodObject<{
|
|
58
|
-
executionCount: z.ZodNumber;
|
|
59
|
-
executionLimit: z.ZodNumber;
|
|
60
|
-
creditLimit: z.ZodNumber;
|
|
61
|
-
activeFlowLimit: z.ZodNumber;
|
|
62
|
-
estimatedMonthlyCost: z.ZodNumber;
|
|
63
|
-
resetDate: z.ZodString;
|
|
64
|
-
tokenUsage: z.ZodArray<z.ZodObject<{
|
|
65
|
-
modelName: z.ZodString;
|
|
66
|
-
inputTokens: z.ZodNumber;
|
|
67
|
-
outputTokens: z.ZodNumber;
|
|
68
|
-
totalTokens: z.ZodNumber;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
modelName: string;
|
|
71
|
-
inputTokens: number;
|
|
72
|
-
outputTokens: number;
|
|
73
|
-
totalTokens: number;
|
|
74
|
-
}, {
|
|
75
|
-
modelName: string;
|
|
76
|
-
inputTokens: number;
|
|
77
|
-
outputTokens: number;
|
|
78
|
-
totalTokens: number;
|
|
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;
|
|
101
|
-
}>, "many">;
|
|
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;
|
|
117
|
-
tokenUsage: {
|
|
118
|
-
modelName: string;
|
|
119
|
-
inputTokens: number;
|
|
120
|
-
outputTokens: number;
|
|
121
|
-
totalTokens: number;
|
|
122
|
-
}[];
|
|
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;
|
|
138
|
-
tokenUsage: {
|
|
139
|
-
modelName: string;
|
|
140
|
-
inputTokens: number;
|
|
141
|
-
outputTokens: number;
|
|
142
|
-
totalTokens: number;
|
|
143
|
-
}[];
|
|
144
|
-
}>;
|
|
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
|
-
}>>;
|
|
172
|
-
}, "strip", z.ZodTypeAny, {
|
|
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;
|
|
188
|
-
tokenUsage: {
|
|
189
|
-
modelName: string;
|
|
190
|
-
inputTokens: number;
|
|
191
|
-
outputTokens: number;
|
|
192
|
-
totalTokens: number;
|
|
193
|
-
}[];
|
|
194
|
-
};
|
|
195
|
-
isActive: boolean;
|
|
196
|
-
plan: string;
|
|
197
|
-
userId: string;
|
|
198
|
-
planDisplayName: string;
|
|
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
|
-
}, {
|
|
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;
|
|
226
|
-
tokenUsage: {
|
|
227
|
-
modelName: string;
|
|
228
|
-
inputTokens: number;
|
|
229
|
-
outputTokens: number;
|
|
230
|
-
totalTokens: number;
|
|
231
|
-
}[];
|
|
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;
|
|
248
|
-
}>;
|
|
249
|
-
export type SubscriptionStatusResponse = z.infer<typeof subscriptionStatusResponseSchema>;
|
|
250
|
-
//# sourceMappingURL=subscription-status-schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,144 +0,0 @@
|
|
|
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');
|
|
63
|
-
export const subscriptionStatusResponseSchema = z
|
|
64
|
-
.object({
|
|
65
|
-
userId: z.string().openapi({
|
|
66
|
-
description: 'User ID from Clerk',
|
|
67
|
-
example: 'user_30Gbwrzto1VZvAHcGUm5NLQhpkp',
|
|
68
|
-
}),
|
|
69
|
-
plan: z.string().openapi({
|
|
70
|
-
description: 'Current subscription plan',
|
|
71
|
-
example: 'pro_plus',
|
|
72
|
-
}),
|
|
73
|
-
planDisplayName: z.string().openapi({
|
|
74
|
-
description: 'Human-readable plan name',
|
|
75
|
-
example: 'Pro Plus',
|
|
76
|
-
}),
|
|
77
|
-
features: z.array(z.string()).openapi({
|
|
78
|
-
description: 'List of features available to the user',
|
|
79
|
-
example: ['unlimited_usage', 'priority_support'],
|
|
80
|
-
}),
|
|
81
|
-
usage: z.object({
|
|
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',
|
|
88
|
-
example: 42,
|
|
89
|
-
}),
|
|
90
|
-
creditLimit: z.number().openapi({
|
|
91
|
-
description: 'Monthly credit limit',
|
|
92
|
-
example: 100,
|
|
93
|
-
}),
|
|
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,
|
|
101
|
-
}),
|
|
102
|
-
resetDate: z.string().openapi({
|
|
103
|
-
description: 'ISO date when usage resets',
|
|
104
|
-
example: '2025-02-01T00:00:00.000Z',
|
|
105
|
-
}),
|
|
106
|
-
tokenUsage: z
|
|
107
|
-
.array(z.object({
|
|
108
|
-
modelName: z.string().openapi({
|
|
109
|
-
description: 'Model name',
|
|
110
|
-
example: 'gpt-4',
|
|
111
|
-
}),
|
|
112
|
-
inputTokens: z.number().openapi({
|
|
113
|
-
description: 'Input tokens used this month',
|
|
114
|
-
example: 1500,
|
|
115
|
-
}),
|
|
116
|
-
outputTokens: z.number().openapi({
|
|
117
|
-
description: 'Output tokens used this month',
|
|
118
|
-
example: 750,
|
|
119
|
-
}),
|
|
120
|
-
totalTokens: z.number().openapi({
|
|
121
|
-
description: 'Total tokens used this month',
|
|
122
|
-
example: 2250,
|
|
123
|
-
}),
|
|
124
|
-
}))
|
|
125
|
-
.openapi({
|
|
126
|
-
description: 'Token usage breakdown by model for current month',
|
|
127
|
-
}),
|
|
128
|
-
serviceUsage: z.array(ServiceUsageSchema).openapi({
|
|
129
|
-
description: 'Service usage and cost breakdown for current month',
|
|
130
|
-
}),
|
|
131
|
-
}),
|
|
132
|
-
isActive: z.boolean().openapi({
|
|
133
|
-
description: 'Whether the subscription is active',
|
|
134
|
-
example: true,
|
|
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
|
-
}),
|
|
142
|
-
})
|
|
143
|
-
.openapi('SubscriptionStatusResponse');
|
|
144
|
-
//# sourceMappingURL=subscription-status-schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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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AkB,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
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
export interface BubbleTriggerEventRegistry {
|
|
2
|
-
'slack/bot_mentioned': SlackMentionEvent;
|
|
3
|
-
'schedule/cron': CronEvent;
|
|
4
|
-
'webhook/http': WebhookEvent;
|
|
5
|
-
}
|
|
6
|
-
export declare const BUBBLE_TRIGGER_EVENTS: {
|
|
7
|
-
readonly 'slack/bot_mentioned': true;
|
|
8
|
-
readonly 'schedule/cron': true;
|
|
9
|
-
readonly 'webhook/http': true;
|
|
10
|
-
};
|
|
11
|
-
export declare function isValidBubbleTriggerEvent(eventType: string): eventType is keyof BubbleTriggerEventRegistry;
|
|
12
|
-
export interface BubbleTriggerEvent {
|
|
13
|
-
type: keyof BubbleTriggerEventRegistry;
|
|
14
|
-
timestamp: string;
|
|
15
|
-
executionId: string;
|
|
16
|
-
path: string;
|
|
17
|
-
[key: string]: unknown;
|
|
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
|
-
}
|
|
63
|
-
export interface SlackEventWrapper {
|
|
64
|
-
token: string;
|
|
65
|
-
team_id: string;
|
|
66
|
-
api_app_id: string;
|
|
67
|
-
event: SlackAppMentionEvent | SlackMessageEvent;
|
|
68
|
-
type: 'event_callback';
|
|
69
|
-
authorizations: Array<{
|
|
70
|
-
enterprise_id?: string;
|
|
71
|
-
team_id: string;
|
|
72
|
-
user_id: string;
|
|
73
|
-
is_bot: boolean;
|
|
74
|
-
}>;
|
|
75
|
-
event_context: string;
|
|
76
|
-
event_id: string;
|
|
77
|
-
event_time: number;
|
|
78
|
-
}
|
|
79
|
-
export interface SlackAppMentionEvent {
|
|
80
|
-
type: 'app_mention';
|
|
81
|
-
user: string;
|
|
82
|
-
text: string;
|
|
83
|
-
ts: string;
|
|
84
|
-
channel: string;
|
|
85
|
-
event_ts: string;
|
|
86
|
-
thread_ts?: string;
|
|
87
|
-
}
|
|
88
|
-
export interface SlackMessageEvent {
|
|
89
|
-
type: 'message';
|
|
90
|
-
user: string;
|
|
91
|
-
text: string;
|
|
92
|
-
ts: string;
|
|
93
|
-
channel: string;
|
|
94
|
-
event_ts: string;
|
|
95
|
-
channel_type: 'channel' | 'group' | 'im' | 'mpim';
|
|
96
|
-
subtype?: string;
|
|
97
|
-
}
|
|
98
|
-
export interface SlackMentionEvent extends BubbleTriggerEvent {
|
|
99
|
-
slack_event: SlackEventWrapper;
|
|
100
|
-
channel: string;
|
|
101
|
-
user: string;
|
|
102
|
-
text: string;
|
|
103
|
-
thread_ts?: string;
|
|
104
|
-
}
|
|
105
|
-
export interface SlackMessageReceivedEvent extends BubbleTriggerEvent {
|
|
106
|
-
slack_event: SlackEventWrapper;
|
|
107
|
-
channel: string;
|
|
108
|
-
user: string;
|
|
109
|
-
text: string;
|
|
110
|
-
channel_type: 'channel' | 'group' | 'im' | 'mpim';
|
|
111
|
-
subtype?: string;
|
|
112
|
-
}
|
|
113
|
-
//# sourceMappingURL=trigger.d.ts.map
|
package/dist/trigger.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../src/trigger.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,qBAAqB,EAAE,iBAAiB,CAAC;IACzC,eAAe,EAAE,SAAS,CAAC;IAC3B,cAAc,EAAE,YAAY,CAAC;CAC9B;AAID,eAAO,MAAM,qBAAqB;;;;CAIiC,CAAC;AAGpE,wBAAgB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AC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAGD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAGD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,SAAS,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D,WAAW,EAAE,iBAAiB,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB;IACnE,WAAW,EAAE,iBAAiB,CAAC;IAC/B,OAAO,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
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Runtime object that mirrors the interface keys
|
|
2
|
-
// This allows us to validate event types at runtime
|
|
3
|
-
export const BUBBLE_TRIGGER_EVENTS = {
|
|
4
|
-
'slack/bot_mentioned': true,
|
|
5
|
-
'schedule/cron': true,
|
|
6
|
-
'webhook/http': true,
|
|
7
|
-
};
|
|
8
|
-
// Helper function to check if an event type is valid
|
|
9
|
-
export function isValidBubbleTriggerEvent(eventType) {
|
|
10
|
-
return eventType in BUBBLE_TRIGGER_EVENTS;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=trigger.js.map
|
package/dist/trigger.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare enum CredentialType {
|
|
2
|
-
OPENAI_CRED = "OPENAI_CRED",
|
|
3
|
-
GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED",
|
|
4
|
-
ANTHROPIC_CRED = "ANTHROPIC_CRED",
|
|
5
|
-
OPENROUTER_CRED = "OPENROUTER_CRED",
|
|
6
|
-
FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY",
|
|
7
|
-
DATABASE_CRED = "DATABASE_CRED",
|
|
8
|
-
SLACK_CRED = "SLACK_CRED",
|
|
9
|
-
TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN",
|
|
10
|
-
RESEND_CRED = "RESEND_CRED",
|
|
11
|
-
CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY",
|
|
12
|
-
CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY",
|
|
13
|
-
CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID",
|
|
14
|
-
APIFY_CRED = "APIFY_CRED",
|
|
15
|
-
ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY",
|
|
16
|
-
GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED",
|
|
17
|
-
GMAIL_CRED = "GMAIL_CRED",
|
|
18
|
-
GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_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"
|
|
27
|
-
}
|
|
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';
|
|
29
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;IACzB,kBAAkB,uBAAuB;IAEzC,WAAW,gBAAgB;IAE3B,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IAErD,UAAU,eAAe;IAGzB,kBAAkB,uBAAuB;IAGzC,iBAAiB,sBAAsB;IACvC,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,oBAAoB,yBAAyB;IAC7C,QAAQ,aAAa;IACrB,kBAAkB,uBAAuB;IAGzC,YAAY,iBAAiB;IAG7B,WAAW,gBAAgB;IAG3B,aAAa,kBAAkB;IAG/B,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;CACtC;AAGD,MAAM,MAAM,UAAU,GAClB,aAAa,GACb,UAAU,GACV,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,MAAM,GACN,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
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// Define CredentialType enum here to avoid circular dependencies
|
|
2
|
-
export var CredentialType;
|
|
3
|
-
(function (CredentialType) {
|
|
4
|
-
// AI Credentials
|
|
5
|
-
CredentialType["OPENAI_CRED"] = "OPENAI_CRED";
|
|
6
|
-
CredentialType["GOOGLE_GEMINI_CRED"] = "GOOGLE_GEMINI_CRED";
|
|
7
|
-
CredentialType["ANTHROPIC_CRED"] = "ANTHROPIC_CRED";
|
|
8
|
-
CredentialType["OPENROUTER_CRED"] = "OPENROUTER_CRED";
|
|
9
|
-
// Search Credentials
|
|
10
|
-
CredentialType["FIRECRAWL_API_KEY"] = "FIRECRAWL_API_KEY";
|
|
11
|
-
// Database Credentials
|
|
12
|
-
CredentialType["DATABASE_CRED"] = "DATABASE_CRED";
|
|
13
|
-
// Communication Credentials
|
|
14
|
-
CredentialType["SLACK_CRED"] = "SLACK_CRED";
|
|
15
|
-
CredentialType["TELEGRAM_BOT_TOKEN"] = "TELEGRAM_BOT_TOKEN";
|
|
16
|
-
// Email Credentials
|
|
17
|
-
CredentialType["RESEND_CRED"] = "RESEND_CRED";
|
|
18
|
-
// Storage Credentials
|
|
19
|
-
CredentialType["CLOUDFLARE_R2_ACCESS_KEY"] = "CLOUDFLARE_R2_ACCESS_KEY";
|
|
20
|
-
CredentialType["CLOUDFLARE_R2_SECRET_KEY"] = "CLOUDFLARE_R2_SECRET_KEY";
|
|
21
|
-
CredentialType["CLOUDFLARE_R2_ACCOUNT_ID"] = "CLOUDFLARE_R2_ACCOUNT_ID";
|
|
22
|
-
// Scraping Credentials
|
|
23
|
-
CredentialType["APIFY_CRED"] = "APIFY_CRED";
|
|
24
|
-
// Voice Credentials
|
|
25
|
-
CredentialType["ELEVENLABS_API_KEY"] = "ELEVENLABS_API_KEY";
|
|
26
|
-
// OAuth Credentials
|
|
27
|
-
CredentialType["GOOGLE_DRIVE_CRED"] = "GOOGLE_DRIVE_CRED";
|
|
28
|
-
CredentialType["GMAIL_CRED"] = "GMAIL_CRED";
|
|
29
|
-
CredentialType["GOOGLE_SHEETS_CRED"] = "GOOGLE_SHEETS_CRED";
|
|
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";
|
|
42
|
-
})(CredentialType || (CredentialType = {}));
|
|
43
|
-
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { z } from '@hono/zod-openapi';
|
|
2
|
-
export declare const joinWaitlistSchema: z.ZodObject<{
|
|
3
|
-
name: z.ZodString;
|
|
4
|
-
email: z.ZodString;
|
|
5
|
-
database: z.ZodString;
|
|
6
|
-
otherDatabase: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
name: string;
|
|
9
|
-
email: string;
|
|
10
|
-
database: string;
|
|
11
|
-
otherDatabase?: string | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
name: string;
|
|
14
|
-
email: string;
|
|
15
|
-
database: string;
|
|
16
|
-
otherDatabase?: string | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const joinWaitlistResponseSchema: z.ZodObject<{
|
|
19
|
-
success: z.ZodBoolean;
|
|
20
|
-
message: z.ZodString;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
message: string;
|
|
23
|
-
success: boolean;
|
|
24
|
-
}, {
|
|
25
|
-
message: string;
|
|
26
|
-
success: boolean;
|
|
27
|
-
}>;
|
|
28
|
-
export type JoinWaitlistRequest = z.infer<typeof joinWaitlistSchema>;
|
|
29
|
-
export type JoinWaitlistResponse = z.infer<typeof joinWaitlistResponseSchema>;
|
|
30
|
-
//# sourceMappingURL=waitlist-schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"waitlist-schema.d.ts","sourceRoot":"","sources":["../src/waitlist-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAMtC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAmBE,CAAC;AAGlC,eAAO,MAAM,0BAA0B;;;;;;;;;EAYL,CAAC;AAGnC,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACrE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|