@credal/sdk 0.0.23 → 0.0.24
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/Client.d.ts +0 -3
- package/Client.js +12 -17
- package/api/resources/copilots/client/Client.js +18 -18
- package/api/resources/documentCatalog/client/Client.js +6 -6
- package/api/resources/documentCollections/client/Client.js +12 -12
- package/api/resources/index.d.ts +0 -3
- package/api/resources/index.js +1 -4
- package/api/resources/permissionsService/client/Client.js +6 -6
- package/api/resources/search/client/Client.js +2 -2
- package/api/resources/users/client/Client.js +2 -2
- package/dist/Client.d.ts +0 -3
- package/dist/Client.js +12 -17
- package/dist/api/resources/copilots/client/Client.js +18 -18
- package/dist/api/resources/documentCatalog/client/Client.js +6 -6
- package/dist/api/resources/documentCollections/client/Client.js +12 -12
- package/dist/api/resources/index.d.ts +0 -3
- package/dist/api/resources/index.js +1 -4
- package/dist/api/resources/permissionsService/client/Client.js +6 -6
- package/dist/api/resources/search/client/Client.js +2 -2
- package/dist/api/resources/users/client/Client.js +2 -2
- package/dist/serialization/resources/index.d.ts +0 -3
- package/dist/serialization/resources/index.js +1 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +0 -79
- package/serialization/resources/index.d.ts +0 -3
- package/serialization/resources/index.js +1 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/actions/client/Client.d.ts +0 -50
- package/api/resources/actions/client/Client.js +0 -138
- package/api/resources/actions/client/index.d.ts +0 -1
- package/api/resources/actions/client/index.js +0 -17
- package/api/resources/actions/client/requests/InvokeActionRequest.d.ts +0 -55
- package/api/resources/actions/client/requests/InvokeActionRequest.js +0 -5
- package/api/resources/actions/client/requests/index.d.ts +0 -1
- package/api/resources/actions/client/requests/index.js +0 -2
- package/api/resources/actions/index.d.ts +0 -2
- package/api/resources/actions/index.js +0 -18
- package/api/resources/actions/types/ActionStatus.d.ts +0 -13
- package/api/resources/actions/types/ActionStatus.js +0 -15
- package/api/resources/actions/types/Conversation.d.ts +0 -6
- package/api/resources/actions/types/Conversation.js +0 -5
- package/api/resources/actions/types/DirectMessage.d.ts +0 -6
- package/api/resources/actions/types/DirectMessage.js +0 -5
- package/api/resources/actions/types/HumanConfirmationChannel.d.ts +0 -16
- package/api/resources/actions/types/HumanConfirmationChannel.js +0 -5
- package/api/resources/actions/types/InvokeActionResponse.d.ts +0 -8
- package/api/resources/actions/types/InvokeActionResponse.js +0 -5
- package/api/resources/actions/types/SlackThread.d.ts +0 -7
- package/api/resources/actions/types/SlackThread.js +0 -5
- package/api/resources/actions/types/index.d.ts +0 -6
- package/api/resources/actions/types/index.js +0 -22
- package/dist/api/resources/actions/client/Client.d.ts +0 -50
- package/dist/api/resources/actions/client/Client.js +0 -138
- package/dist/api/resources/actions/client/index.d.ts +0 -1
- package/dist/api/resources/actions/client/index.js +0 -17
- package/dist/api/resources/actions/client/requests/InvokeActionRequest.d.ts +0 -55
- package/dist/api/resources/actions/client/requests/InvokeActionRequest.js +0 -5
- package/dist/api/resources/actions/client/requests/index.d.ts +0 -1
- package/dist/api/resources/actions/client/requests/index.js +0 -2
- package/dist/api/resources/actions/index.d.ts +0 -2
- package/dist/api/resources/actions/index.js +0 -18
- package/dist/api/resources/actions/types/ActionStatus.d.ts +0 -13
- package/dist/api/resources/actions/types/ActionStatus.js +0 -15
- package/dist/api/resources/actions/types/Conversation.d.ts +0 -6
- package/dist/api/resources/actions/types/Conversation.js +0 -5
- package/dist/api/resources/actions/types/DirectMessage.d.ts +0 -6
- package/dist/api/resources/actions/types/DirectMessage.js +0 -5
- package/dist/api/resources/actions/types/HumanConfirmationChannel.d.ts +0 -16
- package/dist/api/resources/actions/types/HumanConfirmationChannel.js +0 -5
- package/dist/api/resources/actions/types/InvokeActionResponse.d.ts +0 -8
- package/dist/api/resources/actions/types/InvokeActionResponse.js +0 -5
- package/dist/api/resources/actions/types/SlackThread.d.ts +0 -7
- package/dist/api/resources/actions/types/SlackThread.js +0 -5
- package/dist/api/resources/actions/types/index.d.ts +0 -6
- package/dist/api/resources/actions/types/index.js +0 -22
- package/dist/serialization/resources/actions/client/index.d.ts +0 -1
- package/dist/serialization/resources/actions/client/index.js +0 -17
- package/dist/serialization/resources/actions/client/requests/InvokeActionRequest.d.ts +0 -19
- package/dist/serialization/resources/actions/client/requests/InvokeActionRequest.js +0 -40
- package/dist/serialization/resources/actions/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/actions/client/requests/index.js +0 -5
- package/dist/serialization/resources/actions/index.d.ts +0 -2
- package/dist/serialization/resources/actions/index.js +0 -18
- package/dist/serialization/resources/actions/types/ActionStatus.d.ts +0 -10
- package/dist/serialization/resources/actions/types/ActionStatus.js +0 -39
- package/dist/serialization/resources/actions/types/Conversation.d.ts +0 -12
- package/dist/serialization/resources/actions/types/Conversation.js +0 -33
- package/dist/serialization/resources/actions/types/DirectMessage.d.ts +0 -12
- package/dist/serialization/resources/actions/types/DirectMessage.js +0 -33
- package/dist/serialization/resources/actions/types/HumanConfirmationChannel.d.ts +0 -22
- package/dist/serialization/resources/actions/types/HumanConfirmationChannel.js +0 -43
- package/dist/serialization/resources/actions/types/InvokeActionResponse.d.ts +0 -14
- package/dist/serialization/resources/actions/types/InvokeActionResponse.js +0 -35
- package/dist/serialization/resources/actions/types/SlackThread.d.ts +0 -13
- package/dist/serialization/resources/actions/types/SlackThread.js +0 -34
- package/dist/serialization/resources/actions/types/index.d.ts +0 -6
- package/dist/serialization/resources/actions/types/index.js +0 -22
- package/serialization/resources/actions/client/index.d.ts +0 -1
- package/serialization/resources/actions/client/index.js +0 -17
- package/serialization/resources/actions/client/requests/InvokeActionRequest.d.ts +0 -19
- package/serialization/resources/actions/client/requests/InvokeActionRequest.js +0 -40
- package/serialization/resources/actions/client/requests/index.d.ts +0 -1
- package/serialization/resources/actions/client/requests/index.js +0 -5
- package/serialization/resources/actions/index.d.ts +0 -2
- package/serialization/resources/actions/index.js +0 -18
- package/serialization/resources/actions/types/ActionStatus.d.ts +0 -10
- package/serialization/resources/actions/types/ActionStatus.js +0 -39
- package/serialization/resources/actions/types/Conversation.d.ts +0 -12
- package/serialization/resources/actions/types/Conversation.js +0 -33
- package/serialization/resources/actions/types/DirectMessage.d.ts +0 -12
- package/serialization/resources/actions/types/DirectMessage.js +0 -33
- package/serialization/resources/actions/types/HumanConfirmationChannel.d.ts +0 -22
- package/serialization/resources/actions/types/HumanConfirmationChannel.js +0 -43
- package/serialization/resources/actions/types/InvokeActionResponse.d.ts +0 -14
- package/serialization/resources/actions/types/InvokeActionResponse.js +0 -35
- package/serialization/resources/actions/types/SlackThread.d.ts +0 -13
- package/serialization/resources/actions/types/SlackThread.js +0 -34
- package/serialization/resources/actions/types/index.d.ts +0 -6
- package/serialization/resources/actions/types/index.js +0 -22
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.InvokeActionRequest = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../../core"));
|
|
31
|
-
const HumanConfirmationChannel_1 = require("../../types/HumanConfirmationChannel");
|
|
32
|
-
exports.InvokeActionRequest = core.serialization.object({
|
|
33
|
-
actionId: core.serialization.string(),
|
|
34
|
-
actionInputs: core.serialization.unknown(),
|
|
35
|
-
userEmail: core.serialization.string(),
|
|
36
|
-
requireHumanConfirmation: core.serialization.boolean(),
|
|
37
|
-
humanConfirmationChannel: HumanConfirmationChannel_1.HumanConfirmationChannel.optional(),
|
|
38
|
-
justification: core.serialization.string(),
|
|
39
|
-
auditLogId: core.serialization.string(),
|
|
40
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InvokeActionRequest } from "./InvokeActionRequest";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvokeActionRequest = void 0;
|
|
4
|
-
var InvokeActionRequest_1 = require("./InvokeActionRequest");
|
|
5
|
-
Object.defineProperty(exports, "InvokeActionRequest", { enumerable: true, get: function () { return InvokeActionRequest_1.InvokeActionRequest; } });
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types"), exports);
|
|
18
|
-
__exportStar(require("./client"), exports);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as Credal from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const ActionStatus: core.serialization.Schema<serializers.ActionStatus.Raw, Credal.ActionStatus>;
|
|
8
|
-
export declare namespace ActionStatus {
|
|
9
|
-
type Raw = "PENDING_APPROVAL" | "APPROVED_IN_PROGRESS" | "NO_APPROVAL_NEEDED_IN_PROGRESS" | "APPROVED_SUCCEEDED" | "APPROVED_FAILED" | "NO_APPROVAL_NEEDED_SUCCEEDED" | "NO_APPROVAL_NEEDED_FAILED";
|
|
10
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ActionStatus = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.ActionStatus = core.serialization.enum_([
|
|
32
|
-
"PENDING_APPROVAL",
|
|
33
|
-
"APPROVED_IN_PROGRESS",
|
|
34
|
-
"NO_APPROVAL_NEEDED_IN_PROGRESS",
|
|
35
|
-
"APPROVED_SUCCEEDED",
|
|
36
|
-
"APPROVED_FAILED",
|
|
37
|
-
"NO_APPROVAL_NEEDED_SUCCEEDED",
|
|
38
|
-
"NO_APPROVAL_NEEDED_FAILED",
|
|
39
|
-
]);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as Credal from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const Conversation: core.serialization.ObjectSchema<serializers.Conversation.Raw, Credal.Conversation>;
|
|
8
|
-
export declare namespace Conversation {
|
|
9
|
-
interface Raw {
|
|
10
|
-
conversationId: string;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.Conversation = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.Conversation = core.serialization.object({
|
|
32
|
-
conversationId: core.serialization.string(),
|
|
33
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as Credal from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const DirectMessage: core.serialization.ObjectSchema<serializers.DirectMessage.Raw, Credal.DirectMessage>;
|
|
8
|
-
export declare namespace DirectMessage {
|
|
9
|
-
interface Raw {
|
|
10
|
-
channelId: string;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.DirectMessage = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.DirectMessage = core.serialization.object({
|
|
32
|
-
channelId: core.serialization.string(),
|
|
33
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as Credal from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
import { DirectMessage } from "./DirectMessage";
|
|
8
|
-
import { SlackThread } from "./SlackThread";
|
|
9
|
-
import { Conversation } from "./Conversation";
|
|
10
|
-
export declare const HumanConfirmationChannel: core.serialization.Schema<serializers.HumanConfirmationChannel.Raw, Credal.HumanConfirmationChannel>;
|
|
11
|
-
export declare namespace HumanConfirmationChannel {
|
|
12
|
-
type Raw = HumanConfirmationChannel.DirectMessage | HumanConfirmationChannel.SlackThread | HumanConfirmationChannel.Conversation;
|
|
13
|
-
interface DirectMessage extends DirectMessage.Raw {
|
|
14
|
-
type: "directMessage";
|
|
15
|
-
}
|
|
16
|
-
interface SlackThread extends SlackThread.Raw {
|
|
17
|
-
type: "slackThread";
|
|
18
|
-
}
|
|
19
|
-
interface Conversation extends Conversation.Raw {
|
|
20
|
-
type: "conversation";
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.HumanConfirmationChannel = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../core"));
|
|
31
|
-
const DirectMessage_1 = require("./DirectMessage");
|
|
32
|
-
const SlackThread_1 = require("./SlackThread");
|
|
33
|
-
const Conversation_1 = require("./Conversation");
|
|
34
|
-
exports.HumanConfirmationChannel = core.serialization
|
|
35
|
-
.union("type", {
|
|
36
|
-
directMessage: DirectMessage_1.DirectMessage,
|
|
37
|
-
slackThread: SlackThread_1.SlackThread,
|
|
38
|
-
conversation: Conversation_1.Conversation,
|
|
39
|
-
})
|
|
40
|
-
.transform({
|
|
41
|
-
transform: (value) => value,
|
|
42
|
-
untransform: (value) => value,
|
|
43
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as Credal from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
import { ActionStatus } from "./ActionStatus";
|
|
8
|
-
export declare const InvokeActionResponse: core.serialization.ObjectSchema<serializers.InvokeActionResponse.Raw, Credal.InvokeActionResponse>;
|
|
9
|
-
export declare namespace InvokeActionResponse {
|
|
10
|
-
interface Raw {
|
|
11
|
-
actionInvocationId: string;
|
|
12
|
-
actionInvocationStatus: ActionStatus.Raw;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.InvokeActionResponse = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../core"));
|
|
31
|
-
const ActionStatus_1 = require("./ActionStatus");
|
|
32
|
-
exports.InvokeActionResponse = core.serialization.object({
|
|
33
|
-
actionInvocationId: core.serialization.string(),
|
|
34
|
-
actionInvocationStatus: ActionStatus_1.ActionStatus,
|
|
35
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as Credal from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const SlackThread: core.serialization.ObjectSchema<serializers.SlackThread.Raw, Credal.SlackThread>;
|
|
8
|
-
export declare namespace SlackThread {
|
|
9
|
-
interface Raw {
|
|
10
|
-
channelId: string;
|
|
11
|
-
threadTimestamp: string;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.SlackThread = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.SlackThread = core.serialization.object({
|
|
32
|
-
channelId: core.serialization.string(),
|
|
33
|
-
threadTimestamp: core.serialization.string(),
|
|
34
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./HumanConfirmationChannel"), exports);
|
|
18
|
-
__exportStar(require("./DirectMessage"), exports);
|
|
19
|
-
__exportStar(require("./SlackThread"), exports);
|
|
20
|
-
__exportStar(require("./Conversation"), exports);
|
|
21
|
-
__exportStar(require("./InvokeActionResponse"), exports);
|
|
22
|
-
__exportStar(require("./ActionStatus"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./requests";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./requests"), exports);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../../index";
|
|
5
|
-
import * as Credal from "../../../../../api/index";
|
|
6
|
-
import * as core from "../../../../../core";
|
|
7
|
-
import { HumanConfirmationChannel } from "../../types/HumanConfirmationChannel";
|
|
8
|
-
export declare const InvokeActionRequest: core.serialization.Schema<serializers.InvokeActionRequest.Raw, Credal.InvokeActionRequest>;
|
|
9
|
-
export declare namespace InvokeActionRequest {
|
|
10
|
-
interface Raw {
|
|
11
|
-
actionId: string;
|
|
12
|
-
actionInputs?: unknown;
|
|
13
|
-
userEmail: string;
|
|
14
|
-
requireHumanConfirmation: boolean;
|
|
15
|
-
humanConfirmationChannel?: HumanConfirmationChannel.Raw | null;
|
|
16
|
-
justification: string;
|
|
17
|
-
auditLogId: string;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.InvokeActionRequest = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../../core"));
|
|
31
|
-
const HumanConfirmationChannel_1 = require("../../types/HumanConfirmationChannel");
|
|
32
|
-
exports.InvokeActionRequest = core.serialization.object({
|
|
33
|
-
actionId: core.serialization.string(),
|
|
34
|
-
actionInputs: core.serialization.unknown(),
|
|
35
|
-
userEmail: core.serialization.string(),
|
|
36
|
-
requireHumanConfirmation: core.serialization.boolean(),
|
|
37
|
-
humanConfirmationChannel: HumanConfirmationChannel_1.HumanConfirmationChannel.optional(),
|
|
38
|
-
justification: core.serialization.string(),
|
|
39
|
-
auditLogId: core.serialization.string(),
|
|
40
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InvokeActionRequest } from "./InvokeActionRequest";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvokeActionRequest = void 0;
|
|
4
|
-
var InvokeActionRequest_1 = require("./InvokeActionRequest");
|
|
5
|
-
Object.defineProperty(exports, "InvokeActionRequest", { enumerable: true, get: function () { return InvokeActionRequest_1.InvokeActionRequest; } });
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types"), exports);
|
|
18
|
-
__exportStar(require("./client"), exports);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as Credal from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const ActionStatus: core.serialization.Schema<serializers.ActionStatus.Raw, Credal.ActionStatus>;
|
|
8
|
-
export declare namespace ActionStatus {
|
|
9
|
-
type Raw = "PENDING_APPROVAL" | "APPROVED_IN_PROGRESS" | "NO_APPROVAL_NEEDED_IN_PROGRESS" | "APPROVED_SUCCEEDED" | "APPROVED_FAILED" | "NO_APPROVAL_NEEDED_SUCCEEDED" | "NO_APPROVAL_NEEDED_FAILED";
|
|
10
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ActionStatus = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.ActionStatus = core.serialization.enum_([
|
|
32
|
-
"PENDING_APPROVAL",
|
|
33
|
-
"APPROVED_IN_PROGRESS",
|
|
34
|
-
"NO_APPROVAL_NEEDED_IN_PROGRESS",
|
|
35
|
-
"APPROVED_SUCCEEDED",
|
|
36
|
-
"APPROVED_FAILED",
|
|
37
|
-
"NO_APPROVAL_NEEDED_SUCCEEDED",
|
|
38
|
-
"NO_APPROVAL_NEEDED_FAILED",
|
|
39
|
-
]);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as Credal from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const Conversation: core.serialization.ObjectSchema<serializers.Conversation.Raw, Credal.Conversation>;
|
|
8
|
-
export declare namespace Conversation {
|
|
9
|
-
interface Raw {
|
|
10
|
-
conversationId: string;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.Conversation = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.Conversation = core.serialization.object({
|
|
32
|
-
conversationId: core.serialization.string(),
|
|
33
|
-
});
|