@droz-js/sdk 0.26.40 → 0.26.42
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/sdks/ai.d.ts +16 -5
- package/src/sdks/ai.js +9 -0
package/package.json
CHANGED
package/src/sdks/ai.d.ts
CHANGED
|
@@ -194,12 +194,17 @@ export type AiAgentAuthoringRefInput = {
|
|
|
194
194
|
export type AiAgentAuthoringRules = {
|
|
195
195
|
defaultKnowledgeFallback: AiAgentKnowledgeFallback;
|
|
196
196
|
knowledgeFallbacks: Array<AiAgentKnowledgeFallback>;
|
|
197
|
+
maxAgentVariables: Scalars['Int']['output'];
|
|
197
198
|
maxAuthoredFieldLength: Scalars['Int']['output'];
|
|
198
199
|
maxAutomaticMessageChars: Scalars['Int']['output'];
|
|
199
200
|
maxReplySubjectChars: Scalars['Int']['output'];
|
|
200
201
|
maxRetentionConditionValueChars: Scalars['Int']['output'];
|
|
201
202
|
maxToneNotesLength: Scalars['Int']['output'];
|
|
203
|
+
maxVariableDescriptionChars: Scalars['Int']['output'];
|
|
204
|
+
maxVariableNameChars: Scalars['Int']['output'];
|
|
205
|
+
personalVariableTypes: Array<AiAgentVariableType>;
|
|
202
206
|
retentionConditionOperators: Array<AiAgentRetentionConditionOperators>;
|
|
207
|
+
variableNamePattern: Scalars['String']['output'];
|
|
203
208
|
};
|
|
204
209
|
export type AiAgentBudget = {
|
|
205
210
|
maxCostMicroUsd?: Maybe<Scalars['Int']['output']>;
|
|
@@ -220,6 +225,7 @@ export type AiAgentBudgetInput = {
|
|
|
220
225
|
export type AiAgentBusinessHours = {
|
|
221
226
|
alert?: Maybe<AiAgentBusinessHoursAlert>;
|
|
222
227
|
days: Array<AiAgentBusinessHoursDay>;
|
|
228
|
+
limits: AiAgentBusinessHoursLimits;
|
|
223
229
|
product?: Maybe<Scalars['String']['output']>;
|
|
224
230
|
receivedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
225
231
|
recordId?: Maybe<Scalars['String']['output']>;
|
|
@@ -242,6 +248,10 @@ export type AiAgentBusinessHoursDayInput = {
|
|
|
242
248
|
slots: Array<AiAgentBusinessHoursSlotInput>;
|
|
243
249
|
weekday: AiAgentBusinessHoursWeekday;
|
|
244
250
|
};
|
|
251
|
+
export type AiAgentBusinessHoursLimits = {
|
|
252
|
+
maxSlotsPerDay: Scalars['Int']['output'];
|
|
253
|
+
slotStepMinutes: Scalars['Int']['output'];
|
|
254
|
+
};
|
|
245
255
|
export type AiAgentBusinessHoursSlot = {
|
|
246
256
|
end: Scalars['String']['output'];
|
|
247
257
|
start: Scalars['String']['output'];
|
|
@@ -1968,6 +1978,7 @@ export type AiAgentBusinessHoursFragment = (Pick<AiAgentBusinessHours, 'source'
|
|
|
1968
1978
|
days: Array<(Pick<AiAgentBusinessHoursDay, 'weekday' | 'enabled'> & {
|
|
1969
1979
|
slots: Array<Pick<AiAgentBusinessHoursSlot, 'start' | 'end'>>;
|
|
1970
1980
|
})>;
|
|
1981
|
+
limits: Pick<AiAgentBusinessHoursLimits, 'maxSlotsPerDay' | 'slotStepMinutes'>;
|
|
1971
1982
|
});
|
|
1972
1983
|
export type SetAiAgentBusinessHoursMutationVariables = Exact<{
|
|
1973
1984
|
input: SetAiAgentBusinessHoursInput;
|
|
@@ -2175,7 +2186,7 @@ export type AiAgentAuthoringRulesQueryVariables = Exact<{
|
|
|
2175
2186
|
[key: string]: never;
|
|
2176
2187
|
}>;
|
|
2177
2188
|
export type AiAgentAuthoringRulesQuery = {
|
|
2178
|
-
aiAgentAuthoringRules: (Pick<AiAgentAuthoringRules, 'maxAuthoredFieldLength' | 'maxToneNotesLength' | 'maxAutomaticMessageChars' | 'maxReplySubjectChars' | 'maxRetentionConditionValueChars' | 'knowledgeFallbacks' | 'defaultKnowledgeFallback'> & {
|
|
2189
|
+
aiAgentAuthoringRules: (Pick<AiAgentAuthoringRules, 'maxAuthoredFieldLength' | 'maxToneNotesLength' | 'maxAutomaticMessageChars' | 'maxReplySubjectChars' | 'maxRetentionConditionValueChars' | 'knowledgeFallbacks' | 'defaultKnowledgeFallback' | 'variableNamePattern' | 'maxVariableNameChars' | 'maxVariableDescriptionChars' | 'maxAgentVariables' | 'personalVariableTypes'> & {
|
|
2179
2190
|
retentionConditionOperators: Array<Pick<AiAgentRetentionConditionOperators, 'parameterType' | 'operators'>>;
|
|
2180
2191
|
});
|
|
2181
2192
|
};
|
|
@@ -2314,7 +2325,7 @@ export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProced
|
|
|
2314
2325
|
export declare const AiAgentToolFragmentDoc = "\n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n concludedWhen\n emptyResultMessage\n customerScope\n recordOwner {\n listPath\n ownerField\n ownerParameters\n }\n returns\n deliverAsIs\n approvalMode\n confirmation {\n summaryField\n tokenField\n tokenArg\n }\n parameters {\n name\n type\n required\n description\n grounding\n format\n outputFormat\n }\n}\n ";
|
|
2315
2326
|
export declare const AiAgentTraceFragmentDoc = "\n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n aiAgentId\n agentVersion\n input\n promptBuilderVersion\n platformTextVersions\n agentPromptTexts {\n key\n scope\n version\n }\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n knowledgeQuery\n outcome\n haltReason\n handoffHeld\n personRequests\n handoffRelease\n unbackedClaim\n unbackedClaimKinds\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n held\n }\n}\n ";
|
|
2316
2327
|
export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
2317
|
-
export declare const AiAgentBusinessHoursFragmentDoc = "\n fragment aiAgentBusinessHours on AiAgentBusinessHours {\n source\n product\n recordId\n days {\n weekday\n enabled\n slots {\n start\n end\n }\n }\n status\n alert\n receivedAt\n}\n ";
|
|
2328
|
+
export declare const AiAgentBusinessHoursFragmentDoc = "\n fragment aiAgentBusinessHours on AiAgentBusinessHours {\n source\n product\n recordId\n days {\n weekday\n enabled\n slots {\n start\n end\n }\n }\n status\n alert\n receivedAt\n limits {\n maxSlotsPerDay\n slotStepMinutes\n }\n}\n ";
|
|
2318
2329
|
export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
|
|
2319
2330
|
export declare const AiAgentDashboardSentimentFragmentDoc = "\n fragment aiAgentDashboardSentiment on AiAgentDashboardSentiment {\n sentiment\n count\n percent\n polarity\n variation {\n unit\n value\n }\n}\n ";
|
|
2320
2331
|
export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
|
|
@@ -2343,9 +2354,9 @@ export declare const ListAiAgentScenariosDocument = "\n query listAiAgentScen
|
|
|
2343
2354
|
export declare const ReindexAiAgentDashboardDocument = "\n mutation reindexAiAgentDashboard($input: ReindexAiAgentDashboardInput!) {\n reindexAiAgentDashboard(input: $input)\n}\n ";
|
|
2344
2355
|
export declare const SetAiAgentRetentionPolicyDocument = "\n mutation setAiAgentRetentionPolicy($input: AiAgentRetentionPolicyInput!) {\n setAiAgentRetentionPolicy(input: $input) {\n days {\n transcript\n session_state\n long_term_memory\n }\n masksPersonalData\n }\n}\n ";
|
|
2345
2356
|
export declare const AiAgentRetentionPolicyDocument = "\n query aiAgentRetentionPolicy {\n aiAgentRetentionPolicy {\n days {\n transcript\n session_state\n long_term_memory\n }\n masksPersonalData\n }\n}\n ";
|
|
2346
|
-
export declare const SetAiAgentBusinessHoursDocument = "\n mutation setAiAgentBusinessHours($input: SetAiAgentBusinessHoursInput!) {\n setAiAgentBusinessHours(input: $input) {\n ...aiAgentBusinessHours\n }\n}\n \n fragment aiAgentBusinessHours on AiAgentBusinessHours {\n source\n product\n recordId\n days {\n weekday\n enabled\n slots {\n start\n end\n }\n }\n status\n alert\n receivedAt\n}\n ";
|
|
2357
|
+
export declare const SetAiAgentBusinessHoursDocument = "\n mutation setAiAgentBusinessHours($input: SetAiAgentBusinessHoursInput!) {\n setAiAgentBusinessHours(input: $input) {\n ...aiAgentBusinessHours\n }\n}\n \n fragment aiAgentBusinessHours on AiAgentBusinessHours {\n source\n product\n recordId\n days {\n weekday\n enabled\n slots {\n start\n end\n }\n }\n status\n alert\n receivedAt\n limits {\n maxSlotsPerDay\n slotStepMinutes\n }\n}\n ";
|
|
2347
2358
|
export declare const AiAgentApprovalQueueAlertsDocument = "\n query aiAgentApprovalQueueAlerts {\n aiAgentApprovalQueueAlerts {\n aiAgentId\n procedureId\n procedureName\n approvalQueueId\n }\n}\n ";
|
|
2348
|
-
export declare const AiAgentBusinessHoursDocument = "\n query aiAgentBusinessHours {\n aiAgentBusinessHours {\n ...aiAgentBusinessHours\n }\n}\n \n fragment aiAgentBusinessHours on AiAgentBusinessHours {\n source\n product\n recordId\n days {\n weekday\n enabled\n slots {\n start\n end\n }\n }\n status\n alert\n receivedAt\n}\n ";
|
|
2359
|
+
export declare const AiAgentBusinessHoursDocument = "\n query aiAgentBusinessHours {\n aiAgentBusinessHours {\n ...aiAgentBusinessHours\n }\n}\n \n fragment aiAgentBusinessHours on AiAgentBusinessHours {\n source\n product\n recordId\n days {\n weekday\n enabled\n slots {\n start\n end\n }\n }\n status\n alert\n receivedAt\n limits {\n maxSlotsPerDay\n slotStepMinutes\n }\n}\n ";
|
|
2349
2360
|
export declare const AiAgentConversationMetricsDocument = "\n query aiAgentConversationMetrics($input: AiAgentConversationMetricsInput!) {\n aiAgentConversationMetrics(input: $input) {\n items {\n conversationId\n sessionId\n channel\n turns\n startedAt\n lastTurnAt\n totalTokens\n costMicroUsd\n durationMs\n lastOutcome\n state\n status\n subcategory\n reversibleUntil\n provisional\n contactReason\n contactReasonTag\n channelType\n }\n total\n limit\n offset\n facets {\n name\n values {\n value\n count\n }\n }\n hasRiskAlerts\n dateRange {\n min\n max\n }\n truncated\n }\n}\n ";
|
|
2350
2361
|
export declare const AiAgentMetricsSeriesDocument = "\n query aiAgentMetricsSeries($input: AiAgentMetricsSeriesInput!) {\n aiAgentMetricsSeries(input: $input) {\n points {\n date\n conversations\n conversationsEligible\n conversationsResolved\n conversationsUnresolved\n conversationsHandoffNeed\n conversationsAbandoned\n resolvedRate\n unresolvedRate\n handoffNeedRate\n abandonmentRate\n }\n truncated\n }\n}\n ";
|
|
2351
2362
|
export declare const AiAgentDashboardDocument = "\n query aiAgentDashboard($input: AiAgentDashboardInput!) {\n aiAgentDashboard(input: $input) {\n aiAgentId\n timezone\n window {\n from\n to\n }\n previousWindow {\n from\n to\n }\n bucket\n conversations {\n ...aiAgentDashboardIndicator\n }\n resolved {\n ...aiAgentDashboardIndicator\n }\n unresolved {\n ...aiAgentDashboardIndicator\n }\n handoffProcedure {\n ...aiAgentDashboardIndicator\n }\n handoffNeed {\n ...aiAgentDashboardIndicator\n }\n qualifiedLead {\n ...aiAgentDashboardIndicator\n }\n offerAccepted {\n ...aiAgentDashboardIndicator\n }\n abandonment {\n ...aiAgentDashboardIndicator\n }\n scoreBands {\n band\n count\n percent\n polarity\n variation {\n unit\n value\n }\n }\n agentScoreAvg\n agentScoreAvgBand\n analyzedConversations\n conversationsProvisional\n conversationsAwaitingClassification\n hasActiveDispatches\n activeDispatches {\n sent {\n ...aiAgentDashboardIndicator\n }\n answered {\n ...aiAgentDashboardIndicator\n }\n unanswered {\n ...aiAgentDashboardIndicator\n }\n }\n sentimentAtStart {\n ...aiAgentDashboardSentiment\n }\n sentimentAtEnd {\n ...aiAgentDashboardSentiment\n }\n contactReasons {\n all {\n ...aiAgentDashboardContactReason\n }\n handoff {\n ...aiAgentDashboardContactReason\n }\n abandonment {\n ...aiAgentDashboardContactReason\n }\n }\n procedures {\n key\n name\n count\n level\n }\n knowledgeGaps {\n key\n count\n level\n }\n series {\n date\n endDate\n conversations\n conversationsEligible\n conversationsResolved\n conversationsUnresolved\n conversationsHandoffNeed\n conversationsAbandoned\n resolvedRate\n unresolvedRate\n handoffNeedRate\n abandonmentRate\n }\n truncated\n analysesTruncated\n }\n}\n \n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n \n\n fragment aiAgentDashboardSentiment on AiAgentDashboardSentiment {\n sentiment\n count\n percent\n polarity\n variation {\n unit\n value\n }\n}\n \n\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
|
|
@@ -2367,7 +2378,7 @@ export declare const RemoveAiAgentScenarioDocument = "\n mutation removeAiAge
|
|
|
2367
2378
|
export declare const SaveAiAgentScenarioDocument = "\n mutation saveAiAgentScenario($input: SaveAiAgentScenarioInput!) {\n saveAiAgentScenario(input: $input) {\n ...aiAgentScenario\n }\n}\n \n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
2368
2379
|
export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {\n checkAiAgentVersion(input: $input) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n aiAgentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n authoring {\n useCases\n procedures\n updatedAt\n }\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n rejectedCalls {\n toolName\n reason\n count\n }\n heldCalls {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2369
2380
|
export declare const GetAiAgentCheckRunDocument = "\n query getAiAgentCheckRun($aiAgentId: ID!, $runId: ID!) {\n getAiAgentCheckRun(aiAgentId: $aiAgentId, runId: $runId) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n aiAgentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n authoring {\n useCases\n procedures\n updatedAt\n }\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n rejectedCalls {\n toolName\n reason\n count\n }\n heldCalls {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2370
|
-
export declare const AiAgentAuthoringRulesDocument = "\n query aiAgentAuthoringRules {\n aiAgentAuthoringRules {\n maxAuthoredFieldLength\n maxToneNotesLength\n maxAutomaticMessageChars\n maxReplySubjectChars\n maxRetentionConditionValueChars\n retentionConditionOperators {\n parameterType\n operators\n }\n knowledgeFallbacks\n defaultKnowledgeFallback\n }\n}\n ";
|
|
2381
|
+
export declare const AiAgentAuthoringRulesDocument = "\n query aiAgentAuthoringRules {\n aiAgentAuthoringRules {\n maxAuthoredFieldLength\n maxToneNotesLength\n maxAutomaticMessageChars\n maxReplySubjectChars\n maxRetentionConditionValueChars\n retentionConditionOperators {\n parameterType\n operators\n }\n knowledgeFallbacks\n defaultKnowledgeFallback\n variableNamePattern\n maxVariableNameChars\n maxVariableDescriptionChars\n maxAgentVariables\n personalVariableTypes\n }\n}\n ";
|
|
2371
2382
|
export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($aiAgentId: ID!) {\n aiAgentCheckLimits(aiAgentId: $aiAgentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
|
|
2372
2383
|
export declare const AiAgentVersionSpecDocument = "\n query aiAgentVersionSpec($aiAgentId: ID!) {\n listAiAgentVersions(aiAgentId: $aiAgentId) {\n ...aiAgentVersionWithSpec\n }\n}\n \n fragment aiAgentVersionWithSpec on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n excludedTools {\n ...aiAgentToolExclusion\n }\n}\n \n\n fragment aiAgentSpec on AiAgentSpec {\n identity {\n displayName\n role\n tone\n toneNotes\n openingMessage\n outOfScopeBehaviour\n }\n can\n cannot\n knowledgeBaseIds\n knowledgeFallback\n toolIds\n budget {\n maxSteps\n maxToolCalls\n maxTokens\n maxCostMicroUsd\n maxPeriodCostMicroUsd\n onExceeded\n }\n handoff {\n transition\n target\n toolFailureMessage\n }\n insistence {\n retriesAfterRefusal\n handoffOnRequest\n handoffOnRequestAfterLookup\n }\n channels\n conversationTiming {\n channel\n abandonAfterMs\n remindAfterMs\n metaWindowMs\n reminderMessage\n renewalMessage\n }\n typingIndicator\n approvalRouting\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2373
2384
|
export declare const AiAgentRoutingPreviewDocument = "\n query aiAgentRoutingPreview($input: AiAgentRoutingPreviewInput!) {\n aiAgentRoutingPreview(input: $input) {\n high\n medium\n examples {\n message\n useCaseId\n score\n confidence\n }\n }\n}\n ";
|
package/src/sdks/ai.js
CHANGED
|
@@ -682,6 +682,10 @@ exports.AiAgentBusinessHoursFragmentDoc = `
|
|
|
682
682
|
status
|
|
683
683
|
alert
|
|
684
684
|
receivedAt
|
|
685
|
+
limits {
|
|
686
|
+
maxSlotsPerDay
|
|
687
|
+
slotStepMinutes
|
|
688
|
+
}
|
|
685
689
|
}
|
|
686
690
|
`;
|
|
687
691
|
exports.AiAgentDashboardIndicatorFragmentDoc = `
|
|
@@ -1394,6 +1398,11 @@ exports.AiAgentAuthoringRulesDocument = `
|
|
|
1394
1398
|
}
|
|
1395
1399
|
knowledgeFallbacks
|
|
1396
1400
|
defaultKnowledgeFallback
|
|
1401
|
+
variableNamePattern
|
|
1402
|
+
maxVariableNameChars
|
|
1403
|
+
maxVariableDescriptionChars
|
|
1404
|
+
maxAgentVariables
|
|
1405
|
+
personalVariableTypes
|
|
1397
1406
|
}
|
|
1398
1407
|
}
|
|
1399
1408
|
`;
|