@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.
Files changed (98) 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 +186 -0
  13. package/dist/bubble-definition-schema.js.map +1 -1
  14. package/dist/bubbleflow-execution-schema.d.ts +594 -147
  15. package/dist/bubbleflow-execution-schema.d.ts.map +1 -1
  16. package/dist/bubbleflow-execution-schema.js +46 -26
  17. package/dist/bubbleflow-execution-schema.js.map +1 -1
  18. package/dist/bubbleflow-generation-prompts.d.ts +5 -16
  19. package/dist/bubbleflow-generation-prompts.d.ts.map +1 -1
  20. package/dist/bubbleflow-generation-prompts.js +14 -54
  21. package/dist/bubbleflow-generation-prompts.js.map +1 -1
  22. package/dist/bubbleflow-schema.d.ts +1081 -92
  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 +257 -0
  29. package/dist/coffee.js.map +1 -0
  30. package/dist/credential-schema.d.ts +172 -3
  31. package/dist/credential-schema.d.ts.map +1 -1
  32. package/dist/credential-schema.js +509 -5
  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 +974 -52
  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 +7 -0
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +7 -0
  50. package/dist/index.js.map +1 -1
  51. package/dist/milk-tea.d.ts +22 -24
  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/rice.d.ts +100 -0
  65. package/dist/rice.d.ts.map +1 -0
  66. package/dist/rice.js +65 -0
  67. package/dist/rice.js.map +1 -0
  68. package/dist/storage-utils.d.ts +19 -0
  69. package/dist/storage-utils.d.ts.map +1 -0
  70. package/dist/storage-utils.js +54 -0
  71. package/dist/storage-utils.js.map +1 -0
  72. package/dist/streaming-events.d.ts +36 -2
  73. package/dist/streaming-events.d.ts.map +1 -1
  74. package/dist/subscription-status-schema.d.ts +192 -32
  75. package/dist/subscription-status-schema.d.ts.map +1 -1
  76. package/dist/subscription-status-schema.js +85 -7
  77. package/dist/subscription-status-schema.js.map +1 -1
  78. package/dist/trigger.d.ts +45 -51
  79. package/dist/trigger.d.ts.map +1 -1
  80. package/dist/trigger.js +0 -2
  81. package/dist/trigger.js.map +1 -1
  82. package/dist/types.d.ts +13 -2
  83. package/dist/types.d.ts.map +1 -1
  84. package/dist/types.js +18 -0
  85. package/dist/types.js.map +1 -1
  86. package/package.json +1 -1
  87. package/dist/general-chat.d.ts +0 -81
  88. package/dist/general-chat.d.ts.map +0 -1
  89. package/dist/general-chat.js +0 -58
  90. package/dist/general-chat.js.map +0 -1
  91. package/dist/generation-result-schema.d.ts +0 -73
  92. package/dist/generation-result-schema.d.ts.map +0 -1
  93. package/dist/generation-result-schema.js +0 -55
  94. package/dist/generation-result-schema.js.map +0 -1
  95. package/dist/mock-data-generator.test.d.ts +0 -2
  96. package/dist/mock-data-generator.test.d.ts.map +0 -1
  97. package/dist/mock-data-generator.test.js +0 -176
  98. package/dist/mock-data-generator.test.js.map +0 -1
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,CAAC;IACxC,eAAe,EAAE,SAAS,CAAC;IAC3B,cAAc,EAAE,YAAY,CAAC;CAC9B;AAID,eAAO,MAAM,qBAAqB;;;;;;CAMiC,CAAC;AAGpE,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,MAAM,GAChB,SAAS,IAAI,MAAM,0BAA0B,CAE/C;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,0BAA0B,CAAC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAGD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,oBAAoB,GAAG,iBAAiB,CAAC;IAChD,IAAI,E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ChB,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 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,26 @@ 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",
27
+ CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY",
28
+ AMAZON_CRED = "AMAZON_CRED"
18
29
  }
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';
30
+ 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' | 'browserbase' | 'amazon-shopping-tool';
20
31
  //# 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,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,SAAS,GACT,cAAc,GACd,OAAO,GACP,eAAe,GACf,iBAAiB,GACjB,OAAO,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,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,GACb,aAAa,GACb,sBAAsB,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,27 @@ 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";
