parlant-client 0.9.0 → 0.10.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.
Files changed (37) hide show
  1. package/package.json +1 -1
  2. package/src/api/resources/agents/client/Client.js +2 -2
  3. package/src/api/resources/customers/client/Client.js +2 -2
  4. package/src/api/resources/guidelines/client/Client.d.ts +2 -4
  5. package/src/api/resources/guidelines/client/Client.js +2 -4
  6. package/src/api/resources/guidelines/client/requests/GuidelineCreationParams.d.ts +1 -2
  7. package/src/api/resources/guidelines/client/requests/GuidelineUpdateParams.d.ts +1 -2
  8. package/src/api/resources/services/client/Client.js +1 -1
  9. package/src/api/resources/sessions/client/Client.js +3 -3
  10. package/src/api/resources/sessions/client/requests/EventCreationParams.d.ts +1 -0
  11. package/src/api/resources/tags/client/Client.d.ts +3 -3
  12. package/src/api/resources/tags/client/Client.js +10 -5
  13. package/src/api/types/ConnectionProposition.d.ts +0 -1
  14. package/src/api/types/GuidelineConnection.d.ts +0 -3
  15. package/src/api/types/GuidelineConnectionAddition.d.ts +0 -2
  16. package/src/api/types/UtteranceReasonDto.d.ts +11 -0
  17. package/src/api/types/{ConnectionKindDto.js → UtteranceReasonDto.js} +4 -4
  18. package/src/api/types/UtteranceRequest.d.ts +9 -0
  19. package/src/api/types/UtteranceRequest.js +5 -0
  20. package/src/api/types/index.d.ts +2 -1
  21. package/src/api/types/index.js +2 -1
  22. package/src/serialization/resources/sessions/client/requests/EventCreationParams.d.ts +2 -0
  23. package/src/serialization/resources/sessions/client/requests/EventCreationParams.js +2 -0
  24. package/src/serialization/types/ConnectionProposition.d.ts +0 -2
  25. package/src/serialization/types/ConnectionProposition.js +0 -2
  26. package/src/serialization/types/GuidelineConnection.d.ts +0 -2
  27. package/src/serialization/types/GuidelineConnection.js +0 -2
  28. package/src/serialization/types/GuidelineConnectionAddition.d.ts +0 -2
  29. package/src/serialization/types/GuidelineConnectionAddition.js +0 -2
  30. package/src/serialization/types/UtteranceReasonDto.d.ts +10 -0
  31. package/src/serialization/types/{ConnectionKindDto.js → UtteranceReasonDto.js} +2 -2
  32. package/src/serialization/types/UtteranceRequest.d.ts +14 -0
  33. package/src/serialization/types/UtteranceRequest.js +35 -0
  34. package/src/serialization/types/index.d.ts +2 -1
  35. package/src/serialization/types/index.js +2 -1
  36. package/src/api/types/ConnectionKindDto.d.ts +0 -24
  37. package/src/serialization/types/ConnectionKindDto.d.ts +0 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parlant-client",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "files": [
