@bubblelab/shared-schemas 0.1.13 → 0.1.14

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 (59) hide show
  1. package/dist/agent-memory.d.ts +21 -0
  2. package/dist/agent-memory.d.ts.map +1 -0
  3. package/dist/ai-models.d.ts +4 -0
  4. package/dist/ai-models.d.ts.map +1 -0
  5. package/dist/api-schema.d.ts +38 -0
  6. package/dist/api-schema.d.ts.map +1 -0
  7. package/dist/bubble-definition-schema.d.ts +840 -0
  8. package/dist/bubble-definition-schema.d.ts.map +1 -0
  9. package/dist/bubbleflow-execution-schema.d.ts +1297 -0
  10. package/dist/bubbleflow-execution-schema.d.ts.map +1 -0
  11. package/dist/bubbleflow-generation-prompts.d.ts +8 -0
  12. package/dist/bubbleflow-generation-prompts.d.ts.map +1 -0
  13. package/dist/bubbleflow-schema.d.ts +2071 -0
  14. package/dist/bubbleflow-schema.d.ts.map +1 -0
  15. package/dist/coffee.d.ts +2201 -0
  16. package/dist/coffee.d.ts.map +1 -0
  17. package/dist/credential-schema.d.ts +574 -0
  18. package/dist/credential-schema.d.ts.map +1 -0
  19. package/dist/cron-utils.d.ts +47 -0
  20. package/dist/cron-utils.d.ts.map +1 -0
  21. package/dist/database-definition-schema.d.ts +97 -0
  22. package/dist/database-definition-schema.d.ts.map +1 -0
  23. package/dist/error-enhancer.d.ts +6 -0
  24. package/dist/error-enhancer.d.ts.map +1 -0
  25. package/dist/generate-bubbleflow-schema.d.ts +1525 -0
  26. package/dist/generate-bubbleflow-schema.d.ts.map +1 -0
  27. package/dist/hash-utils.d.ts +26 -0
  28. package/dist/hash-utils.d.ts.map +1 -0
  29. package/dist/index.d.ts +29 -10076
  30. package/dist/index.d.ts.map +1 -0
  31. package/dist/index.js +225 -0
  32. package/dist/index.js.map +1 -1
  33. package/dist/milk-tea.d.ts +106 -0
  34. package/dist/milk-tea.d.ts.map +1 -0
  35. package/dist/mock-data-generator.d.ts +51 -0
  36. package/dist/mock-data-generator.d.ts.map +1 -0
  37. package/dist/oauth-schema.d.ts +61 -0
  38. package/dist/oauth-schema.d.ts.map +1 -0
  39. package/dist/param-utils.d.ts +10 -0
  40. package/dist/param-utils.d.ts.map +1 -0
  41. package/dist/pearl.d.ts +346 -0
  42. package/dist/pearl.d.ts.map +1 -0
  43. package/dist/rice.d.ts +100 -0
  44. package/dist/rice.d.ts.map +1 -0
  45. package/dist/storage-utils.d.ts +19 -0
  46. package/dist/storage-utils.d.ts.map +1 -0
  47. package/dist/streaming-events.d.ts +140 -0
  48. package/dist/streaming-events.d.ts.map +1 -0
  49. package/dist/subscription-status-schema.d.ts +250 -0
  50. package/dist/subscription-status-schema.d.ts.map +1 -0
  51. package/dist/trigger.d.ts +172 -0
  52. package/dist/trigger.d.ts.map +1 -0
  53. package/dist/types.d.ts +31 -0
  54. package/dist/types.d.ts.map +1 -0
  55. package/dist/waitlist-schema.d.ts +30 -0
  56. package/dist/waitlist-schema.d.ts.map +1 -0
  57. package/dist/webhook-schema.d.ts +95 -0
  58. package/dist/webhook-schema.d.ts.map +1 -0
  59. package/package.json +2 -2
