@credal/actions 0.1.100 → 0.2.0
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.js +24 -20
- package/dist/actions/autogen/templates.d.ts +2 -1
- package/dist/actions/autogen/templates.js +70 -135
- package/dist/actions/autogen/types.d.ts +79 -146
- package/dist/actions/autogen/types.js +52 -54
- package/dist/actions/groups.js +4 -4
- package/dist/actions/parse.js +10 -0
- package/dist/actions/providers/jamf/getJamfComputerInventory.d.ts +3 -0
- package/dist/actions/providers/jamf/getJamfComputerInventory.js +55 -0
- package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.d.ts +3 -0
- package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.js +58 -0
- package/dist/actions/providers/jamf/types.d.ts +8 -0
- package/dist/actions/providers/jamf/types.js +7 -0
- package/dist/app.d.ts +4 -1
- package/dist/app.js +1 -21
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -4
- package/package.json +1 -1
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.ActionMapper = void 0;
|
7
7
|
const types_1 = require("./autogen/types");
|
8
|
-
const callCopilot_1 = __importDefault(require("./providers/credal/callCopilot"));
|
9
8
|
const validateAddress_1 = __importDefault(require("./providers/googlemaps/validateAddress"));
|
10
9
|
const add_1 = __importDefault(require("./providers/math/add"));
|
11
10
|
const fillTemplate_1 = __importDefault(require("./providers/generic/fillTemplate"));
|
@@ -100,6 +99,8 @@ const listGroupMembers_1 = __importDefault(require("./providers/google-oauth/lis
|
|
100
99
|
const hasGroupMember_1 = __importDefault(require("./providers/google-oauth/hasGroupMember"));
|
101
100
|
const addGroupMember_1 = __importDefault(require("./providers/google-oauth/addGroupMember"));
|
102
101
|
const deleteGroupMember_1 = __importDefault(require("./providers/google-oauth/deleteGroupMember"));
|
102
|
+
const getJamfComputerInventory_1 = __importDefault(require("./providers/jamf/getJamfComputerInventory"));
|
103
|
+
const getJamfFileVaultRecoveryKey_1 = __importDefault(require("./providers/jamf/getJamfFileVaultRecoveryKey"));
|
103
104
|
exports.ActionMapper = {
|
104
105
|
generic: {
|
105
106
|
fillTemplate: {
|
@@ -140,6 +141,18 @@ exports.ActionMapper = {
|
|
140
141
|
outputSchema: types_1.asanaGetTasksDetailsOutputSchema,
|
141
142
|
},
|
142
143
|
},
|
144
|
+
jamf: {
|
145
|
+
getJamfComputerInventory: {
|
146
|
+
fn: getJamfComputerInventory_1.default,
|
147
|
+
paramsSchema: types_1.jamfGetJamfComputerInventoryParamsSchema,
|
148
|
+
outputSchema: types_1.jamfGetJamfComputerInventoryOutputSchema,
|
149
|
+
},
|
150
|
+
getJamfFileVaultRecoveryKey: {
|
151
|
+
fn: getJamfFileVaultRecoveryKey_1.default,
|
152
|
+
paramsSchema: types_1.jamfGetJamfFileVaultRecoveryKeyParamsSchema,
|
153
|
+
outputSchema: types_1.jamfGetJamfFileVaultRecoveryKeyOutputSchema,
|
154
|
+
},
|
155
|
+
},
|
143
156
|
math: {
|
144
157
|
add: {
|
145
158
|
fn: add_1.default,
|
@@ -183,13 +196,6 @@ exports.ActionMapper = {
|
|
183
196
|
outputSchema: types_1.googlemapsNearbysearchRestaurantsOutputSchema,
|
184
197
|
},
|
185
198
|
},
|
186
|
-
credal: {
|
187
|
-
callCopilot: {
|
188
|
-
fn: callCopilot_1.default,
|
189
|
-
paramsSchema: types_1.credalCallCopilotParamsSchema,
|
190
|
-
outputSchema: types_1.credalCallCopilotOutputSchema,
|
191
|
-
},
|
192
|
-
},
|
193
199
|
kandji: {
|
194
200
|
getFVRecoveryKeyForDevice: {
|
195
201
|
fn: getFVRecoveryKeyForDevice_1.default,
|
@@ -383,6 +389,16 @@ exports.ActionMapper = {
|
|
383
389
|
paramsSchema: types_1.googleOauthSearchDriveByKeywordsParamsSchema,
|
384
390
|
outputSchema: types_1.googleOauthSearchDriveByKeywordsOutputSchema,
|
385
391
|
},
|
392
|
+
searchGmailMessages: {
|
393
|
+
fn: searchGmailMessages_1.default,
|
394
|
+
paramsSchema: types_1.googlemailSearchGmailMessagesParamsSchema,
|
395
|
+
outputSchema: types_1.googlemailSearchGmailMessagesOutputSchema,
|
396
|
+
},
|
397
|
+
listGmailThreads: {
|
398
|
+
fn: listGmailThreads_1.default,
|
399
|
+
paramsSchema: types_1.googlemailListGmailThreadsParamsSchema,
|
400
|
+
outputSchema: types_1.googlemailListGmailThreadsOutputSchema,
|
401
|
+
},
|
386
402
|
listCalendars: {
|
387
403
|
fn: listCalendars_1.default,
|
388
404
|
paramsSchema: types_1.googleOauthListCalendarsParamsSchema,
|
@@ -434,18 +450,6 @@ exports.ActionMapper = {
|
|
434
450
|
outputSchema: types_1.googleOauthDeleteGroupMemberOutputSchema,
|
435
451
|
},
|
436
452
|
},
|
437
|
-
googlemail: {
|
438
|
-
searchGmailMessages: {
|
439
|
-
fn: searchGmailMessages_1.default,
|
440
|
-
paramsSchema: types_1.googlemailSearchGmailMessagesParamsSchema,
|
441
|
-
outputSchema: types_1.googlemailSearchGmailMessagesOutputSchema,
|
442
|
-
},
|
443
|
-
listGmailThreads: {
|
444
|
-
fn: listGmailThreads_1.default,
|
445
|
-
paramsSchema: types_1.googlemailListGmailThreadsParamsSchema,
|
446
|
-
outputSchema: types_1.googlemailListGmailThreadsOutputSchema,
|
447
|
-
},
|
448
|
-
},
|
449
453
|
x: {
|
450
454
|
createShareXPostUrl: {
|
451
455
|
fn: createXSharePostUrl_1.default,
|
@@ -23,7 +23,6 @@ export declare const kandjiGetFVRecoveryKeyForDeviceDefinition: ActionTemplate;
|
|
23
23
|
export declare const googlemapsValidateAddressDefinition: ActionTemplate;
|
24
24
|
export declare const googlemapsNearbysearchRestaurantsDefinition: ActionTemplate;
|
25
25
|
export declare const bingGetTopNSearchResultUrlsDefinition: ActionTemplate;
|
26
|
-
export declare const credalCallCopilotDefinition: ActionTemplate;
|
27
26
|
export declare const zendeskCreateZendeskTicketDefinition: ActionTemplate;
|
28
27
|
export declare const zendeskListZendeskTicketsDefinition: ActionTemplate;
|
29
28
|
export declare const zendeskGetTicketDetailsDefinition: ActionTemplate;
|
@@ -92,3 +91,5 @@ export declare const githubCreateBranchDefinition: ActionTemplate;
|
|
92
91
|
export declare const githubCreatePullRequestDefinition: ActionTemplate;
|
93
92
|
export declare const githubListPullRequestsDefinition: ActionTemplate;
|
94
93
|
export declare const notionSearchByTitleDefinition: ActionTemplate;
|
94
|
+
export declare const jamfGetJamfFileVaultRecoveryKeyDefinition: ActionTemplate;
|
95
|
+
export declare const jamfGetJamfComputerInventoryDefinition: ActionTemplate;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.googleOauthDeleteCalendarEventDefinition = exports.googleOauthUpdateCalendarEventDefinition = exports.googleOauthListCalendarEventsDefinition = exports.googleOauthListCalendarsDefinition = exports.googleOauthScheduleCalendarMeetingDefinition = exports.googleOauthUpdateDocDefinition = exports.googleOauthCreateNewGoogleDocDefinition = exports.googleOauthSearchFilesByKeywordsDefinition = exports.resendSendEmailDefinition = exports.firecrawlScrapeTweetDataWithNitterDefinition = exports.firecrawlScrapeUrlDefinition = exports.firecrawlDeepResearchDefinition = exports.nwsGetForecastForLocationDefinition = exports.openstreetmapGetLatitudeLongitudeFromLocationDefinition = exports.snowflakeRunSnowflakeQueryDefinition = exports.snowflakeGetRowByFieldValueDefinition = exports.mongoInsertMongoDocDefinition = exports.xCreateShareXPostUrlDefinition = exports.linkedinCreateShareLinkedinPostUrlDefinition = exports.zendeskAssignTicketDefinition = exports.zendeskAddCommentToTicketDefinition = exports.zendeskUpdateTicketStatusDefinition = exports.zendeskGetTicketDetailsDefinition = exports.zendeskListZendeskTicketsDefinition = exports.zendeskCreateZendeskTicketDefinition = exports.
|
4
|
-
exports.notionSearchByTitleDefinition = exports.githubListPullRequestsDefinition = exports.githubCreatePullRequestDefinition = exports.githubCreateBranchDefinition = exports.githubCreateOrUpdateFileDefinition = exports.microsoftGetDocumentDefinition = exports.microsoftMessageTeamsChannelDefinition = exports.microsoftMessageTeamsChatDefinition = exports.microsoftUpdateSpreadsheetDefinition = exports.microsoftUpdateDocumentDefinition = exports.microsoftCreateDocumentDefinition = exports.salesforceFetchSalesforceSchemaByObjectDefinition = exports.salesforceGetRecordDefinition = exports.salesforceGetSalesforceRecordsByQueryDefinition = exports.salesforceGenerateSalesReportDefinition = exports.salesforceCreateCaseDefinition = exports.salesforceCreateRecordDefinition = exports.salesforceUpdateRecordDefinition = exports.ashbyUpdateCandidateDefinition = exports.ashbyCreateCandidateDefinition = exports.ashbyListCandidateNotesDefinition = exports.ashbySearchCandidatesDefinition = exports.ashbyListCandidatesDefinition = exports.ashbyAddCandidateToProjectDefinition = exports.ashbyGetCandidateInfoDefinition = exports.ashbyCreateNoteDefinition = exports.lookerEnableUserByEmailDefinition = exports.finnhubGetBasicFinancialsDefinition = exports.finnhubSymbolLookupDefinition = exports.gongGetGongTranscriptsDefinition = exports.googlemailListGmailThreadsDefinition = exports.googlemailSearchGmailMessagesDefinition = exports.googleOauthDeleteGroupMemberDefinition = exports.googleOauthAddGroupMemberDefinition = exports.googleOauthHasGroupMemberDefinition = exports.googleOauthListGroupMembersDefinition = exports.googleOauthGetGroupDefinition = exports.googleOauthListGroupsDefinition = exports.googleOauthSearchDriveByKeywordsDefinition = exports.googleOauthUpdatePresentationDefinition = exports.googleOauthCreatePresentationDefinition = exports.googleOauthUpdateSpreadsheetDefinition =
|
3
|
+
exports.googleOauthCreateSpreadsheetDefinition = exports.googleOauthDeleteCalendarEventDefinition = exports.googleOauthUpdateCalendarEventDefinition = exports.googleOauthListCalendarEventsDefinition = exports.googleOauthListCalendarsDefinition = exports.googleOauthScheduleCalendarMeetingDefinition = exports.googleOauthUpdateDocDefinition = exports.googleOauthCreateNewGoogleDocDefinition = exports.googleOauthSearchFilesByKeywordsDefinition = exports.resendSendEmailDefinition = exports.firecrawlScrapeTweetDataWithNitterDefinition = exports.firecrawlScrapeUrlDefinition = exports.firecrawlDeepResearchDefinition = exports.nwsGetForecastForLocationDefinition = exports.openstreetmapGetLatitudeLongitudeFromLocationDefinition = exports.snowflakeRunSnowflakeQueryDefinition = exports.snowflakeGetRowByFieldValueDefinition = exports.mongoInsertMongoDocDefinition = exports.xCreateShareXPostUrlDefinition = exports.linkedinCreateShareLinkedinPostUrlDefinition = exports.zendeskAssignTicketDefinition = exports.zendeskAddCommentToTicketDefinition = exports.zendeskUpdateTicketStatusDefinition = exports.zendeskGetTicketDetailsDefinition = exports.zendeskListZendeskTicketsDefinition = exports.zendeskCreateZendeskTicketDefinition = exports.bingGetTopNSearchResultUrlsDefinition = exports.googlemapsNearbysearchRestaurantsDefinition = exports.googlemapsValidateAddressDefinition = exports.kandjiGetFVRecoveryKeyForDeviceDefinition = exports.jiraGetJiraIssuesByQueryDefinition = exports.jiraUpdateJiraTicketStatusDefinition = exports.jiraUpdateJiraTicketDetailsDefinition = exports.jiraGetJiraTicketHistoryDefinition = exports.jiraGetJiraTicketDetailsDefinition = exports.jiraCreateJiraTicketDefinition = exports.jiraCommentJiraTicketDefinition = exports.jiraAssignJiraTicketDefinition = exports.confluenceFetchPageContentDefinition = exports.confluenceOverwritePageDefinition = exports.mathAddDefinition = exports.slackGetChannelMessagesDefinition = exports.slackSendMessageDefinition = exports.asanaGetTasksDetailsDefinition = exports.asanaSearchTasksDefinition = exports.asanaUpdateTaskDefinition = exports.asanaCreateTaskDefinition = exports.asanaListAsanaTasksByProjectDefinition = exports.asanaCommentTaskDefinition = exports.genericFillTemplateDefinition = void 0;
|
4
|
+
exports.jamfGetJamfComputerInventoryDefinition = exports.jamfGetJamfFileVaultRecoveryKeyDefinition = exports.notionSearchByTitleDefinition = exports.githubListPullRequestsDefinition = exports.githubCreatePullRequestDefinition = exports.githubCreateBranchDefinition = exports.githubCreateOrUpdateFileDefinition = exports.microsoftGetDocumentDefinition = exports.microsoftMessageTeamsChannelDefinition = exports.microsoftMessageTeamsChatDefinition = exports.microsoftUpdateSpreadsheetDefinition = exports.microsoftUpdateDocumentDefinition = exports.microsoftCreateDocumentDefinition = exports.salesforceFetchSalesforceSchemaByObjectDefinition = exports.salesforceGetRecordDefinition = exports.salesforceGetSalesforceRecordsByQueryDefinition = exports.salesforceGenerateSalesReportDefinition = exports.salesforceCreateCaseDefinition = exports.salesforceCreateRecordDefinition = exports.salesforceUpdateRecordDefinition = exports.ashbyUpdateCandidateDefinition = exports.ashbyCreateCandidateDefinition = exports.ashbyListCandidateNotesDefinition = exports.ashbySearchCandidatesDefinition = exports.ashbyListCandidatesDefinition = exports.ashbyAddCandidateToProjectDefinition = exports.ashbyGetCandidateInfoDefinition = exports.ashbyCreateNoteDefinition = exports.lookerEnableUserByEmailDefinition = exports.finnhubGetBasicFinancialsDefinition = exports.finnhubSymbolLookupDefinition = exports.gongGetGongTranscriptsDefinition = exports.googlemailListGmailThreadsDefinition = exports.googlemailSearchGmailMessagesDefinition = exports.googleOauthDeleteGroupMemberDefinition = exports.googleOauthAddGroupMemberDefinition = exports.googleOauthHasGroupMemberDefinition = exports.googleOauthListGroupMembersDefinition = exports.googleOauthGetGroupDefinition = exports.googleOauthListGroupsDefinition = exports.googleOauthSearchDriveByKeywordsDefinition = exports.googleOauthUpdatePresentationDefinition = exports.googleOauthCreatePresentationDefinition = exports.googleOauthUpdateSpreadsheetDefinition = void 0;
|
5
5
|
exports.genericFillTemplateDefinition = {
|
6
6
|
description: "Simple utility that takes a template and returns it filled in",
|
7
7
|
scopes: [],
|
@@ -1341,139 +1341,6 @@ exports.bingGetTopNSearchResultUrlsDefinition = {
|
|
1341
1341
|
name: "getTopNSearchResultUrls",
|
1342
1342
|
provider: "bing",
|
1343
1343
|
};
|
1344
|
-
exports.credalCallCopilotDefinition = {
|
1345
|
-
description: "Call Credal Copilot for response on a given query",
|
1346
|
-
scopes: [],
|
1347
|
-
parameters: {
|
1348
|
-
type: "object",
|
1349
|
-
required: ["agentId", "query", "userEmail"],
|
1350
|
-
properties: {
|
1351
|
-
agentId: {
|
1352
|
-
type: "string",
|
1353
|
-
description: "The ID of the copilot to call",
|
1354
|
-
},
|
1355
|
-
query: {
|
1356
|
-
type: "string",
|
1357
|
-
description: "The query to ask Credal Copilot",
|
1358
|
-
},
|
1359
|
-
userEmail: {
|
1360
|
-
type: "string",
|
1361
|
-
description: "The email of the user sending or authorizing the query",
|
1362
|
-
},
|
1363
|
-
},
|
1364
|
-
},
|
1365
|
-
output: {
|
1366
|
-
type: "object",
|
1367
|
-
required: ["response"],
|
1368
|
-
properties: {
|
1369
|
-
response: {
|
1370
|
-
type: "string",
|
1371
|
-
description: "The response from the Credal Copilot",
|
1372
|
-
},
|
1373
|
-
referencedSources: {
|
1374
|
-
type: "array",
|
1375
|
-
description: "The sources referenced in the response",
|
1376
|
-
items: {
|
1377
|
-
type: "object",
|
1378
|
-
description: "The source referenced in the response",
|
1379
|
-
required: ["id", "externalResourceId", "name"],
|
1380
|
-
properties: {
|
1381
|
-
id: {
|
1382
|
-
type: "string",
|
1383
|
-
description: "The id of the source",
|
1384
|
-
},
|
1385
|
-
externalResourceId: {
|
1386
|
-
type: "object",
|
1387
|
-
required: ["externalResourceId", "resourceType"],
|
1388
|
-
description: "The external resource id of the source",
|
1389
|
-
properties: {
|
1390
|
-
externalResourceId: {
|
1391
|
-
type: "string",
|
1392
|
-
description: "The external resource id of the source",
|
1393
|
-
},
|
1394
|
-
resourceType: {
|
1395
|
-
type: "string",
|
1396
|
-
description: "The type of the resource",
|
1397
|
-
},
|
1398
|
-
},
|
1399
|
-
},
|
1400
|
-
name: {
|
1401
|
-
type: "string",
|
1402
|
-
description: "The name of the source",
|
1403
|
-
},
|
1404
|
-
url: {
|
1405
|
-
type: "string",
|
1406
|
-
description: "The url of the source",
|
1407
|
-
},
|
1408
|
-
},
|
1409
|
-
},
|
1410
|
-
},
|
1411
|
-
sourcesInDataContext: {
|
1412
|
-
type: "array",
|
1413
|
-
description: "The sources in the data context of the response",
|
1414
|
-
items: {
|
1415
|
-
type: "object",
|
1416
|
-
description: "The source in the data context of the response",
|
1417
|
-
required: ["id", "externalResourceId", "name"],
|
1418
|
-
properties: {
|
1419
|
-
id: {
|
1420
|
-
type: "string",
|
1421
|
-
description: "The id of the source",
|
1422
|
-
},
|
1423
|
-
externalResourceId: {
|
1424
|
-
type: "object",
|
1425
|
-
description: "The external resource id of the source",
|
1426
|
-
required: ["externalResourceId", "resourceType"],
|
1427
|
-
properties: {
|
1428
|
-
externalResourceId: {
|
1429
|
-
type: "string",
|
1430
|
-
description: "The external resource id of the source",
|
1431
|
-
},
|
1432
|
-
resourceType: {
|
1433
|
-
type: "string",
|
1434
|
-
description: "The type of the resource",
|
1435
|
-
},
|
1436
|
-
},
|
1437
|
-
},
|
1438
|
-
name: {
|
1439
|
-
type: "string",
|
1440
|
-
description: "The name of the source",
|
1441
|
-
},
|
1442
|
-
url: {
|
1443
|
-
type: "string",
|
1444
|
-
description: "The url of the source",
|
1445
|
-
},
|
1446
|
-
},
|
1447
|
-
},
|
1448
|
-
},
|
1449
|
-
webSearchResults: {
|
1450
|
-
type: "array",
|
1451
|
-
description: "The web search results in the response",
|
1452
|
-
items: {
|
1453
|
-
type: "object",
|
1454
|
-
description: "The web search result in the response",
|
1455
|
-
required: ["title", "url"],
|
1456
|
-
properties: {
|
1457
|
-
title: {
|
1458
|
-
type: "string",
|
1459
|
-
description: "The title of the web search result",
|
1460
|
-
},
|
1461
|
-
url: {
|
1462
|
-
type: "string",
|
1463
|
-
description: "The url of the web search result",
|
1464
|
-
},
|
1465
|
-
contents: {
|
1466
|
-
type: "string",
|
1467
|
-
description: "The contents of the web search result",
|
1468
|
-
},
|
1469
|
-
},
|
1470
|
-
},
|
1471
|
-
},
|
1472
|
-
},
|
1473
|
-
},
|
1474
|
-
name: "callCopilot",
|
1475
|
-
provider: "credal",
|
1476
|
-
};
|
1477
1344
|
exports.zendeskCreateZendeskTicketDefinition = {
|
1478
1345
|
description: "Create a ticket in Zendesk",
|
1479
1346
|
scopes: [],
|
@@ -7537,3 +7404,71 @@ exports.notionSearchByTitleDefinition = {
|
|
7537
7404
|
name: "searchByTitle",
|
7538
7405
|
provider: "notion",
|
7539
7406
|
};
|
7407
|
+
exports.jamfGetJamfFileVaultRecoveryKeyDefinition = {
|
7408
|
+
description: "Retrieves the FileVault2 recovery key for a specified computer",
|
7409
|
+
scopes: [],
|
7410
|
+
parameters: {
|
7411
|
+
type: "object",
|
7412
|
+
required: ["computerId"],
|
7413
|
+
properties: {
|
7414
|
+
computerId: {
|
7415
|
+
type: "string",
|
7416
|
+
description: "The computerId of the device to get the FileVault2 recovery key for",
|
7417
|
+
},
|
7418
|
+
},
|
7419
|
+
},
|
7420
|
+
output: {
|
7421
|
+
type: "object",
|
7422
|
+
required: ["success"],
|
7423
|
+
properties: {
|
7424
|
+
success: {
|
7425
|
+
type: "boolean",
|
7426
|
+
description: "Whether the request was successful",
|
7427
|
+
},
|
7428
|
+
data: {
|
7429
|
+
type: "string",
|
7430
|
+
description: "The FileVault2 recovery key data",
|
7431
|
+
},
|
7432
|
+
error: {
|
7433
|
+
type: "string",
|
7434
|
+
description: "Error message if the request failed",
|
7435
|
+
},
|
7436
|
+
},
|
7437
|
+
},
|
7438
|
+
name: "getJamfFileVaultRecoveryKey",
|
7439
|
+
provider: "jamf",
|
7440
|
+
};
|
7441
|
+
exports.jamfGetJamfComputerInventoryDefinition = {
|
7442
|
+
description: "Retrieves computer inventory information from Jamf",
|
7443
|
+
scopes: [],
|
7444
|
+
parameters: {
|
7445
|
+
type: "object",
|
7446
|
+
required: [],
|
7447
|
+
properties: {
|
7448
|
+
section: {
|
7449
|
+
type: "string",
|
7450
|
+
description: "Optional section parameter to filter inventory data",
|
7451
|
+
},
|
7452
|
+
},
|
7453
|
+
},
|
7454
|
+
output: {
|
7455
|
+
type: "object",
|
7456
|
+
required: ["success"],
|
7457
|
+
properties: {
|
7458
|
+
success: {
|
7459
|
+
type: "boolean",
|
7460
|
+
description: "Whether the request was successful",
|
7461
|
+
},
|
7462
|
+
data: {
|
7463
|
+
type: "array",
|
7464
|
+
description: "The computer inventory data",
|
7465
|
+
},
|
7466
|
+
error: {
|
7467
|
+
type: "string",
|
7468
|
+
description: "Error message if the request failed",
|
7469
|
+
},
|
7470
|
+
},
|
7471
|
+
},
|
7472
|
+
name: "getJamfComputerInventory",
|
7473
|
+
provider: "jamf",
|
7474
|
+
};
|
@@ -1,4 +1,35 @@
|
|
1
1
|
import { z } from "zod";
|
2
|
+
export declare enum ProviderName {
|
3
|
+
GENERIC = "generic",
|
4
|
+
ASANA = "asana",
|
5
|
+
SLACK = "slack",
|
6
|
+
MATH = "math",
|
7
|
+
CONFLUENCE = "confluence",
|
8
|
+
JIRA = "jira",
|
9
|
+
KANDJI = "kandji",
|
10
|
+
GOOGLEMAPS = "googlemaps",
|
11
|
+
BING = "bing",
|
12
|
+
ZENDESK = "zendesk",
|
13
|
+
LINKEDIN = "linkedin",
|
14
|
+
X = "x",
|
15
|
+
MONGO = "mongo",
|
16
|
+
SNOWFLAKE = "snowflake",
|
17
|
+
OPENSTREETMAP = "openstreetmap",
|
18
|
+
NWS = "nws",
|
19
|
+
FIRECRAWL = "firecrawl",
|
20
|
+
RESEND = "resend",
|
21
|
+
GOOGLEOAUTH = "googleOauth",
|
22
|
+
GOOGLEMAIL = "googlemail",
|
23
|
+
GONG = "gong",
|
24
|
+
FINNHUB = "finnhub",
|
25
|
+
LOOKER = "looker",
|
26
|
+
ASHBY = "ashby",
|
27
|
+
SALESFORCE = "salesforce",
|
28
|
+
MICROSOFT = "microsoft",
|
29
|
+
GITHUB = "github",
|
30
|
+
NOTION = "notion",
|
31
|
+
JAMF = "jamf"
|
32
|
+
}
|
2
33
|
export type ActionFunction<P, A, O> = (input: {
|
3
34
|
params: P;
|
4
35
|
authParams: A;
|
@@ -1363,150 +1394,6 @@ export declare const bingGetTopNSearchResultUrlsOutputSchema: z.ZodObject<{
|
|
1363
1394
|
}>;
|
1364
1395
|
export type bingGetTopNSearchResultUrlsOutputType = z.infer<typeof bingGetTopNSearchResultUrlsOutputSchema>;
|
1365
1396
|
export type bingGetTopNSearchResultUrlsFunction = ActionFunction<bingGetTopNSearchResultUrlsParamsType, AuthParamsType, bingGetTopNSearchResultUrlsOutputType>;
|
1366
|
-
export declare const credalCallCopilotParamsSchema: z.ZodObject<{
|
1367
|
-
agentId: z.ZodString;
|
1368
|
-
query: z.ZodString;
|
1369
|
-
userEmail: z.ZodString;
|
1370
|
-
}, "strip", z.ZodTypeAny, {
|
1371
|
-
query: string;
|
1372
|
-
userEmail: string;
|
1373
|
-
agentId: string;
|
1374
|
-
}, {
|
1375
|
-
query: string;
|
1376
|
-
userEmail: string;
|
1377
|
-
agentId: string;
|
1378
|
-
}>;
|
1379
|
-
export type credalCallCopilotParamsType = z.infer<typeof credalCallCopilotParamsSchema>;
|
1380
|
-
export declare const credalCallCopilotOutputSchema: z.ZodObject<{
|
1381
|
-
response: z.ZodString;
|
1382
|
-
referencedSources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1383
|
-
id: z.ZodString;
|
1384
|
-
externalResourceId: z.ZodObject<{
|
1385
|
-
externalResourceId: z.ZodString;
|
1386
|
-
resourceType: z.ZodString;
|
1387
|
-
}, "strip", z.ZodTypeAny, {
|
1388
|
-
externalResourceId: string;
|
1389
|
-
resourceType: string;
|
1390
|
-
}, {
|
1391
|
-
externalResourceId: string;
|
1392
|
-
resourceType: string;
|
1393
|
-
}>;
|
1394
|
-
name: z.ZodString;
|
1395
|
-
url: z.ZodOptional<z.ZodString>;
|
1396
|
-
}, "strip", z.ZodTypeAny, {
|
1397
|
-
name: string;
|
1398
|
-
id: string;
|
1399
|
-
externalResourceId: {
|
1400
|
-
externalResourceId: string;
|
1401
|
-
resourceType: string;
|
1402
|
-
};
|
1403
|
-
url?: string | undefined;
|
1404
|
-
}, {
|
1405
|
-
name: string;
|
1406
|
-
id: string;
|
1407
|
-
externalResourceId: {
|
1408
|
-
externalResourceId: string;
|
1409
|
-
resourceType: string;
|
1410
|
-
};
|
1411
|
-
url?: string | undefined;
|
1412
|
-
}>, "many">>;
|
1413
|
-
sourcesInDataContext: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1414
|
-
id: z.ZodString;
|
1415
|
-
externalResourceId: z.ZodObject<{
|
1416
|
-
externalResourceId: z.ZodString;
|
1417
|
-
resourceType: z.ZodString;
|
1418
|
-
}, "strip", z.ZodTypeAny, {
|
1419
|
-
externalResourceId: string;
|
1420
|
-
resourceType: string;
|
1421
|
-
}, {
|
1422
|
-
externalResourceId: string;
|
1423
|
-
resourceType: string;
|
1424
|
-
}>;
|
1425
|
-
name: z.ZodString;
|
1426
|
-
url: z.ZodOptional<z.ZodString>;
|
1427
|
-
}, "strip", z.ZodTypeAny, {
|
1428
|
-
name: string;
|
1429
|
-
id: string;
|
1430
|
-
externalResourceId: {
|
1431
|
-
externalResourceId: string;
|
1432
|
-
resourceType: string;
|
1433
|
-
};
|
1434
|
-
url?: string | undefined;
|
1435
|
-
}, {
|
1436
|
-
name: string;
|
1437
|
-
id: string;
|
1438
|
-
externalResourceId: {
|
1439
|
-
externalResourceId: string;
|
1440
|
-
resourceType: string;
|
1441
|
-
};
|
1442
|
-
url?: string | undefined;
|
1443
|
-
}>, "many">>;
|
1444
|
-
webSearchResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
1445
|
-
title: z.ZodString;
|
1446
|
-
url: z.ZodString;
|
1447
|
-
contents: z.ZodOptional<z.ZodString>;
|
1448
|
-
}, "strip", z.ZodTypeAny, {
|
1449
|
-
title: string;
|
1450
|
-
url: string;
|
1451
|
-
contents?: string | undefined;
|
1452
|
-
}, {
|
1453
|
-
title: string;
|
1454
|
-
url: string;
|
1455
|
-
contents?: string | undefined;
|
1456
|
-
}>, "many">>;
|
1457
|
-
}, "strip", z.ZodTypeAny, {
|
1458
|
-
response: string;
|
1459
|
-
referencedSources?: {
|
1460
|
-
name: string;
|
1461
|
-
id: string;
|
1462
|
-
externalResourceId: {
|
1463
|
-
externalResourceId: string;
|
1464
|
-
resourceType: string;
|
1465
|
-
};
|
1466
|
-
url?: string | undefined;
|
1467
|
-
}[] | undefined;
|
1468
|
-
sourcesInDataContext?: {
|
1469
|
-
name: string;
|
1470
|
-
id: string;
|
1471
|
-
externalResourceId: {
|
1472
|
-
externalResourceId: string;
|
1473
|
-
resourceType: string;
|
1474
|
-
};
|
1475
|
-
url?: string | undefined;
|
1476
|
-
}[] | undefined;
|
1477
|
-
webSearchResults?: {
|
1478
|
-
title: string;
|
1479
|
-
url: string;
|
1480
|
-
contents?: string | undefined;
|
1481
|
-
}[] | undefined;
|
1482
|
-
}, {
|
1483
|
-
response: string;
|
1484
|
-
referencedSources?: {
|
1485
|
-
name: string;
|
1486
|
-
id: string;
|
1487
|
-
externalResourceId: {
|
1488
|
-
externalResourceId: string;
|
1489
|
-
resourceType: string;
|
1490
|
-
};
|
1491
|
-
url?: string | undefined;
|
1492
|
-
}[] | undefined;
|
1493
|
-
sourcesInDataContext?: {
|
1494
|
-
name: string;
|
1495
|
-
id: string;
|
1496
|
-
externalResourceId: {
|
1497
|
-
externalResourceId: string;
|
1498
|
-
resourceType: string;
|
1499
|
-
};
|
1500
|
-
url?: string | undefined;
|
1501
|
-
}[] | undefined;
|
1502
|
-
webSearchResults?: {
|
1503
|
-
title: string;
|
1504
|
-
url: string;
|
1505
|
-
contents?: string | undefined;
|
1506
|
-
}[] | undefined;
|
1507
|
-
}>;
|
1508
|
-
export type credalCallCopilotOutputType = z.infer<typeof credalCallCopilotOutputSchema>;
|
1509
|
-
export type credalCallCopilotFunction = ActionFunction<credalCallCopilotParamsType, AuthParamsType, credalCallCopilotOutputType>;
|
1510
1397
|
export declare const zendeskCreateZendeskTicketParamsSchema: z.ZodObject<{
|
1511
1398
|
subject: z.ZodString;
|
1512
1399
|
body: z.ZodOptional<z.ZodString>;
|
@@ -2961,22 +2848,22 @@ export declare const googleOauthListGroupMembersOutputSchema: z.ZodObject<{
|
|
2961
2848
|
}>, "many">;
|
2962
2849
|
error: z.ZodOptional<z.ZodString>;
|
2963
2850
|
}, "strip", z.ZodTypeAny, {
|
2964
|
-
success: boolean;
|
2965
2851
|
members: {
|
2966
2852
|
type: string;
|
2967
2853
|
id: string;
|
2968
2854
|
email: string;
|
2969
2855
|
role: string;
|
2970
2856
|
}[];
|
2857
|
+
success: boolean;
|
2971
2858
|
error?: string | undefined;
|
2972
2859
|
}, {
|
2973
|
-
success: boolean;
|
2974
2860
|
members: {
|
2975
2861
|
type: string;
|
2976
2862
|
id: string;
|
2977
2863
|
email: string;
|
2978
2864
|
role: string;
|
2979
2865
|
}[];
|
2866
|
+
success: boolean;
|
2980
2867
|
error?: string | undefined;
|
2981
2868
|
}>;
|
2982
2869
|
export type googleOauthListGroupMembersOutputType = z.infer<typeof googleOauthListGroupMembersOutputSchema>;
|
@@ -4409,3 +4296,49 @@ export declare const notionSearchByTitleOutputSchema: z.ZodObject<{
|
|
4409
4296
|
}>;
|
4410
4297
|
export type notionSearchByTitleOutputType = z.infer<typeof notionSearchByTitleOutputSchema>;
|
4411
4298
|
export type notionSearchByTitleFunction = ActionFunction<notionSearchByTitleParamsType, AuthParamsType, notionSearchByTitleOutputType>;
|
4299
|
+
export declare const jamfGetJamfFileVaultRecoveryKeyParamsSchema: z.ZodObject<{
|
4300
|
+
computerId: z.ZodString;
|
4301
|
+
}, "strip", z.ZodTypeAny, {
|
4302
|
+
computerId: string;
|
4303
|
+
}, {
|
4304
|
+
computerId: string;
|
4305
|
+
}>;
|
4306
|
+
export type jamfGetJamfFileVaultRecoveryKeyParamsType = z.infer<typeof jamfGetJamfFileVaultRecoveryKeyParamsSchema>;
|
4307
|
+
export declare const jamfGetJamfFileVaultRecoveryKeyOutputSchema: z.ZodObject<{
|
4308
|
+
success: z.ZodBoolean;
|
4309
|
+
data: z.ZodOptional<z.ZodString>;
|
4310
|
+
error: z.ZodOptional<z.ZodString>;
|
4311
|
+
}, "strip", z.ZodTypeAny, {
|
4312
|
+
success: boolean;
|
4313
|
+
error?: string | undefined;
|
4314
|
+
data?: string | undefined;
|
4315
|
+
}, {
|
4316
|
+
success: boolean;
|
4317
|
+
error?: string | undefined;
|
4318
|
+
data?: string | undefined;
|
4319
|
+
}>;
|
4320
|
+
export type jamfGetJamfFileVaultRecoveryKeyOutputType = z.infer<typeof jamfGetJamfFileVaultRecoveryKeyOutputSchema>;
|
4321
|
+
export type jamfGetJamfFileVaultRecoveryKeyFunction = ActionFunction<jamfGetJamfFileVaultRecoveryKeyParamsType, AuthParamsType, jamfGetJamfFileVaultRecoveryKeyOutputType>;
|
4322
|
+
export declare const jamfGetJamfComputerInventoryParamsSchema: z.ZodObject<{
|
4323
|
+
section: z.ZodOptional<z.ZodString>;
|
4324
|
+
}, "strip", z.ZodTypeAny, {
|
4325
|
+
section?: string | undefined;
|
4326
|
+
}, {
|
4327
|
+
section?: string | undefined;
|
4328
|
+
}>;
|
4329
|
+
export type jamfGetJamfComputerInventoryParamsType = z.infer<typeof jamfGetJamfComputerInventoryParamsSchema>;
|
4330
|
+
export declare const jamfGetJamfComputerInventoryOutputSchema: z.ZodObject<{
|
4331
|
+
success: z.ZodBoolean;
|
4332
|
+
data: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
4333
|
+
error: z.ZodOptional<z.ZodString>;
|
4334
|
+
}, "strip", z.ZodTypeAny, {
|
4335
|
+
success: boolean;
|
4336
|
+
error?: string | undefined;
|
4337
|
+
data?: any[] | undefined;
|
4338
|
+
}, {
|
4339
|
+
success: boolean;
|
4340
|
+
error?: string | undefined;
|
4341
|
+
data?: any[] | undefined;
|
4342
|
+
}>;
|
4343
|
+
export type jamfGetJamfComputerInventoryOutputType = z.infer<typeof jamfGetJamfComputerInventoryOutputSchema>;
|
4344
|
+
export type jamfGetJamfComputerInventoryFunction = ActionFunction<jamfGetJamfComputerInventoryParamsType, AuthParamsType, jamfGetJamfComputerInventoryOutputType>;
|
@@ -1,10 +1,42 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.googleOauthDeleteCalendarEventParamsSchema = exports.googleOauthUpdateCalendarEventOutputSchema = exports.googleOauthUpdateCalendarEventParamsSchema = exports.googleOauthListCalendarEventsOutputSchema = exports.googleOauthListCalendarEventsParamsSchema = exports.googleOauthListCalendarsOutputSchema = exports.googleOauthListCalendarsParamsSchema = exports.googleOauthScheduleCalendarMeetingOutputSchema = exports.googleOauthScheduleCalendarMeetingParamsSchema = exports.googleOauthUpdateDocOutputSchema = exports.googleOauthUpdateDocParamsSchema = exports.googleOauthCreateNewGoogleDocOutputSchema = exports.googleOauthCreateNewGoogleDocParamsSchema = exports.googleOauthSearchFilesByKeywordsOutputSchema = exports.googleOauthSearchFilesByKeywordsParamsSchema = exports.resendSendEmailOutputSchema = exports.resendSendEmailParamsSchema = exports.firecrawlScrapeTweetDataWithNitterOutputSchema = exports.firecrawlScrapeTweetDataWithNitterParamsSchema = exports.firecrawlScrapeUrlOutputSchema = exports.firecrawlScrapeUrlParamsSchema = exports.firecrawlDeepResearchOutputSchema = exports.firecrawlDeepResearchParamsSchema = exports.nwsGetForecastForLocationOutputSchema = exports.nwsGetForecastForLocationParamsSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationOutputSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationParamsSchema = exports.snowflakeRunSnowflakeQueryOutputSchema = exports.snowflakeRunSnowflakeQueryParamsSchema = exports.snowflakeGetRowByFieldValueOutputSchema = exports.snowflakeGetRowByFieldValueParamsSchema = exports.mongoInsertMongoDocOutputSchema = exports.mongoInsertMongoDocParamsSchema = exports.xCreateShareXPostUrlOutputSchema = exports.xCreateShareXPostUrlParamsSchema = exports.linkedinCreateShareLinkedinPostUrlOutputSchema = exports.linkedinCreateShareLinkedinPostUrlParamsSchema = exports.zendeskAssignTicketOutputSchema = exports.zendeskAssignTicketParamsSchema = exports.zendeskAddCommentToTicketOutputSchema = exports.zendeskAddCommentToTicketParamsSchema = exports.zendeskUpdateTicketStatusOutputSchema = exports.zendeskUpdateTicketStatusParamsSchema = exports.zendeskGetTicketDetailsOutputSchema = exports.zendeskGetTicketDetailsParamsSchema = exports.zendeskListZendeskTicketsOutputSchema = exports.zendeskListZendeskTicketsParamsSchema = exports.zendeskCreateZendeskTicketOutputSchema = exports.zendeskCreateZendeskTicketParamsSchema =
|
5
|
-
exports.ashbyUpdateCandidateParamsSchema = exports.ashbyCreateCandidateOutputSchema = exports.ashbyCreateCandidateParamsSchema = exports.ashbyListCandidateNotesOutputSchema = exports.ashbyListCandidateNotesParamsSchema = exports.ashbySearchCandidatesOutputSchema = exports.ashbySearchCandidatesParamsSchema = exports.ashbyListCandidatesOutputSchema = exports.ashbyListCandidatesParamsSchema = exports.ashbyAddCandidateToProjectOutputSchema = exports.ashbyAddCandidateToProjectParamsSchema = exports.ashbyGetCandidateInfoOutputSchema = exports.ashbyGetCandidateInfoParamsSchema = exports.ashbyCreateNoteOutputSchema = exports.ashbyCreateNoteParamsSchema = exports.lookerEnableUserByEmailOutputSchema = exports.lookerEnableUserByEmailParamsSchema = exports.finnhubGetBasicFinancialsOutputSchema = exports.finnhubGetBasicFinancialsParamsSchema = exports.finnhubSymbolLookupOutputSchema = exports.finnhubSymbolLookupParamsSchema = exports.gongGetGongTranscriptsOutputSchema = exports.gongGetGongTranscriptsParamsSchema = exports.googlemailListGmailThreadsOutputSchema = exports.googlemailListGmailThreadsParamsSchema = exports.googlemailSearchGmailMessagesOutputSchema = exports.googlemailSearchGmailMessagesParamsSchema = exports.googleOauthDeleteGroupMemberOutputSchema = exports.googleOauthDeleteGroupMemberParamsSchema = exports.googleOauthAddGroupMemberOutputSchema = exports.googleOauthAddGroupMemberParamsSchema = exports.googleOauthHasGroupMemberOutputSchema = exports.googleOauthHasGroupMemberParamsSchema = exports.googleOauthListGroupMembersOutputSchema = exports.googleOauthListGroupMembersParamsSchema = exports.googleOauthGetGroupOutputSchema = exports.googleOauthGetGroupParamsSchema = exports.googleOauthListGroupsOutputSchema = exports.googleOauthListGroupsParamsSchema = exports.googleOauthSearchDriveByKeywordsOutputSchema = exports.googleOauthSearchDriveByKeywordsParamsSchema = exports.googleOauthUpdatePresentationOutputSchema = exports.googleOauthUpdatePresentationParamsSchema = exports.googleOauthCreatePresentationOutputSchema = exports.googleOauthCreatePresentationParamsSchema = exports.googleOauthUpdateSpreadsheetOutputSchema = exports.googleOauthUpdateSpreadsheetParamsSchema = exports.googleOauthCreateSpreadsheetOutputSchema = exports.googleOauthCreateSpreadsheetParamsSchema =
|
6
|
-
exports.notionSearchByTitleOutputSchema = exports.notionSearchByTitleParamsSchema = exports.githubListPullRequestsOutputSchema = exports.githubListPullRequestsParamsSchema = exports.githubCreatePullRequestOutputSchema = exports.githubCreatePullRequestParamsSchema = exports.githubCreateBranchOutputSchema = exports.githubCreateBranchParamsSchema = exports.githubCreateOrUpdateFileOutputSchema = exports.githubCreateOrUpdateFileParamsSchema = exports.microsoftGetDocumentOutputSchema = exports.microsoftGetDocumentParamsSchema = exports.microsoftMessageTeamsChannelOutputSchema = exports.microsoftMessageTeamsChannelParamsSchema = exports.microsoftMessageTeamsChatOutputSchema = exports.microsoftMessageTeamsChatParamsSchema = exports.microsoftUpdateSpreadsheetOutputSchema = exports.microsoftUpdateSpreadsheetParamsSchema = exports.microsoftUpdateDocumentOutputSchema = exports.microsoftUpdateDocumentParamsSchema = exports.microsoftCreateDocumentOutputSchema = exports.microsoftCreateDocumentParamsSchema = exports.salesforceFetchSalesforceSchemaByObjectOutputSchema = exports.salesforceFetchSalesforceSchemaByObjectParamsSchema = exports.salesforceGetRecordOutputSchema = exports.salesforceGetRecordParamsSchema = exports.salesforceGetSalesforceRecordsByQueryOutputSchema = exports.salesforceGetSalesforceRecordsByQueryParamsSchema = exports.salesforceGenerateSalesReportOutputSchema = exports.salesforceGenerateSalesReportParamsSchema = exports.salesforceCreateCaseOutputSchema = exports.salesforceCreateCaseParamsSchema = exports.salesforceCreateRecordOutputSchema = exports.salesforceCreateRecordParamsSchema = exports.salesforceUpdateRecordOutputSchema = exports.salesforceUpdateRecordParamsSchema =
|
3
|
+
exports.bingGetTopNSearchResultUrlsOutputSchema = exports.bingGetTopNSearchResultUrlsParamsSchema = exports.googlemapsNearbysearchRestaurantsOutputSchema = exports.googlemapsNearbysearchRestaurantsParamsSchema = exports.googlemapsValidateAddressOutputSchema = exports.googlemapsValidateAddressParamsSchema = exports.kandjiGetFVRecoveryKeyForDeviceOutputSchema = exports.kandjiGetFVRecoveryKeyForDeviceParamsSchema = exports.jiraGetJiraIssuesByQueryOutputSchema = exports.jiraGetJiraIssuesByQueryParamsSchema = exports.jiraUpdateJiraTicketStatusOutputSchema = exports.jiraUpdateJiraTicketStatusParamsSchema = exports.jiraUpdateJiraTicketDetailsOutputSchema = exports.jiraUpdateJiraTicketDetailsParamsSchema = exports.jiraGetJiraTicketHistoryOutputSchema = exports.jiraGetJiraTicketHistoryParamsSchema = exports.jiraGetJiraTicketDetailsOutputSchema = exports.jiraGetJiraTicketDetailsParamsSchema = exports.jiraCreateJiraTicketOutputSchema = exports.jiraCreateJiraTicketParamsSchema = exports.jiraCommentJiraTicketOutputSchema = exports.jiraCommentJiraTicketParamsSchema = exports.jiraAssignJiraTicketOutputSchema = exports.jiraAssignJiraTicketParamsSchema = exports.confluenceFetchPageContentOutputSchema = exports.confluenceFetchPageContentParamsSchema = exports.confluenceOverwritePageOutputSchema = exports.confluenceOverwritePageParamsSchema = exports.mathAddOutputSchema = exports.mathAddParamsSchema = exports.slackGetChannelMessagesOutputSchema = exports.slackGetChannelMessagesParamsSchema = exports.slackSendMessageOutputSchema = exports.slackSendMessageParamsSchema = exports.asanaGetTasksDetailsOutputSchema = exports.asanaGetTasksDetailsParamsSchema = exports.asanaSearchTasksOutputSchema = exports.asanaSearchTasksParamsSchema = exports.asanaUpdateTaskOutputSchema = exports.asanaUpdateTaskParamsSchema = exports.asanaCreateTaskOutputSchema = exports.asanaCreateTaskParamsSchema = exports.asanaListAsanaTasksByProjectOutputSchema = exports.asanaListAsanaTasksByProjectParamsSchema = exports.asanaCommentTaskOutputSchema = exports.asanaCommentTaskParamsSchema = exports.genericFillTemplateOutputSchema = exports.genericFillTemplateParamsSchema = exports.AuthParamsSchema = exports.ProviderName = void 0;
|
4
|
+
exports.googleOauthDeleteCalendarEventOutputSchema = exports.googleOauthDeleteCalendarEventParamsSchema = exports.googleOauthUpdateCalendarEventOutputSchema = exports.googleOauthUpdateCalendarEventParamsSchema = exports.googleOauthListCalendarEventsOutputSchema = exports.googleOauthListCalendarEventsParamsSchema = exports.googleOauthListCalendarsOutputSchema = exports.googleOauthListCalendarsParamsSchema = exports.googleOauthScheduleCalendarMeetingOutputSchema = exports.googleOauthScheduleCalendarMeetingParamsSchema = exports.googleOauthUpdateDocOutputSchema = exports.googleOauthUpdateDocParamsSchema = exports.googleOauthCreateNewGoogleDocOutputSchema = exports.googleOauthCreateNewGoogleDocParamsSchema = exports.googleOauthSearchFilesByKeywordsOutputSchema = exports.googleOauthSearchFilesByKeywordsParamsSchema = exports.resendSendEmailOutputSchema = exports.resendSendEmailParamsSchema = exports.firecrawlScrapeTweetDataWithNitterOutputSchema = exports.firecrawlScrapeTweetDataWithNitterParamsSchema = exports.firecrawlScrapeUrlOutputSchema = exports.firecrawlScrapeUrlParamsSchema = exports.firecrawlDeepResearchOutputSchema = exports.firecrawlDeepResearchParamsSchema = exports.nwsGetForecastForLocationOutputSchema = exports.nwsGetForecastForLocationParamsSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationOutputSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationParamsSchema = exports.snowflakeRunSnowflakeQueryOutputSchema = exports.snowflakeRunSnowflakeQueryParamsSchema = exports.snowflakeGetRowByFieldValueOutputSchema = exports.snowflakeGetRowByFieldValueParamsSchema = exports.mongoInsertMongoDocOutputSchema = exports.mongoInsertMongoDocParamsSchema = exports.xCreateShareXPostUrlOutputSchema = exports.xCreateShareXPostUrlParamsSchema = exports.linkedinCreateShareLinkedinPostUrlOutputSchema = exports.linkedinCreateShareLinkedinPostUrlParamsSchema = exports.zendeskAssignTicketOutputSchema = exports.zendeskAssignTicketParamsSchema = exports.zendeskAddCommentToTicketOutputSchema = exports.zendeskAddCommentToTicketParamsSchema = exports.zendeskUpdateTicketStatusOutputSchema = exports.zendeskUpdateTicketStatusParamsSchema = exports.zendeskGetTicketDetailsOutputSchema = exports.zendeskGetTicketDetailsParamsSchema = exports.zendeskListZendeskTicketsOutputSchema = exports.zendeskListZendeskTicketsParamsSchema = exports.zendeskCreateZendeskTicketOutputSchema = exports.zendeskCreateZendeskTicketParamsSchema = void 0;
|
5
|
+
exports.ashbyUpdateCandidateOutputSchema = exports.ashbyUpdateCandidateParamsSchema = exports.ashbyCreateCandidateOutputSchema = exports.ashbyCreateCandidateParamsSchema = exports.ashbyListCandidateNotesOutputSchema = exports.ashbyListCandidateNotesParamsSchema = exports.ashbySearchCandidatesOutputSchema = exports.ashbySearchCandidatesParamsSchema = exports.ashbyListCandidatesOutputSchema = exports.ashbyListCandidatesParamsSchema = exports.ashbyAddCandidateToProjectOutputSchema = exports.ashbyAddCandidateToProjectParamsSchema = exports.ashbyGetCandidateInfoOutputSchema = exports.ashbyGetCandidateInfoParamsSchema = exports.ashbyCreateNoteOutputSchema = exports.ashbyCreateNoteParamsSchema = exports.lookerEnableUserByEmailOutputSchema = exports.lookerEnableUserByEmailParamsSchema = exports.finnhubGetBasicFinancialsOutputSchema = exports.finnhubGetBasicFinancialsParamsSchema = exports.finnhubSymbolLookupOutputSchema = exports.finnhubSymbolLookupParamsSchema = exports.gongGetGongTranscriptsOutputSchema = exports.gongGetGongTranscriptsParamsSchema = exports.googlemailListGmailThreadsOutputSchema = exports.googlemailListGmailThreadsParamsSchema = exports.googlemailSearchGmailMessagesOutputSchema = exports.googlemailSearchGmailMessagesParamsSchema = exports.googleOauthDeleteGroupMemberOutputSchema = exports.googleOauthDeleteGroupMemberParamsSchema = exports.googleOauthAddGroupMemberOutputSchema = exports.googleOauthAddGroupMemberParamsSchema = exports.googleOauthHasGroupMemberOutputSchema = exports.googleOauthHasGroupMemberParamsSchema = exports.googleOauthListGroupMembersOutputSchema = exports.googleOauthListGroupMembersParamsSchema = exports.googleOauthGetGroupOutputSchema = exports.googleOauthGetGroupParamsSchema = exports.googleOauthListGroupsOutputSchema = exports.googleOauthListGroupsParamsSchema = exports.googleOauthSearchDriveByKeywordsOutputSchema = exports.googleOauthSearchDriveByKeywordsParamsSchema = exports.googleOauthUpdatePresentationOutputSchema = exports.googleOauthUpdatePresentationParamsSchema = exports.googleOauthCreatePresentationOutputSchema = exports.googleOauthCreatePresentationParamsSchema = exports.googleOauthUpdateSpreadsheetOutputSchema = exports.googleOauthUpdateSpreadsheetParamsSchema = exports.googleOauthCreateSpreadsheetOutputSchema = exports.googleOauthCreateSpreadsheetParamsSchema = void 0;
|
6
|
+
exports.jamfGetJamfComputerInventoryOutputSchema = exports.jamfGetJamfComputerInventoryParamsSchema = exports.jamfGetJamfFileVaultRecoveryKeyOutputSchema = exports.jamfGetJamfFileVaultRecoveryKeyParamsSchema = exports.notionSearchByTitleOutputSchema = exports.notionSearchByTitleParamsSchema = exports.githubListPullRequestsOutputSchema = exports.githubListPullRequestsParamsSchema = exports.githubCreatePullRequestOutputSchema = exports.githubCreatePullRequestParamsSchema = exports.githubCreateBranchOutputSchema = exports.githubCreateBranchParamsSchema = exports.githubCreateOrUpdateFileOutputSchema = exports.githubCreateOrUpdateFileParamsSchema = exports.microsoftGetDocumentOutputSchema = exports.microsoftGetDocumentParamsSchema = exports.microsoftMessageTeamsChannelOutputSchema = exports.microsoftMessageTeamsChannelParamsSchema = exports.microsoftMessageTeamsChatOutputSchema = exports.microsoftMessageTeamsChatParamsSchema = exports.microsoftUpdateSpreadsheetOutputSchema = exports.microsoftUpdateSpreadsheetParamsSchema = exports.microsoftUpdateDocumentOutputSchema = exports.microsoftUpdateDocumentParamsSchema = exports.microsoftCreateDocumentOutputSchema = exports.microsoftCreateDocumentParamsSchema = exports.salesforceFetchSalesforceSchemaByObjectOutputSchema = exports.salesforceFetchSalesforceSchemaByObjectParamsSchema = exports.salesforceGetRecordOutputSchema = exports.salesforceGetRecordParamsSchema = exports.salesforceGetSalesforceRecordsByQueryOutputSchema = exports.salesforceGetSalesforceRecordsByQueryParamsSchema = exports.salesforceGenerateSalesReportOutputSchema = exports.salesforceGenerateSalesReportParamsSchema = exports.salesforceCreateCaseOutputSchema = exports.salesforceCreateCaseParamsSchema = exports.salesforceCreateRecordOutputSchema = exports.salesforceCreateRecordParamsSchema = exports.salesforceUpdateRecordOutputSchema = exports.salesforceUpdateRecordParamsSchema = void 0;
|
7
7
|
const zod_1 = require("zod");
|
8
|
+
var ProviderName;
|
9
|
+
(function (ProviderName) {
|
10
|
+
ProviderName["GENERIC"] = "generic";
|
11
|
+
ProviderName["ASANA"] = "asana";
|
12
|
+
ProviderName["SLACK"] = "slack";
|
13
|
+
ProviderName["MATH"] = "math";
|
14
|
+
ProviderName["CONFLUENCE"] = "confluence";
|
15
|
+
ProviderName["JIRA"] = "jira";
|
16
|
+
ProviderName["KANDJI"] = "kandji";
|
17
|
+
ProviderName["GOOGLEMAPS"] = "googlemaps";
|
18
|
+
ProviderName["BING"] = "bing";
|
19
|
+
ProviderName["ZENDESK"] = "zendesk";
|
20
|
+
ProviderName["LINKEDIN"] = "linkedin";
|
21
|
+
ProviderName["X"] = "x";
|
22
|
+
ProviderName["MONGO"] = "mongo";
|
23
|
+
ProviderName["SNOWFLAKE"] = "snowflake";
|
24
|
+
ProviderName["OPENSTREETMAP"] = "openstreetmap";
|
25
|
+
ProviderName["NWS"] = "nws";
|
26
|
+
ProviderName["FIRECRAWL"] = "firecrawl";
|
27
|
+
ProviderName["RESEND"] = "resend";
|
28
|
+
ProviderName["GOOGLEOAUTH"] = "googleOauth";
|
29
|
+
ProviderName["GOOGLEMAIL"] = "googlemail";
|
30
|
+
ProviderName["GONG"] = "gong";
|
31
|
+
ProviderName["FINNHUB"] = "finnhub";
|
32
|
+
ProviderName["LOOKER"] = "looker";
|
33
|
+
ProviderName["ASHBY"] = "ashby";
|
34
|
+
ProviderName["SALESFORCE"] = "salesforce";
|
35
|
+
ProviderName["MICROSOFT"] = "microsoft";
|
36
|
+
ProviderName["GITHUB"] = "github";
|
37
|
+
ProviderName["NOTION"] = "notion";
|
38
|
+
ProviderName["JAMF"] = "jamf";
|
39
|
+
})(ProviderName || (exports.ProviderName = ProviderName = {}));
|
8
40
|
exports.AuthParamsSchema = zod_1.z.object({
|
9
41
|
authToken: zod_1.z.string().optional(),
|
10
42
|
baseUrl: zod_1.z.string().optional(),
|
@@ -413,56 +445,6 @@ exports.bingGetTopNSearchResultUrlsOutputSchema = zod_1.z.object({
|
|
413
445
|
}))
|
414
446
|
.describe("The top five search result objects"),
|
415
447
|
});
|
416
|
-
exports.credalCallCopilotParamsSchema = zod_1.z.object({
|
417
|
-
agentId: zod_1.z.string().describe("The ID of the copilot to call"),
|
418
|
-
query: zod_1.z.string().describe("The query to ask Credal Copilot"),
|
419
|
-
userEmail: zod_1.z.string().describe("The email of the user sending or authorizing the query"),
|
420
|
-
});
|
421
|
-
exports.credalCallCopilotOutputSchema = zod_1.z.object({
|
422
|
-
response: zod_1.z.string().describe("The response from the Credal Copilot"),
|
423
|
-
referencedSources: zod_1.z
|
424
|
-
.array(zod_1.z
|
425
|
-
.object({
|
426
|
-
id: zod_1.z.string().describe("The id of the source"),
|
427
|
-
externalResourceId: zod_1.z
|
428
|
-
.object({
|
429
|
-
externalResourceId: zod_1.z.string().describe("The external resource id of the source"),
|
430
|
-
resourceType: zod_1.z.string().describe("The type of the resource"),
|
431
|
-
})
|
432
|
-
.describe("The external resource id of the source"),
|
433
|
-
name: zod_1.z.string().describe("The name of the source"),
|
434
|
-
url: zod_1.z.string().describe("The url of the source").optional(),
|
435
|
-
})
|
436
|
-
.describe("The source referenced in the response"))
|
437
|
-
.describe("The sources referenced in the response")
|
438
|
-
.optional(),
|
439
|
-
sourcesInDataContext: zod_1.z
|
440
|
-
.array(zod_1.z
|
441
|
-
.object({
|
442
|
-
id: zod_1.z.string().describe("The id of the source"),
|
443
|
-
externalResourceId: zod_1.z
|
444
|
-
.object({
|
445
|
-
externalResourceId: zod_1.z.string().describe("The external resource id of the source"),
|
446
|
-
resourceType: zod_1.z.string().describe("The type of the resource"),
|
447
|
-
})
|
448
|
-
.describe("The external resource id of the source"),
|
449
|
-
name: zod_1.z.string().describe("The name of the source"),
|
450
|
-
url: zod_1.z.string().describe("The url of the source").optional(),
|
451
|
-
})
|
452
|
-
.describe("The source in the data context of the response"))
|
453
|
-
.describe("The sources in the data context of the response")
|
454
|
-
.optional(),
|
455
|
-
webSearchResults: zod_1.z
|
456
|
-
.array(zod_1.z
|
457
|
-
.object({
|
458
|
-
title: zod_1.z.string().describe("The title of the web search result"),
|
459
|
-
url: zod_1.z.string().describe("The url of the web search result"),
|
460
|
-
contents: zod_1.z.string().describe("The contents of the web search result").optional(),
|
461
|
-
})
|
462
|
-
.describe("The web search result in the response"))
|
463
|
-
.describe("The web search results in the response")
|
464
|
-
.optional(),
|
465
|
-
});
|
466
448
|
exports.zendeskCreateZendeskTicketParamsSchema = zod_1.z.object({
|
467
449
|
subject: zod_1.z.string().describe("The subject of the ticket"),
|
468
450
|
body: zod_1.z.string().describe("The body of the ticket").optional(),
|
@@ -2745,3 +2727,19 @@ exports.notionSearchByTitleOutputSchema = zod_1.z.object({
|
|
2745
2727
|
.optional(),
|
2746
2728
|
error: zod_1.z.string().describe("Error message if search failed").optional(),
|
2747
2729
|
});
|
2730
|
+
exports.jamfGetJamfFileVaultRecoveryKeyParamsSchema = zod_1.z.object({
|
2731
|
+
computerId: zod_1.z.string().describe("The computerId of the device to get the FileVault2 recovery key for"),
|
2732
|
+
});
|
2733
|
+
exports.jamfGetJamfFileVaultRecoveryKeyOutputSchema = zod_1.z.object({
|
2734
|
+
success: zod_1.z.boolean().describe("Whether the request was successful"),
|
2735
|
+
data: zod_1.z.string().describe("The FileVault2 recovery key data").optional(),
|
2736
|
+
error: zod_1.z.string().describe("Error message if the request failed").optional(),
|
2737
|
+
});
|
2738
|
+
exports.jamfGetJamfComputerInventoryParamsSchema = zod_1.z.object({
|
2739
|
+
section: zod_1.z.string().describe("Optional section parameter to filter inventory data").optional(),
|
2740
|
+
});
|
2741
|
+
exports.jamfGetJamfComputerInventoryOutputSchema = zod_1.z.object({
|
2742
|
+
success: zod_1.z.boolean().describe("Whether the request was successful"),
|
2743
|
+
data: zod_1.z.array(zod_1.z.any()).describe("The computer inventory data").optional(),
|
2744
|
+
error: zod_1.z.string().describe("Error message if the request failed").optional(),
|
2745
|
+
});
|
package/dist/actions/groups.js
CHANGED
@@ -60,10 +60,6 @@ exports.ACTION_GROUPS = {
|
|
60
60
|
description: "Actions for interacting with Gmail",
|
61
61
|
actions: [templates_1.googlemailSearchGmailMessagesDefinition, templates_1.googlemailListGmailThreadsDefinition],
|
62
62
|
},
|
63
|
-
CREDAL_CALL_COPILOT: {
|
64
|
-
description: "Action for calling a Credal Copilot",
|
65
|
-
actions: [templates_1.credalCallCopilotDefinition],
|
66
|
-
},
|
67
63
|
LINKEDIN_SHARE_POST: {
|
68
64
|
description: "Action for creating a share post url on linkedin",
|
69
65
|
actions: [templates_1.linkedinCreateShareLinkedinPostUrlDefinition],
|
@@ -136,6 +132,10 @@ exports.ACTION_GROUPS = {
|
|
136
132
|
description: "Action for interacting with Finnhub for stock market data",
|
137
133
|
actions: [templates_1.finnhubSymbolLookupDefinition, templates_1.finnhubGetBasicFinancialsDefinition],
|
138
134
|
},
|
135
|
+
JAMF: {
|
136
|
+
description: "Actions for interacting with Jamf",
|
137
|
+
actions: [templates_1.jamfGetJamfComputerInventoryDefinition, templates_1.jamfGetJamfFileVaultRecoveryKeyDefinition],
|
138
|
+
},
|
139
139
|
LOOKER: {
|
140
140
|
description: "Actions for interacting with Looker",
|
141
141
|
actions: [templates_1.lookerEnableUserByEmailDefinition],
|
package/dist/actions/parse.js
CHANGED
@@ -142,6 +142,16 @@ function generateTypes(_a) {
|
|
142
142
|
const project = new ts_morph_1.Project();
|
143
143
|
const templatesFile = project.createSourceFile(outputPath, "", { overwrite: true });
|
144
144
|
const typesFile = project.createSourceFile(templatesOutputPath, "", { overwrite: true });
|
145
|
+
// Set the ProviderName enum based on the schema providers
|
146
|
+
typesFile
|
147
|
+
.addEnum({
|
148
|
+
name: "ProviderName",
|
149
|
+
members: Object.keys(parsedConfig.actions).map(providerName => ({
|
150
|
+
name: providerName.toUpperCase().replace(/-/g, "_"),
|
151
|
+
value: providerName,
|
152
|
+
})),
|
153
|
+
})
|
154
|
+
.setIsExported(true);
|
145
155
|
// Add imports
|
146
156
|
templatesFile.addImportDeclaration({
|
147
157
|
moduleSpecifier: "../../actions/parse",
|
@@ -0,0 +1,55 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const axiosClient_1 = require("../../util/axiosClient");
|
13
|
+
const types_1 = require("./types");
|
14
|
+
const getJamfComputerInventory = (_a) => __awaiter(void 0, [_a], void 0, function* ({ authParams, }) {
|
15
|
+
const { username, password, subdomain } = authParams;
|
16
|
+
if (!subdomain || !username || !password) {
|
17
|
+
throw new Error("Base URL, username, and password are required to fetch FileVault2 recovery key");
|
18
|
+
}
|
19
|
+
const url = `https://${subdomain}.jamfcloud.com`;
|
20
|
+
const auth = "Basic " + Buffer.from(`${username}:${password}`).toString("base64");
|
21
|
+
try {
|
22
|
+
const response = yield axiosClient_1.axiosClient.post(`${url}/api/v1/auth/token`, {}, {
|
23
|
+
headers: {
|
24
|
+
Authorization: auth,
|
25
|
+
Accept: "application/json",
|
26
|
+
},
|
27
|
+
});
|
28
|
+
const token = types_1.TokenResponseSchema.parse(response.data).token;
|
29
|
+
const computers = yield axiosClient_1.axiosClient.get(`${url}/api/v1/computers-inventory`, {
|
30
|
+
headers: {
|
31
|
+
Authorization: `Bearer ${token}`,
|
32
|
+
Accept: "application/json",
|
33
|
+
},
|
34
|
+
});
|
35
|
+
yield axiosClient_1.axiosClient.post(`${url}/api/v1/auth/invalidate-token`, {}, {
|
36
|
+
headers: {
|
37
|
+
Authorization: `Bearer ${token}`,
|
38
|
+
},
|
39
|
+
// Accept all status codes so we can handle them manually
|
40
|
+
validateStatus: () => true,
|
41
|
+
});
|
42
|
+
return {
|
43
|
+
success: true,
|
44
|
+
data: computers.data,
|
45
|
+
};
|
46
|
+
}
|
47
|
+
catch (error) {
|
48
|
+
console.error("Error retrieving FileVault2 recovery key: ", error);
|
49
|
+
return {
|
50
|
+
success: false,
|
51
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
52
|
+
};
|
53
|
+
}
|
54
|
+
});
|
55
|
+
exports.default = getJamfComputerInventory;
|
@@ -0,0 +1,58 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const axiosClient_1 = require("../../util/axiosClient");
|
13
|
+
const types_1 = require("./types");
|
14
|
+
const getJamfFileVaultRecoveryKey = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
15
|
+
const { username, password, subdomain } = authParams;
|
16
|
+
const { computerId } = params;
|
17
|
+
if (!subdomain || !username || !password) {
|
18
|
+
throw new Error("Base URL, username, and password are required to fetch FileVault2 recovery key");
|
19
|
+
}
|
20
|
+
// const apiUrl = `${baseUrl}/api/v1/computers-inventory/${computerId}/filevault`;
|
21
|
+
const url = `https://${subdomain}.jamfcloud.com`;
|
22
|
+
const auth = "Basic " + Buffer.from(`${username}:${password}`).toString("base64");
|
23
|
+
console.log("Fetching FileVault2 recovery key for computer ID:", computerId, auth, url);
|
24
|
+
try {
|
25
|
+
const response = yield axiosClient_1.axiosClient.post(`${url}/api/v1/auth/token`, {}, {
|
26
|
+
headers: {
|
27
|
+
Authorization: auth,
|
28
|
+
Accept: "application/json",
|
29
|
+
},
|
30
|
+
});
|
31
|
+
const token = types_1.TokenResponseSchema.parse(response.data).token;
|
32
|
+
const fileVaultResponse = yield axiosClient_1.axiosClient.get(`${url}/api/v1/computers-inventory/${computerId}/filevault`, {
|
33
|
+
headers: {
|
34
|
+
Authorization: `Bearer ${token}`,
|
35
|
+
Accept: "application/json",
|
36
|
+
},
|
37
|
+
});
|
38
|
+
yield axiosClient_1.axiosClient.post(`${url}/api/v1/auth/invalidate-token`, {}, {
|
39
|
+
headers: {
|
40
|
+
Authorization: `Bearer ${token}`,
|
41
|
+
},
|
42
|
+
// Accept all status codes so we can handle them manually
|
43
|
+
validateStatus: () => true,
|
44
|
+
});
|
45
|
+
return {
|
46
|
+
success: true,
|
47
|
+
data: fileVaultResponse.data,
|
48
|
+
};
|
49
|
+
}
|
50
|
+
catch (error) {
|
51
|
+
console.error("Error retrieving FileVault2 recovery key: ", error);
|
52
|
+
return {
|
53
|
+
success: false,
|
54
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
55
|
+
};
|
56
|
+
}
|
57
|
+
});
|
58
|
+
exports.default = getJamfFileVaultRecoveryKey;
|
package/dist/app.d.ts
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
import type { ActionTemplate } from "./actions/parse";
|
2
2
|
import type { AuthParamsType } from "./actions/autogen/types";
|
3
3
|
export declare function runAction(name: string, provider: string, authentication: AuthParamsType, parameters: Record<string, any>): Promise<any>;
|
4
|
+
/**
|
5
|
+
* HELPER FUNCTIONS
|
6
|
+
*/
|
7
|
+
export declare function getActions(): Promise<ActionTemplate[]>;
|
4
8
|
export type ActionGroupsReturn = {
|
5
9
|
name: string;
|
6
10
|
description: string;
|
7
11
|
actions: ActionTemplate[];
|
8
12
|
}[];
|
9
|
-
export declare function getActionGroups(): Promise<ActionGroupsReturn>;
|
package/dist/app.js
CHANGED
@@ -43,8 +43,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
43
43
|
};
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
45
45
|
exports.runAction = runAction;
|
46
|
-
exports.
|
47
|
-
const groups_1 = require("./actions/groups");
|
46
|
+
exports.getActions = getActions;
|
48
47
|
const templates = __importStar(require("./actions/autogen/templates"));
|
49
48
|
const invoke_1 = require("./actions/invoke");
|
50
49
|
function runAction(name, provider, authentication,
|
@@ -76,22 +75,3 @@ function getActions() {
|
|
76
75
|
return Object.values(templates);
|
77
76
|
});
|
78
77
|
}
|
79
|
-
function getActionGroups() {
|
80
|
-
return __awaiter(this, void 0, void 0, function* () {
|
81
|
-
const allDefinitions = yield getActions();
|
82
|
-
const result = [];
|
83
|
-
for (const [key, value] of Object.entries(groups_1.ACTION_GROUPS)) {
|
84
|
-
const actionGroupDetails = [];
|
85
|
-
for (const action of value.actions) {
|
86
|
-
const definition = allDefinitions.find(def => def.name === action.name);
|
87
|
-
if (definition) {
|
88
|
-
actionGroupDetails.push(definition);
|
89
|
-
}
|
90
|
-
}
|
91
|
-
if (actionGroupDetails.length > 0) {
|
92
|
-
result.push({ name: key, description: value.description, actions: actionGroupDetails });
|
93
|
-
}
|
94
|
-
}
|
95
|
-
return result;
|
96
|
-
});
|
97
|
-
}
|
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
export { runAction,
|
2
|
-
export { ACTION_GROUPS, type ActionGroups } from "./actions/groups";
|
1
|
+
export { runAction, getActions } from "./app";
|
3
2
|
export { ActionMapper } from "./actions/actionMapper";
|
4
3
|
export { ActionTemplate } from "./actions/parse";
|
5
4
|
export * from "./actions/autogen/templates";
|
package/dist/index.js
CHANGED
@@ -15,12 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
16
16
|
};
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
-
exports.ActionMapper = exports.
|
18
|
+
exports.ActionMapper = exports.getActions = exports.runAction = void 0;
|
19
19
|
var app_1 = require("./app");
|
20
20
|
Object.defineProperty(exports, "runAction", { enumerable: true, get: function () { return app_1.runAction; } });
|
21
|
-
Object.defineProperty(exports, "
|
22
|
-
var groups_1 = require("./actions/groups");
|
23
|
-
Object.defineProperty(exports, "ACTION_GROUPS", { enumerable: true, get: function () { return groups_1.ACTION_GROUPS; } });
|
21
|
+
Object.defineProperty(exports, "getActions", { enumerable: true, get: function () { return app_1.getActions; } });
|
24
22
|
var actionMapper_1 = require("./actions/actionMapper");
|
25
23
|
Object.defineProperty(exports, "ActionMapper", { enumerable: true, get: function () { return actionMapper_1.ActionMapper; } });
|
26
24
|
__exportStar(require("./actions/autogen/templates"), exports);
|