@droz-js/sdk 0.26.41 → 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 +9 -3
- package/src/sdks/ai.js +4 -0
package/package.json
CHANGED
package/src/sdks/ai.d.ts
CHANGED
|
@@ -225,6 +225,7 @@ export type AiAgentBudgetInput = {
|
|
|
225
225
|
export type AiAgentBusinessHours = {
|
|
226
226
|
alert?: Maybe<AiAgentBusinessHoursAlert>;
|
|
227
227
|
days: Array<AiAgentBusinessHoursDay>;
|
|
228
|
+
limits: AiAgentBusinessHoursLimits;
|
|
228
229
|
product?: Maybe<Scalars['String']['output']>;
|
|
229
230
|
receivedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
230
231
|
recordId?: Maybe<Scalars['String']['output']>;
|
|
@@ -247,6 +248,10 @@ export type AiAgentBusinessHoursDayInput = {
|
|
|
247
248
|
slots: Array<AiAgentBusinessHoursSlotInput>;
|
|
248
249
|
weekday: AiAgentBusinessHoursWeekday;
|
|
249
250
|
};
|
|
251
|
+
export type AiAgentBusinessHoursLimits = {
|
|
252
|
+
maxSlotsPerDay: Scalars['Int']['output'];
|
|
253
|
+
slotStepMinutes: Scalars['Int']['output'];
|
|
254
|
+
};
|
|
250
255
|
export type AiAgentBusinessHoursSlot = {
|
|
251
256
|
end: Scalars['String']['output'];
|
|
252
257
|
start: Scalars['String']['output'];
|
|
@@ -1973,6 +1978,7 @@ export type AiAgentBusinessHoursFragment = (Pick<AiAgentBusinessHours, 'source'
|
|
|
1973
1978
|
days: Array<(Pick<AiAgentBusinessHoursDay, 'weekday' | 'enabled'> & {
|
|
1974
1979
|
slots: Array<Pick<AiAgentBusinessHoursSlot, 'start' | 'end'>>;
|
|
1975
1980
|
})>;
|
|
1981
|
+
limits: Pick<AiAgentBusinessHoursLimits, 'maxSlotsPerDay' | 'slotStepMinutes'>;
|
|
1976
1982
|
});
|
|
1977
1983
|
export type SetAiAgentBusinessHoursMutationVariables = Exact<{
|
|
1978
1984
|
input: SetAiAgentBusinessHoursInput;
|
|
@@ -2319,7 +2325,7 @@ export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProced
|
|
|
2319
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 ";
|
|
2320
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 ";
|
|
2321
2327
|
export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
2322
|
-
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 ";
|
|
2323
2329
|
export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
|
|
2324
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 ";
|
|
2325
2331
|
export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
|
|
@@ -2348,9 +2354,9 @@ export declare const ListAiAgentScenariosDocument = "\n query listAiAgentScen
|
|
|
2348
2354
|
export declare const ReindexAiAgentDashboardDocument = "\n mutation reindexAiAgentDashboard($input: ReindexAiAgentDashboardInput!) {\n reindexAiAgentDashboard(input: $input)\n}\n ";
|
|
2349
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 ";
|
|
2350
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 ";
|
|
2351
|
-
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 ";
|
|
2352
2358
|
export declare const AiAgentApprovalQueueAlertsDocument = "\n query aiAgentApprovalQueueAlerts {\n aiAgentApprovalQueueAlerts {\n aiAgentId\n procedureId\n procedureName\n approvalQueueId\n }\n}\n ";
|
|
2353
|
-
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 ";
|
|
2354
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 ";
|
|
2355
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 ";
|
|
2356
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 ";
|