@@ -0,0 +1,172 @@
1
+ export interface BubbleTriggerEventRegistry {
2
+ 'slack/bot_mentioned': SlackMentionEvent;
3
+ 'slack/message_received': SlackMessageReceivedEvent;
4
+ 'schedule/cron': CronEvent;
5
+ 'webhook/http': WebhookEvent;
6
+ }
7
+ export declare const BUBBLE_TRIGGER_EVENTS: {
8
+ readonly 'slack/bot_mentioned': true;
9
+ readonly 'slack/message_received': true;
10
+ readonly 'schedule/cron': true;
11
+ readonly 'webhook/http': true;
12
+ };
13
+ export declare function isValidBubbleTriggerEvent(eventType: string): eventType is keyof BubbleTriggerEventRegistry;
14
+ export interface BubbleTriggerEvent {
15
+ type: keyof BubbleTriggerEventRegistry;
16
+ timestamp: string;
17
+ executionId: string;
18
+ path: string;
19
+ [key: string]: unknown;
20
+ }
21
+ /**
22
+ * Cron event payload structure
23
+ *
24
+ * The 'cron' field contains the cron expression in standard 5-part cron format:
25
+ *
26
+ * ┌───────────── minute (0 - 59)
27
+ * │ ┌───────────── hour (0 - 23)
28
+ * │ │ ┌───────────── day of month (1 - 31)
29
+ * │ │ │ ┌───────────── month (1 - 12)
30
+ * │ │ │ │ ┌───────────── day of week (0 - 6) (Sunday to Saturday)
31
+ * │ │ │ │ │
32
+ * * * * * *
33
+ *
34
+ * @example
35
+ * ```typescript
36
+ * // Daily at midnight
37
+ * { cron: '0 0 * * *' }
38
+ *
39
+ * // Every weekday at 9am
40
+ * { cron: '0 9 * * 1-5' }
41
+ *
42
+ * // Every 15 minutes
43
+ * { cron: '*\/15 * * * *' }
44
+ *
45
+ * // First day of every month at midnight
46
+ * { cron: '0 0 1 * *' }
47
+ * ```
48
+ */
49
+ export interface CronEvent extends BubbleTriggerEvent {
50
+ /** The cron expression defining when this event triggers */
51
+ cron: string;
52
+ body?: Record<string, unknown>;
53
+ }
54
+ export interface WebhookEvent extends BubbleTriggerEvent {
55
+ body?: Record<string, unknown>;
56
+ }
57
+ export interface BubbleTrigger {
58
+ type: keyof BubbleTriggerEventRegistry;
59
+ cronSchedule?: string;
60
+ name?: string;
61
+ description?: string;
62
+ timeout?: number;
63
+ retries?: number;
64
+ }
65
+ export interface SlackEventWrapper {
66
+ token: string;
67
+ team_id: string;
68
+ api_app_id: string;
69
+ event: SlackAppMentionEvent | SlackMessageEvent;
70
+ type: 'event_callback';
71
+ authorizations: Array<{
72
+ enterprise_id?: string;
73
+ team_id: string;
74
+ user_id: string;
75
+ is_bot: boolean;
76
+ }>;
77
+ event_context: string;
78
+ event_id: string;
79
+ event_time: number;
80
+ }
81
+ export interface SlackAppMentionEvent {
82
+ type: 'app_mention';
83
+ user: string;
84
+ text: string;
85
+ ts: string;
86
+ channel: string;
87
+ event_ts: string;
88
+ thread_ts?: string;
89
+ }
90
+ export interface SlackMessageEvent {
91
+ type: 'message';
92
+ user: string;
93
+ text: string;
94
+ ts: string;
95
+ channel: string;
96
+ event_ts: string;
97
+ channel_type: 'channel' | 'group' | 'im' | 'mpim';
98
+ subtype?: string;
99
+ }
100
+ export interface SlackMentionEvent extends BubbleTriggerEvent {
101
+ slack_event: SlackEventWrapper;
102
+ channel: string;
103
+ user: string;
104
+ text: string;
105
+ thread_ts?: string;
106
+ }
107
+ export interface SlackMessageReceivedEvent extends BubbleTriggerEvent {
108
+ slack_event: SlackEventWrapper;
109
+ channel: string;
110
+ user: string;
111
+ text: string;
112
+ channel_type: 'channel' | 'group' | 'im' | 'mpim';
113
+ subtype?: string;
114
+ }
115
+ /**
116
+ * JSON Schema type for payload validation
117
+ */
118
+ export interface JsonSchema {
119
+ type: string;
120
+ properties?: Record<string, JsonSchemaProperty>;
121
+ required?: string[];
122
+ additionalProperties?: boolean;
123
+ }
124
+ export interface JsonSchemaProperty {
125
+ type?: string;
126
+ description?: string;
127
+ [key: string]: unknown;
128
+ }
129
+ /**
130
+ * Configuration for a trigger event type
131
+ * Single source of truth for all trigger metadata
132
+ */
133
+ export interface TriggerEventConfig {
134
+ /** The bubble/service name (e.g., 'Slack') - used for logo lookup */
135
+ serviceName: string;
136
+ /** Human-friendly name (e.g., 'When Slack bot is mentioned') */
137
+ friendlyName: string;
138
+ /** Description of what this trigger does */
139
+ description: string;
140
+ /** Setup guide markdown for configuring this trigger */
141
+ setupGuide: string;
142
+ /** JSON Schema for the payload */
143
+ payloadSchema: JsonSchema;
144
+ }
145
+ /**
146
+ * Registry of all trigger event configurations
147
+ * Keys must match BubbleTriggerEventRegistry
148
+ */
149
+ export declare const TRIGGER_EVENT_CONFIGS: Record<keyof BubbleTriggerEventRegistry, TriggerEventConfig>;
150
+ /**
151
+ * Get configuration for a trigger event type
152
+ * @param eventType - The trigger event type key
153
+ * @returns The trigger configuration or undefined if not found
154
+ */
155
+ export declare function getTriggerEventConfig(eventType: keyof BubbleTriggerEventRegistry): TriggerEventConfig;
156
+ /**
157
+ * Check if an event type is a service trigger (not webhook/cron)
158
+ * Service triggers get special UI treatment with logos and friendly names
159
+ */
160
+ export declare function isServiceTrigger(eventType: keyof BubbleTriggerEventRegistry): boolean;
161
+ /**
162
+ * Mapping from trigger event interface names to their event type keys.
163
+ * Used by BubbleParser to identify when a payload interface extends a known trigger event.
164
+ */
165
+ export declare const TRIGGER_EVENT_INTERFACE_MAP: Record<string, keyof BubbleTriggerEventRegistry>;
166
+ /**
167
+ * Get the trigger event type key from an interface name.
168
+ * @param interfaceName - The name of the interface (e.g., 'SlackMentionEvent')
169
+ * @returns The trigger event type key or undefined if not a known trigger interface
170
+ */
171
+ export declare function getTriggerEventTypeFromInterfaceName(interfaceName: string): keyof BubbleTriggerEventRegistry | undefined;
172
+ //# sourceMappingURL=trigger.d.ts.map
@@ -0,0 +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,eAAe,EAAE,SAAS,CAAC;IAC3B,cAAc,EAAE,YAAY,CAAC;CAC9B;AAID,eAAO,MAAM,qBAAqB;;;;;CAKiC,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,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,WAAW,SAAU,SAAQ,kBAAkB;IACnD,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC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C;IAClC,aAAa,EAAE,UAAU,CAAC;CAC3B;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CACxC,MAAM,0BAA0B,EAChC,kBAAkB,CAwMnB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,0BAA0B,GAC1C,kBAAkB,CAEpB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,0BAA0B,GAC1C,OAAO,CAET;AAED;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAC9C,MAAM,EACN,MAAM,0BAA0B,CAOjC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,oCAAoC,CAClD,aAAa,EAAE,MAAM,GACpB,MAAM,0BAA0B,GAAG,SAAS,CAE9C"}
@@ -0,0 +1,31 @@
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
+ CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY",
28
+ AMAZON_CRED = "AMAZON_CRED"
29
+ }
30
+ export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-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';
31
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,oBAAY,cAAc;IAExB,WAAW,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GACR,WAAW,GACX,aAAa,GACb,aAAa,GACb,sBAAsB,CAAC"}
@@ -0,0 +1,30 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,95 @@
1
+ import { z } from '@hono/zod-openapi';
2
+ export declare const webhookExecutionResponseSchema: z.ZodObject<{
3
+ executionId: z.ZodNumber;
4
+ success: z.ZodBoolean;
5
+ data: z.ZodOptional<z.ZodUnknown>;
6
+ error: z.ZodOptional<z.ZodString>;
7
+ webhook: z.ZodObject<{
8
+ userId: z.ZodString;
9
+ path: z.ZodString;
10
+ triggeredAt: z.ZodString;
11
+ method: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ path: string;
14
+ userId: string;
15
+ triggeredAt: string;
16
+ method: string;
17
+ }, {
18
+ path: string;
19
+ userId: string;
20
+ triggeredAt: string;
21
+ method: string;
22
+ }>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ success: boolean;
25
+ executionId: number;
26
+ webhook: {
27
+ path: string;
28
+ userId: string;
29
+ triggeredAt: string;
30
+ method: string;
31
+ };
32
+ error?: string | undefined;
33
+ data?: unknown;
34
+ }, {
35
+ success: boolean;
36
+ executionId: number;
37
+ webhook: {
38
+ path: string;
39
+ userId: string;
40
+ triggeredAt: string;
41
+ method: string;
42
+ };
43
+ error?: string | undefined;
44
+ data?: unknown;
45
+ }>;
46
+ export declare const webhookResponseSchema: z.ZodObject<{
47
+ challenge: z.ZodOptional<z.ZodString>;
48
+ executionId: z.ZodOptional<z.ZodNumber>;
49
+ success: z.ZodOptional<z.ZodBoolean>;
50
+ data: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodUndefined]>>;
51
+ error: z.ZodOptional<z.ZodString>;
52
+ webhook: z.ZodOptional<z.ZodObject<{
53
+ userId: z.ZodString;
54
+ path: z.ZodString;
55
+ triggeredAt: z.ZodString;
56
+ method: z.ZodString;
57
+ }, "strip", z.ZodTypeAny, {
58
+ path: string;
59
+ userId: string;
60
+ triggeredAt: string;
61
+ method: string;
62
+ }, {
63
+ path: string;
64
+ userId: string;
65
+ triggeredAt: string;
66
+ method: string;
67
+ }>>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ error?: string | undefined;
70
+ challenge?: string | undefined;
71
+ success?: boolean | undefined;
72
+ executionId?: number | undefined;
73
+ data?: Record<string, unknown> | undefined;
74
+ webhook?: {
75
+ path: string;
76
+ userId: string;
77
+ triggeredAt: string;
78
+ method: string;
79
+ } | undefined;
80
+ }, {
81
+ error?: string | undefined;
82
+ challenge?: string | undefined;
83
+ success?: boolean | undefined;
84
+ executionId?: number | undefined;
85
+ data?: Record<string, unknown> | undefined;
86
+ webhook?: {
87
+ path: string;
88
+ userId: string;
89
+ triggeredAt: string;
90
+ method: string;
91
+ } | undefined;
92
+ }>;
93
+ export type WebhookResponse = z.infer<typeof webhookResponseSchema>;
94
+ export type WebhookExecutionResponse = z.infer<typeof webhookExecutionResponseSchema>;
95
+ //# sourceMappingURL=webhook-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook-schema.d.ts","sourceRoot":"","sources":["../src/webhook-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAeL,CAAC;AAGvC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BL,CAAC;AAC9B,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bubblelab/shared-schemas",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",
@@ -34,7 +34,7 @@
34
34
  "vitest": "^2.1.8"
35
35
  },
36
36
  "scripts": {
37
- "build": "tsup",
37
+ "build": "tsup && tsc --emitDeclarationOnly",
38
38
  "dev": "tsc --watch",
39
39
  "typecheck": "tsc --noEmit",
40
40
  "lint": "eslint src/**/*.ts",