@@ -62,7 +62,7 @@ class Agents {
62
62
  list(requestOptions) {
63
63
  return __awaiter(this, void 0, void 0, function* () {
64
64
  const _response = yield core.fetcher({
65
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "agents/"),
65
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "agents"),
66
66
  method: "GET",
67
67
  headers: {
68
68
  "X-Fern-Language": "JavaScript",
@@ -131,7 +131,7 @@ class Agents {
131
131
  create(request, requestOptions) {
132
132
  return __awaiter(this, void 0, void 0, function* () {
133
133
  const _response = yield core.fetcher({
134
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "agents/"),
134
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "agents"),
135
135
  method: "POST",
136
136
  headers: {
137
137
  "X-Fern-Language": "JavaScript",
@@ -62,7 +62,7 @@ class Customers {
62
62
  list(requestOptions) {
63
63
  return __awaiter(this, void 0, void 0, function* () {
64
64
  const _response = yield core.fetcher({
65
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "customers/"),
65
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "customers"),
66
66
  method: "GET",
67
67
  headers: {
68
68
  "X-Fern-Language": "JavaScript",
@@ -127,7 +127,7 @@ class Customers {
127
127
  create(request, requestOptions) {
128
128
  return __awaiter(this, void 0, void 0, function* () {
129
129
  const _response = yield core.fetcher({
130
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "customers/"),
130
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "customers"),
131
131
  method: "POST",
132
132
  headers: {
133
133
  "X-Fern-Language": "JavaScript",
@@ -94,8 +94,7 @@ export declare class Guidelines {
94
94
  * target: {
95
95
  * condition: "System logs are available",
96
96
  * action: "Analyze logs for error patterns"
97
- * },
98
- * connectionKind: "suggests"
97
+ * }
99
98
  * }]
100
99
  * }
101
100
  * }
@@ -166,8 +165,7 @@ export declare class Guidelines {
166
165
  * connections: {
167
166
  * add: [{
168
167
  * source: "guide_123xyz",
169
- * target: "guide_789xyz",
170
- * kind: "suggests"
168
+ * target: "guide_789xyz"
171
169
  * }],
172
170
  * remove: ["guide_456xyz"]
173
171
  * },
@@ -174,8 +174,7 @@ class Guidelines {
174
174
  * target: {
175
175
  * condition: "System logs are available",
176
176
  * action: "Analyze logs for error patterns"
177
- * },
178
- * connectionKind: "suggests"
177
+ * }
179
178
  * }]
180
179
  * }
181
180
  * }
@@ -395,8 +394,7 @@ class Guidelines {
395
394
  * connections: {
396
395
  * add: [{
397
396
  * source: "guide_123xyz",
398
- * target: "guide_789xyz",
399
- * kind: "suggests"
397
+ * target: "guide_789xyz"
400
398
  * }],
401
399
  * remove: ["guide_456xyz"]
402
400
  * },
@@ -44,8 +44,7 @@ import * as Parlant from "../../../../index";
44
44
  * target: {
45
45
  * condition: "System logs are available",
46
46
  * action: "Analyze logs for error patterns"
47
- * },
48
- * connectionKind: "suggests"
47
+ * }
49
48
  * }]
50
49
  * }
51
50
  * }
@@ -8,8 +8,7 @@ import * as Parlant from "../../../../index";
8
8
  * connections: {
9
9
  * add: [{
10
10
  * source: "guide_123xyz",
11
- * target: "guide_789xyz",
12
- * kind: "suggests"
11
+ * target: "guide_789xyz"
13
12
  * }],
14
13
  * remove: ["guide_456xyz"]
15
14
  * },
@@ -296,7 +296,7 @@ class Services {
296
296
  list(requestOptions) {
297
297
  return __awaiter(this, void 0, void 0, function* () {
298
298
  const _response = yield core.fetcher({
299
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "services/"),
299
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "services"),
300
300
  method: "GET",
301
301
  headers: {
302
302
  "X-Fern-Language": "JavaScript",
@@ -84,7 +84,7 @@ class Sessions {
84
84
  _queryParams["customer_id"] = customerId;
85
85
  }
86
86
  const _response = yield core.fetcher({
87
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "sessions/"),
87
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "sessions"),
88
88
  method: "GET",
89
89
  headers: {
90
90
  "X-Fern-Language": "JavaScript",
@@ -158,7 +158,7 @@ class Sessions {
158
158
  _queryParams["allow_greeting"] = allowGreeting.toString();
159
159
  }
160
160
  const _response = yield core.fetcher({
161
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "sessions/"),
161
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "sessions"),
162
162
  method: "POST",
163
163
  headers: {
164
164
  "X-Fern-Language": "JavaScript",
@@ -232,7 +232,7 @@ class Sessions {
232
232
  _queryParams["customer_id"] = customerId;
233
233
  }
234
234
  const _response = yield core.fetcher({
235
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "sessions/"),
235
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "sessions"),
236
236
  method: "DELETE",
237
237
  headers: {
238
238
  "X-Fern-Language": "JavaScript",
@@ -19,4 +19,5 @@ export interface EventCreationParams {
19
19
  source: Parlant.EventSourceDto;
20
20
  /** Event payload data, format depends on kind */
21
21
  message?: string;
22
+ actions?: Parlant.UtteranceRequest[];
22
23
  }
@@ -82,8 +82,8 @@ export declare class Tags {
82
82
  /**
83
83
  * Updates an existing tag's name.
84
84
  *
85
- * Only the name can be modified - the ID and creation timestamp are immutable.
86
- * Returns a 404 error if no tag exists with the specified ID.
85
+ * Only the name can be modified,
86
+ * The tag's ID and creation timestamp cannot be modified.
87
87
  *
88
88
  * @param {string} tagId - Unique identifier for the tag to operate on
89
89
  * @param {Parlant.TagUpdateParams} request
@@ -97,5 +97,5 @@ export declare class Tags {
97
97
  * name: "enterprise-customer"
98
98
  * })
99
99
  */
100
- update(tagId: string, request: Parlant.TagUpdateParams, requestOptions?: Tags.RequestOptions): Promise<void>;
100
+ update(tagId: string, request: Parlant.TagUpdateParams, requestOptions?: Tags.RequestOptions): Promise<Parlant.Tag>;
101
101
  }
@@ -62,7 +62,7 @@ class Tags {
62
62
  list(requestOptions) {
63
63
  return __awaiter(this, void 0, void 0, function* () {
64
64
  const _response = yield core.fetcher({
65
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "tags/"),
65
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "tags"),
66
66
  method: "GET",
67
67
  headers: {
68
68
  "X-Fern-Language": "JavaScript",
@@ -123,7 +123,7 @@ class Tags {
123
123
  create(request, requestOptions) {
124
124
  return __awaiter(this, void 0, void 0, function* () {
125
125
  const _response = yield core.fetcher({
126
- url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "tags/"),
126
+ url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "tags"),
127
127
  method: "POST",
128
128
  headers: {
129
129
  "X-Fern-Language": "JavaScript",
@@ -302,8 +302,8 @@ class Tags {
302
302
  /**
303
303
  * Updates an existing tag's name.
304
304
  *
305
- * Only the name can be modified - the ID and creation timestamp are immutable.
306
- * Returns a 404 error if no tag exists with the specified ID.
305
+ * Only the name can be modified,
306
+ * The tag's ID and creation timestamp cannot be modified.
307
307
  *
308
308
  * @param {string} tagId - Unique identifier for the tag to operate on
309
309
  * @param {Parlant.TagUpdateParams} request
@@ -335,7 +335,12 @@ class Tags {
335
335
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
336
336
  });
337
337
  if (_response.ok) {
338
- return;
338
+ return serializers.Tag.parseOrThrow(_response.body, {
339
+ unrecognizedObjectKeys: "passthrough",
340
+ allowUnrecognizedUnionMembers: true,
341
+ allowUnrecognizedEnumValues: true,
342
+ breadcrumbsPrefix: ["response"],
343
+ });
339
344
  }
340
345
  if (_response.error.reason === "status-code") {
341
346
  switch (_response.error.statusCode) {
@@ -9,5 +9,4 @@ export interface ConnectionProposition {
9
9
  checkKind: Parlant.ConnectionPropositionKindDto;
10
10
  source: Parlant.GuidelineContent;
11
11
  target: Parlant.GuidelineContent;
12
- connectionKind: Parlant.ConnectionKindDto;
13
12
  }
@@ -4,15 +4,12 @@
4
4
  import * as Parlant from "../index";
5
5
  /**
6
6
  * Represents a connection between two guidelines.
7
- *
8
- * The connection can be strong (with `kind`=`"entails"`) or weak (with `kind`=`"suggests"`)
9
7
  */
10
8
  export interface GuidelineConnection {
11
9
  /** Unique identifier for the `GuildelineConnection` */
12
10
  id: string;
13
11
  source: Parlant.Guideline;
14
12
  target: Parlant.Guideline;
15
- kind: Parlant.ConnectionKindDto;
16
13
  /** `True` if there is a path from `source` to `target` but no direct connection */
17
14
  indirect: boolean;
18
15
  }
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Parlant from "../index";
5
4
  /**
6
5
  * Used to add connections between Guidelines.
7
6
  */
@@ -10,5 +9,4 @@ export interface GuidelineConnectionAddition {
10
9
  source: string;
11
10
  /** `id` of guideline that is target of this connection. */
12
11
  target: string;
13
- kind: Parlant.ConnectionKindDto;
14
12
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Defines the reason for the action
6
+ */
7
+ export declare type UtteranceReasonDto = "buy_time" | "follow_up";
8
+ export declare const UtteranceReasonDto: {
9
+ readonly BuyTime: "buy_time";
10
+ readonly FollowUp: "follow_up";
11
+ };
@@ -3,8 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ConnectionKindDto = void 0;
7
- exports.ConnectionKindDto = {
8
- Entails: "entails",
9
- Suggests: "suggests",
6
+ exports.UtteranceReasonDto = void 0;
7
+ exports.UtteranceReasonDto = {
8
+ BuyTime: "buy_time",
9
+ FollowUp: "follow_up",
10
10
  };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Parlant from "../index";
5
+ export interface UtteranceRequest {
6
+ /** A single action that explains what to say; i.e. "Tell the customer that you are thinking and will be right back with an answer." */
7
+ action: string;
8
+ reason: Parlant.UtteranceReasonDto;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,6 @@
1
1
  export * from "./Agent";
2
2
  export * from "./CoherenceCheck";
3
3
  export * from "./CoherenceCheckKindDto";
4
- export * from "./ConnectionKindDto";
5
4
  export * from "./ConnectionProposition";
6
5
  export * from "./ConnectionPropositionKindDto";
7
6
  export * from "./ConsumptionOffsets";
@@ -59,5 +58,7 @@ export * from "./ToolParameterTypeDto";
59
58
  export * from "./ToolResult";
60
59
  export * from "./ToolServiceKindDto";
61
60
  export * from "./UsageInfo";
61
+ export * from "./UtteranceReasonDto";
62
+ export * from "./UtteranceRequest";
62
63
  export * from "./ValidationErrorLocItem";
63
64
  export * from "./ValidationError";
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Agent"), exports);
18
18
  __exportStar(require("./CoherenceCheck"), exports);
19
19
  __exportStar(require("./CoherenceCheckKindDto"), exports);
20
- __exportStar(require("./ConnectionKindDto"), exports);
21
20
  __exportStar(require("./ConnectionProposition"), exports);
22
21
  __exportStar(require("./ConnectionPropositionKindDto"), exports);
23
22
  __exportStar(require("./ConsumptionOffsets"), exports);
@@ -75,5 +74,7 @@ __exportStar(require("./ToolParameterTypeDto"), exports);
75
74
  __exportStar(require("./ToolResult"), exports);
76
75
  __exportStar(require("./ToolServiceKindDto"), exports);
77
76
  __exportStar(require("./UsageInfo"), exports);
77
+ __exportStar(require("./UtteranceReasonDto"), exports);
78
+ __exportStar(require("./UtteranceRequest"), exports);
78
79
  __exportStar(require("./ValidationErrorLocItem"), exports);
79
80
  __exportStar(require("./ValidationError"), exports);
@@ -6,11 +6,13 @@ import * as Parlant from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
7
  import { EventKindDto } from "../../../../types/EventKindDto";
8
8
  import { EventSourceDto } from "../../../../types/EventSourceDto";
9
+ import { UtteranceRequest } from "../../../../types/UtteranceRequest";
9
10
  export declare const EventCreationParams: core.serialization.Schema<serializers.EventCreationParams.Raw, Omit<Parlant.EventCreationParams, "moderation">>;
10
11
  export declare namespace EventCreationParams {
11
12
  interface Raw {
12
13
  kind: EventKindDto.Raw;
13
14
  source: EventSourceDto.Raw;
14
15
  message?: string | null;
16
+ actions?: UtteranceRequest.Raw[] | null;
15
17
  }
16
18
  }
@@ -30,8 +30,10 @@ exports.EventCreationParams = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
31
  const EventKindDto_1 = require("../../../../types/EventKindDto");
32
32
  const EventSourceDto_1 = require("../../../../types/EventSourceDto");
33
+ const UtteranceRequest_1 = require("../../../../types/UtteranceRequest");
33
34
  exports.EventCreationParams = core.serialization.object({
34
35
  kind: EventKindDto_1.EventKindDto,
35
36
  source: EventSourceDto_1.EventSourceDto,
36
37
  message: core.serialization.string().optional(),
38
+ actions: core.serialization.list(UtteranceRequest_1.UtteranceRequest).optional(),
37
39
  });
@@ -6,13 +6,11 @@ import * as Parlant from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { ConnectionPropositionKindDto } from "./ConnectionPropositionKindDto";
8
8
  import { GuidelineContent } from "./GuidelineContent";
9
- import { ConnectionKindDto } from "./ConnectionKindDto";
10
9
  export declare const ConnectionProposition: core.serialization.ObjectSchema<serializers.ConnectionProposition.Raw, Parlant.ConnectionProposition>;
11
10
  export declare namespace ConnectionProposition {
12
11
  interface Raw {
13
12
  check_kind: ConnectionPropositionKindDto.Raw;
14
13
  source: GuidelineContent.Raw;
15
14
  target: GuidelineContent.Raw;
16
- connection_kind: ConnectionKindDto.Raw;
17
15
  }
18
16
  }
@@ -30,10 +30,8 @@ exports.ConnectionProposition = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const ConnectionPropositionKindDto_1 = require("./ConnectionPropositionKindDto");
32
32
  const GuidelineContent_1 = require("./GuidelineContent");
33
- const ConnectionKindDto_1 = require("./ConnectionKindDto");
34
33
  exports.ConnectionProposition = core.serialization.object({
35
34
  checkKind: core.serialization.property("check_kind", ConnectionPropositionKindDto_1.ConnectionPropositionKindDto),
36
35
  source: GuidelineContent_1.GuidelineContent,
37
36
  target: GuidelineContent_1.GuidelineContent,
38
- connectionKind: core.serialization.property("connection_kind", ConnectionKindDto_1.ConnectionKindDto),
39
37
  });
@@ -5,14 +5,12 @@ import * as serializers from "../index";
5
5
  import * as Parlant from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { Guideline } from "./Guideline";
8
- import { ConnectionKindDto } from "./ConnectionKindDto";
9
8
  export declare const GuidelineConnection: core.serialization.ObjectSchema<serializers.GuidelineConnection.Raw, Parlant.GuidelineConnection>;
10
9
  export declare namespace GuidelineConnection {
11
10
  interface Raw {
12
11
  id: string;
13
12
  source: Guideline.Raw;
14
13
  target: Guideline.Raw;
15
- kind: ConnectionKindDto.Raw;
16
14
  indirect: boolean;
17
15
  }
18
16
  }
@@ -29,11 +29,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.GuidelineConnection = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const Guideline_1 = require("./Guideline");
32
- const ConnectionKindDto_1 = require("./ConnectionKindDto");
33
32
  exports.GuidelineConnection = core.serialization.object({
34
33
  id: core.serialization.string(),
35
34
  source: Guideline_1.Guideline,
36
35
  target: Guideline_1.Guideline,
37
- kind: ConnectionKindDto_1.ConnectionKindDto,
38
36
  indirect: core.serialization.boolean(),
39
37
  });
@@ -4,12 +4,10 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Parlant from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { ConnectionKindDto } from "./ConnectionKindDto";
8
7
  export declare const GuidelineConnectionAddition: core.serialization.ObjectSchema<serializers.GuidelineConnectionAddition.Raw, Parlant.GuidelineConnectionAddition>;
9
8
  export declare namespace GuidelineConnectionAddition {
10
9
  interface Raw {
11
10
  source: string;
12
11
  target: string;
13
- kind: ConnectionKindDto.Raw;
14
12
  }
15
13
  }
@@ -28,9 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.GuidelineConnectionAddition = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const ConnectionKindDto_1 = require("./ConnectionKindDto");
32
31
  exports.GuidelineConnectionAddition = core.serialization.object({
33
32
  source: core.serialization.string(),
34
33
  target: core.serialization.string(),
35
- kind: ConnectionKindDto_1.ConnectionKindDto,
36
34
  });
@@ -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 UtteranceReasonDto: core.serialization.Schema<serializers.UtteranceReasonDto.Raw, Parlant.UtteranceReasonDto>;
8
+ export declare namespace UtteranceReasonDto {
9
+ type Raw = "buy_time" | "follow_up";
10
+ }
@@ -26,6 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ConnectionKindDto = void 0;
29
+ exports.UtteranceReasonDto = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.ConnectionKindDto = core.serialization.enum_(["entails", "suggests"]);
31
+ exports.UtteranceReasonDto = core.serialization.enum_(["buy_time", "follow_up"]);
@@ -0,0 +1,14 @@
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
+ import { UtteranceReasonDto } from "./UtteranceReasonDto";
8
+ export declare const UtteranceRequest: core.serialization.ObjectSchema<serializers.UtteranceRequest.Raw, Parlant.UtteranceRequest>;
9
+ export declare namespace UtteranceRequest {
10
+ interface Raw {
11
+ action: string;
12
+ reason: UtteranceReasonDto.Raw;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.UtteranceRequest = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const UtteranceReasonDto_1 = require("./UtteranceReasonDto");
32
+ exports.UtteranceRequest = core.serialization.object({
33
+ action: core.serialization.string(),
34
+ reason: UtteranceReasonDto_1.UtteranceReasonDto,
35
+ });
@@ -1,7 +1,6 @@
1
1
  export * from "./Agent";
2
2
  export * from "./CoherenceCheck";
3
3
  export * from "./CoherenceCheckKindDto";
4
- export * from "./ConnectionKindDto";
5
4
  export * from "./ConnectionProposition";
6
5
  export * from "./ConnectionPropositionKindDto";
7
6
  export * from "./ConsumptionOffsets";
@@ -59,5 +58,7 @@ export * from "./ToolParameterTypeDto";
59
58
  export * from "./ToolResult";
60
59
  export * from "./ToolServiceKindDto";
61
60
  export * from "./UsageInfo";
61
+ export * from "./UtteranceReasonDto";
62
+ export * from "./UtteranceRequest";
62
63
  export * from "./ValidationErrorLocItem";
63
64
  export * from "./ValidationError";
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Agent"), exports);
18
18
  __exportStar(require("./CoherenceCheck"), exports);
19
19
  __exportStar(require("./CoherenceCheckKindDto"), exports);
20
- __exportStar(require("./ConnectionKindDto"), exports);
21
20
  __exportStar(require("./ConnectionProposition"), exports);
22
21
  __exportStar(require("./ConnectionPropositionKindDto"), exports);
23
22
  __exportStar(require("./ConsumptionOffsets"), exports);
@@ -75,5 +74,7 @@ __exportStar(require("./ToolParameterTypeDto"), exports);
75
74
  __exportStar(require("./ToolResult"), exports);
76
75
  __exportStar(require("./ToolServiceKindDto"), exports);
77
76
  __exportStar(require("./UsageInfo"), exports);
77
+ __exportStar(require("./UtteranceReasonDto"), exports);
78
+ __exportStar(require("./UtteranceRequest"), exports);
78
79
  __exportStar(require("./ValidationErrorLocItem"), exports);
79
80
  __exportStar(require("./ValidationError"), exports);
@@ -1,24 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Defines the logical connection type between Guidelines, specifically how one Guideline's
6
- * activation influences another.
7
- *
8
- * The connection itself is always entailed (logically follows), but this enum determines
9
- * whether the target Guideline's action should be treated as mandatory or just suggestive.
10
- *
11
- * Values:
12
- * "entails": Indicates that when the source Guideline is activated, the target
13
- * Guideline's action must be executed. This represents a strong, mandatory
14
- * logical implication.
15
- *
16
- * "suggests": While the logical connection still exists, this marker indicates that the
17
- * target Guideline's action should be considered but isn't mandatory. It serves
18
- * as a logical hint rather than a requirement.
19
- */
20
- export declare type ConnectionKindDto = "entails" | "suggests";
21
- export declare const ConnectionKindDto: {
22
- readonly Entails: "entails";
23
- readonly Suggests: "suggests";
24
- };
@@ -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 Parlant from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const ConnectionKindDto: core.serialization.Schema<serializers.ConnectionKindDto.Raw, Parlant.ConnectionKindDto>;
8
- export declare namespace ConnectionKindDto {
9
- type Raw = "entails" | "suggests";
10
- }