parlant-client 3.0.0 → 3.0.1
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/package.json +1 -1
- package/src/api/resources/sessions/client/requests/EventCreationParams.d.ts +1 -0
- package/src/api/types/SessionStatusDto.d.ts +15 -0
- package/src/api/types/SessionStatusDto.js +14 -0
- package/src/api/types/index.d.ts +1 -0
- package/src/api/types/index.js +1 -0
- package/src/serialization/resources/sessions/client/requests/EventCreationParams.d.ts +2 -0
- package/src/serialization/resources/sessions/client/requests/EventCreationParams.js +2 -0
- package/src/serialization/types/SessionStatusDto.d.ts +10 -0
- package/src/serialization/types/SessionStatusDto.js +41 -0
- package/src/serialization/types/index.d.ts +1 -0
- package/src/serialization/types/index.js +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Type of status in a session.
|
|
6
|
+
*/
|
|
7
|
+
export type SessionStatusDto = "acknowledged" | "cancelled" | "processing" | "ready" | "typing" | "error";
|
|
8
|
+
export declare const SessionStatusDto: {
|
|
9
|
+
readonly Acknowledged: "acknowledged";
|
|
10
|
+
readonly Cancelled: "cancelled";
|
|
11
|
+
readonly Processing: "processing";
|
|
12
|
+
readonly Ready: "ready";
|
|
13
|
+
readonly Typing: "typing";
|
|
14
|
+
readonly Error: "error";
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SessionStatusDto = void 0;
|
|
7
|
+
exports.SessionStatusDto = {
|
|
8
|
+
Acknowledged: "acknowledged",
|
|
9
|
+
Cancelled: "cancelled",
|
|
10
|
+
Processing: "processing",
|
|
11
|
+
Ready: "ready",
|
|
12
|
+
Typing: "typing",
|
|
13
|
+
Error: "error",
|
|
14
|
+
};
|
package/src/api/types/index.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export * from "./SdkServiceParams";
|
|
|
76
76
|
export * from "./Service";
|
|
77
77
|
export * from "./Session";
|
|
78
78
|
export * from "./SessionModeDto";
|
|
79
|
+
export * from "./SessionStatusDto";
|
|
79
80
|
export * from "./Tag";
|
|
80
81
|
export * from "./Term";
|
|
81
82
|
export * from "./TermTagsUpdateParams";
|
package/src/api/types/index.js
CHANGED
|
@@ -92,6 +92,7 @@ __exportStar(require("./SdkServiceParams"), exports);
|
|
|
92
92
|
__exportStar(require("./Service"), exports);
|
|
93
93
|
__exportStar(require("./Session"), exports);
|
|
94
94
|
__exportStar(require("./SessionModeDto"), exports);
|
|
95
|
+
__exportStar(require("./SessionStatusDto"), exports);
|
|
95
96
|
__exportStar(require("./Tag"), exports);
|
|
96
97
|
__exportStar(require("./Term"), exports);
|
|
97
98
|
__exportStar(require("./TermTagsUpdateParams"), exports);
|
|
@@ -8,6 +8,7 @@ import { EventKindDto } from "../../../../types/EventKindDto";
|
|
|
8
8
|
import { EventSourceDto } from "../../../../types/EventSourceDto";
|
|
9
9
|
import { AgentMessageGuideline } from "../../../../types/AgentMessageGuideline";
|
|
10
10
|
import { Participant } from "../../../../types/Participant";
|
|
11
|
+
import { SessionStatusDto } from "../../../../types/SessionStatusDto";
|
|
11
12
|
export declare const EventCreationParams: core.serialization.Schema<serializers.EventCreationParams.Raw, Omit<Parlant.EventCreationParams, "moderation">>;
|
|
12
13
|
export declare namespace EventCreationParams {
|
|
13
14
|
interface Raw {
|
|
@@ -17,5 +18,6 @@ export declare namespace EventCreationParams {
|
|
|
17
18
|
data?: unknown | null;
|
|
18
19
|
guidelines?: AgentMessageGuideline.Raw[] | null;
|
|
19
20
|
participant?: Participant.Raw | null;
|
|
21
|
+
status?: SessionStatusDto.Raw | null;
|
|
20
22
|
}
|
|
21
23
|
}
|
|
@@ -42,6 +42,7 @@ const EventKindDto_1 = require("../../../../types/EventKindDto");
|
|
|
42
42
|
const EventSourceDto_1 = require("../../../../types/EventSourceDto");
|
|
43
43
|
const AgentMessageGuideline_1 = require("../../../../types/AgentMessageGuideline");
|
|
44
44
|
const Participant_1 = require("../../../../types/Participant");
|
|
45
|
+
const SessionStatusDto_1 = require("../../../../types/SessionStatusDto");
|
|
45
46
|
exports.EventCreationParams = core.serialization.object({
|
|
46
47
|
kind: EventKindDto_1.EventKindDto,
|
|
47
48
|
source: EventSourceDto_1.EventSourceDto,
|
|
@@ -49,4 +50,5 @@ exports.EventCreationParams = core.serialization.object({
|
|
|
49
50
|
data: core.serialization.unknown().optional(),
|
|
50
51
|
guidelines: core.serialization.list(AgentMessageGuideline_1.AgentMessageGuideline).optional(),
|
|
51
52
|
participant: Participant_1.Participant.optional(),
|
|
53
|
+
status: SessionStatusDto_1.SessionStatusDto.optional(),
|
|
52
54
|
});
|
|
@@ -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 Parlant from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const SessionStatusDto: core.serialization.Schema<serializers.SessionStatusDto.Raw, Parlant.SessionStatusDto>;
|
|
8
|
+
export declare namespace SessionStatusDto {
|
|
9
|
+
type Raw = "acknowledged" | "cancelled" | "processing" | "ready" | "typing" | "error";
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.SessionStatusDto = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.SessionStatusDto = core.serialization.enum_(["acknowledged", "cancelled", "processing", "ready", "typing", "error"]);
|
|
@@ -76,6 +76,7 @@ export * from "./SdkServiceParams";
|
|
|
76
76
|
export * from "./Service";
|
|
77
77
|
export * from "./Session";
|
|
78
78
|
export * from "./SessionModeDto";
|
|
79
|
+
export * from "./SessionStatusDto";
|
|
79
80
|
export * from "./Tag";
|
|
80
81
|
export * from "./Term";
|
|
81
82
|
export * from "./TermTagsUpdateParams";
|
|
@@ -92,6 +92,7 @@ __exportStar(require("./SdkServiceParams"), exports);
|
|
|
92
92
|
__exportStar(require("./Service"), exports);
|
|
93
93
|
__exportStar(require("./Session"), exports);
|
|
94
94
|
__exportStar(require("./SessionModeDto"), exports);
|
|
95
|
+
__exportStar(require("./SessionStatusDto"), exports);
|
|
95
96
|
__exportStar(require("./Tag"), exports);
|
|
96
97
|
__exportStar(require("./Term"), exports);
|
|
97
98
|
__exportStar(require("./TermTagsUpdateParams"), exports);
|