@bubblelab/bubble-core 0.1.210 → 0.1.212

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 (130) hide show
  1. package/dist/bubble-bundle.d.ts +189 -168
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +4 -0
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubbles/service-bubble/agi-inc.d.ts +112 -112
  6. package/dist/bubbles/service-bubble/ai-agent-slack-tools.d.ts.map +1 -1
  7. package/dist/bubbles/service-bubble/ai-agent-slack-tools.js +15 -1
  8. package/dist/bubbles/service-bubble/ai-agent-slack-tools.js.map +1 -1
  9. package/dist/bubbles/service-bubble/ai-agent.d.ts +16 -16
  10. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  11. package/dist/bubbles/service-bubble/ai-agent.js +2 -1
  12. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  13. package/dist/bubbles/service-bubble/airtable.d.ts +130 -130
  14. package/dist/bubbles/service-bubble/apify/apify.d.ts +8 -8
  15. package/dist/bubbles/service-bubble/ashby/ashby.d.ts +120 -120
  16. package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +68 -68
  17. package/dist/bubbles/service-bubble/assembled/assembled.d.ts +489 -0
  18. package/dist/bubbles/service-bubble/assembled/assembled.d.ts.map +1 -0
  19. package/dist/bubbles/service-bubble/assembled/assembled.js +363 -0
  20. package/dist/bubbles/service-bubble/assembled/assembled.js.map +1 -0
  21. package/dist/bubbles/service-bubble/assembled/assembled.schema.d.ts +460 -0
  22. package/dist/bubbles/service-bubble/assembled/assembled.schema.d.ts.map +1 -0
  23. package/dist/bubbles/service-bubble/assembled/assembled.schema.js +295 -0
  24. package/dist/bubbles/service-bubble/assembled/assembled.schema.js.map +1 -0
  25. package/dist/bubbles/service-bubble/assembled/assembled.utils.d.ts +12 -0
  26. package/dist/bubbles/service-bubble/assembled/assembled.utils.d.ts.map +1 -0
  27. package/dist/bubbles/service-bubble/assembled/assembled.utils.js +89 -0
  28. package/dist/bubbles/service-bubble/assembled/assembled.utils.js.map +1 -0
  29. package/dist/bubbles/service-bubble/assembled/index.d.ts +4 -0
  30. package/dist/bubbles/service-bubble/assembled/index.d.ts.map +1 -0
  31. package/dist/bubbles/service-bubble/assembled/index.js +4 -0
  32. package/dist/bubbles/service-bubble/assembled/index.js.map +1 -0
  33. package/dist/bubbles/service-bubble/attio/attio.d.ts +64 -64
  34. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +58 -58
  35. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +14 -14
  36. package/dist/bubbles/service-bubble/capability-pipeline.js +1 -1
  37. package/dist/bubbles/service-bubble/capability-pipeline.js.map +1 -1
  38. package/dist/bubbles/service-bubble/confluence/confluence.d.ts +43 -43
  39. package/dist/bubbles/service-bubble/confluence/confluence.schema.d.ts +4 -4
  40. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +20 -20
  41. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +150 -150
  42. package/dist/bubbles/service-bubble/eleven-labs.d.ts +48 -48
  43. package/dist/bubbles/service-bubble/firecrawl.d.ts +204 -204
  44. package/dist/bubbles/service-bubble/followupboss.d.ts +256 -256
  45. package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +44 -44
  46. package/dist/bubbles/service-bubble/fullenrich/fullenrich.schema.d.ts +124 -124
  47. package/dist/bubbles/service-bubble/github.d.ts +114 -114
  48. package/dist/bubbles/service-bubble/gmail.d.ts +140 -140
  49. package/dist/bubbles/service-bubble/google-calendar.d.ts +132 -132
  50. package/dist/bubbles/service-bubble/google-drive.d.ts +150 -150
  51. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +52 -52
  52. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +26 -26
  53. package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
  54. package/dist/bubbles/service-bubble/http.d.ts +4 -4
  55. package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts +20 -20
  56. package/dist/bubbles/service-bubble/insforge-db.d.ts +4 -4
  57. package/dist/bubbles/service-bubble/jira/jira.d.ts +58 -58
  58. package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +77 -77
  59. package/dist/bubbles/service-bubble/linear/linear.d.ts +44 -44
  60. package/dist/bubbles/service-bubble/linear/linear.schema.d.ts +15 -15
  61. package/dist/bubbles/service-bubble/notion/notion.d.ts +164 -164
  62. package/dist/bubbles/service-bubble/postgresql.d.ts +4 -4
  63. package/dist/bubbles/service-bubble/posthog/posthog.d.ts +24 -24
  64. package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +26 -26
  65. package/dist/bubbles/service-bubble/resend.d.ts +24 -24
  66. package/dist/bubbles/service-bubble/s3/s3.d.ts +44 -44
  67. package/dist/bubbles/service-bubble/s3/s3.schema.d.ts +14 -14
  68. package/dist/bubbles/service-bubble/sendsafely/sendsafely.d.ts +14 -14
  69. package/dist/bubbles/service-bubble/sendsafely/sendsafely.schema.d.ts +6 -6
  70. package/dist/bubbles/service-bubble/slack/slack-table-blocks.d.ts +4 -0
  71. package/dist/bubbles/service-bubble/slack/slack-table-blocks.d.ts.map +1 -1
  72. package/dist/bubbles/service-bubble/slack/slack-table-blocks.js +4 -0
  73. package/dist/bubbles/service-bubble/slack/slack-table-blocks.js.map +1 -1
  74. package/dist/bubbles/service-bubble/slack/slack.d.ts +276 -276
  75. package/dist/bubbles/service-bubble/slack/slack.utils.d.ts.map +1 -1
  76. package/dist/bubbles/service-bubble/slack/slack.utils.js +53 -7
  77. package/dist/bubbles/service-bubble/slack/slack.utils.js.map +1 -1
  78. package/dist/bubbles/service-bubble/storage.d.ts +88 -88
  79. package/dist/bubbles/service-bubble/storage.d.ts.map +1 -1
  80. package/dist/bubbles/service-bubble/storage.js +5 -3
  81. package/dist/bubbles/service-bubble/storage.js.map +1 -1
  82. package/dist/bubbles/service-bubble/stripe/stripe.d.ts +84 -84
  83. package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +59 -59
  84. package/dist/bubbles/service-bubble/telegram.d.ts +116 -116
  85. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +26 -26
  86. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +3 -3
  87. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.d.ts +4 -4
  88. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts +4 -4
  89. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts +4 -4
  90. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts +4 -4
  91. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +4 -4
  92. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +8 -8
  93. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +4 -4
  94. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +4 -4
  95. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
  96. package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +4 -4
  97. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +8 -8
  98. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +8 -8
  99. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +32 -32
  100. package/dist/bubbles/tool-bubble/list-airtable-bases-tool.d.ts +4 -4
  101. package/dist/bubbles/tool-bubble/list-airtable-tables-tool.d.ts +4 -4
  102. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  103. package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +8 -8
  104. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +4 -4
  105. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +4 -4
  106. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +8 -8
  107. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
  108. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +8 -8
  109. package/dist/bubbles/tool-bubble/tool-template.d.ts +4 -4
  110. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +8 -8
  111. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +4 -4
  112. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
  113. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +4 -4
  114. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +8 -8
  115. package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +4 -4
  116. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +8 -8
  117. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  118. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +4 -4
  119. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +8 -8
  120. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +90 -90
  121. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +8 -8
  122. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +6 -6
  123. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +14 -14
  124. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +4 -4
  125. package/dist/bubbles.json +927 -2
  126. package/dist/index.d.ts +1 -0
  127. package/dist/index.d.ts.map +1 -1
  128. package/dist/index.js +1 -0
  129. package/dist/index.js.map +1 -1
  130. package/package.json +2 -2
