@credal/actions 0.0.1

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 (58) hide show
  1. package/README.md +32 -0
  2. package/dist/actions/actionMapper.d.ts +9 -0
  3. package/dist/actions/actionMapper.js +79 -0
  4. package/dist/actions/autogen/definitions.d.ts +5 -0
  5. package/dist/actions/autogen/definitions.js +132 -0
  6. package/dist/actions/autogen/templates.d.ts +11 -0
  7. package/dist/actions/autogen/templates.js +493 -0
  8. package/dist/actions/autogen/types.d.ts +482 -0
  9. package/dist/actions/autogen/types.js +153 -0
  10. package/dist/actions/definitions.js +35 -0
  11. package/dist/actions/groups.d.ts +6 -0
  12. package/dist/actions/groups.js +38 -0
  13. package/dist/actions/invoke.d.ts +8 -0
  14. package/dist/actions/invoke.js +20 -0
  15. package/dist/actions/invokeMapper.d.ts +9 -0
  16. package/dist/actions/invokeMapper.js +33 -0
  17. package/dist/actions/parse.d.ts +66 -0
  18. package/dist/actions/parse.js +201 -0
  19. package/dist/actions/providers/confluence/updatePage.d.ts +3 -0
  20. package/dist/actions/providers/confluence/updatePage.js +47 -0
  21. package/dist/actions/providers/credal/callCopilot.d.ts +3 -0
  22. package/dist/actions/providers/credal/callCopilot.js +31 -0
  23. package/dist/actions/providers/googlemaps/validateAddress.d.ts +3 -0
  24. package/dist/actions/providers/googlemaps/validateAddress.js +30 -0
  25. package/dist/actions/providers/jira/createJiraTicket.d.ts +3 -0
  26. package/dist/actions/providers/jira/createJiraTicket.js +34 -0
  27. package/dist/actions/providers/jira/createTicket.d.ts +3 -0
  28. package/dist/actions/providers/jira/createTicket.js +34 -0
  29. package/dist/actions/providers/math/add.d.ts +3 -0
  30. package/dist/actions/providers/math/add.js +17 -0
  31. package/dist/actions/providers/math/index.d.ts +1 -0
  32. package/dist/actions/providers/math/index.js +37 -0
  33. package/dist/actions/providers/mongodb/insertMongoDoc.d.ts +3 -0
  34. package/dist/actions/providers/mongodb/insertMongoDoc.js +36 -0
  35. package/dist/actions/providers/slack/helpers.d.ts +6 -0
  36. package/dist/actions/providers/slack/helpers.js +53 -0
  37. package/dist/actions/providers/slack/index.d.ts +1 -0
  38. package/dist/actions/providers/slack/index.js +37 -0
  39. package/dist/actions/providers/slack/listConversations.d.ts +3 -0
  40. package/dist/actions/providers/slack/listConversations.js +41 -0
  41. package/dist/actions/providers/slack/list_conversations.d.ts +3 -0
  42. package/dist/actions/providers/slack/list_conversations.js +60 -0
  43. package/dist/actions/providers/slack/sendMessage.d.ts +3 -0
  44. package/dist/actions/providers/slack/sendMessage.js +36 -0
  45. package/dist/actions/providers/snowflake/getRowByFieldValue.d.ts +3 -0
  46. package/dist/actions/providers/snowflake/getRowByFieldValue.js +100 -0
  47. package/dist/actions/providers/zendesk/createZendeskTicket.d.ts +3 -0
  48. package/dist/actions/providers/zendesk/createZendeskTicket.js +48 -0
  49. package/dist/actions/schema.js +6 -0
  50. package/dist/actions/types.js +2 -0
  51. package/dist/app.d.ts +9 -0
  52. package/dist/app.js +97 -0
  53. package/dist/index.d.ts +6 -0
  54. package/dist/index.js +27 -0
  55. package/dist/main.js +11 -0
  56. package/dist/utils/string.d.ts +1 -0
  57. package/dist/utils/string.js +10 -0
  58. package/package.json +51 -0
