@bubblelab/bubble-core 0.1.169 → 0.1.172

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 (93) hide show
  1. package/dist/bubble-bundle.d.ts +161 -116
  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/ai-agent.d.ts +108 -108
  6. package/dist/bubbles/service-bubble/airtable.d.ts +100 -100
  7. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +2 -2
  8. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +8 -8
  9. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +2 -2
  10. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +22 -22
  11. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +38 -38
  12. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +52 -52
  13. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +6 -6
  14. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +12 -12
  15. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +12 -12
  16. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +126 -126
  17. package/dist/bubbles/service-bubble/apify/apify.d.ts +22 -22
  18. package/dist/bubbles/service-bubble/ashby/ashby.d.ts +114 -114
  19. package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +2 -2
  20. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +5 -5
  21. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +1 -1
  22. package/dist/bubbles/service-bubble/capability-pipeline.js +2 -2
  23. package/dist/bubbles/service-bubble/capability-pipeline.js.map +1 -1
  24. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +78 -78
  25. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +24 -24
  26. package/dist/bubbles/service-bubble/firecrawl.d.ts +278 -278
  27. package/dist/bubbles/service-bubble/followupboss.d.ts +4 -4
  28. package/dist/bubbles/service-bubble/github.d.ts +12 -12
  29. package/dist/bubbles/service-bubble/gmail.d.ts +104 -104
  30. package/dist/bubbles/service-bubble/google-calendar.d.ts +80 -80
  31. package/dist/bubbles/service-bubble/google-drive.d.ts +40 -40
  32. package/dist/bubbles/service-bubble/http.d.ts +6 -6
  33. package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
  34. package/dist/bubbles/service-bubble/jira/jira.d.ts +16 -16
  35. package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +36 -36
  36. package/dist/bubbles/service-bubble/linear/index.d.ts +5 -0
  37. package/dist/bubbles/service-bubble/linear/index.d.ts.map +1 -0
  38. package/dist/bubbles/service-bubble/linear/index.js +5 -0
  39. package/dist/bubbles/service-bubble/linear/index.js.map +1 -0
  40. package/dist/bubbles/service-bubble/linear/linear.d.ts +1695 -0
  41. package/dist/bubbles/service-bubble/linear/linear.d.ts.map +1 -0
  42. package/dist/bubbles/service-bubble/linear/linear.integration.flow.d.ts +33 -0
  43. package/dist/bubbles/service-bubble/linear/linear.integration.flow.d.ts.map +1 -0
  44. package/dist/bubbles/service-bubble/linear/linear.integration.flow.js +432 -0
  45. package/dist/bubbles/service-bubble/linear/linear.integration.flow.js.map +1 -0
  46. package/dist/bubbles/service-bubble/linear/linear.js +463 -0
  47. package/dist/bubbles/service-bubble/linear/linear.js.map +1 -0
  48. package/dist/bubbles/service-bubble/linear/linear.schema.d.ts +2059 -0
  49. package/dist/bubbles/service-bubble/linear/linear.schema.d.ts.map +1 -0
  50. package/dist/bubbles/service-bubble/linear/linear.schema.js +444 -0
  51. package/dist/bubbles/service-bubble/linear/linear.schema.js.map +1 -0
  52. package/dist/bubbles/service-bubble/linear/linear.utils.d.ts +24 -0
  53. package/dist/bubbles/service-bubble/linear/linear.utils.d.ts.map +1 -0
  54. package/dist/bubbles/service-bubble/linear/linear.utils.js +288 -0
  55. package/dist/bubbles/service-bubble/linear/linear.utils.js.map +1 -0
  56. package/dist/bubbles/service-bubble/notion/notion.d.ts +272 -272
  57. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +8 -8
  58. package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
  59. package/dist/bubbles/service-bubble/posthog/posthog.d.ts +9 -9
  60. package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +15 -15
  61. package/dist/bubbles/service-bubble/resend.d.ts +4 -4
  62. package/dist/bubbles/service-bubble/sendsafely/sendsafely.d.ts +4 -4
  63. package/dist/bubbles/service-bubble/slack/slack.d.ts +296 -296
  64. package/dist/bubbles/service-bubble/stripe/stripe.d.ts +39 -39
  65. package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +28 -28
  66. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +6 -6
  67. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +8 -8
  68. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +10 -10
  69. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +385 -385
  70. package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +8 -8
  71. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +10 -10
  72. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +10 -10
  73. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
  74. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +60 -60
  75. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +134 -134
  76. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +4 -4
  77. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
  78. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +8 -8
  79. package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +8 -8
  80. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +20 -20
  81. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +22 -22
  82. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +10 -10
  83. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +44 -44
  84. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +36 -36
  85. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +8 -8
  86. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +44 -44
  87. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +10 -10
  88. package/dist/bubbles.json +1375 -10
  89. package/dist/index.d.ts +2 -0
  90. package/dist/index.d.ts.map +1 -1
  91. package/dist/index.js +1 -0
  92. package/dist/index.js.map +1 -1
  93. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear.schema.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/linear/linear.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AA8B3D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;gCAOS,CAAC;AAEvC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;gCAOH,CAAC;AAE3B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;gCAOH,CAAC;AAE9B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;gCAeF,CAAC;AAErC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;gCAOH,CAAC;AAE5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCASH,CAAC;AAE9B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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0,0 +1,444 @@
