@bubblelab/shared-schemas 0.1.10 → 0.1.12
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/agent-memory.d.ts +21 -0
- package/dist/agent-memory.d.ts.map +1 -0
- package/dist/agent-memory.js +11 -0
- package/dist/agent-memory.js.map +1 -0
- package/dist/ai-models.d.ts +1 -1
- package/dist/ai-models.d.ts.map +1 -1
- package/dist/ai-models.js +12 -0
- package/dist/ai-models.js.map +1 -1
- package/dist/api-schema.d.ts +2 -2
- package/dist/bubble-definition-schema.d.ts +559 -75
- package/dist/bubble-definition-schema.d.ts.map +1 -1
- package/dist/bubble-definition-schema.js +186 -0
- package/dist/bubble-definition-schema.js.map +1 -1
- package/dist/bubbleflow-execution-schema.d.ts +594 -147
- package/dist/bubbleflow-execution-schema.d.ts.map +1 -1
- package/dist/bubbleflow-execution-schema.js +46 -26
- package/dist/bubbleflow-execution-schema.js.map +1 -1
- package/dist/bubbleflow-generation-prompts.d.ts +5 -16
- package/dist/bubbleflow-generation-prompts.d.ts.map +1 -1
- package/dist/bubbleflow-generation-prompts.js +14 -54
- package/dist/bubbleflow-generation-prompts.js.map +1 -1
- package/dist/bubbleflow-schema.d.ts +1081 -92
- package/dist/bubbleflow-schema.d.ts.map +1 -1
- package/dist/bubbleflow-schema.js +94 -4
- package/dist/bubbleflow-schema.js.map +1 -1
- package/dist/coffee.d.ts +2201 -0
- package/dist/coffee.d.ts.map +1 -0
- package/dist/coffee.js +257 -0
- package/dist/coffee.js.map +1 -0
- package/dist/credential-schema.d.ts +172 -3
- package/dist/credential-schema.d.ts.map +1 -1
- package/dist/credential-schema.js +509 -5
- package/dist/credential-schema.js.map +1 -1
- package/dist/database-definition-schema.d.ts +8 -8
- package/dist/error-enhancer.d.ts +6 -0
- package/dist/error-enhancer.d.ts.map +1 -0
- package/dist/error-enhancer.js +88 -0
- package/dist/error-enhancer.js.map +1 -0
- package/dist/generate-bubbleflow-schema.d.ts +974 -52
- package/dist/generate-bubbleflow-schema.d.ts.map +1 -1
- package/dist/generate-bubbleflow-schema.js +23 -7
- package/dist/generate-bubbleflow-schema.js.map +1 -1
- package/dist/hash-utils.d.ts +26 -0
- package/dist/hash-utils.d.ts.map +1 -0
- package/dist/hash-utils.js +37 -0
- package/dist/hash-utils.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/milk-tea.d.ts +22 -24
- package/dist/milk-tea.d.ts.map +1 -1
- package/dist/milk-tea.js +1 -4
- package/dist/milk-tea.js.map +1 -1
- package/dist/oauth-schema.d.ts +2 -2
- package/dist/param-utils.d.ts +10 -0
- package/dist/param-utils.d.ts.map +1 -0
- package/dist/param-utils.js +13 -0
- package/dist/param-utils.js.map +1 -0
- package/dist/pearl.d.ts +96 -29
- package/dist/pearl.d.ts.map +1 -1
- package/dist/pearl.js +20 -9
- package/dist/pearl.js.map +1 -1
- package/dist/rice.d.ts +100 -0
- package/dist/rice.d.ts.map +1 -0
- package/dist/rice.js +65 -0
- package/dist/rice.js.map +1 -0
- package/dist/storage-utils.d.ts +19 -0
- package/dist/storage-utils.d.ts.map +1 -0
- package/dist/storage-utils.js +54 -0
- package/dist/storage-utils.js.map +1 -0
- package/dist/streaming-events.d.ts +36 -2
- package/dist/streaming-events.d.ts.map +1 -1
- package/dist/subscription-status-schema.d.ts +192 -32
- package/dist/subscription-status-schema.d.ts.map +1 -1
- package/dist/subscription-status-schema.js +85 -7
- package/dist/subscription-status-schema.js.map +1 -1
- package/dist/trigger.d.ts +45 -51
- package/dist/trigger.d.ts.map +1 -1
- package/dist/trigger.js +0 -2
- package/dist/trigger.js.map +1 -1
- package/dist/types.d.ts +13 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +18 -0
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/dist/general-chat.d.ts +0 -81
- package/dist/general-chat.d.ts.map +0 -1
- package/dist/general-chat.js +0 -58
- package/dist/general-chat.js.map +0 -1
- package/dist/generation-result-schema.d.ts +0 -73
- package/dist/generation-result-schema.d.ts.map +0 -1
- package/dist/generation-result-schema.js +0 -55
- package/dist/generation-result-schema.js.map +0 -1
- package/dist/mock-data-generator.test.d.ts +0 -2
- package/dist/mock-data-generator.test.d.ts.map +0 -1
- package/dist/mock-data-generator.test.js +0 -176
- package/dist/mock-data-generator.test.js.map +0 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prepare an object for storage with a size cap. If the JSON stringified
|
|
3
|
+
* representation exceeds maxBytes, return a preview marker with metadata.
|
|
4
|
+
* Also logs a warning when truncation happens.
|
|
5
|
+
*
|
|
6
|
+
* Returns a consistent object structure when truncated to ensure compatibility
|
|
7
|
+
* with database schemas expecting JSON objects (jsonb/text with mode: 'json').
|
|
8
|
+
*/
|
|
9
|
+
export function prepareForStorage(value, options) {
|
|
10
|
+
const maxBytes = options?.maxBytes ?? 1024 * 1024; // 1MB
|
|
11
|
+
const previewBytes = options?.previewBytes ?? 4096; // 4KB
|
|
12
|
+
try {
|
|
13
|
+
const json = JSON.stringify(value);
|
|
14
|
+
// Compute byte length in a way that works in both browser and Node
|
|
15
|
+
const sizeBytes = typeof TextEncoder !== 'undefined'
|
|
16
|
+
? new TextEncoder().encode(json).length
|
|
17
|
+
: (globalThis.Buffer?.byteLength?.(json, 'utf8') ??
|
|
18
|
+
json.length);
|
|
19
|
+
if (sizeBytes > maxBytes) {
|
|
20
|
+
// eslint-disable-next-line no-console
|
|
21
|
+
console.warn(`[prepareForStorage] Size ${sizeBytes} > ${maxBytes}. Storing preview only.`);
|
|
22
|
+
// Use Buffer.slice to ensure we slice at byte boundaries, not character boundaries
|
|
23
|
+
// This prevents splitting multi-byte UTF-8 characters
|
|
24
|
+
const previewBuffer = json.slice(0, previewBytes) + '....truncated due to size limit';
|
|
25
|
+
return {
|
|
26
|
+
truncated: true,
|
|
27
|
+
preview: previewBuffer,
|
|
28
|
+
sizeBytes,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
truncated: false,
|
|
33
|
+
preview: value,
|
|
34
|
+
sizeBytes: 0,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
catch (_err) {
|
|
38
|
+
// eslint-disable-next-line no-console
|
|
39
|
+
console.warn('[prepareForStorage] Failed to serialize value for size check. Storing preview only.');
|
|
40
|
+
return {
|
|
41
|
+
truncated: true,
|
|
42
|
+
preview: '',
|
|
43
|
+
sizeBytes: 0,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export function cleanUpObjectForDisplayAndStorage(obj, maxBytes = 1024 * 1024) {
|
|
48
|
+
const storageResult = prepareForStorage(obj, { maxBytes });
|
|
49
|
+
if (storageResult.truncated) {
|
|
50
|
+
return storageResult.preview;
|
|
51
|
+
}
|
|
52
|
+
return obj;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=storage-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-utils.js","sourceRoot":"","sources":["../src/storage-utils.ts"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,MAAM,UAAU,iBAAiB,CAC/B,KAAc,EACd,OAAsD;IAEtD,MAAM,QAAQ,GAAG,OAAO,EAAE,QAAQ,IAAI,IAAI,GAAG,IAAI,CAAC,CAAC,MAAM;IACzD,MAAM,YAAY,GAAG,OAAO,EAAE,YAAY,IAAI,IAAI,CAAC,CAAC,MAAM;IAE1D,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACnC,mEAAmE;QACnE,MAAM,SAAS,GACb,OAAO,WAAW,KAAK,WAAW;YAChC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM;YACvC,CAAC,CAAC,CAAE,UAAkB,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;gBACvD,IAAI,CAAC,MAAM,CAAC,CAAC;QACnB,IAAI,SAAS,GAAG,QAAQ,EAAE,CAAC;YACzB,sCAAsC;YACtC,OAAO,CAAC,IAAI,CACV,4BAA4B,SAAS,MAAM,QAAQ,yBAAyB,CAC7E,CAAC;YACF,mFAAmF;YACnF,sDAAsD;YACtD,MAAM,aAAa,GACjB,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,YAAY,CAAC,GAAG,iCAAiC,CAAC;YAClE,OAAO;gBACL,SAAS,EAAE,IAAI;gBACf,OAAO,EAAE,aAAa;gBACtB,SAAS;aACV,CAAC;QACJ,CAAC;QACD,OAAO;YACL,SAAS,EAAE,KAAK;YAChB,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,CAAC;SACb,CAAC;IACJ,CAAC;IAAC,OAAO,IAAI,EAAE,CAAC;QACd,sCAAsC;QACtC,OAAO,CAAC,IAAI,CACV,qFAAqF,CACtF,CAAC;QACF,OAAO;YACL,SAAS,EAAE,IAAI;YACf,OAAO,EAAE,EAAE;YACX,SAAS,EAAE,CAAC;SACb,CAAC;IACJ,CAAC;AACH,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,GAAY,EACZ,WAAmB,IAAI,GAAG,IAAI;IAE9B,MAAM,aAAa,GAAG,iBAAiB,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC3D,IAAI,aAAa,CAAC,SAAS,EAAE,CAAC;QAC5B,OAAO,aAAa,CAAC,OAAO,CAAC;IAC/B,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared types for streaming log events between backend and frontend
|
|
3
3
|
*/
|
|
4
|
+
import type { CoffeeClarificationEvent, CoffeeContextEvent, CoffeePlanEvent, CoffeeRequestExternalContextEvent } from './coffee.js';
|
|
4
5
|
export interface StreamingLogEvent {
|
|
5
|
-
type: 'log_line' | 'bubble_instantiation' | 'bubble_execution' | 'bubble_start' | 'bubble_complete' | 'execution_complete' | 'error' | 'stream_complete' | 'info' | 'warn' | 'debug' | 'bubble_execution_complete' | 'trace' | 'fatal' | 'bubble_parameters_update' | 'tool_call_start' | 'tool_call_complete';
|
|
6
|
+
type: 'log_line' | 'bubble_instantiation' | 'bubble_execution' | 'bubble_start' | 'bubble_complete' | 'execution_complete' | 'error' | 'stream_complete' | 'info' | 'warn' | 'debug' | 'bubble_execution_complete' | 'trace' | 'fatal' | 'bubble_parameters_update' | 'tool_call_start' | 'tool_call_complete' | 'function_call_start' | 'function_call_complete' | 'start_evaluating' | 'end_evaluating' | 'browser_session_start' | 'browser_session_end';
|
|
6
7
|
timestamp: string;
|
|
7
8
|
lineNumber?: number;
|
|
8
9
|
variableId?: number;
|
|
@@ -20,6 +21,10 @@ export interface StreamingLogEvent {
|
|
|
20
21
|
toolInput?: unknown;
|
|
21
22
|
toolOutput?: unknown;
|
|
22
23
|
toolDuration?: number;
|
|
24
|
+
functionName?: string;
|
|
25
|
+
functionInput?: unknown;
|
|
26
|
+
functionOutput?: unknown;
|
|
27
|
+
functionDuration?: number;
|
|
23
28
|
tokenUsage?: {
|
|
24
29
|
inputTokens: number;
|
|
25
30
|
outputTokens: number;
|
|
@@ -30,6 +35,14 @@ export interface StreamingLogEvent {
|
|
|
30
35
|
outputTokens: number;
|
|
31
36
|
totalTokens: number;
|
|
32
37
|
};
|
|
38
|
+
evaluationResult?: {
|
|
39
|
+
working: boolean;
|
|
40
|
+
issueType: 'setup' | 'workflow' | 'input' | null;
|
|
41
|
+
summary: string;
|
|
42
|
+
rating: number;
|
|
43
|
+
};
|
|
44
|
+
browserSessionUrl?: string;
|
|
45
|
+
browserSessionId?: string;
|
|
33
46
|
}
|
|
34
47
|
export type StreamingEvent = {
|
|
35
48
|
type: 'start';
|
|
@@ -61,6 +74,7 @@ export type StreamingEvent = {
|
|
|
61
74
|
data: {
|
|
62
75
|
messageId: string;
|
|
63
76
|
totalTokens?: number;
|
|
77
|
+
content?: string;
|
|
64
78
|
};
|
|
65
79
|
} | {
|
|
66
80
|
type: 'tool_start';
|
|
@@ -73,7 +87,9 @@ export type StreamingEvent = {
|
|
|
73
87
|
type: 'tool_complete';
|
|
74
88
|
data: {
|
|
75
89
|
tool: string;
|
|
76
|
-
input:
|
|
90
|
+
input: {
|
|
91
|
+
input: string;
|
|
92
|
+
};
|
|
77
93
|
output: unknown;
|
|
78
94
|
duration: number;
|
|
79
95
|
callId: string;
|
|
@@ -101,6 +117,24 @@ export type StreamingEvent = {
|
|
|
101
117
|
result: unknown;
|
|
102
118
|
totalDuration: number;
|
|
103
119
|
};
|
|
120
|
+
} | {
|
|
121
|
+
type: 'coffee_clarification';
|
|
122
|
+
data: CoffeeClarificationEvent;
|
|
123
|
+
} | {
|
|
124
|
+
type: 'coffee_context_gathering';
|
|
125
|
+
data: CoffeeContextEvent;
|
|
126
|
+
} | {
|
|
127
|
+
type: 'coffee_request_context';
|
|
128
|
+
data: CoffeeRequestExternalContextEvent;
|
|
129
|
+
} | {
|
|
130
|
+
type: 'coffee_plan';
|
|
131
|
+
data: CoffeePlanEvent;
|
|
132
|
+
} | {
|
|
133
|
+
type: 'coffee_complete';
|
|
134
|
+
data: {
|
|
135
|
+
success: boolean;
|
|
136
|
+
message?: string;
|
|
137
|
+
};
|
|
104
138
|
};
|
|
105
139
|
export type StreamCallback = (event: StreamingLogEvent) => void | Promise<void>;
|
|
106
140
|
//# sourceMappingURL=streaming-events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streaming-events.d.ts","sourceRoot":"","sources":["../src/streaming-events.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EACA,UAAU,GACV,sBAAsB,GACtB,kBAAkB,GAClB,cAAc,GACd,iBAAiB,GACjB,oBAAoB,GACpB,OAAO,GACP,iBAAiB,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,2BAA2B,GAC3B,OAAO,GACP,OAAO,GACP,0BAA0B,GAC1B,iBAAiB,GACjB,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"streaming-events.d.ts","sourceRoot":"","sources":["../src/streaming-events.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,wBAAwB,EACxB,kBAAkB,EAClB,eAAe,EACf,iCAAiC,EAClC,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,iBAAiB;IAChC,IAAI,EACA,UAAU,GACV,sBAAsB,GACtB,kBAAkB,GAClB,cAAc,GACd,iBAAiB,GACjB,oBAAoB,GACpB,OAAO,GACP,iBAAiB,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,2BAA2B,GAC3B,OAAO,GACP,OAAO,GACP,0BAA0B,GAC1B,iBAAiB,GACjB,oBAAoB,GACpB,qBAAqB,GACrB,wBAAwB,GACxB,kBAAkB,GAClB,gBAAgB,GAChB,uBAAuB,GACvB,qBAAqB,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,gBAAgB,CAAC,EAAE,MAAM,CACvB,MAAM,EACN,OAAO,4BAA4B,EAAE,oBAAoB,CAC1D,CAAC;IAEF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EA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,GAED;IACE,IAAI,EAAE,sBAAsB,CAAC;IAC7B,IAAI,EAAE,wBAAwB,CAAC;CAChC,GACD;IACE,IAAI,EAAE,0BAA0B,CAAC;IACjC,IAAI,EAAE,kBAAkB,CAAC;CAC1B,GACD;IACE,IAAI,EAAE,wBAAwB,CAAC;IAC/B,IAAI,EAAE,iCAAiC,CAAC;CACzC,GACD;IACE,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,eAAe,CAAC;CACvB,GACD;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C,CAAC;AAEN,MAAM,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
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;
|
|
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
|
-
|
|
22
|
-
description: 'Current monthly
|
|
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
|
-
|
|
26
|
-
description: 'Monthly
|
|
90
|
+
creditLimit: z.number().openapi({
|
|
91
|
+
description: 'Monthly credit limit',
|
|
27
92
|
example: 100,
|
|
28
93
|
}),
|
|
29
|
-
|
|
30
|
-
description: '
|
|
31
|
-
example:
|
|
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,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC;QACpC,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;KACjD,CAAC;IACF,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,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,QA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