@credal/actions 0.2.4 → 0.2.6

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 (80) hide show
  1. package/dist/actions/actionMapper.d.ts +1 -1
  2. package/dist/actions/actionMapper.js +162 -94
  3. package/dist/actions/autogen/templates.d.ts +12 -1
  4. package/dist/actions/autogen/templates.js +888 -0
  5. package/dist/actions/autogen/types.d.ts +997 -0
  6. package/dist/actions/autogen/types.js +290 -0
  7. package/dist/actions/groups.d.ts +1 -1
  8. package/dist/actions/groups.js +17 -1
  9. package/dist/actions/invoke.js +1 -1
  10. package/dist/actions/parse.js +1 -1
  11. package/dist/actions/providers/asana/createAsanaTask.js +1 -1
  12. package/dist/actions/providers/asana/updateAsanaTask.js +1 -1
  13. package/dist/actions/providers/bing/getTopNSearchResultUrls.d.ts +1 -1
  14. package/dist/actions/providers/bing/getTopNSearchResultUrls.js +2 -2
  15. package/dist/actions/providers/confluence/fetchPageContent.d.ts +1 -1
  16. package/dist/actions/providers/confluence/fetchPageContent.js +3 -3
  17. package/dist/actions/providers/confluence/overwritePage.d.ts +1 -1
  18. package/dist/actions/providers/confluence/overwritePage.js +3 -3
  19. package/dist/actions/providers/finnhub/getBasicFinancials.d.ts +1 -1
  20. package/dist/actions/providers/finnhub/getBasicFinancials.js +2 -2
  21. package/dist/actions/providers/finnhub/symbolLookup.d.ts +1 -1
  22. package/dist/actions/providers/finnhub/symbolLookup.js +2 -2
  23. package/dist/actions/providers/firecrawl/deepResearch.d.ts +1 -1
  24. package/dist/actions/providers/firecrawl/deepResearch.js +1 -1
  25. package/dist/actions/providers/firecrawl/scrapeTweetDataWithNitter.d.ts +1 -1
  26. package/dist/actions/providers/firecrawl/scrapeTweetDataWithNitter.js +1 -1
  27. package/dist/actions/providers/firecrawl/scrapeUrl.d.ts +1 -1
  28. package/dist/actions/providers/firecrawl/scrapeUrl.js +1 -1
  29. package/dist/actions/providers/github/createBranch.d.ts +1 -1
  30. package/dist/actions/providers/github/createBranch.js +1 -1
  31. package/dist/actions/providers/github/createOrUpdateFile.d.ts +1 -1
  32. package/dist/actions/providers/github/createOrUpdateFile.js +1 -1
  33. package/dist/actions/providers/github/createPullRequest.d.ts +1 -1
  34. package/dist/actions/providers/github/createPullRequest.js +1 -1
  35. package/dist/actions/providers/github/listPullRequests.d.ts +1 -1
  36. package/dist/actions/providers/github/listPullRequests.js +2 -2
  37. package/dist/actions/providers/gong/getGongTranscripts.d.ts +1 -1
  38. package/dist/actions/providers/gong/getGongTranscripts.js +1 -1
  39. package/dist/actions/providers/googlemail/listGmailThreads.js +1 -1
  40. package/dist/actions/providers/googlemail/searchGmailMessages.js +1 -1
  41. package/dist/actions/providers/jira/assignJiraTicket.js +1 -1
  42. package/dist/actions/providers/jira/createJiraTicket.js +1 -1
  43. package/dist/actions/providers/math/add.d.ts +1 -1
  44. package/dist/actions/providers/microsoft/createDocument.js +1 -1
  45. package/dist/actions/providers/microsoft/getDocument.js +1 -1
  46. package/dist/actions/providers/microsoft/messageTeamsChannel.js +1 -1
  47. package/dist/actions/providers/microsoft/messageTeamsChat.js +1 -1
  48. package/dist/actions/providers/microsoft/updateDocument.js +1 -1
  49. package/dist/actions/providers/microsoft/updateSpreadsheet.js +1 -1
  50. package/dist/actions/providers/okta/addUserToGroup.d.ts +3 -0
  51. package/dist/actions/providers/okta/addUserToGroup.js +56 -0
  52. package/dist/actions/providers/okta/getOktaGroup.d.ts +3 -0
  53. package/dist/actions/providers/okta/getOktaGroup.js +73 -0
  54. package/dist/actions/providers/okta/getOktaUser.d.ts +3 -0
  55. package/dist/actions/providers/okta/getOktaUser.js +40 -0
  56. package/dist/actions/providers/okta/listMFA.d.ts +3 -0
  57. package/dist/actions/providers/okta/listMFA.js +52 -0
  58. package/dist/actions/providers/okta/listOktaGroupMembers.d.ts +3 -0
  59. package/dist/actions/providers/okta/listOktaGroupMembers.js +99 -0
  60. package/dist/actions/providers/okta/listOktaGroups.d.ts +3 -0
  61. package/dist/actions/providers/okta/listOktaGroups.js +92 -0
  62. package/dist/actions/providers/okta/listOktaUserGroups.d.ts +3 -0
  63. package/dist/actions/providers/okta/listOktaUserGroups.js +83 -0
  64. package/dist/actions/providers/okta/listOktaUsers.d.ts +3 -0
  65. package/dist/actions/providers/okta/listOktaUsers.js +100 -0
  66. package/dist/actions/providers/okta/removeUserFromGroup.d.ts +3 -0
  67. package/dist/actions/providers/okta/removeUserFromGroup.js +56 -0
  68. package/dist/actions/providers/okta/resetMFA.d.ts +3 -0
  69. package/dist/actions/providers/okta/resetMFA.js +62 -0
  70. package/dist/actions/providers/okta/resetPassword.d.ts +3 -0
  71. package/dist/actions/providers/okta/resetPassword.js +57 -0
  72. package/dist/actions/providers/slack/getChannelMessages.js +1 -1
  73. package/dist/actions/providers/slack/sendMessage.js +1 -1
  74. package/dist/actions/providers/snowflake/getRowByFieldValue.js +1 -1
  75. package/dist/actions/providers/snowflake/runSnowflakeQuery.js +1 -1
  76. package/dist/app.d.ts +2 -2
  77. package/dist/app.js +2 -2
  78. package/dist/index.d.ts +4 -4
  79. package/dist/index.js +3 -3
  80. package/package.json +1 -1