1
+ import { z } from 'zod';
2
+ import { CredentialType } from '@bubblelab/shared-schemas';
3
+ // ============================================================================
4
+ // HELPER SCHEMAS
5
+ // ============================================================================
6
+ // Labels modification schema for update operation
7
+ const LabelsModificationSchema = z
8
+ .object({
9
+ add: z
10
+ .array(z.string())
11
+ .optional()
12
+ .describe('Label IDs or names to add to the issue'),
13
+ remove: z
14
+ .array(z.string())
15
+ .optional()
16
+ .describe('Label IDs or names to remove from the issue'),
17
+ })
18
+ .describe('Label modifications - use add/remove for incremental changes');
19
+ // Credentials field (common across all operations)
20
+ const credentialsField = z
21
+ .record(z.nativeEnum(CredentialType), z.string())
22
+ .optional()
23
+ .describe('Credentials (injected at runtime)');
24
+ // ============================================================================
25
+ // ISSUE DATA SCHEMAS (for results)
26
+ // ============================================================================
27
+ export const LinearUserSchema = z
28
+ .object({
29
+ id: z.string().describe('User ID'),
30
+ name: z.string().optional().describe('User display name'),
31
+ email: z.string().optional().describe('User email address'),
32
+ })
33
+ .passthrough()
34
+ .describe('Linear user information');
35
+ export const LinearTeamSchema = z
36
+ .object({
37
+ id: z.string().describe('Team ID'),
38
+ name: z.string().describe('Team name'),
39
+ key: z.string().describe('Team key (e.g., "LIN")'),
40
+ })
41
+ .passthrough()
42
+ .describe('Linear team');
43
+ export const LinearProjectSchema = z
44
+ .object({
45
+ id: z.string().describe('Project ID'),
46
+ name: z.string().describe('Project name'),
47
+ state: z.string().optional().describe('Project state'),
48
+ })
49
+ .passthrough()
50
+ .describe('Linear project');
51
+ export const LinearWorkflowStateSchema = z
52
+ .object({
53
+ id: z.string().describe('Workflow state ID'),
54
+ name: z
55
+ .string()
56
+ .describe('State name (e.g., "Todo", "In Progress", "Done")'),
57
+ type: z
58
+ .string()
59
+ .optional()
60
+ .describe('State type (backlog, unstarted, started, completed, cancelled)'),
61
+ color: z.string().optional().describe('State color'),
62
+ })
63
+ .passthrough()
64
+ .describe('Linear workflow state');
65
+ export const LinearLabelSchema = z
66
+ .object({
67
+ id: z.string().describe('Label ID'),
68
+ name: z.string().describe('Label name'),
69
+ color: z.string().optional().describe('Label color'),
70
+ })
71
+ .passthrough()
72
+ .describe('Linear label');
73
+ export const LinearCommentSchema = z
74
+ .object({
75
+ id: z.string().describe('Comment ID'),
76
+ body: z.string().optional().describe('Comment body (markdown)'),
77
+ user: LinearUserSchema.nullable().optional().describe('Comment author'),
78
+ createdAt: z.string().optional().describe('Creation timestamp'),
79
+ updatedAt: z.string().optional().describe('Last update timestamp'),
80
+ })
81
+ .passthrough()
82
+ .describe('Linear comment');
83
+ export const LinearIssueSchema = z
84
+ .object({
85
+ id: z.string().optional().describe('Issue ID'),
86
+ identifier: z
87
+ .string()
88
+ .optional()
89
+ .describe('Issue identifier (e.g., "LIN-123")'),
90
+ title: z.string().optional().describe('Issue title'),
91
+ description: z
92
+ .string()
93
+ .nullable()
94
+ .optional()
95
+ .describe('Issue description (markdown)'),
96
+ priority: z
97
+ .number()
98
+ .optional()
99
+ .describe('Priority (0=No priority, 1=Urgent, 2=High, 3=Medium, 4=Low)'),
100
+ priorityLabel: z
101
+ .string()
102
+ .optional()
103
+ .describe('Priority label (e.g., "High")'),
104
+ state: LinearWorkflowStateSchema.optional().describe('Current state'),
105
+ assignee: LinearUserSchema.nullable().optional().describe('Assigned user'),
106
+ team: LinearTeamSchema.optional().describe('Team'),
107
+ project: LinearProjectSchema.nullable().optional().describe('Project'),
108
+ labels: z
109
+ .object({
110
+ nodes: z.array(LinearLabelSchema).optional(),
111
+ })
112
+ .optional()
113
+ .describe('Issue labels'),
114
+ createdAt: z.string().optional().describe('Creation timestamp'),
115
+ updatedAt: z.string().optional().describe('Last update timestamp'),
116
+ dueDate: z.string().nullable().optional().describe('Due date (YYYY-MM-DD)'),
117
+ url: z.string().optional().describe('Issue URL'),
118
+ })
119
+ .passthrough()
120
+ .describe('Linear issue');
121
+ // ============================================================================
122
+ // PARAMETERS SCHEMA (discriminated union)
123
+ // ============================================================================
124
+ export const LinearParamsSchema = z.discriminatedUnion('operation', [
125
+ // -------------------------------------------------------------------------
126
+ // CORE OPERATION 1: search - Search/filter issues
127
+ // -------------------------------------------------------------------------
128
+ z.object({
129
+ operation: z
130
+ .literal('search')
131
+ .describe('Search for issues with text query and filters'),
132
+ query: z
133
+ .string()
134
+ .optional()
135
+ .describe('Text to search for in issue titles and descriptions'),
136
+ teamId: z.string().optional().describe('Filter by team ID'),
137
+ assigneeId: z.string().optional().describe('Filter by assignee user ID'),
138
+ stateId: z.string().optional().describe('Filter by workflow state ID'),
139
+ labelId: z.string().optional().describe('Filter by label ID'),
140
+ projectId: z.string().optional().describe('Filter by project ID'),
141
+ priority: z
142
+ .number()
143
+ .min(0)
144
+ .max(4)
145
+ .optional()
146
+ .describe('Filter by priority (0=No priority, 1=Urgent, 2=High, 3=Medium, 4=Low)'),
147
+ limit: z
148
+ .number()
149
+ .min(1)
150
+ .max(100)
151
+ .optional()
152
+ .default(50)
153
+ .describe('Maximum number of issues to return (1-100)'),
154
+ includeArchived: z
155
+ .boolean()
156
+ .optional()
157
+ .default(false)
158
+ .describe('Include archived issues in results'),
159
+ credentials: credentialsField,
160
+ }),
161
+ // -------------------------------------------------------------------------
162
+ // CORE OPERATION 2: get - Get issue details
163
+ // -------------------------------------------------------------------------
164
+ z.object({
165
+ operation: z.literal('get').describe('Get details for a specific issue'),
166
+ identifier: z
167
+ .string()
168
+ .min(1, 'Issue identifier is required')
169
+ .describe('Issue identifier (e.g., "LIN-123") or issue ID'),
170
+ credentials: credentialsField,
171
+ }),
172
+ // -------------------------------------------------------------------------
173
+ // CORE OPERATION 3: create - Create new issue
174
+ // -------------------------------------------------------------------------
175
+ z.object({
176
+ operation: z.literal('create').describe('Create a new issue in Linear'),
177
+ teamId: z
178
+ .string()
179
+ .min(1, 'Team ID is required')
180
+ .describe('Team ID to create the issue in'),
181
+ title: z.string().min(1, 'Title is required').describe('Issue title'),
182
+ description: z
183
+ .string()
184
+ .optional()
185
+ .describe('Issue description (supports markdown)'),
186
+ assigneeId: z
187
+ .string()
188
+ .optional()
189
+ .describe('Assignee user ID. Leave empty for unassigned'),
190
+ priority: z
191
+ .number()
192
+ .min(0)
193
+ .max(4)
194
+ .optional()
195
+ .describe('Issue priority (0=No priority, 1=Urgent, 2=High, 3=Medium, 4=Low)'),
196
+ stateId: z
197
+ .string()
198
+ .optional()
199
+ .describe('Workflow state ID. If not set, uses the team default'),
200
+ stateName: z
201
+ .string()
202
+ .optional()
203
+ .describe('Workflow state name (e.g., "In Progress"). Resolved to ID automatically. Use this instead of stateId for convenience'),
204
+ labelIds: z.array(z.string()).optional().describe('Label IDs to apply'),
205
+ projectId: z.string().optional().describe('Project ID to associate with'),
206
+ dueDate: z.string().optional().describe('Due date in YYYY-MM-DD format'),
207
+ parentId: z.string().optional().describe('Parent issue ID for sub-issues'),
208
+ estimate: z.number().optional().describe('Issue estimate (points)'),
209
+ credentials: credentialsField,
210
+ }),
211
+ // -------------------------------------------------------------------------
212
+ // CORE OPERATION 4: update - Update existing issue
213
+ // -------------------------------------------------------------------------
214
+ z.object({
215
+ operation: z.literal('update').describe('Update an existing issue'),
216
+ id: z
217
+ .string()
218
+ .min(1, 'Issue ID is required')
219
+ .describe('Issue ID (UUID) or identifier (e.g., "LIN-123")'),
220
+ title: z.string().min(1).optional().describe('New issue title'),
221
+ description: z
222
+ .string()
223
+ .optional()
224
+ .describe('New description (supports markdown)'),
225
+ assigneeId: z
226
+ .string()
227
+ .nullable()
228
+ .optional()
229
+ .describe('New assignee user ID or null to unassign'),
230
+ priority: z
231
+ .number()
232
+ .min(0)
233
+ .max(4)
234
+ .optional()
235
+ .describe('New priority (0=No priority, 1=Urgent, 2=High, 3=Medium, 4=Low)'),
236
+ stateId: z.string().optional().describe('New workflow state ID'),
237
+ stateName: z
238
+ .string()
239
+ .optional()
240
+ .describe('New workflow state name (e.g., "Done"). Resolved to ID automatically'),
241
+ labels: LabelsModificationSchema.optional().describe('Label modifications'),
242
+ projectId: z
243
+ .string()
244
+ .nullable()
245
+ .optional()
246
+ .describe('New project ID or null to remove from project'),
247
+ dueDate: z
248
+ .string()
249
+ .nullable()
250
+ .optional()
251
+ .describe('New due date (YYYY-MM-DD) or null to clear'),
252
+ estimate: z
253
+ .number()
254
+ .nullable()
255
+ .optional()
256
+ .describe('New estimate (points) or null to clear'),
257
+ credentials: credentialsField,
258
+ }),
259
+ // -------------------------------------------------------------------------
260
+ // SUPPORTING OPERATION: list_teams
261
+ // -------------------------------------------------------------------------
262
+ z.object({
263
+ operation: z.literal('list_teams').describe('List all teams'),
264
+ credentials: credentialsField,
265
+ }),
266
+ // -------------------------------------------------------------------------
267
+ // SUPPORTING OPERATION: list_projects
268
+ // -------------------------------------------------------------------------
269
+ z.object({
270
+ operation: z
271
+ .literal('list_projects')
272
+ .describe('List projects, optionally filtered by team'),
273
+ teamId: z.string().optional().describe('Filter projects by team ID'),
274
+ limit: z
275
+ .number()
276
+ .min(1)
277
+ .max(100)
278
+ .optional()
279
+ .default(50)
280
+ .describe('Maximum number of projects to return'),
281
+ includeArchived: z
282
+ .boolean()
283
+ .optional()
284
+ .default(false)
285
+ .describe('Include archived projects'),
286
+ credentials: credentialsField,
287
+ }),
288
+ // -------------------------------------------------------------------------
289
+ // SUPPORTING OPERATION: list_workflow_states
290
+ // -------------------------------------------------------------------------
291
+ z.object({
292
+ operation: z
293
+ .literal('list_workflow_states')
294
+ .describe('List workflow states for a team'),
295
+ teamId: z
296
+ .string()
297
+ .min(1, 'Team ID is required')
298
+ .describe('Team ID to get workflow states for'),
299
+ credentials: credentialsField,
300
+ }),
301
+ // -------------------------------------------------------------------------
302
+ // SUPPORTING OPERATION: add_comment
303
+ // -------------------------------------------------------------------------
304
+ z.object({
305
+ operation: z.literal('add_comment').describe('Add a comment to an issue'),
306
+ issueId: z
307
+ .string()
308
+ .min(1, 'Issue ID is required')
309
+ .describe('Issue ID (UUID) or identifier (e.g., "LIN-123")'),
310
+ body: z
311
+ .string()
312
+ .min(1, 'Comment body is required')
313
+ .describe('Comment text (supports markdown)'),
314
+ credentials: credentialsField,
315
+ }),
316
+ // -------------------------------------------------------------------------
317
+ // SUPPORTING OPERATION: get_comments
318
+ // -------------------------------------------------------------------------
319
+ z.object({
320
+ operation: z.literal('get_comments').describe('Get comments for an issue'),
321
+ issueId: z
322
+ .string()
323
+ .min(1, 'Issue ID is required')
324
+ .describe('Issue ID (UUID) or identifier (e.g., "LIN-123")'),
325
+ limit: z
326
+ .number()
327
+ .min(1)
328
+ .max(100)
329
+ .optional()
330
+ .default(50)
331
+ .describe('Maximum number of comments to return'),
332
+ credentials: credentialsField,
333
+ }),
334
+ // -------------------------------------------------------------------------
335
+ // SUPPORTING OPERATION: list_labels
336
+ // -------------------------------------------------------------------------
337
+ z.object({
338
+ operation: z
339
+ .literal('list_labels')
340
+ .describe('List labels, optionally filtered by team'),
341
+ teamId: z.string().optional().describe('Filter labels by team ID'),
342
+ credentials: credentialsField,
343
+ }),
344
+ ]);
345
+ // ============================================================================
346
+ // RESULT SCHEMAS
347
+ // ============================================================================
348
+ export const LinearResultSchema = z.discriminatedUnion('operation', [
349
+ // search result
350
+ z.object({
351
+ operation: z.literal('search'),
352
+ success: z.boolean().describe('Whether the operation was successful'),
353
+ issues: z.array(LinearIssueSchema).optional().describe('Found issues'),
354
+ total: z.number().optional().describe('Total matching issues'),
355
+ error: z.string().describe('Error message if operation failed'),
356
+ }),
357
+ // get result
358
+ z.object({
359
+ operation: z.literal('get'),
360
+ success: z.boolean().describe('Whether the operation was successful'),
361
+ issue: LinearIssueSchema.optional().describe('Issue details'),
362
+ error: z.string().describe('Error message if operation failed'),
363
+ }),
364
+ // create result
365
+ z.object({
366
+ operation: z.literal('create'),
367
+ success: z.boolean().describe('Whether the operation was successful'),
368
+ issue: z
369
+ .object({
370
+ id: z.string().describe('Created issue ID'),
371
+ identifier: z.string().describe('Created issue identifier'),
372
+ url: z.string().optional().describe('Issue URL'),
373
+ })
374
+ .optional()
375
+ .describe('Created issue info'),
376
+ error: z.string().describe('Error message if operation failed'),
377
+ }),
378
+ // update result
379
+ z.object({
380
+ operation: z.literal('update'),
381
+ success: z.boolean().describe('Whether the operation was successful'),
382
+ issue: z
383
+ .object({
384
+ id: z.string().describe('Updated issue ID'),
385
+ identifier: z.string().describe('Updated issue identifier'),
386
+ })
387
+ .optional()
388
+ .describe('Updated issue info'),
389
+ error: z.string().describe('Error message if operation failed'),
390
+ }),
391
+ // list_teams result
392
+ z.object({
393
+ operation: z.literal('list_teams'),
394
+ success: z.boolean().describe('Whether the operation was successful'),
395
+ teams: z.array(LinearTeamSchema).optional().describe('Available teams'),
396
+ error: z.string().describe('Error message if operation failed'),
397
+ }),
398
+ // list_projects result
399
+ z.object({
400
+ operation: z.literal('list_projects'),
401
+ success: z.boolean().describe('Whether the operation was successful'),
402
+ projects: z
403
+ .array(LinearProjectSchema)
404
+ .optional()
405
+ .describe('Available projects'),
406
+ error: z.string().describe('Error message if operation failed'),
407
+ }),
408
+ // list_workflow_states result
409
+ z.object({
410
+ operation: z.literal('list_workflow_states'),
411
+ success: z.boolean().describe('Whether the operation was successful'),
412
+ states: z
413
+ .array(LinearWorkflowStateSchema)
414
+ .optional()
415
+ .describe('Workflow states'),
416
+ error: z.string().describe('Error message if operation failed'),
417
+ }),
418
+ // add_comment result
419
+ z.object({
420
+ operation: z.literal('add_comment'),
421
+ success: z.boolean().describe('Whether the operation was successful'),
422
+ comment: LinearCommentSchema.optional().describe('Created comment'),
423
+ error: z.string().describe('Error message if operation failed'),
424
+ }),
425
+ // get_comments result
426
+ z.object({
427
+ operation: z.literal('get_comments'),
428
+ success: z.boolean().describe('Whether the operation was successful'),
429
+ comments: z
430
+ .array(LinearCommentSchema)
431
+ .optional()
432
+ .describe('Issue comments'),
433
+ total: z.number().optional().describe('Total comments'),
434
+ error: z.string().describe('Error message if operation failed'),
435
+ }),
436
+ // list_labels result
437
+ z.object({
438
+ operation: z.literal('list_labels'),
439
+ success: z.boolean().describe('Whether the operation was successful'),
440
+ labels: z.array(LinearLabelSchema).optional().describe('Available labels'),
441
+ error: z.string().describe('Error message if operation failed'),
442
+ }),
443
+ ]);
444
+ //# sourceMappingURL=linear.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear.schema.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/linear/linear.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAE/E,kDAAkD;AAClD,MAAM,wBAAwB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACN,GAAG,EAAE,CAAC;SACH,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CAAC,wCAAwC,CAAC;IACrD,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CAAC,6CAA6C,CAAC;CAC3D,CAAC;KACD,QAAQ,CAAC,8DAA8D,CAAC,CAAC;AAE5E,mDAAmD;AACnD,MAAM,gBAAgB,GAAG,CAAC;KACvB,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;KAChD,QAAQ,EAAE;KACV,QAAQ,CAAC,mCAAmC,CAAC,CAAC;AAEjD,+EAA+E;AAC/E,mCAAmC;AACnC,+EAA+E;AAE/E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC9B,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,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AAmC,CAAC;KAChE,CAAC;IAEF,qBAAqB;IACrB,CAAC,CAAC,MAAM,CAAC;QACP,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;QACnC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QACrE,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;QAC1E,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;KAChE,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Linear GraphQL API utilities
3
+ */
4
+ /**
5
+ * Execute a GraphQL query against the Linear API
6
+ */
7
+ export declare function makeGraphQLRequest(accessToken: string, query: string, variables?: Record<string, unknown>): Promise<Record<string, unknown>>;
8
+ /**
9
+ * Enhance error messages with helpful hints
10
+ */
11
+ export declare function enhanceErrorMessage(errorText: string, statusCode: number, statusText: string): string;
12
+ export declare function buildSearchQuery(): string;
13
+ export declare function buildSearchByTextQuery(): string;
14
+ export declare function buildGetIssueQuery(): string;
15
+ export declare function buildCreateIssueMutation(): string;
16
+ export declare function buildUpdateIssueMutation(): string;
17
+ export declare function buildListTeamsQuery(): string;
18
+ export declare function buildListProjectsQuery(): string;
19
+ export declare function buildListWorkflowStatesQuery(): string;
20
+ export declare function buildAddCommentMutation(): string;
21
+ export declare function buildGetCommentsQuery(): string;
22
+ export declare function buildListLabelsQuery(): string;
23
+ export declare function buildGetViewerQuery(): string;
24
+ //# sourceMappingURL=linear.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear.utils.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/linear/linear.utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA6ClC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GACjB,MAAM,CA2BR;AAgDD,wBAAgB,gBAAgB,IAAI,MAAM,CAczC;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAW/C;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAQ3C;AAED,wBAAgB,wBAAwB,IAAI,MAAM,CAajD;AAED,wBAAgB,wBAAwB,IAAI,MAAM,CAYjD;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAY5C;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAY/C;AAED,wBAAgB,4BAA4B,IAAI,MAAM,CAarD;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAmBhD;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAoB9C;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAY7C;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAc5C"}