42
+ // Custom Authentication Credentials
43
+ CredentialType["CUSTOM_AUTH_KEY"] = "CUSTOM_AUTH_KEY";
44
+ // Browser Session Credentials (BrowserBase-powered)
45
+ CredentialType["AMAZON_CRED"] = "AMAZON_CRED";
28
46
  })(CredentialType || (CredentialType = {}));
29
47
  //# 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,cAmDX;AAnDD,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;IAErC,oCAAoC;IACpC,qDAAmC,CAAA;IAEnC,oDAAoD;IACpD,6CAA2B,CAAA;AAC7B,CAAC,EAnDW,cAAc,KAAd,cAAc,QAmDzB"}
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.12",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -1,81 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Request schema for General Chat agent
4
- * General Chat helps users build complete workflows without requiring specific bubbles
5
- */
6
- export declare const GeneralChatRequestSchema: z.ZodObject<{
7
- userRequest: z.ZodString;
8
- currentCode: z.ZodOptional<z.ZodString>;
9
- userName: z.ZodString;
10
- conversationHistory: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
11
- role: z.ZodEnum<["user", "assistant"]>;
12
- content: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- role: "user" | "assistant";
15
- content: string;
16
- }, {
17
- role: "user" | "assistant";
18
- content: string;
19
- }>, "many">>>;
20
- model: z.ZodDefault<z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-o4-mini", "openai/gpt-4o", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "anthropic/claude-sonnet-4-5-20250929", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.5-air"]>>;
21
- }, "strip", z.ZodTypeAny, {
22
- userRequest: string;
23
- userName: string;
24
- conversationHistory: {
25
- role: "user" | "assistant";
26
- content: string;
27
- }[];
28
- model: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.5-air";
29
- currentCode?: string | undefined;
30
- }, {
31
- userRequest: string;
32
- userName: string;
33
- currentCode?: string | undefined;
34
- conversationHistory?: {
35
- role: "user" | "assistant";
36
- content: string;
37
- }[] | undefined;
38
- model?: "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-o4-mini" | "openai/gpt-4o" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-image-preview" | "anthropic/claude-sonnet-4-5-20250929" | "openrouter/x-ai/grok-code-fast-1" | "openrouter/z-ai/glm-4.5-air" | undefined;
39
- }>;
40
- /**
41
- * Response schema for General Chat agent
42
- */
43
- export declare const GeneralChatResponseSchema: z.ZodObject<{
44
- type: z.ZodEnum<["code", "question", "reject"]>;
45
- message: z.ZodString;
46
- snippet: z.ZodOptional<z.ZodString>;
47
- success: z.ZodBoolean;
48
- error: z.ZodOptional<z.ZodString>;
49
- }, "strip", z.ZodTypeAny, {
50
- message: string;
51
- type: "code" | "question" | "reject";
52
- success: boolean;
53
- snippet?: string | undefined;
54
- error?: string | undefined;
55
- }, {
56
- message: string;
57
- type: "code" | "question" | "reject";
58
- success: boolean;
59
- snippet?: string | undefined;
60
- error?: string | undefined;
61
- }>;
62
- /**
63
- * Internal agent response format (JSON mode output from AI)
64
- */
65
- export declare const GeneralChatAgentOutputSchema: z.ZodObject<{
66
- type: z.ZodEnum<["code", "question", "reject"]>;
67
- message: z.ZodString;
68
- snippet: z.ZodOptional<z.ZodString>;
69
- }, "strip", z.ZodTypeAny, {
70
- message: string;
71
- type: "code" | "question" | "reject";
72
- snippet?: string | undefined;
73
- }, {
74
- message: string;
75
- type: "code" | "question" | "reject";
76
- snippet?: string | undefined;
77
- }>;
78
- export type GeneralChatRequest = z.infer<typeof GeneralChatRequestSchema>;
79
- export type GeneralChatResponse = z.infer<typeof GeneralChatResponseSchema>;
80
- export type GeneralChatAgentOutput = z.infer<typeof GeneralChatAgentOutputSchema>;
81
- //# sourceMappingURL=general-chat.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"general-chat.d.ts","sourceRoot":"","sources":["../src/general-chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;EA0BpC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAIvC,CAAC;AAGH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
@@ -1,58 +0,0 @@
1
- import { z } from 'zod';
2
- import { AvailableModels } from './ai-models.js';
3
- // Reuse the ConversationMessageSchema from milk-tea to avoid duplication
4
- const ConversationMessageSchema = z.object({
5
- role: z.enum(['user', 'assistant']),
6
- content: z.string(),
7
- });
8
- /**
9
- * Request schema for General Chat agent
10
- * General Chat helps users build complete workflows without requiring specific bubbles
11
- */
12
- export const GeneralChatRequestSchema = z.object({
13
- userRequest: z
14
- .string()
15
- .min(1, 'User request is required')
16
- .describe('The user request or question about building a workflow'),
17
- currentCode: z
18
- .string()
19
- .optional()
20
- .describe('The current workflow code for context and modification'),
21
- userName: z.string().describe('Name of the user making the request'),
22
- conversationHistory: z
23
- .array(ConversationMessageSchema)
24
- .optional()
25
- .default([])
26
- .describe('Previous conversation messages for multi-turn interactions (frontend manages state)'),
27
- model: AvailableModels.default('google/gemini-2.5-pro').describe('AI model to use for General Chat agent'),
28
- });
29
- /**
30
- * Response schema for General Chat agent
31
- */
32
- export const GeneralChatResponseSchema = z.object({
33
- type: z
34
- .enum(['code', 'question', 'reject'])
35
- .describe('Type of response: code (generated workflow), question (needs clarification), reject (infeasible request)'),
36
- message: z
37
- .string()
38
- .describe('Human-readable message: explanation for code, question text, or rejection reason'),
39
- snippet: z
40
- .string()
41
- .optional()
42
- .describe('Generated TypeScript code for complete workflow (only present when type is "code")'),
43
- success: z.boolean().describe('Whether the operation completed successfully'),
44
- error: z
45
- .string()
46
- .optional()
47
- .describe('Error message if the operation failed'),
48
- });
49
- /**
50
- * Internal agent response format (JSON mode output from AI)
51
- */
52
- export const GeneralChatAgentOutputSchema = z.object({
53
- type: z.enum(['code', 'question', 'reject']),
54
- message: z.string(),
55
- snippet: z.string().optional(),
56
- });
57
- // Note: ConversationMessage type is exported from milk-tea.ts to avoid duplication
58
- //# sourceMappingURL=general-chat.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"general-chat.js","sourceRoot":"","sources":["../src/general-chat.ts"],"names":[],"mappings":"AA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AQ,EAAE;SACV,QAAQ,CACP,oFAAoF,CACrF;IAEH,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;IAE7E,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uCAAuC,CAAC;CACrD,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;IAC5C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAQH,mFAAmF"}
@@ -1,73 +0,0 @@
1
- import { z } from '@hono/zod-openapi';
2
- import { CredentialType } from './types.js';
3
- /**
4
- * Generation result schema that matches the BubbleFlow generator workflow result
5
- * but includes additional fields for the frontend generation store
6
- */
7
- export declare const GenerationResultSchema: z.ZodObject<{
8
- generatedCode: z.ZodString;
9
- isValid: z.ZodBoolean;
10
- success: z.ZodBoolean;
11
- error: z.ZodString;
12
- toolCalls: z.ZodArray<z.ZodAny, "many">;
13
- summary: z.ZodString;
14
- inputsSchema: z.ZodString;
15
- tokenUsage: z.ZodObject<{
16
- inputTokens: z.ZodNumber;
17
- outputTokens: z.ZodNumber;
18
- totalTokens: z.ZodNumber;
19
- modelName: z.ZodOptional<z.ZodString>;
20
- }, "strip", z.ZodTypeAny, {
21
- inputTokens: number;
22
- outputTokens: number;
23
- totalTokens: number;
24
- modelName?: string | undefined;
25
- }, {
26
- inputTokens: number;
27
- outputTokens: number;
28
- totalTokens: number;
29
- modelName?: string | undefined;
30
- }>;
31
- codeLength: z.ZodNumber;
32
- bubbleCount: z.ZodNumber;
33
- flowId: z.ZodNumber;
34
- requiredCredentials: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>;
35
- }, "strip", z.ZodTypeAny, {
36
- generatedCode: string;
37
- isValid: boolean;
38
- success: boolean;
39
- error: string;
40
- toolCalls: any[];
41
- summary: string;
42
- inputsSchema: string;
43
- tokenUsage: {
44
- inputTokens: number;
45
- outputTokens: number;
46
- totalTokens: number;
47
- modelName?: string | undefined;
48
- };
49
- codeLength: number;
50
- bubbleCount: number;
51
- flowId: number;
52
- requiredCredentials: Record<string, CredentialType[]>;
53
- }, {
54
- generatedCode: string;
55
- isValid: boolean;
56
- success: boolean;
57
- error: string;
58
- toolCalls: any[];
59
- summary: string;
60
- inputsSchema: string;
61
- tokenUsage: {
62
- inputTokens: number;
63
- outputTokens: number;
64
- totalTokens: number;
65
- modelName?: string | undefined;
66
- };
67
- codeLength: number;
68
- bubbleCount: number;
69
- flowId: number;
70
- requiredCredentials: Record<string, CredentialType[]>;
71
- }>;
72
- export type GenerationResult = z.infer<typeof GenerationResultSchema>;
73
- //# sourceMappingURL=generation-result-schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generation-result-schema.d.ts","sourceRoot":"","sources":["../src/generation-result-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAG5C;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -1,55 +0,0 @@
1
- import { z } from '@hono/zod-openapi';
2
- import { CredentialType } from './types.js';
3
- import { TokenUsageSchema } from './bubbleflow-execution-schema.js';
4
- /**
5
- * Generation result schema that matches the BubbleFlow generator workflow result
6
- * but includes additional fields for the frontend generation store
7
- */
8
- export const GenerationResultSchema = z.object({
9
- // Core generation fields (matching BubbleFlowGeneratorResultSchema)
10
- generatedCode: z.string().openapi({
11
- description: 'The generated BubbleFlow TypeScript code',
12
- }),
13
- isValid: z.boolean().openapi({
14
- description: 'Whether the generated code is valid',
15
- }),
16
- success: z.boolean().openapi({
17
- description: 'Whether the generation was successful',
18
- }),
19
- error: z.string().openapi({
20
- description: 'Error message if generation failed',
21
- }),
22
- toolCalls: z.array(z.any()).openapi({
23
- description: 'The tool calls made by the AI agent',
24
- }),
25
- summary: z.string().openapi({
26
- description: 'High-level instructions for using the validated flow',
27
- }),
28
- inputsSchema: z.string().openapi({
29
- description: 'JSON Schema (string) representing the inputs of the flow',
30
- }),
31
- // Additional fields for frontend generation store
32
- tokenUsage: TokenUsageSchema.openapi({
33
- description: 'Token usage information for the generation',
34
- }),
35
- codeLength: z.number().openapi({
36
- description: 'Length of the generated code in characters',
37
- example: 2500,
38
- }),
39
- bubbleCount: z.number().openapi({
40
- description: 'Number of bubbles used in the generated flow',
41
- example: 3,
42
- }),
43
- flowId: z.number().openapi({
44
- description: 'ID of the created flow in the database',
45
- example: 123,
46
- }),
47
- requiredCredentials: z.record(z.string(), z.array(z.nativeEnum(CredentialType))).openapi({
48
- description: 'Required credentials for the bubbles in the generated code',
49
- example: {
50
- 'database-connection': [CredentialType.DATABASE_CRED],
51
- 'slack-notification': [CredentialType.SLACK_CRED],
52
- },
53
- }),
54
- });
55
- //# sourceMappingURL=generation-result-schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generation-result-schema.js","sourceRoot":"","sources":["../src/generation-result-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAs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F,mBAAmB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;QACvF,WAAW,EAAE,4DAA4D;QACzE,OAAO,EAAE;YACP,qBAAqB,EAAE,CAAC,cAAc,CAAC,aAAa,CAAC;YACrD,oBAAoB,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;SAClD;KACF,CAAC;CACH,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=mock-data-generator.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mock-data-generator.test.d.ts","sourceRoot":"","sources":["../src/mock-data-generator.test.ts"],"names":[],"mappings":""}