@credal/actions 0.1.75 → 0.1.76
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.
@@ -717,12 +717,16 @@ exports.kandjiGetFVRecoveryKeyForDeviceDefinition = {
|
|
717
717
|
scopes: [],
|
718
718
|
parameters: {
|
719
719
|
type: "object",
|
720
|
-
required: ["serialNumber"],
|
720
|
+
required: ["serialNumber", "subdomain"],
|
721
721
|
properties: {
|
722
722
|
serialNumber: {
|
723
723
|
type: "string",
|
724
724
|
description: "The serial number of the device",
|
725
725
|
},
|
726
|
+
subdomain: {
|
727
|
+
type: "string",
|
728
|
+
description: "The subdomain of the Kandji account",
|
729
|
+
},
|
726
730
|
},
|
727
731
|
},
|
728
732
|
output: {
|
@@ -553,10 +553,13 @@ export type jiraGetJiraIssuesByQueryOutputType = z.infer<typeof jiraGetJiraIssue
|
|
553
553
|
export type jiraGetJiraIssuesByQueryFunction = ActionFunction<jiraGetJiraIssuesByQueryParamsType, AuthParamsType, jiraGetJiraIssuesByQueryOutputType>;
|
554
554
|
export declare const kandjiGetFVRecoveryKeyForDeviceParamsSchema: z.ZodObject<{
|
555
555
|
serialNumber: z.ZodString;
|
556
|
+
subdomain: z.ZodString;
|
556
557
|
}, "strip", z.ZodTypeAny, {
|
557
558
|
serialNumber: string;
|
559
|
+
subdomain: string;
|
558
560
|
}, {
|
559
561
|
serialNumber: string;
|
562
|
+
subdomain: string;
|
560
563
|
}>;
|
561
564
|
export type kandjiGetFVRecoveryKeyForDeviceParamsType = z.infer<typeof kandjiGetFVRecoveryKeyForDeviceParamsSchema>;
|
562
565
|
export declare const kandjiGetFVRecoveryKeyForDeviceOutputSchema: z.ZodObject<{
|
@@ -1048,12 +1051,12 @@ export declare const zendeskCreateZendeskTicketParamsSchema: z.ZodObject<{
|
|
1048
1051
|
body: z.ZodOptional<z.ZodString>;
|
1049
1052
|
subdomain: z.ZodString;
|
1050
1053
|
}, "strip", z.ZodTypeAny, {
|
1051
|
-
subject: string;
|
1052
1054
|
subdomain: string;
|
1055
|
+
subject: string;
|
1053
1056
|
body?: string | undefined;
|
1054
1057
|
}, {
|
1055
|
-
subject: string;
|
1056
1058
|
subdomain: string;
|
1059
|
+
subject: string;
|
1057
1060
|
body?: string | undefined;
|
1058
1061
|
}>;
|
1059
1062
|
export type zendeskCreateZendeskTicketParamsType = z.infer<typeof zendeskCreateZendeskTicketParamsSchema>;
|
@@ -210,6 +210,7 @@ exports.jiraGetJiraIssuesByQueryOutputSchema = zod_1.z.object({
|
|
210
210
|
});
|
211
211
|
exports.kandjiGetFVRecoveryKeyForDeviceParamsSchema = zod_1.z.object({
|
212
212
|
serialNumber: zod_1.z.string().describe("The serial number of the device"),
|
213
|
+
subdomain: zod_1.z.string().describe("The subdomain of the Kandji account"),
|
213
214
|
});
|
214
215
|
exports.kandjiGetFVRecoveryKeyForDeviceOutputSchema = zod_1.z.object({
|
215
216
|
success: zod_1.z.boolean().describe("Whether the recovery key was retrieved successfully"),
|
@@ -11,10 +11,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
const axiosClient_1 = require("../../util/axiosClient");
|
13
13
|
const getFVRecoveryKeyForDevice = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
14
|
-
const { serialNumber } = params;
|
15
|
-
const {
|
16
|
-
if (!apiKey
|
17
|
-
throw new Error("Missing API key
|
14
|
+
const { serialNumber, subdomain } = params;
|
15
|
+
const { apiKey } = authParams;
|
16
|
+
if (!apiKey) {
|
17
|
+
throw new Error("Missing API key in auth parameters");
|
18
18
|
}
|
19
19
|
try {
|
20
20
|
// First list all devices to get the device for the specific device
|