parlant-client 3.0.1 → 3.2.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.
- 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 +13 -1
- package/src/api/resources/guidelines/client/requests/GuidelineUpdateParams.d.ts +13 -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 +9 -1
- package/src/api/resources/journeys/client/requests/JourneyUpdateParams.d.ts +2 -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/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 +9 -0
- package/src/api/types/GuidelineLabelsUpdateParams.d.ts +12 -0
- package/src/api/types/Journey.d.ts +4 -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/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 +8 -0
- package/src/serialization/resources/guidelines/client/requests/GuidelineCreationParams.js +8 -0
- package/src/serialization/resources/guidelines/client/requests/GuidelineUpdateParams.d.ts +7 -0
- package/src/serialization/resources/guidelines/client/requests/GuidelineUpdateParams.js +7 -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 +4 -0
- package/src/serialization/resources/journeys/client/requests/JourneyCreationParams.js +4 -0
- package/src/serialization/resources/journeys/client/requests/JourneyUpdateParams.d.ts +4 -0
- package/src/serialization/resources/journeys/client/requests/JourneyUpdateParams.js +4 -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 +7 -0
- package/src/serialization/types/Guideline.js +7 -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 +3 -0
- package/src/serialization/types/Journey.js +3 -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/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/LegacyGuidelineCreationParams.js +0 -5
- 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 → CannedResponseMetadataUpdateParams.js} +0 -0
- /package/src/api/types/{LegacyEvaluation.js → GuidelineLabelsUpdateParams.js} +0 -0
- /package/src/api/types/{LegacyEvaluationCreationParams.js → JourneyLabelsUpdateParams.js} +0 -0
- /package/src/api/types/{LegacyGuideline.js → PaginatedCustomers.js} +0 -0
- /package/src/api/types/{LegacyGuidelineConnection.js → SessionLabelsUpdateParams.js} +0 -0
- /package/src/api/types/{LegacyGuidelineConnectionAddition.js → SessionListing.js} +0 -0
- /package/src/api/types/{LegacyGuidelineConnectionUpdateParams.js → SessionMetadataUpdateParams.js} +0 -0
package/package.json
CHANGED
package/src/Client.d.ts
CHANGED
|
@@ -61,4 +61,11 @@ export declare class ParlantClient {
|
|
|
61
61
|
get journeys(): Journeys;
|
|
62
62
|
get evaluations(): Evaluations;
|
|
63
63
|
get capabilities(): Capabilities;
|
|
64
|
+
/**
|
|
65
|
+
* @param {ParlantClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.healthCheckHealthzGet()
|
|
69
|
+
*/
|
|
70
|
+
healthCheckHealthzGet(requestOptions?: ParlantClient.RequestOptions): Promise<Record<string, string>>;
|
|
64
71
|
}
|
package/src/Client.js
CHANGED
|
@@ -2,8 +2,57 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
5
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
51
|
exports.ParlantClient = void 0;
|
|
52
|
+
const core = __importStar(require("./core"));
|
|
53
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
54
|
+
const serializers = __importStar(require("./serialization/index"));
|
|
55
|
+
const errors = __importStar(require("./errors/index"));
|
|
7
56
|
const Client_1 = require("./api/resources/agents/client/Client");
|
|
8
57
|
const Client_2 = require("./api/resources/sessions/client/Client");
|
|
9
58
|
const Client_3 = require("./api/resources/services/client/Client");
|
|
@@ -73,5 +122,53 @@ class ParlantClient {
|
|
|
73
122
|
var _a;
|
|
74
123
|
return ((_a = this._capabilities) !== null && _a !== void 0 ? _a : (this._capabilities = new Client_13.Capabilities(this._options)));
|
|
75
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* @param {ParlantClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* await client.healthCheckHealthzGet()
|
|
130
|
+
*/
|
|
131
|
+
healthCheckHealthzGet(requestOptions) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
var _a;
|
|
134
|
+
const _response = yield core.fetcher({
|
|
135
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "healthz"),
|
|
136
|
+
method: "GET",
|
|
137
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
138
|
+
contentType: "application/json",
|
|
139
|
+
requestType: "json",
|
|
140
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
141
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
142
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
143
|
+
});
|
|
144
|
+
if (_response.ok) {
|
|
145
|
+
return serializers.healthCheckHealthzGet.Response.parseOrThrow(_response.body, {
|
|
146
|
+
unrecognizedObjectKeys: "passthrough",
|
|
147
|
+
allowUnrecognizedUnionMembers: true,
|
|
148
|
+
allowUnrecognizedEnumValues: true,
|
|
149
|
+
breadcrumbsPrefix: ["response"],
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
if (_response.error.reason === "status-code") {
|
|
153
|
+
throw new errors.ParlantError({
|
|
154
|
+
statusCode: _response.error.statusCode,
|
|
155
|
+
body: _response.error.body,
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
switch (_response.error.reason) {
|
|
159
|
+
case "non-json":
|
|
160
|
+
throw new errors.ParlantError({
|
|
161
|
+
statusCode: _response.error.statusCode,
|
|
162
|
+
body: _response.error.rawBody,
|
|
163
|
+
});
|
|
164
|
+
case "timeout":
|
|
165
|
+
throw new errors.ParlantTimeoutError("Timeout exceeded when calling GET /healthz.");
|
|
166
|
+
case "unknown":
|
|
167
|
+
throw new errors.ParlantError({
|
|
168
|
+
message: _response.error.errorMessage,
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
}
|
|
76
173
|
}
|
|
77
174
|
exports.ParlantClient = ParlantClient;
|
package/src/api/index.d.ts
CHANGED
package/src/api/index.js
CHANGED
|
@@ -14,6 +14,6 @@ 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("./resources"), exports);
|
|
17
18
|
__exportStar(require("./types"), exports);
|
|
18
19
|
__exportStar(require("./errors"), exports);
|
|
19
|
-
__exportStar(require("./resources"), exports);
|
|
@@ -39,10 +39,11 @@ export declare class Agents {
|
|
|
39
39
|
* Creates a new agent in the system.
|
|
40
40
|
*
|
|
41
41
|
* The agent will be initialized with the provided name and optional settings.
|
|
42
|
-
* A unique identifier will be automatically generated.
|
|
42
|
+
* A unique identifier will be automatically generated unless a custom ID is provided.
|
|
43
43
|
*
|
|
44
44
|
* Default behaviors:
|
|
45
45
|
* - `name` defaults to `"Unnamed Agent"` if not provided
|
|
46
|
+
* - `id` is auto-generated if not provided
|
|
46
47
|
* - `description` defaults to `None`
|
|
47
48
|
* - `max_engine_iterations` defaults to `None` (uses system default)
|
|
48
49
|
*
|
|
@@ -57,6 +58,7 @@ export declare class Agents {
|
|
|
57
58
|
* description: "Technical Support Assistant",
|
|
58
59
|
* maxEngineIterations: 3,
|
|
59
60
|
* compositionMode: "fluid",
|
|
61
|
+
* messageOutputMode: "block",
|
|
60
62
|
* tags: ["tag1", "tag2"]
|
|
61
63
|
* })
|
|
62
64
|
*/
|
|
@@ -108,7 +110,8 @@ export declare class Agents {
|
|
|
108
110
|
* name: "Haxon",
|
|
109
111
|
* description: "Technical Support Assistant",
|
|
110
112
|
* maxEngineIterations: 3,
|
|
111
|
-
* compositionMode: "fluid"
|
|
113
|
+
* compositionMode: "fluid",
|
|
114
|
+
* messageOutputMode: "block"
|
|
112
115
|
* })
|
|
113
116
|
*/
|
|
114
117
|
update(agentId: string, request?: Parlant.AgentUpdateParams, requestOptions?: Agents.RequestOptions): Promise<Parlant.Agent>;
|
|
@@ -115,10 +115,11 @@ class Agents {
|
|
|
115
115
|
* Creates a new agent in the system.
|
|
116
116
|
*
|
|
117
117
|
* The agent will be initialized with the provided name and optional settings.
|
|
118
|
-
* A unique identifier will be automatically generated.
|
|
118
|
+
* A unique identifier will be automatically generated unless a custom ID is provided.
|
|
119
119
|
*
|
|
120
120
|
* Default behaviors:
|
|
121
121
|
* - `name` defaults to `"Unnamed Agent"` if not provided
|
|
122
|
+
* - `id` is auto-generated if not provided
|
|
122
123
|
* - `description` defaults to `None`
|
|
123
124
|
* - `max_engine_iterations` defaults to `None` (uses system default)
|
|
124
125
|
*
|
|
@@ -133,6 +134,7 @@ class Agents {
|
|
|
133
134
|
* description: "Technical Support Assistant",
|
|
134
135
|
* maxEngineIterations: 3,
|
|
135
136
|
* compositionMode: "fluid",
|
|
137
|
+
* messageOutputMode: "block",
|
|
136
138
|
* tags: ["tag1", "tag2"]
|
|
137
139
|
* })
|
|
138
140
|
*/
|
|
@@ -322,7 +324,8 @@ class Agents {
|
|
|
322
324
|
* name: "Haxon",
|
|
323
325
|
* description: "Technical Support Assistant",
|
|
324
326
|
* maxEngineIterations: 3,
|
|
325
|
-
* compositionMode: "fluid"
|
|
327
|
+
* compositionMode: "fluid",
|
|
328
|
+
* messageOutputMode: "block"
|
|
326
329
|
* })
|
|
327
330
|
*/
|
|
328
331
|
update(agentId_1) {
|
|
@@ -9,17 +9,21 @@ import * as Parlant from "../../../../index";
|
|
|
9
9
|
* description: "Technical Support Assistant",
|
|
10
10
|
* maxEngineIterations: 3,
|
|
11
11
|
* compositionMode: "fluid",
|
|
12
|
+
* messageOutputMode: "block",
|
|
12
13
|
* tags: ["tag1", "tag2"]
|
|
13
14
|
* }
|
|
14
15
|
*/
|
|
15
16
|
export interface AgentCreationParams {
|
|
16
17
|
/** The display name of the agent, mainly for management purposes */
|
|
17
18
|
name: string;
|
|
19
|
+
/** Unique identifier for the agent */
|
|
20
|
+
id?: string;
|
|
18
21
|
/** Detailed description of the agent's purpose and capabilities */
|
|
19
22
|
description?: string;
|
|
20
23
|
/** Maximum number of processing iterations the agent can perform per request */
|
|
21
24
|
maxEngineIterations?: number;
|
|
22
25
|
compositionMode?: Parlant.CompositionModeDto;
|
|
26
|
+
messageOutputMode?: Parlant.MessageOutputModeDto;
|
|
23
27
|
/** List of tag IDs associated with the agent */
|
|
24
28
|
tags?: string[];
|
|
25
29
|
}
|
|
@@ -8,7 +8,8 @@ import * as Parlant from "../../../../index";
|
|
|
8
8
|
* name: "Haxon",
|
|
9
9
|
* description: "Technical Support Assistant",
|
|
10
10
|
* maxEngineIterations: 3,
|
|
11
|
-
* compositionMode: "fluid"
|
|
11
|
+
* compositionMode: "fluid",
|
|
12
|
+
* messageOutputMode: "block"
|
|
12
13
|
* }
|
|
13
14
|
*/
|
|
14
15
|
export interface AgentUpdateParams {
|
|
@@ -19,5 +20,6 @@ export interface AgentUpdateParams {
|
|
|
19
20
|
/** Maximum number of processing iterations the agent can perform per request */
|
|
20
21
|
maxEngineIterations?: number;
|
|
21
22
|
compositionMode?: Parlant.CompositionModeDto;
|
|
23
|
+
messageOutputMode?: Parlant.MessageOutputModeDto;
|
|
22
24
|
tags?: Parlant.AgentTagUpdateParams;
|
|
23
25
|
}
|
|
@@ -48,7 +48,12 @@ export declare class CannedResponses {
|
|
|
48
48
|
* name: "balance",
|
|
49
49
|
* description: "Account's balance",
|
|
50
50
|
* examples: ["9000"]
|
|
51
|
-
* }]
|
|
51
|
+
* }],
|
|
52
|
+
* metadata: {
|
|
53
|
+
* "category": "account",
|
|
54
|
+
* "priority": 1
|
|
55
|
+
* },
|
|
56
|
+
* fieldDependencies: ["account"]
|
|
52
57
|
* })
|
|
53
58
|
*/
|
|
54
59
|
create(request: Parlant.CannedResponseCreationParams, requestOptions?: CannedResponses.RequestOptions): Promise<Parlant.CannedResponse>;
|
|
@@ -97,7 +102,14 @@ export declare class CannedResponses {
|
|
|
97
102
|
* name: "balance",
|
|
98
103
|
* description: "Updated account balance",
|
|
99
104
|
* examples: ["10000"]
|
|
100
|
-
* }]
|
|
105
|
+
* }],
|
|
106
|
+
* metadata: {
|
|
107
|
+
* set: {
|
|
108
|
+
* "category": "account",
|
|
109
|
+
* "priority": 2
|
|
110
|
+
* },
|
|
111
|
+
* unset: ["old_field"]
|
|
112
|
+
* }
|
|
101
113
|
* })
|
|
102
114
|
*/
|
|
103
115
|
update(cannedResponseId: string, request?: Parlant.CannedResponseUpdateParams, requestOptions?: CannedResponses.RequestOptions): Promise<Parlant.CannedResponse>;
|
|
@@ -140,7 +140,12 @@ class CannedResponses {
|
|
|
140
140
|
* name: "balance",
|
|
141
141
|
* description: "Account's balance",
|
|
142
142
|
* examples: ["9000"]
|
|
143
|
-
* }]
|
|
143
|
+
* }],
|
|
144
|
+
* metadata: {
|
|
145
|
+
* "category": "account",
|
|
146
|
+
* "priority": 1
|
|
147
|
+
* },
|
|
148
|
+
* fieldDependencies: ["account"]
|
|
144
149
|
* })
|
|
145
150
|
*/
|
|
146
151
|
create(request, requestOptions) {
|
|
@@ -327,7 +332,14 @@ class CannedResponses {
|
|
|
327
332
|
* name: "balance",
|
|
328
333
|
* description: "Updated account balance",
|
|
329
334
|
* examples: ["10000"]
|
|
330
|
-
* }]
|
|
335
|
+
* }],
|
|
336
|
+
* metadata: {
|
|
337
|
+
* set: {
|
|
338
|
+
* "category": "account",
|
|
339
|
+
* "priority": 2
|
|
340
|
+
* },
|
|
341
|
+
* unset: ["old_field"]
|
|
342
|
+
* }
|
|
331
343
|
* })
|
|
332
344
|
*/
|
|
333
345
|
update(cannedResponseId_1) {
|
|
@@ -10,7 +10,12 @@ import * as Parlant from "../../../../index";
|
|
|
10
10
|
* name: "balance",
|
|
11
11
|
* description: "Account's balance",
|
|
12
12
|
* examples: ["9000"]
|
|
13
|
-
* }]
|
|
13
|
+
* }],
|
|
14
|
+
* metadata: {
|
|
15
|
+
* "category": "account",
|
|
16
|
+
* "priority": 1
|
|
17
|
+
* },
|
|
18
|
+
* fieldDependencies: ["account"]
|
|
14
19
|
* }
|
|
15
20
|
*/
|
|
16
21
|
export interface CannedResponseCreationParams {
|
|
@@ -22,4 +27,8 @@ export interface CannedResponseCreationParams {
|
|
|
22
27
|
tags?: string[];
|
|
23
28
|
/** A sequence of signals associated with the canned response, to help with filtering and matching. */
|
|
24
29
|
signals?: string[];
|
|
30
|
+
/** Additional metadata associated with the canned response. */
|
|
31
|
+
metadata?: Record<string, unknown>;
|
|
32
|
+
/** A sequence of field names that must be available in context for this response to be considered. */
|
|
33
|
+
fieldDependencies?: string[];
|
|
25
34
|
}
|
|
@@ -10,7 +10,14 @@ import * as Parlant from "../../../../index";
|
|
|
10
10
|
* name: "balance",
|
|
11
11
|
* description: "Updated account balance",
|
|
12
12
|
* examples: ["10000"]
|
|
13
|
-
* }]
|
|
13
|
+
* }],
|
|
14
|
+
* metadata: {
|
|
15
|
+
* set: {
|
|
16
|
+
* "category": "account",
|
|
17
|
+
* "priority": 2
|
|
18
|
+
* },
|
|
19
|
+
* unset: ["old_field"]
|
|
20
|
+
* }
|
|
14
21
|
* }
|
|
15
22
|
*/
|
|
16
23
|
export interface CannedResponseUpdateParams {
|
|
@@ -19,4 +26,5 @@ export interface CannedResponseUpdateParams {
|
|
|
19
26
|
/** A sequence of canned response fields associated with the canned response. */
|
|
20
27
|
fields?: Parlant.CannedResponseField[];
|
|
21
28
|
tags?: Parlant.CannedResponseTagUpdateParams;
|
|
29
|
+
metadata?: Parlant.CannedResponseMetadataUpdateParams;
|
|
22
30
|
}
|
|
@@ -24,17 +24,30 @@ export declare class Customers {
|
|
|
24
24
|
protected readonly _options: Customers.Options;
|
|
25
25
|
constructor(_options: Customers.Options);
|
|
26
26
|
/**
|
|
27
|
-
* Retrieves a list of
|
|
27
|
+
* Retrieves a list of customers from the system.
|
|
28
|
+
*
|
|
29
|
+
* If a cursor is provided, the results are returned using cursor-based pagination
|
|
30
|
+
* with a configurable sort direction. If no cursor is provided, the full list of
|
|
31
|
+
* customers is returned.
|
|
28
32
|
*
|
|
29
33
|
* Returns an empty list if no customers exist.
|
|
30
|
-
* Customers are returned in no guaranteed order.
|
|
31
34
|
*
|
|
35
|
+
* Note:
|
|
36
|
+
* When using paginated results, the first page will always include the special
|
|
37
|
+
* 'guest' customer as first item.
|
|
38
|
+
*
|
|
39
|
+
* @param {Parlant.CustomersListRequest} request
|
|
32
40
|
* @param {Customers.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
41
|
*
|
|
42
|
+
* @throws {@link Parlant.UnprocessableEntityError}
|
|
43
|
+
*
|
|
34
44
|
* @example
|
|
35
|
-
* await client.customers.list(
|
|
45
|
+
* await client.customers.list({
|
|
46
|
+
* limit: 10,
|
|
47
|
+
* cursor: "AAABjnBU9gBl/0BQt1axI0VniQI="
|
|
48
|
+
* })
|
|
36
49
|
*/
|
|
37
|
-
list(requestOptions?: Customers.RequestOptions): Promise<Parlant.
|
|
50
|
+
list(request?: Parlant.CustomersListRequest, requestOptions?: Customers.RequestOptions): Promise<Parlant.CustomersListResponse>;
|
|
38
51
|
/**
|
|
39
52
|
* Creates a new customer in the system.
|
|
40
53
|
*
|
|
@@ -51,39 +51,64 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
51
51
|
exports.Customers = void 0;
|
|
52
52
|
const core = __importStar(require("../../../../core"));
|
|
53
53
|
const Parlant = __importStar(require("../../../index"));
|
|
54
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
55
54
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
55
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
56
56
|
const errors = __importStar(require("../../../../errors/index"));
|
|
57
57
|
class Customers {
|
|
58
58
|
constructor(_options) {
|
|
59
59
|
this._options = _options;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
* Retrieves a list of
|
|
62
|
+
* Retrieves a list of customers from the system.
|
|
63
|
+
*
|
|
64
|
+
* If a cursor is provided, the results are returned using cursor-based pagination
|
|
65
|
+
* with a configurable sort direction. If no cursor is provided, the full list of
|
|
66
|
+
* customers is returned.
|
|
63
67
|
*
|
|
64
68
|
* Returns an empty list if no customers exist.
|
|
65
|
-
* Customers are returned in no guaranteed order.
|
|
66
69
|
*
|
|
70
|
+
* Note:
|
|
71
|
+
* When using paginated results, the first page will always include the special
|
|
72
|
+
* 'guest' customer as first item.
|
|
73
|
+
*
|
|
74
|
+
* @param {Parlant.CustomersListRequest} request
|
|
67
75
|
* @param {Customers.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
76
|
*
|
|
77
|
+
* @throws {@link Parlant.UnprocessableEntityError}
|
|
78
|
+
*
|
|
69
79
|
* @example
|
|
70
|
-
* await client.customers.list(
|
|
80
|
+
* await client.customers.list({
|
|
81
|
+
* limit: 10,
|
|
82
|
+
* cursor: "AAABjnBU9gBl/0BQt1axI0VniQI="
|
|
83
|
+
* })
|
|
71
84
|
*/
|
|
72
|
-
list(
|
|
73
|
-
return __awaiter(this,
|
|
85
|
+
list() {
|
|
86
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
74
87
|
var _a;
|
|
88
|
+
const { limit, cursor, sort } = request;
|
|
89
|
+
const _queryParams = {};
|
|
90
|
+
if (limit != null) {
|
|
91
|
+
_queryParams["limit"] = limit.toString();
|
|
92
|
+
}
|
|
93
|
+
if (cursor != null) {
|
|
94
|
+
_queryParams["cursor"] = cursor;
|
|
95
|
+
}
|
|
96
|
+
if (sort != null) {
|
|
97
|
+
_queryParams["sort"] = serializers.SortDirectionDto.jsonOrThrow(sort, { unrecognizedObjectKeys: "strip" });
|
|
98
|
+
}
|
|
75
99
|
const _response = yield core.fetcher({
|
|
76
100
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "customers"),
|
|
77
101
|
method: "GET",
|
|
78
102
|
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
79
103
|
contentType: "application/json",
|
|
104
|
+
queryParameters: _queryParams,
|
|
80
105
|
requestType: "json",
|
|
81
106
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
82
107
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
83
108
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
109
|
});
|
|
85
110
|
if (_response.ok) {
|
|
86
|
-
return serializers.
|
|
111
|
+
return serializers.CustomersListResponse.parseOrThrow(_response.body, {
|
|
87
112
|
unrecognizedObjectKeys: "passthrough",
|
|
88
113
|
allowUnrecognizedUnionMembers: true,
|
|
89
114
|
allowUnrecognizedEnumValues: true,
|
|
@@ -91,10 +116,15 @@ class Customers {
|
|
|
91
116
|
});
|
|
92
117
|
}
|
|
93
118
|
if (_response.error.reason === "status-code") {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
119
|
+
switch (_response.error.statusCode) {
|
|
120
|
+
case 422:
|
|
121
|
+
throw new Parlant.UnprocessableEntityError(_response.error.body);
|
|
122
|
+
default:
|
|
123
|
+
throw new errors.ParlantError({
|
|
124
|
+
statusCode: _response.error.statusCode,
|
|
125
|
+
body: _response.error.body,
|
|
126
|
+
});
|
|
127
|
+
}
|
|
98
128
|
}
|
|
99
129
|
switch (_response.error.reason) {
|
|
100
130
|
case "non-json":
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
export interface CustomerCreationParams {
|
|
15
15
|
/** An arbitrary string that identifies and/or describes the customer */
|
|
16
16
|
name: string;
|
|
17
|
+
/** Unique identifier for the customer */
|
|
18
|
+
id?: string;
|
|
17
19
|
/** Key-value pairs (`str: str`) to describe the customer */
|
|
18
20
|
metadata?: Record<string, string | undefined>;
|
|
19
21
|
/** Collection of ids of tags that describe the customer */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Parlant from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* limit: 10,
|
|
9
|
+
* cursor: "AAABjnBU9gBl/0BQt1axI0VniQI="
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface CustomersListRequest {
|
|
13
|
+
limit?: number;
|
|
14
|
+
cursor?: string;
|
|
15
|
+
sort?: Parlant.SortDirectionDto;
|
|
16
|
+
}
|
|
@@ -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 @@
|
|
|
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);
|
|
@@ -42,6 +42,9 @@ export declare class Guidelines {
|
|
|
42
42
|
/**
|
|
43
43
|
* Creates a new guideline.
|
|
44
44
|
*
|
|
45
|
+
* The guideline will be initialized with the provided condition and optional action and settings.
|
|
46
|
+
* A unique identifier will be automatically generated unless a custom ID is provided.
|
|
47
|
+
*
|
|
45
48
|
* See the [documentation](https://parlant.io/docs/concepts/customization/guidelines) for more information.
|
|
46
49
|
*
|
|
47
50
|
* @param {Parlant.GuidelineCreationParams} request
|
|
@@ -57,7 +60,9 @@ export declare class Guidelines {
|
|
|
57
60
|
* "key1": "value1",
|
|
58
61
|
* "key2": "value2"
|
|
59
62
|
* },
|
|
60
|
-
* enabled: false
|
|
63
|
+
* enabled: false,
|
|
64
|
+
* compositionMode: "strict_canned",
|
|
65
|
+
* labels: ["vip", "priority"]
|
|
61
66
|
* })
|
|
62
67
|
*/
|
|
63
68
|
create(request: Parlant.GuidelineCreationParams, requestOptions?: Guidelines.RequestOptions): Promise<Parlant.Guideline>;
|
|
@@ -124,7 +129,14 @@ export declare class Guidelines {
|
|
|
124
129
|
* toolName: "old_tool"
|
|
125
130
|
* }]
|
|
126
131
|
* },
|
|
127
|
-
* enabled: true
|
|
132
|
+
* enabled: true,
|
|
133
|
+
* metadata: {
|
|
134
|
+
* set: {
|
|
135
|
+
* "key1": "value1",
|
|
136
|
+
* "key2": "value2"
|
|
137
|
+
* },
|
|
138
|
+
* unset: ["key3", "key4"]
|
|
139
|
+
* }
|
|
128
140
|
* })
|
|
129
141
|
*/
|
|
130
142
|
update(guidelineId: string, request?: Parlant.GuidelineUpdateParams, requestOptions?: Guidelines.RequestOptions): Promise<Parlant.GuidelineWithRelationshipsAndToolAssociations>;
|
|
@@ -129,6 +129,9 @@ class Guidelines {
|
|
|
129
129
|
/**
|
|
130
130
|
* Creates a new guideline.
|
|
131
131
|
*
|
|
132
|
+
* The guideline will be initialized with the provided condition and optional action and settings.
|
|
133
|
+
* A unique identifier will be automatically generated unless a custom ID is provided.
|
|
134
|
+
*
|
|
132
135
|
* See the [documentation](https://parlant.io/docs/concepts/customization/guidelines) for more information.
|
|
133
136
|
*
|
|
134
137
|
* @param {Parlant.GuidelineCreationParams} request
|
|
@@ -144,7 +147,9 @@ class Guidelines {
|
|
|
144
147
|
* "key1": "value1",
|
|
145
148
|
* "key2": "value2"
|
|
146
149
|
* },
|
|
147
|
-
* enabled: false
|
|
150
|
+
* enabled: false,
|
|
151
|
+
* compositionMode: "strict_canned",
|
|
152
|
+
* labels: ["vip", "priority"]
|
|
148
153
|
* })
|
|
149
154
|
*/
|
|
150
155
|
create(request, requestOptions) {
|
|
@@ -349,7 +354,14 @@ class Guidelines {
|
|
|
349
354
|
* toolName: "old_tool"
|
|
350
355
|
* }]
|
|
351
356
|
* },
|
|
352
|
-
* enabled: true
|
|
357
|
+
* enabled: true,
|
|
358
|
+
* metadata: {
|
|
359
|
+
* set: {
|
|
360
|
+
* "key1": "value1",
|
|
361
|
+
* "key2": "value2"
|
|
362
|
+
* },
|
|
363
|
+
* unset: ["key3", "key4"]
|
|
364
|
+
* }
|
|
353
365
|
* })
|
|
354
366
|
*/
|
|
355
367
|
update(guidelineId_1) {
|