parlant-client 3.0.1 → 3.3.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/Client.d.ts +7 -0
- package/src/Client.js +97 -0
- package/src/api/index.d.ts +1 -1
- package/src/api/index.js +1 -1
- package/src/api/resources/agents/client/Client.d.ts +5 -2
- package/src/api/resources/agents/client/Client.js +5 -2
- package/src/api/resources/agents/client/requests/AgentCreationParams.d.ts +4 -0
- package/src/api/resources/agents/client/requests/AgentUpdateParams.d.ts +3 -1
- package/src/api/resources/cannedResponses/client/Client.d.ts +14 -2
- package/src/api/resources/cannedResponses/client/Client.js +14 -2
- package/src/api/resources/cannedResponses/client/requests/CannedResponseCreationParams.d.ts +10 -1
- package/src/api/resources/cannedResponses/client/requests/CannedResponseUpdateParams.d.ts +9 -1
- package/src/api/resources/customers/client/Client.d.ts +17 -4
- package/src/api/resources/customers/client/Client.js +41 -11
- package/src/api/resources/customers/client/requests/CustomerCreationParams.d.ts +2 -0
- package/src/api/resources/customers/client/requests/CustomersListRequest.d.ts +16 -0
- package/src/api/resources/customers/client/requests/index.d.ts +1 -0
- package/src/api/resources/customers/index.d.ts +1 -0
- package/src/api/resources/customers/index.js +1 -0
- package/src/api/resources/customers/types/CustomersListResponse.d.ts +5 -0
- package/src/api/resources/customers/types/index.d.ts +1 -0
- package/src/api/resources/customers/types/index.js +17 -0
- package/src/api/resources/glossary/client/requests/TermCreationParams.d.ts +1 -0
- package/src/api/resources/guidelines/client/Client.d.ts +14 -2
- package/src/api/resources/guidelines/client/Client.js +14 -2
- package/src/api/resources/guidelines/client/requests/GuidelineCreationParams.d.ts +14 -1
- package/src/api/resources/guidelines/client/requests/GuidelineUpdateParams.d.ts +14 -1
- package/src/api/resources/index.d.ts +4 -2
- package/src/api/resources/index.js +5 -3
- package/src/api/resources/journeys/client/Client.d.ts +4 -2
- package/src/api/resources/journeys/client/Client.js +4 -2
- package/src/api/resources/journeys/client/requests/JourneyCreationParams.d.ts +10 -1
- package/src/api/resources/journeys/client/requests/JourneyUpdateParams.d.ts +3 -0
- package/src/api/resources/sessions/client/Client.d.ts +96 -9
- package/src/api/resources/sessions/client/Client.js +232 -13
- package/src/api/resources/sessions/client/requests/EventCreationParams.d.ts +3 -1
- package/src/api/resources/sessions/client/requests/EventUpdateParams.d.ts +20 -0
- package/src/api/resources/sessions/client/requests/SessionCreationParams.d.ts +10 -1
- package/src/api/resources/sessions/client/requests/SessionUpdateParams.d.ts +16 -1
- package/src/api/resources/sessions/client/requests/SessionsListEventsRequest.d.ts +3 -0
- package/src/api/resources/sessions/client/requests/SessionsListRequest.d.ts +8 -1
- package/src/api/resources/sessions/client/requests/SessionsReadEventRequest.d.ts +12 -0
- package/src/api/resources/sessions/client/requests/index.d.ts +2 -0
- package/src/api/resources/sessions/index.d.ts +1 -0
- package/src/api/resources/sessions/index.js +1 -0
- package/src/api/resources/sessions/types/SessionsListResponse.d.ts +5 -0
- package/src/api/resources/sessions/types/index.d.ts +1 -0
- package/src/api/resources/sessions/types/index.js +17 -0
- package/src/api/resources/tags/client/Client.d.ts +6 -3
- package/src/api/resources/tags/client/Client.js +22 -8
- package/src/api/resources/tags/client/requests/TagsListRequest.d.ts +13 -0
- package/src/api/resources/tags/client/requests/index.d.ts +1 -0
- package/src/api/types/Agent.d.ts +1 -0
- package/src/api/types/CannedResponse.d.ts +4 -0
- package/src/api/types/CannedResponseMetadataUpdateParams.d.ts +12 -0
- package/src/api/types/CriticalityDto.d.ts +12 -0
- package/src/api/types/CriticalityDto.js +11 -0
- package/src/api/types/Event.d.ts +4 -0
- package/src/api/types/Guideline.d.ts +10 -0
- package/src/api/types/GuidelineLabelsUpdateParams.d.ts +12 -0
- package/src/api/types/Journey.d.ts +5 -0
- package/src/api/types/JourneyLabelsUpdateParams.d.ts +12 -0
- package/src/api/types/MessageOutputModeDto.d.ts +15 -0
- package/src/api/types/MessageOutputModeDto.js +10 -0
- package/src/api/types/{Moderation.d.ts → ModerationDto.d.ts} +2 -2
- package/src/api/types/{Moderation.js → ModerationDto.js} +2 -2
- package/src/api/types/PaginatedCustomers.d.ts +13 -0
- package/src/api/types/Session.d.ts +4 -0
- package/src/api/types/SessionLabelsUpdateParams.d.ts +12 -0
- package/src/api/types/SessionListing.d.ts +13 -0
- package/src/api/types/SessionMetadataUpdateParams.d.ts +12 -0
- package/src/api/types/SortDirectionDto.d.ts +11 -0
- package/src/api/types/SortDirectionDto.js +10 -0
- package/src/api/types/ToolServiceKindDto.d.ts +2 -2
- package/src/api/types/ValidationError.d.ts +2 -0
- package/src/api/types/index.d.ts +11 -27
- package/src/api/types/index.js +11 -27
- package/src/serialization/client/healthCheckHealthzGet.d.ts +9 -0
- package/src/serialization/{resources/sessions/client/list.js → client/healthCheckHealthzGet.js} +2 -3
- package/src/serialization/client/index.d.ts +1 -0
- package/src/serialization/client/index.js +37 -0
- package/src/serialization/index.d.ts +2 -1
- package/src/serialization/index.js +2 -1
- package/src/serialization/resources/agents/client/requests/AgentCreationParams.d.ts +3 -0
- package/src/serialization/resources/agents/client/requests/AgentCreationParams.js +3 -0
- package/src/serialization/resources/agents/client/requests/AgentUpdateParams.d.ts +2 -0
- package/src/serialization/resources/agents/client/requests/AgentUpdateParams.js +2 -0
- package/src/serialization/resources/cannedResponses/client/requests/CannedResponseCreationParams.d.ts +2 -0
- package/src/serialization/resources/cannedResponses/client/requests/CannedResponseCreationParams.js +2 -0
- package/src/serialization/resources/cannedResponses/client/requests/CannedResponseUpdateParams.d.ts +2 -0
- package/src/serialization/resources/cannedResponses/client/requests/CannedResponseUpdateParams.js +2 -0
- package/src/serialization/resources/customers/client/index.d.ts +0 -1
- package/src/serialization/resources/customers/client/index.js +0 -24
- package/src/serialization/resources/customers/client/requests/CustomerCreationParams.d.ts +1 -0
- package/src/serialization/resources/customers/client/requests/CustomerCreationParams.js +1 -0
- package/src/serialization/resources/customers/index.d.ts +1 -0
- package/src/serialization/resources/customers/index.js +1 -0
- package/src/serialization/resources/customers/types/CustomersListResponse.d.ts +12 -0
- package/src/serialization/resources/customers/{client/list.js → types/CustomersListResponse.js} +3 -2
- package/src/serialization/resources/customers/types/index.d.ts +1 -0
- package/src/serialization/resources/customers/types/index.js +17 -0
- package/src/serialization/resources/glossary/client/requests/TermCreationParams.d.ts +1 -0
- package/src/serialization/resources/glossary/client/requests/TermCreationParams.js +1 -0
- package/src/serialization/resources/guidelines/client/requests/GuidelineCreationParams.d.ts +9 -0
- package/src/serialization/resources/guidelines/client/requests/GuidelineCreationParams.js +9 -0
- package/src/serialization/resources/guidelines/client/requests/GuidelineUpdateParams.d.ts +8 -0
- package/src/serialization/resources/guidelines/client/requests/GuidelineUpdateParams.js +8 -0
- package/src/serialization/resources/index.d.ts +4 -2
- package/src/serialization/resources/index.js +5 -3
- package/src/serialization/resources/journeys/client/requests/JourneyCreationParams.d.ts +5 -0
- package/src/serialization/resources/journeys/client/requests/JourneyCreationParams.js +5 -0
- package/src/serialization/resources/journeys/client/requests/JourneyUpdateParams.d.ts +5 -0
- package/src/serialization/resources/journeys/client/requests/JourneyUpdateParams.js +5 -0
- package/src/serialization/resources/sessions/client/index.d.ts +0 -1
- package/src/serialization/resources/sessions/client/index.js +1 -2
- package/src/serialization/resources/sessions/client/requests/EventCreationParams.d.ts +1 -0
- package/src/serialization/resources/sessions/client/requests/EventCreationParams.js +1 -0
- package/src/serialization/resources/sessions/client/requests/EventUpdateParams.d.ts +13 -0
- package/src/serialization/resources/sessions/client/requests/EventUpdateParams.js +44 -0
- package/src/serialization/resources/sessions/client/requests/SessionCreationParams.d.ts +2 -0
- package/src/serialization/resources/sessions/client/requests/SessionCreationParams.js +2 -0
- package/src/serialization/resources/sessions/client/requests/SessionUpdateParams.d.ts +6 -0
- package/src/serialization/resources/sessions/client/requests/SessionUpdateParams.js +6 -0
- package/src/serialization/resources/sessions/client/requests/index.d.ts +1 -0
- package/src/serialization/resources/sessions/client/requests/index.js +3 -1
- package/src/serialization/resources/sessions/index.d.ts +1 -0
- package/src/serialization/resources/sessions/index.js +1 -0
- package/src/serialization/resources/sessions/types/SessionsListResponse.d.ts +12 -0
- package/src/serialization/resources/sessions/types/SessionsListResponse.js +43 -0
- package/src/serialization/resources/sessions/types/index.d.ts +1 -0
- package/src/serialization/resources/sessions/types/index.js +17 -0
- package/src/serialization/types/Agent.d.ts +2 -0
- package/src/serialization/types/Agent.js +2 -0
- package/src/serialization/types/CannedResponse.d.ts +2 -0
- package/src/serialization/types/CannedResponse.js +2 -0
- package/src/serialization/types/CannedResponseMetadataUpdateParams.d.ts +13 -0
- package/src/serialization/types/CannedResponseMetadataUpdateParams.js +44 -0
- package/src/serialization/types/CriticalityDto.d.ts +10 -0
- package/src/serialization/types/{ConnectionPropositionKindDto.js → CriticalityDto.js} +2 -2
- package/src/serialization/types/Event.d.ts +2 -0
- package/src/serialization/types/Event.js +2 -0
- package/src/serialization/types/Guideline.d.ts +8 -0
- package/src/serialization/types/Guideline.js +8 -0
- package/src/serialization/types/GuidelineLabelsUpdateParams.d.ts +13 -0
- package/src/serialization/types/{LegacyGuideline.js → GuidelineLabelsUpdateParams.js} +4 -6
- package/src/serialization/types/Journey.d.ts +4 -0
- package/src/serialization/types/Journey.js +4 -0
- package/src/serialization/types/JourneyLabelsUpdateParams.d.ts +13 -0
- package/src/serialization/types/{LegacyGuidelineConnectionAddition.js → JourneyLabelsUpdateParams.js} +4 -4
- package/src/serialization/types/MessageOutputModeDto.d.ts +10 -0
- package/src/serialization/types/{CoherenceCheckKindDto.js → MessageOutputModeDto.js} +2 -5
- package/src/serialization/types/{Moderation.d.ts → ModerationDto.d.ts} +2 -2
- package/src/serialization/types/ModerationDto.js +41 -0
- package/src/serialization/types/PaginatedCustomers.d.ts +16 -0
- package/src/serialization/types/{ConnectionProposition.js → PaginatedCustomers.js} +7 -7
- package/src/serialization/types/Session.d.ts +2 -0
- package/src/serialization/types/Session.js +2 -0
- package/src/serialization/types/SessionLabelsUpdateParams.d.ts +13 -0
- package/src/serialization/types/{LegacyGuidelineCreationParams.js → SessionLabelsUpdateParams.js} +4 -4
- package/src/serialization/types/SessionListing.d.ts +16 -0
- package/src/serialization/types/{LegacyEvaluationCreationParams.js → SessionListing.js} +7 -5
- package/src/serialization/types/SessionMetadataUpdateParams.d.ts +13 -0
- package/src/serialization/types/{LegacyInvoiceData.js → SessionMetadataUpdateParams.js} +4 -4
- package/src/serialization/types/SortDirectionDto.d.ts +10 -0
- package/src/serialization/types/{Moderation.js → SortDirectionDto.js} +2 -2
- package/src/serialization/types/ValidationError.d.ts +2 -0
- package/src/serialization/types/ValidationError.js +2 -0
- package/src/serialization/types/index.d.ts +11 -27
- package/src/serialization/types/index.js +11 -27
- package/src/api/types/CoherenceCheck.d.ts +0 -16
- package/src/api/types/CoherenceCheckKindDto.d.ts +0 -11
- package/src/api/types/CoherenceCheckKindDto.js +0 -10
- package/src/api/types/ConnectionProposition.d.ts +0 -12
- package/src/api/types/ConnectionPropositionKindDto.d.ts +0 -11
- package/src/api/types/ConnectionPropositionKindDto.js +0 -10
- package/src/api/types/LegacyContextVariable.d.ts +0 -22
- package/src/api/types/LegacyContextVariableCreationParams.d.ts +0 -16
- package/src/api/types/LegacyContextVariableReadResult.d.ts +0 -12
- package/src/api/types/LegacyContextVariableUpdateParams.d.ts +0 -16
- package/src/api/types/LegacyEvaluation.d.ts +0 -19
- package/src/api/types/LegacyEvaluationCreationParams.d.ts +0 -12
- package/src/api/types/LegacyGuideline.d.ts +0 -16
- package/src/api/types/LegacyGuidelineConnection.d.ts +0 -15
- package/src/api/types/LegacyGuidelineConnectionAddition.d.ts +0 -12
- package/src/api/types/LegacyGuidelineConnectionUpdateParams.d.ts +0 -14
- package/src/api/types/LegacyGuidelineCreationParams.d.ts +0 -10
- package/src/api/types/LegacyGuidelineCreationResult.d.ts +0 -10
- package/src/api/types/LegacyGuidelineCreationResult.js +0 -5
- package/src/api/types/LegacyGuidelineInvoiceData.d.ts +0 -11
- package/src/api/types/LegacyGuidelineInvoiceData.js +0 -5
- package/src/api/types/LegacyGuidelinePayload.d.ts +0 -17
- package/src/api/types/LegacyGuidelinePayload.js +0 -5
- package/src/api/types/LegacyGuidelineUpdateParams.d.ts +0 -12
- package/src/api/types/LegacyGuidelineUpdateParams.js +0 -5
- package/src/api/types/LegacyGuidelineWithConnectionsAndToolAssociations.d.ts +0 -12
- package/src/api/types/LegacyGuidelineWithConnectionsAndToolAssociations.js +0 -5
- package/src/api/types/LegacyInvoice.d.ts +0 -19
- package/src/api/types/LegacyInvoice.js +0 -5
- package/src/api/types/LegacyInvoiceData.d.ts +0 -12
- package/src/api/types/LegacyInvoiceData.js +0 -5
- package/src/api/types/LegacyPayload.d.ts +0 -13
- package/src/api/types/LegacyPayload.js +0 -5
- package/src/api/types/LegacyTerm.d.ts +0 -18
- package/src/api/types/LegacyTerm.js +0 -5
- package/src/api/types/LegacyTermCreationParams.d.ts +0 -16
- package/src/api/types/LegacyTermCreationParams.js +0 -5
- package/src/api/types/LegacyTermUpdateParams.d.ts +0 -16
- package/src/api/types/LegacyTermUpdateParams.js +0 -5
- package/src/serialization/resources/customers/client/list.d.ts +0 -11
- package/src/serialization/resources/sessions/client/list.d.ts +0 -11
- package/src/serialization/types/CoherenceCheck.d.ts +0 -18
- package/src/serialization/types/CoherenceCheck.js +0 -49
- package/src/serialization/types/CoherenceCheckKindDto.d.ts +0 -10
- package/src/serialization/types/ConnectionProposition.d.ts +0 -16
- package/src/serialization/types/ConnectionPropositionKindDto.d.ts +0 -10
- package/src/serialization/types/LegacyContextVariable.d.ts +0 -17
- package/src/serialization/types/LegacyContextVariable.js +0 -48
- package/src/serialization/types/LegacyContextVariableCreationParams.d.ts +0 -16
- package/src/serialization/types/LegacyContextVariableCreationParams.js +0 -47
- package/src/serialization/types/LegacyContextVariableReadResult.d.ts +0 -15
- package/src/serialization/types/LegacyContextVariableReadResult.js +0 -46
- package/src/serialization/types/LegacyContextVariableUpdateParams.d.ts +0 -16
- package/src/serialization/types/LegacyContextVariableUpdateParams.js +0 -47
- package/src/serialization/types/LegacyEvaluation.d.ts +0 -19
- package/src/serialization/types/LegacyEvaluation.js +0 -50
- package/src/serialization/types/LegacyEvaluationCreationParams.d.ts +0 -14
- package/src/serialization/types/LegacyGuideline.d.ts +0 -15
- package/src/serialization/types/LegacyGuidelineConnection.d.ts +0 -16
- package/src/serialization/types/LegacyGuidelineConnection.js +0 -47
- package/src/serialization/types/LegacyGuidelineConnectionAddition.d.ts +0 -13
- package/src/serialization/types/LegacyGuidelineConnectionUpdateParams.d.ts +0 -14
- package/src/serialization/types/LegacyGuidelineConnectionUpdateParams.js +0 -45
- package/src/serialization/types/LegacyGuidelineCreationParams.d.ts +0 -13
- package/src/serialization/types/LegacyGuidelineCreationResult.d.ts +0 -13
- package/src/serialization/types/LegacyGuidelineCreationResult.js +0 -44
- package/src/serialization/types/LegacyGuidelineInvoiceData.d.ts +0 -15
- package/src/serialization/types/LegacyGuidelineInvoiceData.js +0 -46
- package/src/serialization/types/LegacyGuidelinePayload.d.ts +0 -18
- package/src/serialization/types/LegacyGuidelinePayload.js +0 -49
- package/src/serialization/types/LegacyGuidelineUpdateParams.d.ts +0 -16
- package/src/serialization/types/LegacyGuidelineUpdateParams.js +0 -47
- package/src/serialization/types/LegacyGuidelineWithConnectionsAndToolAssociations.d.ts +0 -17
- package/src/serialization/types/LegacyGuidelineWithConnectionsAndToolAssociations.js +0 -48
- package/src/serialization/types/LegacyInvoice.d.ts +0 -18
- package/src/serialization/types/LegacyInvoice.js +0 -49
- package/src/serialization/types/LegacyInvoiceData.d.ts +0 -13
- package/src/serialization/types/LegacyPayload.d.ts +0 -15
- package/src/serialization/types/LegacyPayload.js +0 -46
- package/src/serialization/types/LegacyTerm.d.ts +0 -15
- package/src/serialization/types/LegacyTerm.js +0 -46
- package/src/serialization/types/LegacyTermCreationParams.d.ts +0 -14
- package/src/serialization/types/LegacyTermCreationParams.js +0 -45
- package/src/serialization/types/LegacyTermUpdateParams.d.ts +0 -14
- package/src/serialization/types/LegacyTermUpdateParams.js +0 -45
- /package/src/api/{types/CoherenceCheck.js → resources/customers/client/requests/CustomersListRequest.js} +0 -0
- /package/src/api/{types/ConnectionProposition.js → resources/customers/types/CustomersListResponse.js} +0 -0
- /package/src/api/{types/LegacyContextVariable.js → resources/sessions/client/requests/EventUpdateParams.js} +0 -0
- /package/src/api/{types/LegacyContextVariableCreationParams.js → resources/sessions/client/requests/SessionsReadEventRequest.js} +0 -0
- /package/src/api/{types/LegacyContextVariableReadResult.js → resources/sessions/types/SessionsListResponse.js} +0 -0
- /package/src/api/{types/LegacyContextVariableUpdateParams.js → resources/tags/client/requests/TagsListRequest.js} +0 -0
- /package/src/api/types/{LegacyEvaluation.js → CannedResponseMetadataUpdateParams.js} +0 -0
- /package/src/api/types/{LegacyEvaluationCreationParams.js → GuidelineLabelsUpdateParams.js} +0 -0
- /package/src/api/types/{LegacyGuideline.js → JourneyLabelsUpdateParams.js} +0 -0
- /package/src/api/types/{LegacyGuidelineConnection.js → PaginatedCustomers.js} +0 -0
- /package/src/api/types/{LegacyGuidelineConnectionAddition.js → SessionLabelsUpdateParams.js} +0 -0
- /package/src/api/types/{LegacyGuidelineConnectionUpdateParams.js → SessionListing.js} +0 -0
- /package/src/api/types/{LegacyGuidelineCreationParams.js → SessionMetadataUpdateParams.js} +0 -0
package/src/serialization/resources/cannedResponses/client/requests/CannedResponseUpdateParams.js
CHANGED
|
@@ -40,8 +40,10 @@ exports.CannedResponseUpdateParams = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
41
|
const CannedResponseField_1 = require("../../../../types/CannedResponseField");
|
|
42
42
|
const CannedResponseTagUpdateParams_1 = require("../../../../types/CannedResponseTagUpdateParams");
|
|
43
|
+
const CannedResponseMetadataUpdateParams_1 = require("../../../../types/CannedResponseMetadataUpdateParams");
|
|
43
44
|
exports.CannedResponseUpdateParams = core.serialization.object({
|
|
44
45
|
value: core.serialization.string().optional(),
|
|
45
46
|
fields: core.serialization.list(CannedResponseField_1.CannedResponseField).optional(),
|
|
46
47
|
tags: CannedResponseTagUpdateParams_1.CannedResponseTagUpdateParams.optional(),
|
|
48
|
+
metadata: CannedResponseMetadataUpdateParams_1.CannedResponseMetadataUpdateParams.optional(),
|
|
47
49
|
});
|
|
@@ -10,32 +10,8 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
15
|
};
|
|
38
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.list = void 0;
|
|
40
|
-
exports.list = __importStar(require("./list"));
|
|
41
17
|
__exportStar(require("./requests"), exports);
|
|
@@ -8,6 +8,7 @@ export declare const CustomerCreationParams: core.serialization.Schema<serialize
|
|
|
8
8
|
export declare namespace CustomerCreationParams {
|
|
9
9
|
interface Raw {
|
|
10
10
|
name: string;
|
|
11
|
+
id?: string | null;
|
|
11
12
|
metadata?: Record<string, string | null | undefined> | null;
|
|
12
13
|
tags?: string[] | null;
|
|
13
14
|
}
|
|
@@ -40,6 +40,7 @@ exports.CustomerCreationParams = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
41
|
exports.CustomerCreationParams = core.serialization.object({
|
|
42
42
|
name: core.serialization.string(),
|
|
43
|
+
id: core.serialization.string().optional(),
|
|
43
44
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional(),
|
|
44
45
|
tags: core.serialization.list(core.serialization.string()).optional(),
|
|
45
46
|
});
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
@@ -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 Parlant from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { PaginatedCustomers } from "../../../types/PaginatedCustomers";
|
|
8
|
+
import { Customer } from "../../../types/Customer";
|
|
9
|
+
export declare const CustomersListResponse: core.serialization.Schema<serializers.CustomersListResponse.Raw, Parlant.CustomersListResponse>;
|
|
10
|
+
export declare namespace CustomersListResponse {
|
|
11
|
+
type Raw = PaginatedCustomers.Raw | Customer.Raw[];
|
|
12
|
+
}
|
package/src/serialization/resources/customers/{client/list.js → types/CustomersListResponse.js}
RENAMED
|
@@ -36,7 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.CustomersListResponse = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const PaginatedCustomers_1 = require("../../../types/PaginatedCustomers");
|
|
41
42
|
const Customer_1 = require("../../../types/Customer");
|
|
42
|
-
exports.
|
|
43
|
+
exports.CustomersListResponse = core.serialization.undiscriminatedUnion([PaginatedCustomers_1.PaginatedCustomers, core.serialization.list(Customer_1.Customer)]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CustomersListResponse";
|
|
@@ -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("./CustomersListResponse"), exports);
|
|
@@ -43,4 +43,5 @@ exports.TermCreationParams = core.serialization.object({
|
|
|
43
43
|
description: core.serialization.string(),
|
|
44
44
|
synonyms: core.serialization.list(core.serialization.string()).optional(),
|
|
45
45
|
tags: core.serialization.list(core.serialization.string()).optional(),
|
|
46
|
+
id: core.serialization.string().optional(),
|
|
46
47
|
});
|
|
@@ -4,13 +4,22 @@
|
|
|
4
4
|
import * as serializers from "../../../../index";
|
|
5
5
|
import * as Parlant from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
|
+
import { CriticalityDto } from "../../../../types/CriticalityDto";
|
|
8
|
+
import { CompositionModeDto } from "../../../../types/CompositionModeDto";
|
|
7
9
|
export declare const GuidelineCreationParams: core.serialization.Schema<serializers.GuidelineCreationParams.Raw, Parlant.GuidelineCreationParams>;
|
|
8
10
|
export declare namespace GuidelineCreationParams {
|
|
9
11
|
interface Raw {
|
|
12
|
+
id?: string | null;
|
|
10
13
|
condition: string;
|
|
11
14
|
action?: string | null;
|
|
15
|
+
description?: string | null;
|
|
16
|
+
criticality?: CriticalityDto.Raw | null;
|
|
12
17
|
metadata?: Record<string, unknown> | null;
|
|
13
18
|
enabled?: boolean | null;
|
|
14
19
|
tags?: string[] | null;
|
|
20
|
+
composition_mode?: CompositionModeDto.Raw | null;
|
|
21
|
+
track?: boolean | null;
|
|
22
|
+
labels?: string[] | null;
|
|
23
|
+
priority?: number | null;
|
|
15
24
|
}
|
|
16
25
|
}
|
|
@@ -38,10 +38,19 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.GuidelineCreationParams = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const CriticalityDto_1 = require("../../../../types/CriticalityDto");
|
|
42
|
+
const CompositionModeDto_1 = require("../../../../types/CompositionModeDto");
|
|
41
43
|
exports.GuidelineCreationParams = core.serialization.object({
|
|
44
|
+
id: core.serialization.string().optional(),
|
|
42
45
|
condition: core.serialization.string(),
|
|
43
46
|
action: core.serialization.string().optional(),
|
|
47
|
+
description: core.serialization.string().optional(),
|
|
48
|
+
criticality: CriticalityDto_1.CriticalityDto.optional(),
|
|
44
49
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
45
50
|
enabled: core.serialization.boolean().optional(),
|
|
46
51
|
tags: core.serialization.list(core.serialization.string()).optional(),
|
|
52
|
+
compositionMode: core.serialization.property("composition_mode", CompositionModeDto_1.CompositionModeDto.optional()),
|
|
53
|
+
track: core.serialization.boolean().optional(),
|
|
54
|
+
labels: core.serialization.list(core.serialization.string()).optional(),
|
|
55
|
+
priority: core.serialization.number().optional(),
|
|
47
56
|
});
|
|
@@ -4,17 +4,25 @@
|
|
|
4
4
|
import * as serializers from "../../../../index";
|
|
5
5
|
import * as Parlant from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
|
+
import { CriticalityDto } from "../../../../types/CriticalityDto";
|
|
7
8
|
import { GuidelineToolAssociationUpdateParams } from "../../../../types/GuidelineToolAssociationUpdateParams";
|
|
8
9
|
import { GuidelineTagsUpdateParams } from "../../../../types/GuidelineTagsUpdateParams";
|
|
9
10
|
import { GuidelineMetadataUpdateParams } from "../../../../types/GuidelineMetadataUpdateParams";
|
|
11
|
+
import { CompositionModeDto } from "../../../../types/CompositionModeDto";
|
|
12
|
+
import { GuidelineLabelsUpdateParams } from "../../../../types/GuidelineLabelsUpdateParams";
|
|
10
13
|
export declare const GuidelineUpdateParams: core.serialization.Schema<serializers.GuidelineUpdateParams.Raw, Parlant.GuidelineUpdateParams>;
|
|
11
14
|
export declare namespace GuidelineUpdateParams {
|
|
12
15
|
interface Raw {
|
|
13
16
|
condition?: string | null;
|
|
14
17
|
action?: string | null;
|
|
18
|
+
description?: string | null;
|
|
19
|
+
criticality?: CriticalityDto.Raw | null;
|
|
15
20
|
tool_associations?: GuidelineToolAssociationUpdateParams.Raw | null;
|
|
16
21
|
enabled?: boolean | null;
|
|
17
22
|
tags?: GuidelineTagsUpdateParams.Raw | null;
|
|
18
23
|
metadata?: GuidelineMetadataUpdateParams.Raw | null;
|
|
24
|
+
composition_mode?: CompositionModeDto.Raw | null;
|
|
25
|
+
labels?: GuidelineLabelsUpdateParams.Raw | null;
|
|
26
|
+
priority?: number | null;
|
|
19
27
|
}
|
|
20
28
|
}
|
|
@@ -38,14 +38,22 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.GuidelineUpdateParams = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const CriticalityDto_1 = require("../../../../types/CriticalityDto");
|
|
41
42
|
const GuidelineToolAssociationUpdateParams_1 = require("../../../../types/GuidelineToolAssociationUpdateParams");
|
|
42
43
|
const GuidelineTagsUpdateParams_1 = require("../../../../types/GuidelineTagsUpdateParams");
|
|
43
44
|
const GuidelineMetadataUpdateParams_1 = require("../../../../types/GuidelineMetadataUpdateParams");
|
|
45
|
+
const CompositionModeDto_1 = require("../../../../types/CompositionModeDto");
|
|
46
|
+
const GuidelineLabelsUpdateParams_1 = require("../../../../types/GuidelineLabelsUpdateParams");
|
|
44
47
|
exports.GuidelineUpdateParams = core.serialization.object({
|
|
45
48
|
condition: core.serialization.string().optional(),
|
|
46
49
|
action: core.serialization.string().optional(),
|
|
50
|
+
description: core.serialization.string().optional(),
|
|
51
|
+
criticality: CriticalityDto_1.CriticalityDto.optional(),
|
|
47
52
|
toolAssociations: core.serialization.property("tool_associations", GuidelineToolAssociationUpdateParams_1.GuidelineToolAssociationUpdateParams.optional()),
|
|
48
53
|
enabled: core.serialization.boolean().optional(),
|
|
49
54
|
tags: GuidelineTagsUpdateParams_1.GuidelineTagsUpdateParams.optional(),
|
|
50
55
|
metadata: GuidelineMetadataUpdateParams_1.GuidelineMetadataUpdateParams.optional(),
|
|
56
|
+
compositionMode: core.serialization.property("composition_mode", CompositionModeDto_1.CompositionModeDto.optional()),
|
|
57
|
+
labels: GuidelineLabelsUpdateParams_1.GuidelineLabelsUpdateParams.optional(),
|
|
58
|
+
priority: core.serialization.number().optional(),
|
|
51
59
|
});
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export * as agents from "./agents";
|
|
2
1
|
export * as sessions from "./sessions";
|
|
2
|
+
export * from "./sessions/types";
|
|
3
|
+
export * as customers from "./customers";
|
|
4
|
+
export * from "./customers/types";
|
|
5
|
+
export * as agents from "./agents";
|
|
3
6
|
export * as services from "./services";
|
|
4
7
|
export * as tags from "./tags";
|
|
5
8
|
export * as glossary from "./glossary";
|
|
6
|
-
export * as customers from "./customers";
|
|
7
9
|
export * as cannedResponses from "./cannedResponses";
|
|
8
10
|
export * as contextVariables from "./contextVariables";
|
|
9
11
|
export * as guidelines from "./guidelines";
|
|
@@ -36,13 +36,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.evaluations = exports.capabilities = exports.journeys = exports.relationships = exports.guidelines = exports.contextVariables = exports.cannedResponses = exports.
|
|
40
|
-
exports.agents = __importStar(require("./agents"));
|
|
39
|
+
exports.evaluations = exports.capabilities = exports.journeys = exports.relationships = exports.guidelines = exports.contextVariables = exports.cannedResponses = exports.glossary = exports.tags = exports.services = exports.agents = exports.customers = exports.sessions = void 0;
|
|
41
40
|
exports.sessions = __importStar(require("./sessions"));
|
|
41
|
+
__exportStar(require("./sessions/types"), exports);
|
|
42
|
+
exports.customers = __importStar(require("./customers"));
|
|
43
|
+
__exportStar(require("./customers/types"), exports);
|
|
44
|
+
exports.agents = __importStar(require("./agents"));
|
|
42
45
|
exports.services = __importStar(require("./services"));
|
|
43
46
|
exports.tags = __importStar(require("./tags"));
|
|
44
47
|
exports.glossary = __importStar(require("./glossary"));
|
|
45
|
-
exports.customers = __importStar(require("./customers"));
|
|
46
48
|
exports.cannedResponses = __importStar(require("./cannedResponses"));
|
|
47
49
|
exports.contextVariables = __importStar(require("./contextVariables"));
|
|
48
50
|
exports.guidelines = __importStar(require("./guidelines"));
|
|
@@ -4,12 +4,17 @@
|
|
|
4
4
|
import * as serializers from "../../../../index";
|
|
5
5
|
import * as Parlant from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
|
+
import { CompositionModeDto } from "../../../../types/CompositionModeDto";
|
|
7
8
|
export declare const JourneyCreationParams: core.serialization.Schema<serializers.JourneyCreationParams.Raw, Parlant.JourneyCreationParams>;
|
|
8
9
|
export declare namespace JourneyCreationParams {
|
|
9
10
|
interface Raw {
|
|
10
11
|
title: string;
|
|
11
12
|
description: string;
|
|
12
13
|
conditions: string[];
|
|
14
|
+
id?: string | null;
|
|
13
15
|
tags?: string[] | null;
|
|
16
|
+
composition_mode?: CompositionModeDto.Raw | null;
|
|
17
|
+
labels?: string[] | null;
|
|
18
|
+
priority?: number | null;
|
|
14
19
|
}
|
|
15
20
|
}
|
|
@@ -38,9 +38,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.JourneyCreationParams = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const CompositionModeDto_1 = require("../../../../types/CompositionModeDto");
|
|
41
42
|
exports.JourneyCreationParams = core.serialization.object({
|
|
42
43
|
title: core.serialization.string(),
|
|
43
44
|
description: core.serialization.string(),
|
|
44
45
|
conditions: core.serialization.list(core.serialization.string()),
|
|
46
|
+
id: core.serialization.string().optional(),
|
|
45
47
|
tags: core.serialization.list(core.serialization.string()).optional(),
|
|
48
|
+
compositionMode: core.serialization.property("composition_mode", CompositionModeDto_1.CompositionModeDto.optional()),
|
|
49
|
+
labels: core.serialization.list(core.serialization.string()).optional(),
|
|
50
|
+
priority: core.serialization.number().optional(),
|
|
46
51
|
});
|
|
@@ -6,6 +6,8 @@ import * as Parlant from "../../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
7
|
import { JourneyConditionUpdateParams } from "../../../../types/JourneyConditionUpdateParams";
|
|
8
8
|
import { JourneyTagUpdateParams } from "../../../../types/JourneyTagUpdateParams";
|
|
9
|
+
import { CompositionModeDto } from "../../../../types/CompositionModeDto";
|
|
10
|
+
import { JourneyLabelsUpdateParams } from "../../../../types/JourneyLabelsUpdateParams";
|
|
9
11
|
export declare const JourneyUpdateParams: core.serialization.Schema<serializers.JourneyUpdateParams.Raw, Parlant.JourneyUpdateParams>;
|
|
10
12
|
export declare namespace JourneyUpdateParams {
|
|
11
13
|
interface Raw {
|
|
@@ -13,5 +15,8 @@ export declare namespace JourneyUpdateParams {
|
|
|
13
15
|
description?: string | null;
|
|
14
16
|
conditions?: JourneyConditionUpdateParams.Raw | null;
|
|
15
17
|
tags?: JourneyTagUpdateParams.Raw | null;
|
|
18
|
+
composition_mode?: CompositionModeDto.Raw | null;
|
|
19
|
+
labels?: JourneyLabelsUpdateParams.Raw | null;
|
|
20
|
+
priority?: number | null;
|
|
16
21
|
}
|
|
17
22
|
}
|
|
@@ -40,9 +40,14 @@ exports.JourneyUpdateParams = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
41
|
const JourneyConditionUpdateParams_1 = require("../../../../types/JourneyConditionUpdateParams");
|
|
42
42
|
const JourneyTagUpdateParams_1 = require("../../../../types/JourneyTagUpdateParams");
|
|
43
|
+
const CompositionModeDto_1 = require("../../../../types/CompositionModeDto");
|
|
44
|
+
const JourneyLabelsUpdateParams_1 = require("../../../../types/JourneyLabelsUpdateParams");
|
|
43
45
|
exports.JourneyUpdateParams = core.serialization.object({
|
|
44
46
|
title: core.serialization.string().optional(),
|
|
45
47
|
description: core.serialization.string().optional(),
|
|
46
48
|
conditions: JourneyConditionUpdateParams_1.JourneyConditionUpdateParams.optional(),
|
|
47
49
|
tags: JourneyTagUpdateParams_1.JourneyTagUpdateParams.optional(),
|
|
50
|
+
compositionMode: core.serialization.property("composition_mode", CompositionModeDto_1.CompositionModeDto.optional()),
|
|
51
|
+
labels: JourneyLabelsUpdateParams_1.JourneyLabelsUpdateParams.optional(),
|
|
52
|
+
priority: core.serialization.number().optional(),
|
|
48
53
|
});
|
|
@@ -36,7 +36,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.listEvents =
|
|
40
|
-
exports.list = __importStar(require("./list"));
|
|
39
|
+
exports.listEvents = void 0;
|
|
41
40
|
exports.listEvents = __importStar(require("./listEvents"));
|
|
42
41
|
__exportStar(require("./requests"), exports);
|
|
@@ -16,6 +16,7 @@ export declare namespace EventCreationParams {
|
|
|
16
16
|
source: EventSourceDto.Raw;
|
|
17
17
|
message?: string | null;
|
|
18
18
|
data?: unknown | null;
|
|
19
|
+
metadata?: Record<string, unknown> | null;
|
|
19
20
|
guidelines?: AgentMessageGuideline.Raw[] | null;
|
|
20
21
|
participant?: Participant.Raw | null;
|
|
21
22
|
status?: SessionStatusDto.Raw | null;
|
|
@@ -48,6 +48,7 @@ exports.EventCreationParams = core.serialization.object({
|
|
|
48
48
|
source: EventSourceDto_1.EventSourceDto,
|
|
49
49
|
message: core.serialization.string().optional(),
|
|
50
50
|
data: core.serialization.unknown().optional(),
|
|
51
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
51
52
|
guidelines: core.serialization.list(AgentMessageGuideline_1.AgentMessageGuideline).optional(),
|
|
52
53
|
participant: Participant_1.Participant.optional(),
|
|
53
54
|
status: SessionStatusDto_1.SessionStatusDto.optional(),
|
|
@@ -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 Parlant from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
import { SessionMetadataUpdateParams } from "../../../../types/SessionMetadataUpdateParams";
|
|
8
|
+
export declare const EventUpdateParams: core.serialization.Schema<serializers.EventUpdateParams.Raw, Parlant.EventUpdateParams>;
|
|
9
|
+
export declare namespace EventUpdateParams {
|
|
10
|
+
interface Raw {
|
|
11
|
+
metadata?: SessionMetadataUpdateParams.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.EventUpdateParams = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const SessionMetadataUpdateParams_1 = require("../../../../types/SessionMetadataUpdateParams");
|
|
42
|
+
exports.EventUpdateParams = core.serialization.object({
|
|
43
|
+
metadata: SessionMetadataUpdateParams_1.SessionMetadataUpdateParams.optional(),
|
|
44
|
+
});
|
|
@@ -42,4 +42,6 @@ exports.SessionCreationParams = core.serialization.object({
|
|
|
42
42
|
agentId: core.serialization.property("agent_id", core.serialization.string()),
|
|
43
43
|
customerId: core.serialization.property("customer_id", core.serialization.string().optional()),
|
|
44
44
|
title: core.serialization.string().optional(),
|
|
45
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
46
|
+
labels: core.serialization.list(core.serialization.string()).optional(),
|
|
45
47
|
});
|
|
@@ -6,11 +6,17 @@ import * as Parlant from "../../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
7
|
import { ConsumptionOffsetsUpdateParams } from "../../../../types/ConsumptionOffsetsUpdateParams";
|
|
8
8
|
import { SessionModeDto } from "../../../../types/SessionModeDto";
|
|
9
|
+
import { SessionMetadataUpdateParams } from "../../../../types/SessionMetadataUpdateParams";
|
|
10
|
+
import { SessionLabelsUpdateParams } from "../../../../types/SessionLabelsUpdateParams";
|
|
9
11
|
export declare const SessionUpdateParams: core.serialization.Schema<serializers.SessionUpdateParams.Raw, Parlant.SessionUpdateParams>;
|
|
10
12
|
export declare namespace SessionUpdateParams {
|
|
11
13
|
interface Raw {
|
|
12
14
|
consumption_offsets?: ConsumptionOffsetsUpdateParams.Raw | null;
|
|
13
15
|
title?: string | null;
|
|
14
16
|
mode?: SessionModeDto.Raw | null;
|
|
17
|
+
customer_id?: string | null;
|
|
18
|
+
agent_id?: string | null;
|
|
19
|
+
metadata?: SessionMetadataUpdateParams.Raw | null;
|
|
20
|
+
labels?: SessionLabelsUpdateParams.Raw | null;
|
|
15
21
|
}
|
|
16
22
|
}
|
|
@@ -40,8 +40,14 @@ exports.SessionUpdateParams = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
41
|
const ConsumptionOffsetsUpdateParams_1 = require("../../../../types/ConsumptionOffsetsUpdateParams");
|
|
42
42
|
const SessionModeDto_1 = require("../../../../types/SessionModeDto");
|
|
43
|
+
const SessionMetadataUpdateParams_1 = require("../../../../types/SessionMetadataUpdateParams");
|
|
44
|
+
const SessionLabelsUpdateParams_1 = require("../../../../types/SessionLabelsUpdateParams");
|
|
43
45
|
exports.SessionUpdateParams = core.serialization.object({
|
|
44
46
|
consumptionOffsets: core.serialization.property("consumption_offsets", ConsumptionOffsetsUpdateParams_1.ConsumptionOffsetsUpdateParams.optional()),
|
|
45
47
|
title: core.serialization.string().optional(),
|
|
46
48
|
mode: SessionModeDto_1.SessionModeDto.optional(),
|
|
49
|
+
customerId: core.serialization.property("customer_id", core.serialization.string().optional()),
|
|
50
|
+
agentId: core.serialization.property("agent_id", core.serialization.string().optional()),
|
|
51
|
+
metadata: SessionMetadataUpdateParams_1.SessionMetadataUpdateParams.optional(),
|
|
52
|
+
labels: SessionLabelsUpdateParams_1.SessionLabelsUpdateParams.optional(),
|
|
47
53
|
});
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventCreationParams = exports.SessionUpdateParams = exports.SessionCreationParams = void 0;
|
|
3
|
+
exports.EventUpdateParams = exports.EventCreationParams = exports.SessionUpdateParams = exports.SessionCreationParams = void 0;
|
|
4
4
|
var SessionCreationParams_1 = require("./SessionCreationParams");
|
|
5
5
|
Object.defineProperty(exports, "SessionCreationParams", { enumerable: true, get: function () { return SessionCreationParams_1.SessionCreationParams; } });
|
|
6
6
|
var SessionUpdateParams_1 = require("./SessionUpdateParams");
|
|
7
7
|
Object.defineProperty(exports, "SessionUpdateParams", { enumerable: true, get: function () { return SessionUpdateParams_1.SessionUpdateParams; } });
|
|
8
8
|
var EventCreationParams_1 = require("./EventCreationParams");
|
|
9
9
|
Object.defineProperty(exports, "EventCreationParams", { enumerable: true, get: function () { return EventCreationParams_1.EventCreationParams; } });
|
|
10
|
+
var EventUpdateParams_1 = require("./EventUpdateParams");
|
|
11
|
+
Object.defineProperty(exports, "EventUpdateParams", { enumerable: true, get: function () { return EventUpdateParams_1.EventUpdateParams; } });
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
@@ -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 Parlant from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { SessionListing } from "../../../types/SessionListing";
|
|
8
|
+
import { Session } from "../../../types/Session";
|
|
9
|
+
export declare const SessionsListResponse: core.serialization.Schema<serializers.SessionsListResponse.Raw, Parlant.SessionsListResponse>;
|
|
10
|
+
export declare namespace SessionsListResponse {
|
|
11
|
+
type Raw = SessionListing.Raw | Session.Raw[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.SessionsListResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const SessionListing_1 = require("../../../types/SessionListing");
|
|
42
|
+
const Session_1 = require("../../../types/Session");
|
|
43
|
+
exports.SessionsListResponse = core.serialization.undiscriminatedUnion([SessionListing_1.SessionListing, core.serialization.list(Session_1.Session)]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SessionsListResponse";
|
|
@@ -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("./SessionsListResponse"), exports);
|
|
@@ -5,6 +5,7 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Parlant from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { CompositionModeDto } from "./CompositionModeDto";
|
|
8
|
+
import { MessageOutputModeDto } from "./MessageOutputModeDto";
|
|
8
9
|
export declare const Agent: core.serialization.ObjectSchema<serializers.Agent.Raw, Parlant.Agent>;
|
|
9
10
|
export declare namespace Agent {
|
|
10
11
|
interface Raw {
|
|
@@ -13,6 +14,7 @@ export declare namespace Agent {
|
|
|
13
14
|
description?: string | null;
|
|
14
15
|
max_engine_iterations?: number | null;
|
|
15
16
|
composition_mode: CompositionModeDto.Raw;
|
|
17
|
+
message_output_mode: MessageOutputModeDto.Raw;
|
|
16
18
|
tags?: string[] | null;
|
|
17
19
|
}
|
|
18
20
|
}
|