@@ -0,0 +1,482 @@
1
+ import { z } from "zod";
2
+ export type ActionFunction<P, A, O> = (input: {
3
+ params: P;
4
+ authParams: A;
5
+ }) => Promise<O>;
6
+ export declare const AuthParamsSchema: z.ZodObject<{
7
+ authToken: z.ZodOptional<z.ZodString>;
8
+ baseUrl: z.ZodOptional<z.ZodString>;
9
+ apiKey: z.ZodOptional<z.ZodString>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ authToken?: string | undefined;
12
+ baseUrl?: string | undefined;
13
+ apiKey?: string | undefined;
14
+ }, {
15
+ authToken?: string | undefined;
16
+ baseUrl?: string | undefined;
17
+ apiKey?: string | undefined;
18
+ }>;
19
+ export type AuthParamsType = z.infer<typeof AuthParamsSchema>;
20
+ export declare const slackSendMessageParamsSchema: z.ZodObject<{
21
+ channelName: z.ZodString;
22
+ message: z.ZodString;
23
+ }, "strip", z.ZodTypeAny, {
24
+ message: string;
25
+ channelName: string;
26
+ }, {
27
+ message: string;
28
+ channelName: string;
29
+ }>;
30
+ export type slackSendMessageParamsType = z.infer<typeof slackSendMessageParamsSchema>;
31
+ export declare const slackSendMessageOutputSchema: z.ZodVoid;
32
+ export type slackSendMessageOutputType = z.infer<typeof slackSendMessageOutputSchema>;
33
+ export type slackSendMessageFunction = ActionFunction<slackSendMessageParamsType, AuthParamsType, slackSendMessageOutputType>;
34
+ export declare const slackListConversationsParamsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
35
+ export type slackListConversationsParamsType = z.infer<typeof slackListConversationsParamsSchema>;
36
+ export declare const slackListConversationsOutputSchema: z.ZodObject<{
37
+ channels: z.ZodArray<z.ZodObject<{
38
+ id: z.ZodString;
39
+ name: z.ZodString;
40
+ topic: z.ZodString;
41
+ purpose: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ name: string;
44
+ id: string;
45
+ topic: string;
46
+ purpose: string;
47
+ }, {
48
+ name: string;
49
+ id: string;
50
+ topic: string;
51
+ purpose: string;
52
+ }>, "many">;
53
+ }, "strip", z.ZodTypeAny, {
54
+ channels: {
55
+ name: string;
56
+ id: string;
57
+ topic: string;
58
+ purpose: string;
59
+ }[];
60
+ }, {
61
+ channels: {
62
+ name: string;
63
+ id: string;
64
+ topic: string;
65
+ purpose: string;
66
+ }[];
67
+ }>;
68
+ export type slackListConversationsOutputType = z.infer<typeof slackListConversationsOutputSchema>;
69
+ export type slackListConversationsFunction = ActionFunction<slackListConversationsParamsType, AuthParamsType, slackListConversationsOutputType>;
70
+ export declare const mathAddParamsSchema: z.ZodObject<{
71
+ a: z.ZodNumber;
72
+ b: z.ZodNumber;
73
+ }, "strip", z.ZodTypeAny, {
74
+ a: number;
75
+ b: number;
76
+ }, {
77
+ a: number;
78
+ b: number;
79
+ }>;
80
+ export type mathAddParamsType = z.infer<typeof mathAddParamsSchema>;
81
+ export declare const mathAddOutputSchema: z.ZodObject<{
82
+ result: z.ZodNumber;
83
+ }, "strip", z.ZodTypeAny, {
84
+ result: number;
85
+ }, {
86
+ result: number;
87
+ }>;
88
+ export type mathAddOutputType = z.infer<typeof mathAddOutputSchema>;
89
+ export type mathAddFunction = ActionFunction<mathAddParamsType, AuthParamsType, mathAddOutputType>;
90
+ export declare const confluenceUpdatePageParamsSchema: z.ZodObject<{
91
+ pageId: z.ZodString;
92
+ title: z.ZodString;
93
+ username: z.ZodString;
94
+ content: z.ZodString;
95
+ }, "strip", z.ZodTypeAny, {
96
+ pageId: string;
97
+ title: string;
98
+ username: string;
99
+ content: string;
100
+ }, {
101
+ pageId: string;
102
+ title: string;
103
+ username: string;
104
+ content: string;
105
+ }>;
106
+ export type confluenceUpdatePageParamsType = z.infer<typeof confluenceUpdatePageParamsSchema>;
107
+ export declare const confluenceUpdatePageOutputSchema: z.ZodVoid;
108
+ export type confluenceUpdatePageOutputType = z.infer<typeof confluenceUpdatePageOutputSchema>;
109
+ export type confluenceUpdatePageFunction = ActionFunction<confluenceUpdatePageParamsType, AuthParamsType, confluenceUpdatePageOutputType>;
110
+ export declare const jiraCreateJiraTicketParamsSchema: z.ZodObject<{
111
+ projectKey: z.ZodString;
112
+ summary: z.ZodString;
113
+ description: z.ZodString;
114
+ issueType: z.ZodString;
115
+ reporter: z.ZodOptional<z.ZodString>;
116
+ username: z.ZodString;
117
+ }, "strip", z.ZodTypeAny, {
118
+ description: string;
119
+ username: string;
120
+ projectKey: string;
121
+ summary: string;
122
+ issueType: string;
123
+ reporter?: string | undefined;
124
+ }, {
125
+ description: string;
126
+ username: string;
127
+ projectKey: string;
128
+ summary: string;
129
+ issueType: string;
130
+ reporter?: string | undefined;
131
+ }>;
132
+ export type jiraCreateJiraTicketParamsType = z.infer<typeof jiraCreateJiraTicketParamsSchema>;
133
+ export declare const jiraCreateJiraTicketOutputSchema: z.ZodVoid;
134
+ export type jiraCreateJiraTicketOutputType = z.infer<typeof jiraCreateJiraTicketOutputSchema>;
135
+ export type jiraCreateJiraTicketFunction = ActionFunction<jiraCreateJiraTicketParamsType, AuthParamsType, jiraCreateJiraTicketOutputType>;
136
+ export declare const googlemapsValidateAddressParamsSchema: z.ZodObject<{
137
+ regionCode: z.ZodString;
138
+ locality: z.ZodString;
139
+ postalCode: z.ZodString;
140
+ addressLines: z.ZodArray<z.ZodString, "many">;
141
+ addressType: z.ZodOptional<z.ZodEnum<["residential", "business", "poBox"]>>;
142
+ allowFuzzyMatches: z.ZodOptional<z.ZodBoolean>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ regionCode: string;
145
+ locality: string;
146
+ addressLines: string[];
147
+ postalCode: string;
148
+ addressType?: "residential" | "business" | "poBox" | undefined;
149
+ allowFuzzyMatches?: boolean | undefined;
150
+ }, {
151
+ regionCode: string;
152
+ locality: string;
153
+ addressLines: string[];
154
+ postalCode: string;
155
+ addressType?: "residential" | "business" | "poBox" | undefined;
156
+ allowFuzzyMatches?: boolean | undefined;
157
+ }>;
158
+ export type googlemapsValidateAddressParamsType = z.infer<typeof googlemapsValidateAddressParamsSchema>;
159
+ export declare const googlemapsValidateAddressOutputSchema: z.ZodObject<{
160
+ valid: z.ZodBoolean;
161
+ formattedAddress: z.ZodOptional<z.ZodString>;
162
+ addressComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
163
+ componentName: z.ZodOptional<z.ZodString>;
164
+ componentType: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ componentName?: string | undefined;
167
+ componentType?: string[] | undefined;
168
+ }, {
169
+ componentName?: string | undefined;
170
+ componentType?: string[] | undefined;
171
+ }>, "many">>;
172
+ missingComponentTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
173
+ unresolvedTokens: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
174
+ geocode: z.ZodOptional<z.ZodObject<{
175
+ location: z.ZodOptional<z.ZodObject<{
176
+ latitude: z.ZodOptional<z.ZodNumber>;
177
+ longitude: z.ZodOptional<z.ZodNumber>;
178
+ }, "strip", z.ZodTypeAny, {
179
+ latitude?: number | undefined;
180
+ longitude?: number | undefined;
181
+ }, {
182
+ latitude?: number | undefined;
183
+ longitude?: number | undefined;
184
+ }>>;
185
+ plusCode: z.ZodOptional<z.ZodObject<{
186
+ globalCode: z.ZodOptional<z.ZodString>;
187
+ compoundCode: z.ZodOptional<z.ZodString>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ globalCode?: string | undefined;
190
+ compoundCode?: string | undefined;
191
+ }, {
192
+ globalCode?: string | undefined;
193
+ compoundCode?: string | undefined;
194
+ }>>;
195
+ bounds: z.ZodOptional<z.ZodObject<{
196
+ northeast: z.ZodOptional<z.ZodObject<{
197
+ latitude: z.ZodOptional<z.ZodNumber>;
198
+ longitude: z.ZodOptional<z.ZodNumber>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ latitude?: number | undefined;
201
+ longitude?: number | undefined;
202
+ }, {
203
+ latitude?: number | undefined;
204
+ longitude?: number | undefined;
205
+ }>>;
206
+ southwest: z.ZodOptional<z.ZodObject<{
207
+ latitude: z.ZodOptional<z.ZodNumber>;
208
+ longitude: z.ZodOptional<z.ZodNumber>;
209
+ }, "strip", z.ZodTypeAny, {
210
+ latitude?: number | undefined;
211
+ longitude?: number | undefined;
212
+ }, {
213
+ latitude?: number | undefined;
214
+ longitude?: number | undefined;
215
+ }>>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ northeast?: {
218
+ latitude?: number | undefined;
219
+ longitude?: number | undefined;
220
+ } | undefined;
221
+ southwest?: {
222
+ latitude?: number | undefined;
223
+ longitude?: number | undefined;
224
+ } | undefined;
225
+ }, {
226
+ northeast?: {
227
+ latitude?: number | undefined;
228
+ longitude?: number | undefined;
229
+ } | undefined;
230
+ southwest?: {
231
+ latitude?: number | undefined;
232
+ longitude?: number | undefined;
233
+ } | undefined;
234
+ }>>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ location?: {
237
+ latitude?: number | undefined;
238
+ longitude?: number | undefined;
239
+ } | undefined;
240
+ plusCode?: {
241
+ globalCode?: string | undefined;
242
+ compoundCode?: string | undefined;
243
+ } | undefined;
244
+ bounds?: {
245
+ northeast?: {
246
+ latitude?: number | undefined;
247
+ longitude?: number | undefined;
248
+ } | undefined;
249
+ southwest?: {
250
+ latitude?: number | undefined;
251
+ longitude?: number | undefined;
252
+ } | undefined;
253
+ } | undefined;
254
+ }, {
255
+ location?: {
256
+ latitude?: number | undefined;
257
+ longitude?: number | undefined;
258
+ } | undefined;
259
+ plusCode?: {
260
+ globalCode?: string | undefined;
261
+ compoundCode?: string | undefined;
262
+ } | undefined;
263
+ bounds?: {
264
+ northeast?: {
265
+ latitude?: number | undefined;
266
+ longitude?: number | undefined;
267
+ } | undefined;
268
+ southwest?: {
269
+ latitude?: number | undefined;
270
+ longitude?: number | undefined;
271
+ } | undefined;
272
+ } | undefined;
273
+ }>>;
274
+ uspsData: z.ZodOptional<z.ZodObject<{
275
+ standardizedAddress: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
276
+ deliveryPointValidation: z.ZodOptional<z.ZodString>;
277
+ uspsAddressPrecision: z.ZodOptional<z.ZodString>;
278
+ }, "strip", z.ZodTypeAny, {
279
+ standardizedAddress?: Record<string, any> | undefined;
280
+ deliveryPointValidation?: string | undefined;
281
+ uspsAddressPrecision?: string | undefined;
282
+ }, {
283
+ standardizedAddress?: Record<string, any> | undefined;
284
+ deliveryPointValidation?: string | undefined;
285
+ uspsAddressPrecision?: string | undefined;
286
+ }>>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ valid: boolean;
289
+ formattedAddress?: string | undefined;
290
+ addressComponents?: {
291
+ componentName?: string | undefined;
292
+ componentType?: string[] | undefined;
293
+ }[] | undefined;
294
+ missingComponentTypes?: string[] | undefined;
295
+ unresolvedTokens?: string[] | undefined;
296
+ geocode?: {
297
+ location?: {
298
+ latitude?: number | undefined;
299
+ longitude?: number | undefined;
300
+ } | undefined;
301
+ plusCode?: {
302
+ globalCode?: string | undefined;
303
+ compoundCode?: string | undefined;
304
+ } | undefined;
305
+ bounds?: {
306
+ northeast?: {
307
+ latitude?: number | undefined;
308
+ longitude?: number | undefined;
309
+ } | undefined;
310
+ southwest?: {
311
+ latitude?: number | undefined;
312
+ longitude?: number | undefined;
313
+ } | undefined;
314
+ } | undefined;
315
+ } | undefined;
316
+ uspsData?: {
317
+ standardizedAddress?: Record<string, any> | undefined;
318
+ deliveryPointValidation?: string | undefined;
319
+ uspsAddressPrecision?: string | undefined;
320
+ } | undefined;
321
+ }, {
322
+ valid: boolean;
323
+ formattedAddress?: string | undefined;
324
+ addressComponents?: {
325
+ componentName?: string | undefined;
326
+ componentType?: string[] | undefined;
327
+ }[] | undefined;
328
+ missingComponentTypes?: string[] | undefined;
329
+ unresolvedTokens?: string[] | undefined;
330
+ geocode?: {
331
+ location?: {
332
+ latitude?: number | undefined;
333
+ longitude?: number | undefined;
334
+ } | undefined;
335
+ plusCode?: {
336
+ globalCode?: string | undefined;
337
+ compoundCode?: string | undefined;
338
+ } | undefined;
339
+ bounds?: {
340
+ northeast?: {
341
+ latitude?: number | undefined;
342
+ longitude?: number | undefined;
343
+ } | undefined;
344
+ southwest?: {
345
+ latitude?: number | undefined;
346
+ longitude?: number | undefined;
347
+ } | undefined;
348
+ } | undefined;
349
+ } | undefined;
350
+ uspsData?: {
351
+ standardizedAddress?: Record<string, any> | undefined;
352
+ deliveryPointValidation?: string | undefined;
353
+ uspsAddressPrecision?: string | undefined;
354
+ } | undefined;
355
+ }>;
356
+ export type googlemapsValidateAddressOutputType = z.infer<typeof googlemapsValidateAddressOutputSchema>;
357
+ export type googlemapsValidateAddressFunction = ActionFunction<googlemapsValidateAddressParamsType, AuthParamsType, googlemapsValidateAddressOutputType>;
358
+ export declare const credalCallCopilotParamsSchema: z.ZodObject<{
359
+ agentId: z.ZodString;
360
+ query: z.ZodString;
361
+ userEmail: z.ZodString;
362
+ }, "strip", z.ZodTypeAny, {
363
+ agentId: string;
364
+ query: string;
365
+ userEmail: string;
366
+ }, {
367
+ agentId: string;
368
+ query: string;
369
+ userEmail: string;
370
+ }>;
371
+ export type credalCallCopilotParamsType = z.infer<typeof credalCallCopilotParamsSchema>;
372
+ export declare const credalCallCopilotOutputSchema: z.ZodObject<{
373
+ response: z.ZodString;
374
+ }, "strip", z.ZodTypeAny, {
375
+ response: string;
376
+ }, {
377
+ response: string;
378
+ }>;
379
+ export type credalCallCopilotOutputType = z.infer<typeof credalCallCopilotOutputSchema>;
380
+ export type credalCallCopilotFunction = ActionFunction<credalCallCopilotParamsType, AuthParamsType, credalCallCopilotOutputType>;
381
+ export declare const zendeskCreateZendeskTicketParamsSchema: z.ZodObject<{
382
+ subject: z.ZodString;
383
+ body: z.ZodOptional<z.ZodString>;
384
+ requesterEmail: z.ZodString;
385
+ subdomain: z.ZodString;
386
+ }, "strip", z.ZodTypeAny, {
387
+ subject: string;
388
+ requesterEmail: string;
389
+ subdomain: string;
390
+ body?: string | undefined;
391
+ }, {
392
+ subject: string;
393
+ requesterEmail: string;
394
+ subdomain: string;
395
+ body?: string | undefined;
396
+ }>;
397
+ export type zendeskCreateZendeskTicketParamsType = z.infer<typeof zendeskCreateZendeskTicketParamsSchema>;
398
+ export declare const zendeskCreateZendeskTicketOutputSchema: z.ZodObject<{
399
+ ticketId: z.ZodString;
400
+ ticketUrl: z.ZodOptional<z.ZodString>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ ticketId: string;
403
+ ticketUrl?: string | undefined;
404
+ }, {
405
+ ticketId: string;
406
+ ticketUrl?: string | undefined;
407
+ }>;
408
+ export type zendeskCreateZendeskTicketOutputType = z.infer<typeof zendeskCreateZendeskTicketOutputSchema>;
409
+ export type zendeskCreateZendeskTicketFunction = ActionFunction<zendeskCreateZendeskTicketParamsType, AuthParamsType, zendeskCreateZendeskTicketOutputType>;
410
+ export declare const mongoInsertMongoDocParamsSchema: z.ZodObject<{
411
+ databaseName: z.ZodString;
412
+ collectionName: z.ZodString;
413
+ document: z.ZodRecord<z.ZodString, z.ZodAny>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ databaseName: string;
416
+ collectionName: string;
417
+ document: Record<string, any>;
418
+ }, {
419
+ databaseName: string;
420
+ collectionName: string;
421
+ document: Record<string, any>;
422
+ }>;
423
+ export type mongoInsertMongoDocParamsType = z.infer<typeof mongoInsertMongoDocParamsSchema>;
424
+ export declare const mongoInsertMongoDocOutputSchema: z.ZodObject<{
425
+ objectId: z.ZodString;
426
+ }, "strip", z.ZodTypeAny, {
427
+ objectId: string;
428
+ }, {
429
+ objectId: string;
430
+ }>;
431
+ export type mongoInsertMongoDocOutputType = z.infer<typeof mongoInsertMongoDocOutputSchema>;
432
+ export type mongoInsertMongoDocFunction = ActionFunction<mongoInsertMongoDocParamsType, AuthParamsType, mongoInsertMongoDocOutputType>;
433
+ export declare const snowflakeGetRowByFieldValueParamsSchema: z.ZodObject<{
434
+ databaseName: z.ZodOptional<z.ZodString>;
435
+ tableName: z.ZodString;
436
+ fieldName: z.ZodString;
437
+ fieldValue: z.ZodString;
438
+ accountName: z.ZodOptional<z.ZodString>;
439
+ user: z.ZodOptional<z.ZodString>;
440
+ warehouse: z.ZodOptional<z.ZodString>;
441
+ }, "strip", z.ZodTypeAny, {
442
+ tableName: string;
443
+ fieldName: string;
444
+ fieldValue: string;
445
+ databaseName?: string | undefined;
446
+ accountName?: string | undefined;
447
+ user?: string | undefined;
448
+ warehouse?: string | undefined;
449
+ }, {
450
+ tableName: string;
451
+ fieldName: string;
452
+ fieldValue: string;
453
+ databaseName?: string | undefined;
454
+ accountName?: string | undefined;
455
+ user?: string | undefined;
456
+ warehouse?: string | undefined;
457
+ }>;
458
+ export type snowflakeGetRowByFieldValueParamsType = z.infer<typeof snowflakeGetRowByFieldValueParamsSchema>;
459
+ export declare const snowflakeGetRowByFieldValueOutputSchema: z.ZodObject<{
460
+ row: z.ZodObject<{
461
+ id: z.ZodOptional<z.ZodString>;
462
+ rowContents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
463
+ }, "strip", z.ZodTypeAny, {
464
+ id?: string | undefined;
465
+ rowContents?: Record<string, any> | undefined;
466
+ }, {
467
+ id?: string | undefined;
468
+ rowContents?: Record<string, any> | undefined;
469
+ }>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ row: {
472
+ id?: string | undefined;
473
+ rowContents?: Record<string, any> | undefined;
474
+ };
475
+ }, {
476
+ row: {
477
+ id?: string | undefined;
478
+ rowContents?: Record<string, any> | undefined;
479
+ };
480
+ }>;
481
+ export type snowflakeGetRowByFieldValueOutputType = z.infer<typeof snowflakeGetRowByFieldValueOutputSchema>;
482
+ export type snowflakeGetRowByFieldValueFunction = ActionFunction<snowflakeGetRowByFieldValueParamsType, AuthParamsType, snowflakeGetRowByFieldValueOutputType>;
@@ -0,0 +1,153 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.snowflakeGetRowByFieldValueOutputSchema = exports.snowflakeGetRowByFieldValueParamsSchema = exports.mongoInsertMongoDocOutputSchema = exports.mongoInsertMongoDocParamsSchema = exports.zendeskCreateZendeskTicketOutputSchema = exports.zendeskCreateZendeskTicketParamsSchema = exports.credalCallCopilotOutputSchema = exports.credalCallCopilotParamsSchema = exports.googlemapsValidateAddressOutputSchema = exports.googlemapsValidateAddressParamsSchema = exports.jiraCreateJiraTicketOutputSchema = exports.jiraCreateJiraTicketParamsSchema = exports.confluenceUpdatePageOutputSchema = exports.confluenceUpdatePageParamsSchema = exports.mathAddOutputSchema = exports.mathAddParamsSchema = exports.slackListConversationsOutputSchema = exports.slackListConversationsParamsSchema = exports.slackSendMessageOutputSchema = exports.slackSendMessageParamsSchema = exports.AuthParamsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.AuthParamsSchema = zod_1.z.object({
6
+ authToken: zod_1.z.string().optional(),
7
+ baseUrl: zod_1.z.string().optional(),
8
+ apiKey: zod_1.z.string().optional(),
9
+ });
10
+ exports.slackSendMessageParamsSchema = zod_1.z.object({
11
+ channelName: zod_1.z.string().describe("The name of the Slack channel to send the message to (e.g. general, alerts)"),
12
+ message: zod_1.z.string().describe("The message content to send to Slack. Can include markdown formatting."),
13
+ });
14
+ exports.slackSendMessageOutputSchema = zod_1.z.void();
15
+ exports.slackListConversationsParamsSchema = zod_1.z.object({});
16
+ exports.slackListConversationsOutputSchema = zod_1.z.object({
17
+ channels: zod_1.z
18
+ .array(zod_1.z
19
+ .object({
20
+ id: zod_1.z.string().describe("The ID of the channel"),
21
+ name: zod_1.z.string().describe("The name of the channel"),
22
+ topic: zod_1.z.string().describe("The topic of the channel"),
23
+ purpose: zod_1.z.string().describe("The purpose of the channel"),
24
+ })
25
+ .describe("A channel in Slack"))
26
+ .describe("A list of channels in Slack"),
27
+ });
28
+ exports.mathAddParamsSchema = zod_1.z.object({
29
+ a: zod_1.z.number().describe("The first number to add"),
30
+ b: zod_1.z.number().describe("The second number to add"),
31
+ });
32
+ exports.mathAddOutputSchema = zod_1.z.object({ result: zod_1.z.number().describe("The sum of the two numbers") });
33
+ exports.confluenceUpdatePageParamsSchema = zod_1.z.object({
34
+ pageId: zod_1.z.string().describe("The page id that should be updated"),
35
+ title: zod_1.z.string().describe("The title of the page that should be updated"),
36
+ username: zod_1.z.string().describe("The username of the person updating the page"),
37
+ content: zod_1.z.string().describe("The new content for the page"),
38
+ });
39
+ exports.confluenceUpdatePageOutputSchema = zod_1.z.void();
40
+ exports.jiraCreateJiraTicketParamsSchema = zod_1.z.object({
41
+ projectKey: zod_1.z.string().describe("The key for the project you want to add it to"),
42
+ summary: zod_1.z.string().describe("The summary of the new ticket"),
43
+ description: zod_1.z.string().describe("The description for the new ticket"),
44
+ issueType: zod_1.z.string().describe("The issue type of the new ticket"),
45
+ reporter: zod_1.z.string().describe("The reporter for the new ticket creation").optional(),
46
+ username: zod_1.z.string().describe("The username of the person creating the ticket"),
47
+ });
48
+ exports.jiraCreateJiraTicketOutputSchema = zod_1.z.void();
49
+ exports.googlemapsValidateAddressParamsSchema = zod_1.z.object({
50
+ regionCode: zod_1.z.string().describe("The country of the address being verified."),
51
+ locality: zod_1.z.string().describe("The locality of the address being verified. This is likely a city."),
52
+ postalCode: zod_1.z.string().describe("The postal code of the address being verified."),
53
+ addressLines: zod_1.z
54
+ .array(zod_1.z.string())
55
+ .describe("A list of lines of the address. These should be in order as they would appear on an envelope."),
56
+ addressType: zod_1.z.enum(["residential", "business", "poBox"]).describe("The type of address being validated.").optional(),
57
+ allowFuzzyMatches: zod_1.z
58
+ .boolean()
59
+ .describe("Whether to allow fuzzy matches in the address validation by inferring components.")
60
+ .optional(),
61
+ });
62
+ exports.googlemapsValidateAddressOutputSchema = zod_1.z.object({
63
+ valid: zod_1.z.boolean().describe("Whether the address is valid."),
64
+ formattedAddress: zod_1.z.string().describe("The standardized formatted address.").optional(),
65
+ addressComponents: zod_1.z
66
+ .array(zod_1.z.object({
67
+ componentName: zod_1.z.string().describe("The name of the address component.").optional(),
68
+ componentType: zod_1.z
69
+ .array(zod_1.z.string())
70
+ .describe("The types associated with this component (e.g., street_number, route).")
71
+ .optional(),
72
+ }))
73
+ .describe("Components of the address, such as street number and route.")
74
+ .optional(),
75
+ missingComponentTypes: zod_1.z.array(zod_1.z.string()).describe("List of components missing in the input address.").optional(),
76
+ unresolvedTokens: zod_1.z.array(zod_1.z.string()).describe("Unrecognized parts of the address.").optional(),
77
+ geocode: zod_1.z
78
+ .object({
79
+ location: zod_1.z
80
+ .object({
81
+ latitude: zod_1.z.number().describe("The latitude of the address.").optional(),
82
+ longitude: zod_1.z.number().describe("The longitude of the address.").optional(),
83
+ })
84
+ .optional(),
85
+ plusCode: zod_1.z
86
+ .object({
87
+ globalCode: zod_1.z.string().describe("The global Plus Code.").optional(),
88
+ compoundCode: zod_1.z.string().describe("The compound Plus Code.").optional(),
89
+ })
90
+ .describe("The Plus Code for the address.")
91
+ .optional(),
92
+ bounds: zod_1.z
93
+ .object({
94
+ northeast: zod_1.z.object({ latitude: zod_1.z.number().optional(), longitude: zod_1.z.number().optional() }).optional(),
95
+ southwest: zod_1.z.object({ latitude: zod_1.z.number().optional(), longitude: zod_1.z.number().optional() }).optional(),
96
+ })
97
+ .describe("The viewport bounds for the address.")
98
+ .optional(),
99
+ })
100
+ .describe("Geocode data for the address.")
101
+ .optional(),
102
+ uspsData: zod_1.z
103
+ .object({
104
+ standardizedAddress: zod_1.z.record(zod_1.z.any()).describe("The standardized USPS address.").optional(),
105
+ deliveryPointValidation: zod_1.z.string().describe("The USPS delivery point validation status.").optional(),
106
+ uspsAddressPrecision: zod_1.z.string().describe("The level of precision for the USPS address.").optional(),
107
+ })
108
+ .describe("USPS-specific validation details.")
109
+ .optional(),
110
+ });
111
+ exports.credalCallCopilotParamsSchema = zod_1.z.object({
112
+ agentId: zod_1.z.string().describe("The ID of the copilot to call"),
113
+ query: zod_1.z.string().describe("The query to ask Credal Copilot"),
114
+ userEmail: zod_1.z.string().describe("The email of the user sending or authorizing the query"),
115
+ });
116
+ exports.credalCallCopilotOutputSchema = zod_1.z.object({
117
+ response: zod_1.z.string().describe("The response from the Credal Copilot"),
118
+ });
119
+ exports.zendeskCreateZendeskTicketParamsSchema = zod_1.z.object({
120
+ subject: zod_1.z.string().describe("The subject of the ticket"),
121
+ body: zod_1.z.string().describe("The body of the ticket").optional(),
122
+ requesterEmail: zod_1.z.string().describe("The email of the requester"),
123
+ subdomain: zod_1.z.string().describe("The subdomain of the Zendesk account"),
124
+ });
125
+ exports.zendeskCreateZendeskTicketOutputSchema = zod_1.z.object({
126
+ ticketId: zod_1.z.string().describe("The ID of the ticket created"),
127
+ ticketUrl: zod_1.z.string().describe("The URL of the ticket created").optional(),
128
+ });
129
+ exports.mongoInsertMongoDocParamsSchema = zod_1.z.object({
130
+ databaseName: zod_1.z.string().describe("Database to connect to"),
131
+ collectionName: zod_1.z.string().describe("Collection to insert the document into"),
132
+ document: zod_1.z.record(zod_1.z.any()).describe("The document to insert"),
133
+ });
134
+ exports.mongoInsertMongoDocOutputSchema = zod_1.z.object({
135
+ objectId: zod_1.z.string().describe("The new ID of the document inserted"),
136
+ });
137
+ exports.snowflakeGetRowByFieldValueParamsSchema = zod_1.z.object({
138
+ databaseName: zod_1.z.string().describe("The name of the database to query").optional(),
139
+ tableName: zod_1.z.string().describe("The name of the table to query"),
140
+ fieldName: zod_1.z.string().describe("The name of the field to query"),
141
+ fieldValue: zod_1.z.string().describe("The value of the field to query"),
142
+ accountName: zod_1.z.string().describe("The name of the Snowflake account").optional(),
143
+ user: zod_1.z.string().describe("The user to authenticate with").optional(),
144
+ warehouse: zod_1.z.string().describe("The warehouse to use").optional(),
145
+ });
146
+ exports.snowflakeGetRowByFieldValueOutputSchema = zod_1.z.object({
147
+ row: zod_1.z
148
+ .object({
149
+ id: zod_1.z.string().describe("The ID of the row").optional(),
150
+ rowContents: zod_1.z.record(zod_1.z.any()).describe("The contents of the row").optional(),
151
+ })
152
+ .describe("The row from the Snowflake table"),
153
+ });
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mathAddDefinition = exports.slackSendMessageDefinition = void 0;
4
+ exports.slackSendMessageDefinition = {
5
+ name: "send_message",
6
+ description: "Sends a message to a Slack channel",
7
+ parameters: {
8
+ "channel": {
9
+ "type": "string",
10
+ "description": "The Slack channel to send the message to (e.g., \\#general, \\#alerts)",
11
+ "required": true
12
+ },
13
+ "message": {
14
+ "type": "string",
15
+ "description": "The message content to send to Slack. Can include markdown formatting.",
16
+ "required": true
17
+ }
18
+ }
19
+ };
20
+ exports.mathAddDefinition = {
21
+ name: "add",
22
+ description: "Adds two numbers together",
23
+ parameters: {
24
+ "a": {
25
+ "type": "number",
26
+ "description": "The first number to add",
27
+ "required": true
28
+ },
29
+ "b": {
30
+ "type": "number",
31
+ "description": "The second number to add",
32
+ "required": true
33
+ }
34
+ }
35
+ };
@@ -0,0 +1,6 @@
1
+ import { ActionTemplate } from "../actions/parse";
2
+ export type ActionGroups = Record<string, {
3
+ description: string;
4
+ actions: ActionTemplate[];
5
+ }>;
6
+ export declare const ACTION_GROUPS: ActionGroups;