@@ -2268,6 +2268,296 @@ export const googlemailListGmailThreadsOutputSchema = z.object({
2268
2268
  .describe("List of matching Gmail threads"),
2269
2269
  error: z.string().describe("Error message if search failed").optional(),
2270
2270
  });
2271
+ export const oktaGetOktaUserParamsSchema = z.object({ userId: z.string().describe("The ID of the user to retrieve.") });
2272
+ export const oktaGetOktaUserOutputSchema = z.object({
2273
+ success: z.boolean().describe("Whether the user details were successfully retrieved."),
2274
+ user: z
2275
+ .object({
2276
+ id: z.string().describe("The user's Okta ID"),
2277
+ status: z.string().describe("The user's status").optional(),
2278
+ created: z.string().describe("The timestamp when the user was created").optional(),
2279
+ activated: z.string().describe("The timestamp when the user was activated").optional(),
2280
+ statusChanged: z.string().describe("The timestamp when the user's status changed").optional(),
2281
+ lastLogin: z.string().describe("The timestamp of the user's last login").optional(),
2282
+ lastUpdated: z.string().describe("The timestamp of the user's last update").optional(),
2283
+ passwordChanged: z.string().describe("The timestamp when the user's password was last changed").optional(),
2284
+ profile: z
2285
+ .object({
2286
+ login: z.string().describe("The user's login").optional(),
2287
+ firstName: z.string().describe("The user's first name").optional(),
2288
+ lastName: z.string().describe("The user's last name").optional(),
2289
+ nickName: z.string().describe("The user's nickname").optional(),
2290
+ displayName: z.string().describe("The user's display name").optional(),
2291
+ email: z.string().describe("The user's email address").optional(),
2292
+ secondEmail: z.string().describe("The user's secondary email address").optional(),
2293
+ profileUrl: z.string().describe("The URL to the user's profile").optional(),
2294
+ preferredLanguage: z.string().describe("The user's preferred language").optional(),
2295
+ userType: z.string().describe("The user's type").optional(),
2296
+ organization: z.string().describe("The user's organization").optional(),
2297
+ title: z.string().describe("The user's title").optional(),
2298
+ division: z.string().describe("The user's division").optional(),
2299
+ department: z.string().describe("The user's department").optional(),
2300
+ costCenter: z.string().describe("The user's cost center").optional(),
2301
+ employeeNumber: z.string().describe("The user's employee number").optional(),
2302
+ mobilePhone: z.string().describe("The user's mobile phone number").optional(),
2303
+ primaryPhone: z.string().describe("The user's primary phone number").optional(),
2304
+ streetAddress: z.string().describe("The user's street address").optional(),
2305
+ city: z.string().describe("The user's city").optional(),
2306
+ state: z.string().describe("The user's state").optional(),
2307
+ zipCode: z.string().describe("The user's zip code").optional(),
2308
+ countryCode: z.string().describe("The user's country code").optional(),
2309
+ })
2310
+ .describe("The user's profile information")
2311
+ .optional(),
2312
+ credentials: z.object({}).catchall(z.any()).describe("The user's credentials").optional(),
2313
+ _links: z.object({}).catchall(z.any()).describe("Links related to the user").optional(),
2314
+ })
2315
+ .optional(),
2316
+ error: z.string().describe("Error message if retrieval failed.").optional(),
2317
+ });
2318
+ export const oktaListOktaUserGroupsParamsSchema = z.object({
2319
+ userId: z.string().describe("The ID of the user whose groups are to be listed."),
2320
+ maxResults: z.number().int().gte(1).describe("The maximum number of results to return.").optional(),
2321
+ });
2322
+ export const oktaListOktaUserGroupsOutputSchema = z.object({
2323
+ success: z.boolean().describe("Whether the groups were successfully retrieved."),
2324
+ groups: z
2325
+ .array(z.object({
2326
+ id: z.string().describe("The group's ID."),
2327
+ profile: z.object({
2328
+ name: z.string().describe("The group's name."),
2329
+ description: z.string().describe("The group's description."),
2330
+ }),
2331
+ }))
2332
+ .describe("List of groups the user belongs to.")
2333
+ .optional(),
2334
+ error: z.string().describe("Error message if retrieval failed.").optional(),
2335
+ });
2336
+ export const oktaListOktaGroupsParamsSchema = z.object({
2337
+ searchQuery: z
2338
+ .string()
2339
+ .describe("Optional search query to filter groups.\nThis field corresponds to the `search` query parameter in the Okta API's List Groups operation.\nFor detailed information on constructing search queries and available filter expressions, refer to the Okta API documentation:\nhttps://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/#tag/Group/operation/listGroups!in=query&path=search&t=request\nExample: 'profile.name eq \"My Group\"'\n")
2340
+ .optional(),
2341
+ maxResults: z.number().int().gte(1).describe("The maximum number of results to return.").optional(),
2342
+ });
2343
+ export const oktaListOktaGroupsOutputSchema = z.object({
2344
+ success: z.boolean().describe("Whether the groups were successfully retrieved."),
2345
+ groups: z
2346
+ .array(z.object({
2347
+ id: z.string().describe("The group's ID."),
2348
+ profile: z.object({
2349
+ name: z.string().describe("The group's name."),
2350
+ description: z.string().describe("The group's description."),
2351
+ }),
2352
+ }))
2353
+ .describe("List of Okta groups.")
2354
+ .optional(),
2355
+ error: z.string().describe("Error message if retrieval failed.").optional(),
2356
+ });
2357
+ export const oktaGetOktaGroupParamsSchema = z.object({
2358
+ groupId: z.string().describe("The ID of the group to retrieve."),
2359
+ });
2360
+ export const oktaGetOktaGroupOutputSchema = z.object({
2361
+ success: z.boolean().describe("Whether the group details were successfully retrieved."),
2362
+ group: z
2363
+ .object({
2364
+ id: z.string().describe("The unique identifier for the Okta group"),
2365
+ created: z.string().datetime({ offset: true }).describe("The timestamp when the group was created").optional(),
2366
+ lastUpdated: z
2367
+ .string()
2368
+ .datetime({ offset: true })
2369
+ .describe("The timestamp when the group was last updated")
2370
+ .optional(),
2371
+ lastMembershipUpdated: z
2372
+ .string()
2373
+ .datetime({ offset: true })
2374
+ .describe("The timestamp when the group's membership was last updated")
2375
+ .optional(),
2376
+ objectClass: z.array(z.string()).describe("The object class of the group").optional(),
2377
+ type: z.string().describe("The type of the group (e.g., OKTA_GROUP)").optional(),
2378
+ profile: z.object({
2379
+ name: z.string().describe("The name of the group"),
2380
+ description: z.string().describe("The description of the group"),
2381
+ }),
2382
+ _links: z
2383
+ .object({
2384
+ logo: z.array(z.object({}).catchall(z.any())).describe("Links to the group's logo").optional(),
2385
+ users: z
2386
+ .object({ href: z.string().describe("The URL to retrieve users in the group").optional() })
2387
+ .optional(),
2388
+ apps: z
2389
+ .object({ href: z.string().describe("The URL to retrieve apps associated with the group").optional() })
2390
+ .optional(),
2391
+ })
2392
+ .optional(),
2393
+ })
2394
+ .describe("Schema for an Okta group object")
2395
+ .optional(),
2396
+ error: z.string().describe("Error message if retrieval failed.").optional(),
2397
+ });
2398
+ export const oktaListOktaGroupMembersParamsSchema = z.object({
2399
+ groupId: z.string().describe("The ID of the group whose members are to be listed."),
2400
+ maxResults: z.number().int().gte(1).describe("The maximum number of results to return.").optional(),
2401
+ });
2402
+ export const oktaListOktaGroupMembersOutputSchema = z.object({
2403
+ success: z.boolean().describe("Whether the members were successfully retrieved."),
2404
+ members: z
2405
+ .array(z.object({
2406
+ id: z.string().describe("The user's ID.").optional(),
2407
+ status: z.string().describe("The user's status.").optional(),
2408
+ created: z.string().datetime({ offset: true }).describe("The timestamp when the user was created.").optional(),
2409
+ activated: z
2410
+ .string()
2411
+ .datetime({ offset: true })
2412
+ .nullable()
2413
+ .describe("The timestamp when the user was activated.")
2414
+ .optional(),
2415
+ statusChanged: z
2416
+ .string()
2417
+ .datetime({ offset: true })
2418
+ .nullable()
2419
+ .describe("The timestamp when the user's status changed.")
2420
+ .optional(),
2421
+ lastLogin: z
2422
+ .string()
2423
+ .datetime({ offset: true })
2424
+ .nullable()
2425
+ .describe("The timestamp of the user's last login.")
2426
+ .optional(),
2427
+ lastUpdated: z
2428
+ .string()
2429
+ .datetime({ offset: true })
2430
+ .describe("The timestamp of the user's last update.")
2431
+ .optional(),
2432
+ passwordChanged: z
2433
+ .string()
2434
+ .datetime({ offset: true })
2435
+ .describe("The timestamp when the user's password was last changed.")
2436
+ .optional(),
2437
+ type: z.object({ id: z.string().describe("The type ID of the user.").optional() }).optional(),
2438
+ profile: z
2439
+ .object({
2440
+ firstName: z.string().describe("The user's first name.").optional(),
2441
+ lastName: z.string().describe("The user's last name.").optional(),
2442
+ mobilePhone: z.string().nullable().describe("The user's mobile phone number.").optional(),
2443
+ secondEmail: z.string().nullable().describe("The user's secondary email address.").optional(),
2444
+ login: z.string().describe("The user's login.").optional(),
2445
+ email: z.string().describe("The user's email address.").optional(),
2446
+ })
2447
+ .describe("The user's profile information.")
2448
+ .optional(),
2449
+ }))
2450
+ .describe("List of members in the group.")
2451
+ .optional(),
2452
+ error: z.string().describe("Error message if retrieval failed.").optional(),
2453
+ });
2454
+ export const oktaAddUserToGroupParamsSchema = z.object({
2455
+ groupId: z.string().describe("The ID of the group to add the user to."),
2456
+ userId: z.string().describe("The ID of the user to add to the group."),
2457
+ });
2458
+ export const oktaAddUserToGroupOutputSchema = z.object({
2459
+ success: z.boolean().describe("Whether the user was successfully added to the group."),
2460
+ error: z.string().describe("Error message if the operation failed.").optional(),
2461
+ });
2462
+ export const oktaRemoveUserFromGroupParamsSchema = z.object({
2463
+ groupId: z.string().describe("The ID of the group to remove the user from."),
2464
+ userId: z.string().describe("The ID of the user to remove from the group."),
2465
+ });
2466
+ export const oktaRemoveUserFromGroupOutputSchema = z.object({
2467
+ success: z.boolean().describe("Whether the user was successfully removed from the group."),
2468
+ error: z.string().describe("Error message if the operation failed.").optional(),
2469
+ });
2470
+ export const oktaListOktaUsersParamsSchema = z.object({
2471
+ searchQuery: z
2472
+ .string()
2473
+ .describe("Optional search query to filter users.\nThis field corresponds to the `search` query parameter in the Okta API's List Users operation.\nFor detailed information on constructing search queries and available filter expressions, refer to the Okta API documentation:\nhttps://developer.okta.com/docs/api/openapi/okta-management/management/tag/User/#tag/User/operation/listUsers!in=query&path=search&t=request\nExample: 'profile.email eq \"my_user@example.com\"'\n")
2474
+ .optional(),
2475
+ maxResults: z.number().int().gte(1).describe("The maximum number of results to return.").optional(),
2476
+ });
2477
+ export const oktaListOktaUsersOutputSchema = z.object({
2478
+ success: z.boolean().describe("Whether the user list was successfully retrieved"),
2479
+ users: z
2480
+ .array(z.object({
2481
+ id: z.string().describe("The user's Okta ID"),
2482
+ status: z.string().describe("The user's status").optional(),
2483
+ created: z.string().describe("The timestamp when the user was created").optional(),
2484
+ activated: z.string().nullable().describe("The timestamp when the user was activated").optional(),
2485
+ statusChanged: z.string().nullable().describe("The timestamp when the user's status changed").optional(),
2486
+ lastLogin: z.string().nullable().describe("The timestamp of the user's last login").optional(),
2487
+ lastUpdated: z.string().describe("The timestamp of the user's last update").optional(),
2488
+ passwordChanged: z.string().describe("The timestamp when the user's password was last changed").optional(),
2489
+ type: z.object({ id: z.string().describe("The type ID of the user").optional() }).optional(),
2490
+ profile: z.object({
2491
+ firstName: z.string().describe("The user's first name").optional(),
2492
+ lastName: z.string().describe("The user's last name").optional(),
2493
+ mobilePhone: z.string().nullable().describe("The user's mobile phone number").optional(),
2494
+ secondEmail: z.string().nullable().describe("The user's secondary email address").optional(),
2495
+ login: z.string().describe("The user's login").optional(),
2496
+ email: z.string().describe("The user's email address").optional(),
2497
+ }),
2498
+ realmId: z.string().describe("The realm ID of the user").optional(),
2499
+ }))
2500
+ .describe("List of Okta users matching the query")
2501
+ .optional(),
2502
+ error: z.string().describe("Error message if user retrieval failed").optional(),
2503
+ });
2504
+ export const oktaResetMFAParamsSchema = z.object({
2505
+ userId: z.string().describe("The ID of the user whose MFA needs to be reset."),
2506
+ factorId: z
2507
+ .string()
2508
+ .describe("Optional. The ID of the specific factor to reset. If not provided, all factors will be reset.")
2509
+ .optional(),
2510
+ });
2511
+ export const oktaResetMFAOutputSchema = z.object({
2512
+ success: z.boolean().describe("Whether the MFA reset was successful."),
2513
+ error: z.string().describe("Error message if the MFA reset failed.").optional(),
2514
+ });
2515
+ export const oktaListMFAParamsSchema = z.object({
2516
+ userId: z.string().describe("The ID of the user whose MFA factors need to be listed."),
2517
+ });
2518
+ export const oktaListMFAOutputSchema = z.object({
2519
+ success: z.boolean().describe("Whether the MFA factors were successfully retrieved."),
2520
+ factors: z
2521
+ .array(z.object({
2522
+ id: z.string().describe("The ID of the MFA factor."),
2523
+ factorType: z
2524
+ .string()
2525
+ .describe("The type of the MFA factor (e.g., question, sms, token:software:totp).")
2526
+ .optional(),
2527
+ provider: z.string().describe("The provider of the MFA factor (e.g., OKTA).").optional(),
2528
+ vendorName: z.string().describe("The vendor name of the MFA factor.").optional(),
2529
+ status: z.string().describe("The status of the MFA factor (e.g., ACTIVE, PENDING_ACTIVATION).").optional(),
2530
+ created: z.string().describe("The timestamp when the MFA factor was created.").optional(),
2531
+ lastUpdated: z.string().describe("The timestamp when the MFA factor was last updated.").optional(),
2532
+ profile: z
2533
+ .object({})
2534
+ .catchall(z.any())
2535
+ .describe("Additional profile information for the MFA factor.")
2536
+ .optional(),
2537
+ _links: z.object({}).catchall(z.any()).describe("Links related to the MFA factor.").optional(),
2538
+ _embedded: z
2539
+ .object({})
2540
+ .catchall(z.any())
2541
+ .describe("Embedded data for the MFA factor (e.g., activation details).")
2542
+ .optional(),
2543
+ }))
2544
+ .describe("List of MFA factors for the user.")
2545
+ .optional(),
2546
+ error: z.string().describe("Error message if the MFA factors could not be retrieved.").optional(),
2547
+ });
2548
+ export const oktaResetPasswordParamsSchema = z.object({
2549
+ userId: z.string().describe("The ID of the user whose password needs to be reset."),
2550
+ sendEmail: z.boolean().describe("Whether to send a password reset email to the user."),
2551
+ revokeSessions: z
2552
+ .boolean()
2553
+ .describe("Whether to revoke all active sessions for the user after the password reset.")
2554
+ .optional(),
2555
+ });
2556
+ export const oktaResetPasswordOutputSchema = z.object({
2557
+ success: z.boolean().describe("Whether the password reset was successful."),
2558
+ error: z.string().describe("Error message if the password reset failed.").optional(),
2559
+ resetPasswordUrl: z.string().describe("The URL for resetting the password manually.").optional(),
2560
+ });
2271
2561
  export const gongGetGongTranscriptsParamsSchema = z.object({
2272
2562
  userRole: z.string().describe("The role of users whose transcripts are being fetched"),
2273
2563
  trackers: z
@@ -1,4 +1,4 @@
1
- import type { ActionTemplate } from "../actions/parse";
1
+ import type { ActionTemplate } from "../actions/parse.js";
2
2
  export type ActionGroups = Record<string, {
3
3
  description: string;
4
4
  actions: ActionTemplate[];
@@ -1,4 +1,4 @@
1
- import { genericFillTemplateDefinition, confluenceOverwritePageDefinition, googlemapsValidateAddressDefinition, mathAddDefinition, mongoInsertMongoDocDefinition, slackSendMessageDefinition, slackGetChannelMessagesDefinition, snowflakeGetRowByFieldValueDefinition, zendeskCreateZendeskTicketDefinition, zendeskListZendeskTicketsDefinition, zendeskGetTicketDetailsDefinition, zendeskUpdateTicketStatusDefinition, zendeskAddCommentToTicketDefinition, zendeskAssignTicketDefinition, openstreetmapGetLatitudeLongitudeFromLocationDefinition, nwsGetForecastForLocationDefinition, jiraAssignJiraTicketDefinition, jiraCommentJiraTicketDefinition, jiraCreateJiraTicketDefinition, jiraGetJiraTicketDetailsDefinition, jiraGetJiraTicketHistoryDefinition, jiraUpdateJiraTicketDetailsDefinition, jiraUpdateJiraTicketStatusDefinition, googlemapsNearbysearchRestaurantsDefinition, firecrawlScrapeUrlDefinition, resendSendEmailDefinition, linkedinCreateShareLinkedinPostUrlDefinition, googleOauthCreateNewGoogleDocDefinition, xCreateShareXPostUrlDefinition, firecrawlScrapeTweetDataWithNitterDefinition, finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition, confluenceFetchPageContentDefinition, snowflakeRunSnowflakeQueryDefinition, lookerEnableUserByEmailDefinition, googleOauthUpdateDocDefinition, googleOauthScheduleCalendarMeetingDefinition, googleOauthListCalendarsDefinition, googleOauthListCalendarEventsDefinition, googleOauthUpdateCalendarEventDefinition, googleOauthDeleteCalendarEventDefinition, googleOauthCreateSpreadsheetDefinition, googleOauthUpdateSpreadsheetDefinition, googleOauthCreatePresentationDefinition, googleOauthUpdatePresentationDefinition, googleOauthSearchDriveByKeywordsDefinition, googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition, googleOauthListGroupsDefinition, googleOauthGetGroupDefinition, googleOauthListGroupMembersDefinition, googleOauthHasGroupMemberDefinition, googleOauthAddGroupMemberDefinition, googleOauthDeleteGroupMemberDefinition, salesforceUpdateRecordDefinition, salesforceCreateCaseDefinition, salesforceGenerateSalesReportDefinition, salesforceGetRecordDefinition, salesforceGetSalesforceRecordsByQueryDefinition, microsoftMessageTeamsChatDefinition, microsoftMessageTeamsChannelDefinition, asanaCommentTaskDefinition, asanaCreateTaskDefinition, asanaUpdateTaskDefinition, asanaSearchTasksDefinition, githubCreateOrUpdateFileDefinition, githubCreateBranchDefinition, githubCreatePullRequestDefinition, microsoftUpdateSpreadsheetDefinition, microsoftUpdateDocumentDefinition, microsoftCreateDocumentDefinition, microsoftGetDocumentDefinition, salesforceFetchSalesforceSchemaByObjectDefinition, firecrawlDeepResearchDefinition, jiraGetJiraIssuesByQueryDefinition, githubListPullRequestsDefinition, salesforceCreateRecordDefinition, ashbyCreateNoteDefinition, ashbyGetCandidateInfoDefinition, ashbyListCandidatesDefinition, ashbyListCandidateNotesDefinition, ashbySearchCandidatesDefinition, ashbyCreateCandidateDefinition, ashbyUpdateCandidateDefinition, ashbyAddCandidateToProjectDefinition, bingGetTopNSearchResultUrlsDefinition, gongGetGongTranscriptsDefinition, kandjiGetFVRecoveryKeyForDeviceDefinition, asanaListAsanaTasksByProjectDefinition, notionSearchByTitleDefinition, asanaGetTasksDetailsDefinition, jamfGetJamfComputerInventoryDefinition, jamfGetJamfFileVaultRecoveryKeyDefinition, } from "../actions/autogen/templates";
1
+ import { genericFillTemplateDefinition, confluenceOverwritePageDefinition, googlemapsValidateAddressDefinition, mathAddDefinition, mongoInsertMongoDocDefinition, slackSendMessageDefinition, slackGetChannelMessagesDefinition, snowflakeGetRowByFieldValueDefinition, zendeskCreateZendeskTicketDefinition, zendeskListZendeskTicketsDefinition, zendeskGetTicketDetailsDefinition, zendeskUpdateTicketStatusDefinition, zendeskAddCommentToTicketDefinition, zendeskAssignTicketDefinition, openstreetmapGetLatitudeLongitudeFromLocationDefinition, nwsGetForecastForLocationDefinition, jiraAssignJiraTicketDefinition, jiraCommentJiraTicketDefinition, jiraCreateJiraTicketDefinition, jiraGetJiraTicketDetailsDefinition, jiraGetJiraTicketHistoryDefinition, jiraUpdateJiraTicketDetailsDefinition, jiraUpdateJiraTicketStatusDefinition, googlemapsNearbysearchRestaurantsDefinition, firecrawlScrapeUrlDefinition, resendSendEmailDefinition, linkedinCreateShareLinkedinPostUrlDefinition, googleOauthCreateNewGoogleDocDefinition, xCreateShareXPostUrlDefinition, firecrawlScrapeTweetDataWithNitterDefinition, finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition, confluenceFetchPageContentDefinition, snowflakeRunSnowflakeQueryDefinition, lookerEnableUserByEmailDefinition, googleOauthUpdateDocDefinition, googleOauthScheduleCalendarMeetingDefinition, googleOauthListCalendarsDefinition, googleOauthListCalendarEventsDefinition, googleOauthUpdateCalendarEventDefinition, googleOauthDeleteCalendarEventDefinition, googleOauthCreateSpreadsheetDefinition, googleOauthUpdateSpreadsheetDefinition, googleOauthCreatePresentationDefinition, googleOauthUpdatePresentationDefinition, googleOauthSearchDriveByKeywordsDefinition, googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition, googleOauthListGroupsDefinition, googleOauthGetGroupDefinition, googleOauthListGroupMembersDefinition, googleOauthHasGroupMemberDefinition, googleOauthAddGroupMemberDefinition, googleOauthDeleteGroupMemberDefinition, salesforceUpdateRecordDefinition, salesforceCreateCaseDefinition, salesforceGenerateSalesReportDefinition, salesforceGetRecordDefinition, salesforceGetSalesforceRecordsByQueryDefinition, microsoftMessageTeamsChatDefinition, microsoftMessageTeamsChannelDefinition, asanaCommentTaskDefinition, asanaCreateTaskDefinition, asanaUpdateTaskDefinition, asanaSearchTasksDefinition, githubCreateOrUpdateFileDefinition, githubCreateBranchDefinition, githubCreatePullRequestDefinition, microsoftUpdateSpreadsheetDefinition, microsoftUpdateDocumentDefinition, microsoftCreateDocumentDefinition, microsoftGetDocumentDefinition, salesforceFetchSalesforceSchemaByObjectDefinition, firecrawlDeepResearchDefinition, jiraGetJiraIssuesByQueryDefinition, githubListPullRequestsDefinition, salesforceCreateRecordDefinition, ashbyCreateNoteDefinition, ashbyGetCandidateInfoDefinition, ashbyListCandidatesDefinition, ashbyListCandidateNotesDefinition, ashbySearchCandidatesDefinition, ashbyCreateCandidateDefinition, ashbyUpdateCandidateDefinition, ashbyAddCandidateToProjectDefinition, bingGetTopNSearchResultUrlsDefinition, gongGetGongTranscriptsDefinition, kandjiGetFVRecoveryKeyForDeviceDefinition, asanaListAsanaTasksByProjectDefinition, notionSearchByTitleDefinition, asanaGetTasksDetailsDefinition, jamfGetJamfComputerInventoryDefinition, jamfGetJamfFileVaultRecoveryKeyDefinition, oktaListOktaUsersDefinition, oktaGetOktaUserDefinition, oktaListOktaUserGroupsDefinition, oktaListOktaGroupsDefinition, oktaGetOktaGroupDefinition, oktaListOktaGroupMembersDefinition, oktaRemoveUserFromGroupDefinition, oktaAddUserToGroupDefinition, oktaResetPasswordDefinition, oktaResetMFADefinition, oktaListMFADefinition, } from "../actions/autogen/templates.js";
2
2
  export const ACTION_GROUPS = {
3
3
  GENERIC: {
4
4
  description: "Generic utility actions",
@@ -201,4 +201,20 @@ export const ACTION_GROUPS = {
201
201
  googleOauthDeleteGroupMemberDefinition,
202
202
  ],
203
203
  },
204
+ OKTA: {
205
+ description: "Actions for interacting with Okta",
206
+ actions: [
207
+ oktaListOktaUsersDefinition,
208
+ oktaGetOktaUserDefinition,
209
+ oktaListOktaUserGroupsDefinition,
210
+ oktaListOktaGroupsDefinition,
211
+ oktaGetOktaGroupDefinition,
212
+ oktaListOktaGroupMembersDefinition,
213
+ oktaRemoveUserFromGroupDefinition,
214
+ oktaAddUserToGroupDefinition,
215
+ oktaResetPasswordDefinition,
216
+ oktaResetMFADefinition,
217
+ oktaListMFADefinition,
218
+ ],
219
+ },
204
220
  };
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { ActionMapper } from "./actionMapper";
10
+ import { ActionMapper } from "./actionMapper.js";
11
11
  export function invokeAction(input) {
12
12
  return __awaiter(this, void 0, void 0, function* () {
13
13
  const { provider, name, parameters, authParams } = input;
@@ -13,7 +13,7 @@ import yaml from "js-yaml";
13
13
  import convert from "json-schema-to-zod";
14
14
  import { Project, VariableDeclarationKind } from "ts-morph";
15
15
  import { z } from "zod";
16
- import { snakeToPascal } from "../utils/string";
16
+ import { snakeToPascal } from "../utils/string.js";
17
17
  const jsonObjectSchema = z.object({
18
18
  type: z.string(),
19
19
  required: z.array(z.string()),
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { axiosClient } from "../../util/axiosClient";
11
11
  import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
12
- import { getWorkspaceIdFromProject, getUserIdByEmail } from "./utils";
12
+ import { getWorkspaceIdFromProject, getUserIdByEmail } from "./utils.js";
13
13
  const getTaskTemplates = (authToken, projectId) => __awaiter(void 0, void 0, void 0, function* () {
14
14
  const url = `https://app.asana.com/api/1.0/task_templates/?project=${projectId}`;
15
15
  try {
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { axiosClient } from "../../util/axiosClient";
11
11
  import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
12
- import { getUserIdByEmail, getWorkspaceIdAndPermalinkFromTask } from "./utils";
12
+ import { getUserIdByEmail, getWorkspaceIdAndPermalinkFromTask } from "./utils.js";
13
13
  const updateAsanaTask = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
14
14
  const { authToken } = authParams;
15
15
  const { name, taskId, description, customFields, completed, assignee, approvalStatus, dueAt } = params;
@@ -1,3 +1,3 @@
1
- import { type bingGetTopNSearchResultUrlsFunction } from "../../autogen/types";
1
+ import { type bingGetTopNSearchResultUrlsFunction } from "../../autogen/types.js";
2
2
  declare const getTopNSearchResultUrls: bingGetTopNSearchResultUrlsFunction;
3
3
  export default getTopNSearchResultUrls;
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { bingGetTopNSearchResultUrlsOutputSchema, } from "../../autogen/types";
11
- import { axiosClient } from "../../util/axiosClient";
10
+ import { bingGetTopNSearchResultUrlsOutputSchema, } from "../../autogen/types.js";
11
+ import { axiosClient } from "../../util/axiosClient.js";
12
12
  const getTopNSearchResultUrls = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
13
  var _b;
14
14
  const { query, count = 5, site } = params;
@@ -1,3 +1,3 @@
1
- import type { confluenceFetchPageContentFunction } from "../../autogen/types";
1
+ import type { confluenceFetchPageContentFunction } from "../../autogen/types.js";
2
2
  declare const confluenceFetchPageContent: confluenceFetchPageContentFunction;
3
3
  export default confluenceFetchPageContent;
@@ -7,9 +7,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { getConfluenceRequestConfig } from "./helpers";
11
- import { axiosClient } from "../../util/axiosClient";
12
- import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
10
+ import { getConfluenceRequestConfig } from "./helpers.js";
11
+ import { axiosClient } from "../../util/axiosClient.js";
12
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
13
13
  const confluenceFetchPageContent = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
14
14
  var _b, _c;
15
15
  const { pageId } = params;
@@ -1,3 +1,3 @@
1
- import type { confluenceOverwritePageFunction } from "../../autogen/types";
1
+ import type { confluenceOverwritePageFunction } from "../../autogen/types.js";
2
2
  declare const confluenceOverwritePage: confluenceOverwritePageFunction;
3
3
  export default confluenceOverwritePage;
@@ -7,9 +7,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { axiosClient } from "../../util/axiosClient";
11
- import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
12
- import { getConfluenceRequestConfig } from "./helpers";
10
+ import { axiosClient } from "../../util/axiosClient.js";
11
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
+ import { getConfluenceRequestConfig } from "./helpers.js";
13
13
  const confluenceOverwritePage = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
14
14
  const { pageId, content, title } = params;
15
15
  const { authToken } = authParams;
@@ -1,3 +1,3 @@
1
- import type { finnhubGetBasicFinancialsFunction } from "../../autogen/types";
1
+ import type { finnhubGetBasicFinancialsFunction } from "../../autogen/types.js";
2
2
  declare const getBasicFinancials: finnhubGetBasicFinancialsFunction;
3
3
  export default getBasicFinancials;
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { finnhubGetBasicFinancialsOutputSchema } from "../../autogen/types";
11
- import { axiosClient } from "../../util/axiosClient";
10
+ import { finnhubGetBasicFinancialsOutputSchema } from "../../autogen/types.js";
11
+ import { axiosClient } from "../../util/axiosClient.js";
12
12
  function transformData(data) {
13
13
  return Object.entries(data).map(([key, value]) => ({
14
14
  metric: key,
@@ -1,3 +1,3 @@
1
- import type { finnhubSymbolLookupFunction } from "../../autogen/types";
1
+ import type { finnhubSymbolLookupFunction } from "../../autogen/types.js";
2
2
  declare const symbolLookup: finnhubSymbolLookupFunction;
3
3
  export default symbolLookup;
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { finnhubSymbolLookupOutputSchema } from "../../autogen/types";
11
- import { axiosClient } from "../../util/axiosClient";
10
+ import { finnhubSymbolLookupOutputSchema } from "../../autogen/types.js";
11
+ import { axiosClient } from "../../util/axiosClient.js";
12
12
  const symbolLookup = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
13
  try {
14
14
  const apiKey = authParams.apiKey;
@@ -1,3 +1,3 @@
1
- import type { firecrawlDeepResearchFunction } from "../../autogen/types";
1
+ import type { firecrawlDeepResearchFunction } from "../../autogen/types.js";
2
2
  declare const deepResearch: firecrawlDeepResearchFunction;
3
3
  export default deepResearch;
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import FirecrawlApp from "@mendable/firecrawl-js";
11
- import { firecrawlDeepResearchOutputSchema } from "../../autogen/types";
11
+ import { firecrawlDeepResearchOutputSchema } from "../../autogen/types.js";
12
12
  const deepResearch = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
13
  const { query, maxDepth, maxUrls, timeLimit } = params;
14
14
  const firecrawl = new FirecrawlApp({
@@ -1,3 +1,3 @@
1
- import type { firecrawlScrapeTweetDataWithNitterFunction } from "../../autogen/types";
1
+ import type { firecrawlScrapeTweetDataWithNitterFunction } from "../../autogen/types.js";
2
2
  declare const scrapeTweetDataWithNitter: firecrawlScrapeTweetDataWithNitterFunction;
3
3
  export default scrapeTweetDataWithNitter;
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import FirecrawlApp from "@mendable/firecrawl-js";
11
- import { MISSING_API_KEY } from "../../util/missingAuthConstants";
11
+ import { MISSING_API_KEY } from "../../util/missingAuthConstants.js";
12
12
  const scrapeTweetDataWithNitter = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
13
  const tweetUrlRegex = /^(?:https?:\/\/)?(?:www\.)?(?:twitter\.com|x\.com)\/([a-zA-Z0-9_]+)\/status\/(\d+)(?:\?.*)?$/;
14
14
  if (!tweetUrlRegex.test(params.tweetUrl)) {
@@ -1,3 +1,3 @@
1
- import type { firecrawlScrapeUrlFunction } from "../../autogen/types";
1
+ import type { firecrawlScrapeUrlFunction } from "../../autogen/types.js";
2
2
  declare const scrapeUrl: firecrawlScrapeUrlFunction;
3
3
  export default scrapeUrl;
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import FirecrawlApp from "@mendable/firecrawl-js";
11
- import { firecrawlScrapeUrlOutputSchema } from "../../autogen/types";
11
+ import { firecrawlScrapeUrlOutputSchema } from "../../autogen/types.js";
12
12
  const scrapeUrl = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
13
  const firecrawl = new FirecrawlApp({
14
14
  apiKey: authParams.apiKey,
@@ -1,4 +1,4 @@
1
- import type { githubCreateBranchFunction } from "../../autogen/types";
1
+ import type { githubCreateBranchFunction } from "../../autogen/types.js";
2
2
  /**
3
3
  * Creates a new branch in a GitHub repository
4
4
  */
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
10
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
11
11
  /**
12
12
  * Creates a new branch in a GitHub repository
13
13
  */
@@ -1,4 +1,4 @@
1
- import type { githubCreateOrUpdateFileFunction } from "../../autogen/types";
1
+ import type { githubCreateOrUpdateFileFunction } from "../../autogen/types.js";
2
2
  /**
3
3
  * Creates or updates a file in a GitHub repository
4
4
  */
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { z } from "zod";
11
- import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
11
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
12
  /**
13
13
  * Creates or updates a file in a GitHub repository
14
14
  */
@@ -1,4 +1,4 @@
1
- import type { githubCreatePullRequestFunction } from "../../autogen/types";
1
+ import type { githubCreatePullRequestFunction } from "../../autogen/types.js";
2
2
  /**
3
3
  * Creates a pull request in a GitHub repository
4
4
  */
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
10
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
11
11
  /**
12
12
  * Creates a pull request in a GitHub repository
13
13
  */
@@ -1,3 +1,3 @@
1
- import { type githubListPullRequestsFunction } from "../../autogen/types";
1
+ import { type githubListPullRequestsFunction } from "../../autogen/types.js";
2
2
  declare const listPullRequests: githubListPullRequestsFunction;
3
3
  export default listPullRequests;
@@ -8,8 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import axios from "axios";
11
- import { githubListPullRequestsOutputSchema, } from "../../autogen/types";
12
- import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
11
+ import { githubListPullRequestsOutputSchema, } from "../../autogen/types.js";
12
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
13
13
  const listPullRequests = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
14
14
  const { authToken } = authParams;
15
15
  if (!authToken) {
@@ -1,3 +1,3 @@
1
- import type { gongGetGongTranscriptsFunction } from "../../autogen/types";
1
+ import type { gongGetGongTranscriptsFunction } from "../../autogen/types.js";
2
2
  declare const getGongTranscripts: gongGetGongTranscriptsFunction;
3
3
  export default getGongTranscripts;
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  };
21
21
  import axios, { AxiosError } from "axios";
22
22
  import { z } from "zod";
23
- import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants";
23
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
24
24
  const UserSchema = z
25
25
  .object({
26
26
  id: z.string(),