@@ -0,0 +1,295 @@
1
+ import { z } from 'zod';
2
+ // ─── Credentials ────────────────────────────────────────────────────────────
3
+ const credentialsField = z
4
+ .record(z.string())
5
+ .optional()
6
+ .describe('Credentials for authentication');
7
+ // ─── Shared field helpers ───────────────────────────────────────────────────
8
+ const paginationFields = {
9
+ limit: z
10
+ .number()
11
+ .optional()
12
+ .default(20)
13
+ .describe('Maximum number of results to return (default 20, max 500)'),
14
+ offset: z
15
+ .number()
16
+ .optional()
17
+ .default(0)
18
+ .describe('Number of results to skip for pagination'),
19
+ };
20
+ // ─── People schemas ─────────────────────────────────────────────────────────
21
+ const listPeopleSchema = z.object({
22
+ operation: z.literal('list_people').describe('List people/agents'),
23
+ credentials: credentialsField,
24
+ ...paginationFields,
25
+ channel: z
26
+ .string()
27
+ .optional()
28
+ .describe('Filter by channel (phone, email, chat, sms, social, back_office)'),
29
+ team: z.string().optional().describe('Filter by team name'),
30
+ site: z.string().optional().describe('Filter by site name'),
31
+ queue: z.string().optional().describe('Filter by queue name'),
32
+ search: z
33
+ .string()
34
+ .optional()
35
+ .describe('Search by name, email, or imported_id'),
36
+ });
37
+ const getPersonSchema = z.object({
38
+ operation: z.literal('get_person').describe('Get a single person by ID'),
39
+ credentials: credentialsField,
40
+ person_id: z.string().describe('The Assembled person ID'),
41
+ });
42
+ const createPersonSchema = z.object({
43
+ operation: z.literal('create_person').describe('Create a new person/agent'),
44
+ credentials: credentialsField,
45
+ first_name: z.string().describe('First name of the person'),
46
+ last_name: z.string().describe('Last name of the person'),
47
+ email: z.string().optional().describe('Email address of the person'),
48
+ imported_id: z
49
+ .string()
50
+ .optional()
51
+ .describe('External/imported ID for the person'),
52
+ channels: z
53
+ .array(z.string())
54
+ .optional()
55
+ .describe('Channels the person works on (phone, email, chat, sms, social, back_office)'),
56
+ teams: z
57
+ .array(z.string())
58
+ .optional()
59
+ .describe('Team names to assign the person to'),
60
+ queues: z
61
+ .array(z.string())
62
+ .optional()
63
+ .describe('Queue names to assign the person to'),
64
+ site: z.string().optional().describe('Site name for the person'),
65
+ timezone: z
66
+ .string()
67
+ .optional()
68
+ .describe('Timezone for the person (e.g. America/Los_Angeles)'),
69
+ roles: z
70
+ .array(z.string())
71
+ .optional()
72
+ .describe('Roles to assign (e.g. agent, admin)'),
73
+ staffable: z
74
+ .boolean()
75
+ .optional()
76
+ .default(true)
77
+ .describe('Whether the person can be scheduled'),
78
+ });
79
+ const updatePersonSchema = z.object({
80
+ operation: z.literal('update_person').describe('Update an existing person'),
81
+ credentials: credentialsField,
82
+ person_id: z.string().describe('The Assembled person ID to update'),
83
+ first_name: z.string().optional().describe('Updated first name'),
84
+ last_name: z.string().optional().describe('Updated last name'),
85
+ email: z.string().optional().describe('Updated email address'),
86
+ channels: z.array(z.string()).optional().describe('Updated channels list'),
87
+ teams: z.array(z.string()).optional().describe('Updated team names'),
88
+ queues: z.array(z.string()).optional().describe('Updated queue names'),
89
+ site: z.string().optional().describe('Updated site name'),
90
+ timezone: z.string().optional().describe('Updated timezone'),
91
+ staffable: z.boolean().optional().describe('Updated staffable status'),
92
+ });
93
+ // ─── Activities schemas ─────────────────────────────────────────────────────
94
+ const listActivitiesSchema = z.object({
95
+ operation: z
96
+ .literal('list_activities')
97
+ .describe('List activities/schedule events in a time window'),
98
+ credentials: credentialsField,
99
+ start_time: z
100
+ .number()
101
+ .describe('Start of time window as Unix timestamp (seconds)'),
102
+ end_time: z
103
+ .number()
104
+ .describe('End of time window as Unix timestamp (seconds)'),
105
+ agent_ids: z
106
+ .array(z.string())
107
+ .optional()
108
+ .describe('Filter by specific agent IDs'),
109
+ queue: z.string().optional().describe('Filter by queue name'),
110
+ include_agents: z
111
+ .boolean()
112
+ .optional()
113
+ .default(false)
114
+ .describe('Include agent details in response'),
115
+ });
116
+ const createActivitySchema = z.object({
117
+ operation: z
118
+ .literal('create_activity')
119
+ .describe('Create a new activity/schedule event'),
120
+ credentials: credentialsField,
121
+ agent_id: z.string().describe('Agent ID to assign the activity to'),
122
+ type_id: z.string().describe('Activity type ID'),
123
+ start_time: z.number().describe('Activity start as Unix timestamp (seconds)'),
124
+ end_time: z.number().describe('Activity end as Unix timestamp (seconds)'),
125
+ channels: z
126
+ .array(z.string())
127
+ .optional()
128
+ .describe('Channels for this activity (phone, email, chat, etc.)'),
129
+ description: z.string().optional().describe('Description of the activity'),
130
+ allow_conflicts: z
131
+ .boolean()
132
+ .optional()
133
+ .default(false)
134
+ .describe('Whether to allow overlapping activities'),
135
+ });
136
+ const deleteActivitiesSchema = z.object({
137
+ operation: z
138
+ .literal('delete_activities')
139
+ .describe('Delete activities for specified agents within a time window'),
140
+ credentials: credentialsField,
141
+ agent_ids: z
142
+ .array(z.string())
143
+ .describe('Agent IDs whose activities to delete'),
144
+ start_time: z
145
+ .number()
146
+ .describe('Start of deletion window as Unix timestamp (seconds)'),
147
+ end_time: z
148
+ .number()
149
+ .describe('End of deletion window as Unix timestamp (seconds)'),
150
+ });
151
+ // ─── Time Off schemas ───────────────────────────────────────────────────────
152
+ const createTimeOffSchema = z.object({
153
+ operation: z.literal('create_time_off').describe('Create a time off request'),
154
+ credentials: credentialsField,
155
+ agent_id: z.string().describe('Agent ID requesting time off'),
156
+ start_time: z.number().describe('Time off start as Unix timestamp (seconds)'),
157
+ end_time: z.number().describe('Time off end as Unix timestamp (seconds)'),
158
+ type_id: z
159
+ .string()
160
+ .optional()
161
+ .describe('Activity type ID for the time off (must be a time-off type)'),
162
+ status: z
163
+ .enum(['approved', 'pending'])
164
+ .optional()
165
+ .default('pending')
166
+ .describe('Initial status of the time off request'),
167
+ notes: z.string().optional().describe('Notes for the time off request'),
168
+ });
169
+ const listTimeOffSchema = z.object({
170
+ operation: z.literal('list_time_off').describe('List time off requests'),
171
+ credentials: credentialsField,
172
+ ...paginationFields,
173
+ agent_ids: z.array(z.string()).optional().describe('Filter by agent IDs'),
174
+ status: z
175
+ .enum(['approved', 'pending', 'denied', 'cancelled'])
176
+ .optional()
177
+ .describe('Filter by time off request status'),
178
+ });
179
+ const cancelTimeOffSchema = z.object({
180
+ operation: z.literal('cancel_time_off').describe('Cancel a time off request'),
181
+ credentials: credentialsField,
182
+ time_off_id: z.string().describe('ID of the time off request to cancel'),
183
+ });
184
+ // ─── Filter schemas (queues, teams) ─────────────────────────────────────────
185
+ const listQueuesSchema = z.object({
186
+ operation: z.literal('list_queues').describe('List all queues'),
187
+ credentials: credentialsField,
188
+ });
189
+ const listTeamsSchema = z.object({
190
+ operation: z.literal('list_teams').describe('List all teams'),
191
+ credentials: credentialsField,
192
+ });
193
+ // ─── Combined Params Schema ─────────────────────────────────────────────────
194
+ export const AssembledParamsSchema = z.discriminatedUnion('operation', [
195
+ listPeopleSchema,
196
+ getPersonSchema,
197
+ createPersonSchema,
198
+ updatePersonSchema,
199
+ listActivitiesSchema,
200
+ createActivitySchema,
201
+ deleteActivitiesSchema,
202
+ createTimeOffSchema,
203
+ listTimeOffSchema,
204
+ cancelTimeOffSchema,
205
+ listQueuesSchema,
206
+ listTeamsSchema,
207
+ ]);
208
+ // ─── Result Schemas ─────────────────────────────────────────────────────────
209
+ const personResultSchema = z.object({
210
+ operation: z.literal('list_people'),
211
+ success: z.boolean(),
212
+ error: z.string(),
213
+ people: z.array(z.record(z.unknown())).optional(),
214
+ total: z.number().optional(),
215
+ });
216
+ const getPersonResultSchema = z.object({
217
+ operation: z.literal('get_person'),
218
+ success: z.boolean(),
219
+ error: z.string(),
220
+ person: z.record(z.unknown()).optional(),
221
+ });
222
+ const createPersonResultSchema = z.object({
223
+ operation: z.literal('create_person'),
224
+ success: z.boolean(),
225
+ error: z.string(),
226
+ person: z.record(z.unknown()).optional(),
227
+ });
228
+ const updatePersonResultSchema = z.object({
229
+ operation: z.literal('update_person'),
230
+ success: z.boolean(),
231
+ error: z.string(),
232
+ person: z.record(z.unknown()).optional(),
233
+ });
234
+ const listActivitiesResultSchema = z.object({
235
+ operation: z.literal('list_activities'),
236
+ success: z.boolean(),
237
+ error: z.string(),
238
+ activities: z.record(z.record(z.unknown())).optional(),
239
+ agents: z.record(z.record(z.unknown())).optional(),
240
+ });
241
+ const createActivityResultSchema = z.object({
242
+ operation: z.literal('create_activity'),
243
+ success: z.boolean(),
244
+ error: z.string(),
245
+ activity: z.record(z.unknown()).optional(),
246
+ });
247
+ const deleteActivitiesResultSchema = z.object({
248
+ operation: z.literal('delete_activities'),
249
+ success: z.boolean(),
250
+ error: z.string(),
251
+ });
252
+ const createTimeOffResultSchema = z.object({
253
+ operation: z.literal('create_time_off'),
254
+ success: z.boolean(),
255
+ error: z.string(),
256
+ time_off: z.record(z.unknown()).optional(),
257
+ });
258
+ const listTimeOffResultSchema = z.object({
259
+ operation: z.literal('list_time_off'),
260
+ success: z.boolean(),
261
+ error: z.string(),
262
+ requests: z.array(z.record(z.unknown())).optional(),
263
+ });
264
+ const cancelTimeOffResultSchema = z.object({
265
+ operation: z.literal('cancel_time_off'),
266
+ success: z.boolean(),
267
+ error: z.string(),
268
+ });
269
+ const listQueuesResultSchema = z.object({
270
+ operation: z.literal('list_queues'),
271
+ success: z.boolean(),
272
+ error: z.string(),
273
+ queues: z.array(z.record(z.unknown())).optional(),
274
+ });
275
+ const listTeamsResultSchema = z.object({
276
+ operation: z.literal('list_teams'),
277
+ success: z.boolean(),
278
+ error: z.string(),
279
+ teams: z.array(z.record(z.unknown())).optional(),
280
+ });
281
+ export const AssembledResultSchema = z.discriminatedUnion('operation', [
282
+ personResultSchema,
283
+ getPersonResultSchema,
284
+ createPersonResultSchema,
285
+ updatePersonResultSchema,
286
+ listActivitiesResultSchema,
287
+ createActivityResultSchema,
288
+ deleteActivitiesResultSchema,
289
+ createTimeOffResultSchema,
290
+ listTimeOffResultSchema,
291
+ cancelTimeOffResultSchema,
292
+ listQueuesResultSchema,
293
+ listTeamsResultSchema,
294
+ ]);
295
+ //# sourceMappingURL=assembled.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assembled.schema.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/assembled/assembled.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+EAA+E;AAE/E,MAAM,gBAAgB,GAAG,CAAC;KACvB,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;KAClB,QAAQ,EAAE;KACV,QAAQ,CAAC,gCAAgC,CAAC,CAAC;AAE9C,+EAA+E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AAC;IACtC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IAClC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,kBAAkB,CAAC,WAAW,EAAE;IACrE,kBAAkB;IAClB,qBAAqB;IACrB,wBAAwB;IACxB,wBAAwB;IACxB,0BAA0B;IAC1B,0BAA0B;IAC1B,4BAA4B;IAC5B,yBAAyB;IACzB,uBAAuB;IACvB,yBAAyB;IACzB,sBAAsB;IACtB,qBAAqB;CACtB,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export interface AssembledRequestOptions {
2
+ method: 'GET' | 'POST' | 'PATCH' | 'DELETE';
3
+ path: string;
4
+ apiKey: string;
5
+ body?: Record<string, unknown>;
6
+ queryParams?: Record<string, string | number | boolean | undefined>;
7
+ }
8
+ /**
9
+ * Make an authenticated request to the Assembled API.
10
+ */
11
+ export declare function makeAssembledRequest<T = unknown>(options: AssembledRequestOptions): Promise<T>;
12
+ //# sourceMappingURL=assembled.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assembled.utils.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/assembled/assembled.utils.ts"],"names":[],"mappings":"AAqCA,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;CACrE;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,CAAC,GAAG,OAAO,EACpD,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,CAAC,CAAC,CA2DZ"}
@@ -0,0 +1,89 @@
1
+ const BASE_URL = 'https://api.assembledhq.com/v0';
2
+ const REQUEST_TIMEOUT_MS = 30_000;
3
+ /**
4
+ * Builds Basic Auth header from an Assembled API key.
5
+ * Assembled uses the API key as the Basic Auth username with no password.
6
+ */
7
+ function buildAuthHeader(apiKey) {
8
+ return `Basic ${Buffer.from(`${apiKey}:`).toString('base64')}`;
9
+ }
10
+ /**
11
+ * Enhance error messages with helpful hints based on HTTP status
12
+ */
13
+ function enhanceErrorMessage(status, body) {
14
+ let detail = body;
15
+ try {
16
+ const parsed = JSON.parse(body);
17
+ detail = parsed.error || parsed.message || parsed.detail || body;
18
+ }
19
+ catch {
20
+ // keep raw body
21
+ }
22
+ switch (status) {
23
+ case 401:
24
+ return `Authentication failed (HTTP 401): Invalid API key. Ensure your Assembled API key starts with "sk_live_". ${detail}`;
25
+ case 403:
26
+ return `Access denied (HTTP 403): Your API key does not have permission for this operation. ${detail}`;
27
+ case 404:
28
+ return `Not found (HTTP 404): The requested resource does not exist. ${detail}`;
29
+ case 429:
30
+ return `Rate limited (HTTP 429): Too many requests. Assembled allows 300 requests/min. ${detail}`;
31
+ default:
32
+ return `HTTP ${status}: ${detail}`;
33
+ }
34
+ }
35
+ /**
36
+ * Make an authenticated request to the Assembled API.
37
+ */
38
+ export async function makeAssembledRequest(options) {
39
+ const { method, path, apiKey, body, queryParams } = options;
40
+ // Build URL with query params
41
+ const url = new URL(`${BASE_URL}${path}`);
42
+ if (queryParams) {
43
+ for (const [key, value] of Object.entries(queryParams)) {
44
+ if (value !== undefined && value !== null && value !== '') {
45
+ url.searchParams.set(key, String(value));
46
+ }
47
+ }
48
+ }
49
+ const controller = new AbortController();
50
+ const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS);
51
+ try {
52
+ const headers = {
53
+ Authorization: buildAuthHeader(apiKey),
54
+ 'Content-Type': 'application/json',
55
+ };
56
+ const fetchOptions = {
57
+ method,
58
+ headers,
59
+ signal: controller.signal,
60
+ };
61
+ if (body && (method === 'POST' || method === 'PATCH')) {
62
+ fetchOptions.body = JSON.stringify(body);
63
+ }
64
+ // For DELETE with body, we still need to send it
65
+ if (body && method === 'DELETE') {
66
+ fetchOptions.body = JSON.stringify(body);
67
+ }
68
+ const response = await fetch(url.toString(), fetchOptions);
69
+ if (!response.ok) {
70
+ const errorBody = await response.text();
71
+ throw new Error(enhanceErrorMessage(response.status, errorBody));
72
+ }
73
+ // Some DELETE operations may return empty body
74
+ const text = await response.text();
75
+ if (!text)
76
+ return {};
77
+ return JSON.parse(text);
78
+ }
79
+ catch (error) {
80
+ if (error instanceof Error && error.name === 'AbortError') {
81
+ throw new Error(`Request to Assembled API timed out after ${REQUEST_TIMEOUT_MS / 1000}s`);
82
+ }
83
+ throw error;
84
+ }
85
+ finally {
86
+ clearTimeout(timeout);
87
+ }
88
+ }
89
+ //# sourceMappingURL=assembled.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assembled.utils.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/assembled/assembled.utils.ts"],"names":[],"mappings":"AAAA,MAAM,QAAQ,GAAG,gCAAg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AAS,CAAC,CAAC,CAAC;QACnE,CAAC;QAED,+CAA+C;QAC/C,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnC,IAAI,CAAC,IAAI;YAAE,OAAO,EAAO,CAAC;QAE1B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAM,CAAC;IAC/B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;YAC1D,MAAM,IAAI,KAAK,CACb,4CAA4C,kBAAkB,GAAG,IAAI,GAAG,CACzE,CAAC;QACJ,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;YAAS,CAAC;QACT,YAAY,CAAC,OAAO,CAAC,CAAC;IACxB,CAAC;AACH,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { AssembledBubble } from './assembled.js';
2
+ export { AssembledParamsSchema, AssembledResultSchema, type AssembledParams, type AssembledParamsInput, type AssembledResult, } from './assembled.schema.js';
3
+ export { makeAssembledRequest } from './assembled.utils.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/assembled/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,eAAe,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { AssembledBubble } from './assembled.js';
2
+ export { AssembledParamsSchema, AssembledResultSchema, } from './assembled.schema.js';
3
+ export { makeAssembledRequest } from './assembled.utils.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/assembled/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EACL,qBAAqB,EACrB,qBAAqB,GAItB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC"}