@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.
- package/dist/actions/actionMapper.d.ts +1 -1
- package/dist/actions/actionMapper.js +162 -94
- package/dist/actions/autogen/templates.d.ts +12 -1
- package/dist/actions/autogen/templates.js +888 -0
- package/dist/actions/autogen/types.d.ts +997 -0
- package/dist/actions/autogen/types.js +290 -0
- package/dist/actions/groups.d.ts +1 -1
- package/dist/actions/groups.js +17 -1
- package/dist/actions/invoke.js +1 -1
- package/dist/actions/parse.js +1 -1
- package/dist/actions/providers/asana/createAsanaTask.js +1 -1
- package/dist/actions/providers/asana/updateAsanaTask.js +1 -1
- package/dist/actions/providers/bing/getTopNSearchResultUrls.d.ts +1 -1
- package/dist/actions/providers/bing/getTopNSearchResultUrls.js +2 -2
- package/dist/actions/providers/confluence/fetchPageContent.d.ts +1 -1
- package/dist/actions/providers/confluence/fetchPageContent.js +3 -3
- package/dist/actions/providers/confluence/overwritePage.d.ts +1 -1
- package/dist/actions/providers/confluence/overwritePage.js +3 -3
- package/dist/actions/providers/finnhub/getBasicFinancials.d.ts +1 -1
- package/dist/actions/providers/finnhub/getBasicFinancials.js +2 -2
- package/dist/actions/providers/finnhub/symbolLookup.d.ts +1 -1
- package/dist/actions/providers/finnhub/symbolLookup.js +2 -2
- package/dist/actions/providers/firecrawl/deepResearch.d.ts +1 -1
- package/dist/actions/providers/firecrawl/deepResearch.js +1 -1
- package/dist/actions/providers/firecrawl/scrapeTweetDataWithNitter.d.ts +1 -1
- package/dist/actions/providers/firecrawl/scrapeTweetDataWithNitter.js +1 -1
- package/dist/actions/providers/firecrawl/scrapeUrl.d.ts +1 -1
- package/dist/actions/providers/firecrawl/scrapeUrl.js +1 -1
- package/dist/actions/providers/github/createBranch.d.ts +1 -1
- package/dist/actions/providers/github/createBranch.js +1 -1
- package/dist/actions/providers/github/createOrUpdateFile.d.ts +1 -1
- package/dist/actions/providers/github/createOrUpdateFile.js +1 -1
- package/dist/actions/providers/github/createPullRequest.d.ts +1 -1
- package/dist/actions/providers/github/createPullRequest.js +1 -1
- package/dist/actions/providers/github/listPullRequests.d.ts +1 -1
- package/dist/actions/providers/github/listPullRequests.js +2 -2
- package/dist/actions/providers/gong/getGongTranscripts.d.ts +1 -1
- package/dist/actions/providers/gong/getGongTranscripts.js +1 -1
- package/dist/actions/providers/googlemail/listGmailThreads.js +1 -1
- package/dist/actions/providers/googlemail/searchGmailMessages.js +1 -1
- package/dist/actions/providers/jira/assignJiraTicket.js +1 -1
- package/dist/actions/providers/jira/createJiraTicket.js +1 -1
- package/dist/actions/providers/math/add.d.ts +1 -1
- package/dist/actions/providers/microsoft/createDocument.js +1 -1
- package/dist/actions/providers/microsoft/getDocument.js +1 -1
- package/dist/actions/providers/microsoft/messageTeamsChannel.js +1 -1
- package/dist/actions/providers/microsoft/messageTeamsChat.js +1 -1
- package/dist/actions/providers/microsoft/updateDocument.js +1 -1
- package/dist/actions/providers/microsoft/updateSpreadsheet.js +1 -1
- package/dist/actions/providers/okta/addUserToGroup.d.ts +3 -0
- package/dist/actions/providers/okta/addUserToGroup.js +56 -0
- package/dist/actions/providers/okta/getOktaGroup.d.ts +3 -0
- package/dist/actions/providers/okta/getOktaGroup.js +73 -0
- package/dist/actions/providers/okta/getOktaUser.d.ts +3 -0
- package/dist/actions/providers/okta/getOktaUser.js +40 -0
- package/dist/actions/providers/okta/listMFA.d.ts +3 -0
- package/dist/actions/providers/okta/listMFA.js +52 -0
- package/dist/actions/providers/okta/listOktaGroupMembers.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaGroupMembers.js +99 -0
- package/dist/actions/providers/okta/listOktaGroups.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaGroups.js +92 -0
- package/dist/actions/providers/okta/listOktaUserGroups.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaUserGroups.js +83 -0
- package/dist/actions/providers/okta/listOktaUsers.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaUsers.js +100 -0
- package/dist/actions/providers/okta/removeUserFromGroup.d.ts +3 -0
- package/dist/actions/providers/okta/removeUserFromGroup.js +56 -0
- package/dist/actions/providers/okta/resetMFA.d.ts +3 -0
- package/dist/actions/providers/okta/resetMFA.js +62 -0
- package/dist/actions/providers/okta/resetPassword.d.ts +3 -0
- package/dist/actions/providers/okta/resetPassword.js +57 -0
- package/dist/actions/providers/slack/getChannelMessages.js +1 -1
- package/dist/actions/providers/slack/sendMessage.js +1 -1
- package/dist/actions/providers/snowflake/getRowByFieldValue.js +1 -1
- package/dist/actions/providers/snowflake/runSnowflakeQuery.js +1 -1
- package/dist/app.d.ts +2 -2
- package/dist/app.js +2 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- 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
|
package/dist/actions/groups.d.ts
CHANGED
package/dist/actions/groups.js
CHANGED
@@ -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
|
};
|
package/dist/actions/invoke.js
CHANGED
@@ -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;
|
package/dist/actions/parse.js
CHANGED
@@ -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;
|
@@ -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;
|
@@ -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,
|
@@ -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;
|
@@ -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)) {
|
@@ -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,
|
@@ -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
|
*/
|
@@ -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
|
*/
|
@@ -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
|
*/
|
@@ -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) {
|
@@ -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(),
|