@credal/sdk 0.0.15 → 0.0.17
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 +3 -0
- package/Client.js +17 -12
- package/api/resources/actions/client/Client.d.ts +46 -0
- package/api/resources/actions/client/Client.js +134 -0
- package/api/resources/actions/client/index.d.ts +1 -0
- package/api/resources/actions/client/index.js +17 -0
- package/api/resources/actions/client/requests/InvokeActionRequest.d.ts +46 -0
- package/api/resources/actions/client/requests/InvokeActionRequest.js +5 -0
- package/api/resources/actions/client/requests/index.d.ts +1 -0
- package/api/resources/actions/client/requests/index.js +2 -0
- package/api/resources/actions/index.d.ts +2 -0
- package/api/resources/actions/index.js +18 -0
- package/api/resources/actions/types/ActionStatus.d.ts +12 -0
- package/api/resources/actions/types/ActionStatus.js +14 -0
- package/api/resources/actions/types/Conversation.d.ts +6 -0
- package/api/resources/actions/types/Conversation.js +5 -0
- package/api/resources/actions/types/DirectMessage.d.ts +6 -0
- package/api/resources/actions/types/DirectMessage.js +5 -0
- package/api/resources/actions/types/HumanConfirmationChannel.d.ts +16 -0
- package/api/resources/actions/types/HumanConfirmationChannel.js +5 -0
- package/api/resources/actions/types/InvokeActionResponse.d.ts +8 -0
- package/api/resources/actions/types/InvokeActionResponse.js +5 -0
- package/api/resources/actions/types/SlackThread.d.ts +7 -0
- package/api/resources/actions/types/SlackThread.js +5 -0
- package/api/resources/actions/types/index.d.ts +6 -0
- package/api/resources/actions/types/index.js +22 -0
- package/api/resources/copilots/client/Client.d.ts +2 -2
- package/api/resources/copilots/client/Client.js +20 -20
- package/api/resources/copilots/client/requests/SendMessageRequest.d.ts +2 -2
- package/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +4 -4
- package/api/resources/copilots/types/InputVariable.d.ts +1 -1
- package/api/resources/copilots/types/StreamingChunk.d.ts +15 -1
- package/api/resources/documentCatalog/client/Client.d.ts +13 -0
- package/api/resources/documentCatalog/client/Client.js +67 -4
- package/api/resources/documentCatalog/types/SyncSourceByUrlRequest.d.ts +7 -0
- package/api/resources/documentCatalog/types/SyncSourceByUrlRequest.js +5 -0
- package/api/resources/documentCatalog/types/SyncSourceByUrlResponse.d.ts +6 -0
- package/api/resources/documentCatalog/types/SyncSourceByUrlResponse.js +5 -0
- package/api/resources/documentCatalog/types/index.d.ts +2 -0
- package/api/resources/documentCatalog/types/index.js +2 -0
- package/api/resources/documentCollections/client/Client.js +12 -12
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- 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 +3 -0
- package/dist/Client.js +17 -12
- package/dist/api/resources/actions/client/Client.d.ts +46 -0
- package/dist/api/resources/actions/client/Client.js +134 -0
- package/dist/api/resources/actions/client/index.d.ts +1 -0
- package/dist/api/resources/actions/client/index.js +17 -0
- package/dist/api/resources/actions/client/requests/InvokeActionRequest.d.ts +46 -0
- package/dist/api/resources/actions/client/requests/InvokeActionRequest.js +5 -0
- package/dist/api/resources/actions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/actions/client/requests/index.js +2 -0
- package/dist/api/resources/actions/index.d.ts +2 -0
- package/dist/api/resources/actions/index.js +18 -0
- package/dist/api/resources/actions/types/ActionStatus.d.ts +12 -0
- package/dist/api/resources/actions/types/ActionStatus.js +14 -0
- package/dist/api/resources/actions/types/Conversation.d.ts +6 -0
- package/dist/api/resources/actions/types/Conversation.js +5 -0
- package/dist/api/resources/actions/types/DirectMessage.d.ts +6 -0
- package/dist/api/resources/actions/types/DirectMessage.js +5 -0
- package/dist/api/resources/actions/types/HumanConfirmationChannel.d.ts +16 -0
- package/dist/api/resources/actions/types/HumanConfirmationChannel.js +5 -0
- package/dist/api/resources/actions/types/InvokeActionResponse.d.ts +8 -0
- package/dist/api/resources/actions/types/InvokeActionResponse.js +5 -0
- package/dist/api/resources/actions/types/SlackThread.d.ts +7 -0
- package/dist/api/resources/actions/types/SlackThread.js +5 -0
- package/dist/api/resources/actions/types/index.d.ts +6 -0
- package/dist/api/resources/actions/types/index.js +22 -0
- package/dist/api/resources/copilots/client/Client.d.ts +2 -2
- package/dist/api/resources/copilots/client/Client.js +20 -20
- package/dist/api/resources/copilots/client/requests/SendMessageRequest.d.ts +2 -2
- package/dist/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +4 -4
- package/dist/api/resources/copilots/types/InputVariable.d.ts +1 -1
- package/dist/api/resources/copilots/types/StreamingChunk.d.ts +15 -1
- package/dist/api/resources/documentCatalog/client/Client.d.ts +13 -0
- package/dist/api/resources/documentCatalog/client/Client.js +67 -4
- package/dist/api/resources/documentCatalog/types/SyncSourceByUrlRequest.d.ts +7 -0
- package/dist/api/resources/documentCatalog/types/SyncSourceByUrlRequest.js +5 -0
- package/dist/api/resources/documentCatalog/types/SyncSourceByUrlResponse.d.ts +6 -0
- package/dist/api/resources/documentCatalog/types/SyncSourceByUrlResponse.js +5 -0
- package/dist/api/resources/documentCatalog/types/index.d.ts +2 -0
- package/dist/api/resources/documentCatalog/types/index.js +2 -0
- package/dist/api/resources/documentCollections/client/Client.js +12 -12
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- 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/actions/client/index.d.ts +1 -0
- package/dist/serialization/resources/actions/client/index.js +17 -0
- package/dist/serialization/resources/actions/client/requests/InvokeActionRequest.d.ts +18 -0
- package/dist/serialization/resources/actions/client/requests/InvokeActionRequest.js +39 -0
- package/dist/serialization/resources/actions/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/actions/client/requests/index.js +5 -0
- package/dist/serialization/resources/actions/index.d.ts +2 -0
- package/dist/serialization/resources/actions/index.js +18 -0
- package/dist/serialization/resources/actions/types/ActionStatus.d.ts +10 -0
- package/dist/serialization/resources/actions/types/ActionStatus.js +38 -0
- package/dist/serialization/resources/actions/types/Conversation.d.ts +12 -0
- package/dist/serialization/resources/actions/types/Conversation.js +33 -0
- package/dist/serialization/resources/actions/types/DirectMessage.d.ts +12 -0
- package/dist/serialization/resources/actions/types/DirectMessage.js +33 -0
- package/dist/serialization/resources/actions/types/HumanConfirmationChannel.d.ts +22 -0
- package/dist/serialization/resources/actions/types/HumanConfirmationChannel.js +43 -0
- package/dist/serialization/resources/actions/types/InvokeActionResponse.d.ts +14 -0
- package/dist/serialization/resources/actions/types/InvokeActionResponse.js +35 -0
- package/dist/serialization/resources/actions/types/SlackThread.d.ts +13 -0
- package/dist/serialization/resources/actions/types/SlackThread.js +34 -0
- package/dist/serialization/resources/actions/types/index.d.ts +6 -0
- package/dist/serialization/resources/actions/types/index.js +22 -0
- package/dist/serialization/resources/copilots/types/InputVariable.d.ts +1 -1
- package/dist/serialization/resources/copilots/types/InputVariable.js +1 -1
- package/dist/serialization/resources/copilots/types/StreamingChunk.d.ts +13 -1
- package/dist/serialization/resources/copilots/types/StreamingChunk.js +11 -1
- package/dist/serialization/resources/documentCatalog/types/SyncSourceByUrlRequest.d.ts +13 -0
- package/dist/serialization/resources/documentCatalog/types/SyncSourceByUrlRequest.js +34 -0
- package/dist/serialization/resources/documentCatalog/types/SyncSourceByUrlResponse.d.ts +12 -0
- package/dist/serialization/resources/documentCatalog/types/SyncSourceByUrlResponse.js +33 -0
- package/dist/serialization/resources/documentCatalog/types/index.d.ts +2 -0
- package/dist/serialization/resources/documentCatalog/types/index.js +2 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +145 -4
- package/serialization/resources/actions/client/index.d.ts +1 -0
- package/serialization/resources/actions/client/index.js +17 -0
- package/serialization/resources/actions/client/requests/InvokeActionRequest.d.ts +18 -0
- package/serialization/resources/actions/client/requests/InvokeActionRequest.js +39 -0
- package/serialization/resources/actions/client/requests/index.d.ts +1 -0
- package/serialization/resources/actions/client/requests/index.js +5 -0
- package/serialization/resources/actions/index.d.ts +2 -0
- package/serialization/resources/actions/index.js +18 -0
- package/serialization/resources/actions/types/ActionStatus.d.ts +10 -0
- package/serialization/resources/actions/types/ActionStatus.js +38 -0
- package/serialization/resources/actions/types/Conversation.d.ts +12 -0
- package/serialization/resources/actions/types/Conversation.js +33 -0
- package/serialization/resources/actions/types/DirectMessage.d.ts +12 -0
- package/serialization/resources/actions/types/DirectMessage.js +33 -0
- package/serialization/resources/actions/types/HumanConfirmationChannel.d.ts +22 -0
- package/serialization/resources/actions/types/HumanConfirmationChannel.js +43 -0
- package/serialization/resources/actions/types/InvokeActionResponse.d.ts +14 -0
- package/serialization/resources/actions/types/InvokeActionResponse.js +35 -0
- package/serialization/resources/actions/types/SlackThread.d.ts +13 -0
- package/serialization/resources/actions/types/SlackThread.js +34 -0
- package/serialization/resources/actions/types/index.d.ts +6 -0
- package/serialization/resources/actions/types/index.js +22 -0
- package/serialization/resources/copilots/types/InputVariable.d.ts +1 -1
- package/serialization/resources/copilots/types/InputVariable.js +1 -1
- package/serialization/resources/copilots/types/StreamingChunk.d.ts +13 -1
- package/serialization/resources/copilots/types/StreamingChunk.js +11 -1
- package/serialization/resources/documentCatalog/types/SyncSourceByUrlRequest.d.ts +13 -0
- package/serialization/resources/documentCatalog/types/SyncSourceByUrlRequest.js +34 -0
- package/serialization/resources/documentCatalog/types/SyncSourceByUrlResponse.d.ts +12 -0
- package/serialization/resources/documentCatalog/types/SyncSourceByUrlResponse.js +33 -0
- package/serialization/resources/documentCatalog/types/index.d.ts +2 -0
- package/serialization/resources/documentCatalog/types/index.js +2 -0
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -10,5 +10,17 @@ import { FinalChunk } from "./FinalChunk";
|
|
|
10
10
|
import { BlockedChunk } from "./BlockedChunk";
|
|
11
11
|
export declare const StreamingChunk: core.serialization.Schema<serializers.StreamingChunk.Raw, Credal.StreamingChunk>;
|
|
12
12
|
export declare namespace StreamingChunk {
|
|
13
|
-
type Raw =
|
|
13
|
+
type Raw = StreamingChunk.Initial | StreamingChunk.DataChunk | StreamingChunk.FinalChunk | StreamingChunk.Blocked;
|
|
14
|
+
interface Initial extends InitialChunk.Raw {
|
|
15
|
+
event: "initial";
|
|
16
|
+
}
|
|
17
|
+
interface DataChunk extends DataChunk.Raw {
|
|
18
|
+
event: "data_chunk";
|
|
19
|
+
}
|
|
20
|
+
interface FinalChunk extends FinalChunk.Raw {
|
|
21
|
+
event: "final_chunk";
|
|
22
|
+
}
|
|
23
|
+
interface Blocked extends BlockedChunk.Raw {
|
|
24
|
+
event: "blocked";
|
|
25
|
+
}
|
|
14
26
|
}
|
|
@@ -32,4 +32,14 @@ const InitialChunk_1 = require("./InitialChunk");
|
|
|
32
32
|
const DataChunk_1 = require("./DataChunk");
|
|
33
33
|
const FinalChunk_1 = require("./FinalChunk");
|
|
34
34
|
const BlockedChunk_1 = require("./BlockedChunk");
|
|
35
|
-
exports.StreamingChunk = core.serialization
|
|
35
|
+
exports.StreamingChunk = core.serialization
|
|
36
|
+
.union("event", {
|
|
37
|
+
initial: InitialChunk_1.InitialChunk,
|
|
38
|
+
data_chunk: DataChunk_1.DataChunk,
|
|
39
|
+
final_chunk: FinalChunk_1.FinalChunk,
|
|
40
|
+
blocked: BlockedChunk_1.BlockedChunk,
|
|
41
|
+
})
|
|
42
|
+
.transform({
|
|
43
|
+
transform: (value) => value,
|
|
44
|
+
untransform: (value) => value,
|
|
45
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
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 SyncSourceByUrlRequest: core.serialization.ObjectSchema<serializers.SyncSourceByUrlRequest.Raw, Credal.SyncSourceByUrlRequest>;
|
|
8
|
+
export declare namespace SyncSourceByUrlRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
uploadAsUserEmail: string;
|
|
11
|
+
sourceUrl: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.SyncSourceByUrlRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.SyncSourceByUrlRequest = core.serialization.object({
|
|
32
|
+
uploadAsUserEmail: core.serialization.string(),
|
|
33
|
+
sourceUrl: core.serialization.string(),
|
|
34
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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 SyncSourceByUrlResponse: core.serialization.ObjectSchema<serializers.SyncSourceByUrlResponse.Raw, Credal.SyncSourceByUrlResponse>;
|
|
8
|
+
export declare namespace SyncSourceByUrlResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
sourceId: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.SyncSourceByUrlResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.SyncSourceByUrlResponse = core.serialization.object({
|
|
32
|
+
sourceId: core.serialization.string(),
|
|
33
|
+
});
|
|
@@ -17,3 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./UploadDocumentResponse"), exports);
|
|
18
18
|
__exportStar(require("./DocumentMetadataPatch"), exports);
|
|
19
19
|
__exportStar(require("./DocumentMetadataPatchRequest"), exports);
|
|
20
|
+
__exportStar(require("./SyncSourceByUrlRequest"), exports);
|
|
21
|
+
__exportStar(require("./SyncSourceByUrlResponse"), exports);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * as actions from "./actions";
|
|
2
|
+
export * from "./actions/types";
|
|
1
3
|
export * as common from "./common";
|
|
2
4
|
export * from "./common/types";
|
|
3
5
|
export * as copilots from "./copilots";
|
|
@@ -12,6 +14,7 @@ export * as search from "./search";
|
|
|
12
14
|
export * from "./search/types";
|
|
13
15
|
export * as users from "./users";
|
|
14
16
|
export * from "./users/types";
|
|
17
|
+
export * from "./actions/client/requests";
|
|
15
18
|
export * from "./copilots/client/requests";
|
|
16
19
|
export * from "./documentCatalog/client/requests";
|
|
17
20
|
export * from "./documentCollections/client/requests";
|
|
@@ -26,7 +26,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.users = exports.search = exports.permissionsService = exports.documentCollections = exports.documentCatalog = exports.copilots = exports.common = void 0;
|
|
29
|
+
exports.users = exports.search = exports.permissionsService = exports.documentCollections = exports.documentCatalog = exports.copilots = exports.common = exports.actions = void 0;
|
|
30
|
+
exports.actions = __importStar(require("./actions"));
|
|
31
|
+
__exportStar(require("./actions/types"), exports);
|
|
30
32
|
exports.common = __importStar(require("./common"));
|
|
31
33
|
__exportStar(require("./common/types"), exports);
|
|
32
34
|
exports.copilots = __importStar(require("./copilots"));
|
|
@@ -41,6 +43,7 @@ exports.search = __importStar(require("./search"));
|
|
|
41
43
|
__exportStar(require("./search/types"), exports);
|
|
42
44
|
exports.users = __importStar(require("./users"));
|
|
43
45
|
__exportStar(require("./users/types"), exports);
|
|
46
|
+
__exportStar(require("./actions/client/requests"), exports);
|
|
44
47
|
__exportStar(require("./copilots/client/requests"), exports);
|
|
45
48
|
__exportStar(require("./documentCatalog/client/requests"), exports);
|
|
46
49
|
__exportStar(require("./documentCollections/client/requests"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.17";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1,5 +1,80 @@
|
|
|
1
1
|
# Reference
|
|
2
2
|
|
|
3
|
+
## Actions
|
|
4
|
+
|
|
5
|
+
<details><summary><code>client.actions.<a href="/src/api/resources/actions/client/Client.ts">invokeAction</a>({ ...params }) -> Credal.InvokeActionResponse</code></summary>
|
|
6
|
+
<dl>
|
|
7
|
+
<dd>
|
|
8
|
+
|
|
9
|
+
#### 📝 Description
|
|
10
|
+
|
|
11
|
+
<dl>
|
|
12
|
+
<dd>
|
|
13
|
+
|
|
14
|
+
<dl>
|
|
15
|
+
<dd>
|
|
16
|
+
|
|
17
|
+
Invoke an action, asking for human confirmation if necessary
|
|
18
|
+
|
|
19
|
+
</dd>
|
|
20
|
+
</dl>
|
|
21
|
+
</dd>
|
|
22
|
+
</dl>
|
|
23
|
+
|
|
24
|
+
#### 🔌 Usage
|
|
25
|
+
|
|
26
|
+
<dl>
|
|
27
|
+
<dd>
|
|
28
|
+
|
|
29
|
+
<dl>
|
|
30
|
+
<dd>
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
await client.actions.invokeAction({
|
|
34
|
+
actionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
|
35
|
+
userEmail: "string",
|
|
36
|
+
requireHumanConfirmation: true,
|
|
37
|
+
humanConfirmationChannel: {
|
|
38
|
+
type: "directMessage",
|
|
39
|
+
channelId: "string",
|
|
40
|
+
},
|
|
41
|
+
justification: "string",
|
|
42
|
+
auditLogId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
|
43
|
+
});
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
</dd>
|
|
47
|
+
</dl>
|
|
48
|
+
</dd>
|
|
49
|
+
</dl>
|
|
50
|
+
|
|
51
|
+
#### ⚙️ Parameters
|
|
52
|
+
|
|
53
|
+
<dl>
|
|
54
|
+
<dd>
|
|
55
|
+
|
|
56
|
+
<dl>
|
|
57
|
+
<dd>
|
|
58
|
+
|
|
59
|
+
**request:** `Credal.InvokeActionRequest`
|
|
60
|
+
|
|
61
|
+
</dd>
|
|
62
|
+
</dl>
|
|
63
|
+
|
|
64
|
+
<dl>
|
|
65
|
+
<dd>
|
|
66
|
+
|
|
67
|
+
**requestOptions:** `Actions.RequestOptions`
|
|
68
|
+
|
|
69
|
+
</dd>
|
|
70
|
+
</dl>
|
|
71
|
+
</dd>
|
|
72
|
+
</dl>
|
|
73
|
+
|
|
74
|
+
</dd>
|
|
75
|
+
</dl>
|
|
76
|
+
</details>
|
|
77
|
+
|
|
3
78
|
## Copilots
|
|
4
79
|
|
|
5
80
|
<details><summary><code>client.copilots.<a href="/src/api/resources/copilots/client/Client.ts">createCopilot</a>({ ...params }) -> Credal.CreateCopilotResponse</code></summary>
|
|
@@ -216,11 +291,11 @@ await client.copilots.sendMessage({
|
|
|
216
291
|
inputVariables: [
|
|
217
292
|
{
|
|
218
293
|
name: "input1",
|
|
219
|
-
|
|
294
|
+
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c24"],
|
|
220
295
|
},
|
|
221
296
|
{
|
|
222
297
|
name: "input2",
|
|
223
|
-
|
|
298
|
+
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c25", "82e4b12a-6990-45d4-8ebd-85c00e030c26"],
|
|
224
299
|
},
|
|
225
300
|
],
|
|
226
301
|
});
|
|
@@ -293,11 +368,11 @@ const response = await client.copilots.streamMessage({
|
|
|
293
368
|
inputVariables: [
|
|
294
369
|
{
|
|
295
370
|
name: "input1",
|
|
296
|
-
|
|
371
|
+
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c24"],
|
|
297
372
|
},
|
|
298
373
|
{
|
|
299
374
|
name: "input2",
|
|
300
|
-
|
|
375
|
+
ids: ["82e4b12a-6990-45d4-8ebd-85c00e030c25", "82e4b12a-6990-45d4-8ebd-85c00e030c26"],
|
|
301
376
|
},
|
|
302
377
|
],
|
|
303
378
|
});
|
|
@@ -651,6 +726,72 @@ await client.documentCatalog.uploadDocumentContents({
|
|
|
651
726
|
</dl>
|
|
652
727
|
</details>
|
|
653
728
|
|
|
729
|
+
<details><summary><code>client.documentCatalog.<a href="/src/api/resources/documentCatalog/client/Client.ts">syncSourceByUrl</a>({ ...params }) -> Credal.SyncSourceByUrlResponse</code></summary>
|
|
730
|
+
<dl>
|
|
731
|
+
<dd>
|
|
732
|
+
|
|
733
|
+
#### 📝 Description
|
|
734
|
+
|
|
735
|
+
<dl>
|
|
736
|
+
<dd>
|
|
737
|
+
|
|
738
|
+
<dl>
|
|
739
|
+
<dd>
|
|
740
|
+
|
|
741
|
+
Sync a document from a source URL. Does not support recursive web search. Reach out to a Credal representative for access.
|
|
742
|
+
|
|
743
|
+
</dd>
|
|
744
|
+
</dl>
|
|
745
|
+
</dd>
|
|
746
|
+
</dl>
|
|
747
|
+
|
|
748
|
+
#### 🔌 Usage
|
|
749
|
+
|
|
750
|
+
<dl>
|
|
751
|
+
<dd>
|
|
752
|
+
|
|
753
|
+
<dl>
|
|
754
|
+
<dd>
|
|
755
|
+
|
|
756
|
+
```typescript
|
|
757
|
+
await client.documentCatalog.syncSourceByUrl({
|
|
758
|
+
sourceUrl: "https://drive.google.com/file/d/123456/view",
|
|
759
|
+
uploadAsUserEmail: "ria@credal.ai",
|
|
760
|
+
});
|
|
761
|
+
```
|
|
762
|
+
|
|
763
|
+
</dd>
|
|
764
|
+
</dl>
|
|
765
|
+
</dd>
|
|
766
|
+
</dl>
|
|
767
|
+
|
|
768
|
+
#### ⚙️ Parameters
|
|
769
|
+
|
|
770
|
+
<dl>
|
|
771
|
+
<dd>
|
|
772
|
+
|
|
773
|
+
<dl>
|
|
774
|
+
<dd>
|
|
775
|
+
|
|
776
|
+
**request:** `Credal.SyncSourceByUrlRequest`
|
|
777
|
+
|
|
778
|
+
</dd>
|
|
779
|
+
</dl>
|
|
780
|
+
|
|
781
|
+
<dl>
|
|
782
|
+
<dd>
|
|
783
|
+
|
|
784
|
+
**requestOptions:** `DocumentCatalog.RequestOptions`
|
|
785
|
+
|
|
786
|
+
</dd>
|
|
787
|
+
</dl>
|
|
788
|
+
</dd>
|
|
789
|
+
</dl>
|
|
790
|
+
|
|
791
|
+
</dd>
|
|
792
|
+
</dl>
|
|
793
|
+
</details>
|
|
794
|
+
|
|
654
795
|
<details><summary><code>client.documentCatalog.<a href="/src/api/resources/documentCatalog/client/Client.ts">metadata</a>({ ...params }) -> void</code></summary>
|
|
655
796
|
<dl>
|
|
656
797
|
<dd>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
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);
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
userEmail: string;
|
|
13
|
+
requireHumanConfirmation?: boolean | null;
|
|
14
|
+
humanConfirmationChannel: HumanConfirmationChannel.Raw;
|
|
15
|
+
justification: string;
|
|
16
|
+
auditLogId: string;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
userEmail: core.serialization.string(),
|
|
35
|
+
requireHumanConfirmation: core.serialization.boolean().optional(),
|
|
36
|
+
humanConfirmationChannel: HumanConfirmationChannel_1.HumanConfirmationChannel,
|
|
37
|
+
justification: core.serialization.string(),
|
|
38
|
+
auditLogId: core.serialization.string(),
|
|
39
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InvokeActionRequest } from "./InvokeActionRequest";
|
|
@@ -0,0 +1,5 @@
|
|
|
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; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
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);
|
|
@@ -0,0 +1,10 @@
|
|
|
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" | "IN_PROGRESS" | "APPROVED_SUCCEEDED" | "APPROVED_FAILED" | "NO_APPROVAL_NEEDED_SUCCEEDED" | "NO_APPROVAL_NEEDED_FAILED";
|
|
10
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
"IN_PROGRESS",
|
|
34
|
+
"APPROVED_SUCCEEDED",
|
|
35
|
+
"APPROVED_FAILED",
|
|
36
|
+
"NO_APPROVAL_NEEDED_SUCCEEDED",
|
|
37
|
+
"NO_APPROVAL_NEEDED_FAILED",
|
|
38
|
+
]);
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
});
|