@droz-js/sdk 0.19.26 → 0.19.28
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/drozai.d.ts +2 -2
- package/src/sdks/ai.d.ts +11 -16
- package/src/sdks/ai.js +2 -3
package/package.json
CHANGED
package/src/drozai.d.ts
CHANGED
|
@@ -96,8 +96,8 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
|
|
|
96
96
|
aiAgentRoutingPreview(variables: import("./sdks/ai").Exact<{
|
|
97
97
|
input: import("./sdks/ai").AiAgentRoutingPreviewInput;
|
|
98
98
|
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentRoutingPreviewQuery>;
|
|
99
|
-
aiAgentKnowledgeBases(variables
|
|
100
|
-
|
|
99
|
+
aiAgentKnowledgeBases(variables?: import("./sdks/ai").Exact<{
|
|
100
|
+
[key: string]: never;
|
|
101
101
|
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentKnowledgeBasesQuery>;
|
|
102
102
|
extractImageMetadata(variables: import("./sdks/ai").Exact<{
|
|
103
103
|
input: import("./sdks/ai").ExtractImageMetadataInput;
|
package/src/sdks/ai.d.ts
CHANGED
|
@@ -399,8 +399,10 @@ export type AiAgentRoutingPreview = {
|
|
|
399
399
|
};
|
|
400
400
|
export type AiAgentRoutingPreviewInput = {
|
|
401
401
|
agentId: Scalars['ID']['input'];
|
|
402
|
-
/** Mensagens
|
|
402
|
+
/** Mensagens a testar. Vazio cai em `subject`; sem os dois, previa vazia e nao erro. */
|
|
403
403
|
examples: Array<Scalars['String']['input']>;
|
|
404
|
+
/** Descricao do assunto: as mensagens sao geradas a partir dela (§5.4). Ignorada se `examples` vier. */
|
|
405
|
+
subject?: InputMaybe<Scalars['String']['input']>;
|
|
404
406
|
};
|
|
405
407
|
export type AiAgentScenario = {
|
|
406
408
|
description: Scalars['String']['output'];
|
|
@@ -431,8 +433,6 @@ export type AiAgentSpec = {
|
|
|
431
433
|
* por elas; sem recorte o agente varreria o acervo inteiro do tenant.
|
|
432
434
|
*/
|
|
433
435
|
knowledgeBaseIds: Array<Scalars['ID']['output']>;
|
|
434
|
-
/** Credencial do Droz Base. Obrigatoria quando ha base vinculada. */
|
|
435
|
-
knowledgeCredentialRef?: Maybe<Scalars['ID']['output']>;
|
|
436
436
|
/** `inform_limitation` (default) ou `general_knowledge`; ausente vale o mais restritivo. */
|
|
437
437
|
knowledgeFallback?: Maybe<Scalars['String']['output']>;
|
|
438
438
|
toolIds: Array<Scalars['ID']['output']>;
|
|
@@ -449,8 +449,6 @@ export type AiAgentSpecInput = {
|
|
|
449
449
|
* por elas; sem recorte o agente varreria o acervo inteiro do tenant.
|
|
450
450
|
*/
|
|
451
451
|
knowledgeBaseIds: Array<Scalars['ID']['input']>;
|
|
452
|
-
/** Credencial do Droz Base. Obrigatoria quando ha base vinculada. */
|
|
453
|
-
knowledgeCredentialRef?: InputMaybe<Scalars['ID']['input']>;
|
|
454
452
|
/** `inform_limitation` (default) ou `general_knowledge`; ausente vale o mais restritivo. */
|
|
455
453
|
knowledgeFallback?: InputMaybe<Scalars['String']['input']>;
|
|
456
454
|
toolIds: Array<Scalars['ID']['input']>;
|
|
@@ -806,8 +804,8 @@ export type Query = {
|
|
|
806
804
|
aiAgentConversationMetrics: Array<AiAgentConversationMetrics>;
|
|
807
805
|
aiAgentConversationOutcome?: Maybe<AiAgentConversationOutcome>;
|
|
808
806
|
/**
|
|
809
|
-
* §4.8: as bases do Droz Base
|
|
810
|
-
* credencial
|
|
807
|
+
* §4.8: as bases do Droz Base do tenant. A chamada e entre services, com App Token — nao ha
|
|
808
|
+
* credencial de cliente. O recorte do agente e a selecao do autor em `knowledgeBaseIds`.
|
|
811
809
|
*/
|
|
812
810
|
aiAgentKnowledgeBases: Array<AiAgentKnowledgeBase>;
|
|
813
811
|
aiAgentMetrics: AiAgentMetrics;
|
|
@@ -854,9 +852,6 @@ export type QueryAiAgentConversationMetricsArgs = {
|
|
|
854
852
|
export type QueryAiAgentConversationOutcomeArgs = {
|
|
855
853
|
sessionId: Scalars['ID']['input'];
|
|
856
854
|
};
|
|
857
|
-
export type QueryAiAgentKnowledgeBasesArgs = {
|
|
858
|
-
credentialRef: Scalars['ID']['input'];
|
|
859
|
-
};
|
|
860
855
|
export type QueryAiAgentMetricsArgs = {
|
|
861
856
|
input: AiAgentMetricsInput;
|
|
862
857
|
};
|
|
@@ -1069,7 +1064,7 @@ export type UpdateQnAInstanceInput = {
|
|
|
1069
1064
|
};
|
|
1070
1065
|
export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'agentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'status'>;
|
|
1071
1066
|
export type AiAgentVersionFragment = Pick<AiAgentVersion, 'agentId' | 'version' | 'status' | 'createdAt'>;
|
|
1072
|
-
export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | '
|
|
1067
|
+
export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels'> & {
|
|
1073
1068
|
identity: Pick<AiAgentIdentity, 'displayName' | 'role' | 'tone' | 'toneNotes' | 'openingMessage' | 'outOfScopeBehaviour'>;
|
|
1074
1069
|
budget: Pick<AiAgentBudget, 'maxSteps' | 'maxToolCalls' | 'maxTokens' | 'maxCostMicroUsd' | 'maxPeriodCostMicroUsd' | 'onExceeded'>;
|
|
1075
1070
|
handoff?: Maybe<Pick<AiAgentHandoff, 'transition' | 'target'>>;
|
|
@@ -1267,7 +1262,7 @@ export type AiAgentRoutingPreviewQuery = {
|
|
|
1267
1262
|
});
|
|
1268
1263
|
};
|
|
1269
1264
|
export type AiAgentKnowledgeBasesQueryVariables = Exact<{
|
|
1270
|
-
|
|
1265
|
+
[key: string]: never;
|
|
1271
1266
|
}>;
|
|
1272
1267
|
export type AiAgentKnowledgeBasesQuery = {
|
|
1273
1268
|
aiAgentKnowledgeBases: Array<Pick<AiAgentKnowledgeBase, 'id' | 'title'>>;
|
|
@@ -1363,7 +1358,7 @@ export type RemoveQnAInstanceMutation = {
|
|
|
1363
1358
|
};
|
|
1364
1359
|
export declare const AiAgentSummaryFragmentDoc = "\n fragment aiAgentSummary on AiAgentSummary {\n agentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n status\n}\n ";
|
|
1365
1360
|
export declare const AiAgentVersionFragmentDoc = "\n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
|
|
1366
|
-
export declare const AiAgentSpecFragmentDoc = "\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
|
|
1361
|
+
export declare const AiAgentSpecFragmentDoc = "\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 }\n channels\n}\n ";
|
|
1367
1362
|
export declare const AiAgentVersionWithSpecFragmentDoc = "\n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n}\n ";
|
|
1368
1363
|
export declare const AiAgentListingMetricsFragmentDoc = "\n fragment aiAgentListingMetrics on AiAgentMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n costMicroUsd\n}\n ";
|
|
1369
1364
|
export declare const AiAgentUseCaseFragmentDoc = "\n fragment aiAgentUseCase on AiAgentUseCase {\n id\n name\n subjectDescription\n procedureId\n status\n updatedAt\n}\n ";
|
|
@@ -1401,9 +1396,9 @@ export declare const UnregisterAiAgentToolDocument = "\n mutation unregisterA
|
|
|
1401
1396
|
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 turns\n expectations\n}\n ";
|
|
1402
1397
|
export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {\n checkAiAgentVersion(input: $input) {\n safeToPublish\n reports {\n scenarioId\n runs\n passed\n rate\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
|
|
1403
1398
|
export declare const AiAgentMetricsDocument = "\n query aiAgentMetrics($input: AiAgentMetricsInput!) {\n aiAgentMetrics(input: $input) {\n ...aiAgentListingMetrics\n }\n}\n \n fragment aiAgentListingMetrics on AiAgentMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n costMicroUsd\n}\n ";
|
|
1404
|
-
export declare const AiAgentVersionSpecDocument = "\n query aiAgentVersionSpec($agentId: ID!) {\n listAiAgentVersions(agentId: $agentId) {\n ...aiAgentVersionWithSpec\n }\n}\n \n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\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
|
|
1399
|
+
export declare const AiAgentVersionSpecDocument = "\n query aiAgentVersionSpec($agentId: ID!) {\n listAiAgentVersions(agentId: $agentId) {\n ...aiAgentVersionWithSpec\n }\n}\n \n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\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 }\n channels\n}\n ";
|
|
1405
1400
|
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 ";
|
|
1406
|
-
export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases
|
|
1401
|
+
export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n }\n}\n ";
|
|
1407
1402
|
export declare const ExtractImageMetadataDocument = "\n mutation extractImageMetadata($input: ExtractImageMetadataInput!) {\n extractImageMetadata(input: $input) {\n success\n model\n extractedMetadata\n tokenUsage {\n prompt\n completion\n total\n }\n }\n}\n ";
|
|
1408
1403
|
export declare const GetNlpInstanceDocument = "\n query getNlpInstance($id: ID!) {\n getNlpInstance(id: $id) {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
1409
1404
|
export declare const ListNlpInstancesDocument = "\n query listNlpInstances {\n listNlpInstances {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1449,7 +1444,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1449
1444
|
aiAgentMetrics(variables: AiAgentMetricsQueryVariables, options?: C): Promise<AiAgentMetricsQuery>;
|
|
1450
1445
|
aiAgentVersionSpec(variables: AiAgentVersionSpecQueryVariables, options?: C): Promise<AiAgentVersionSpecQuery>;
|
|
1451
1446
|
aiAgentRoutingPreview(variables: AiAgentRoutingPreviewQueryVariables, options?: C): Promise<AiAgentRoutingPreviewQuery>;
|
|
1452
|
-
aiAgentKnowledgeBases(variables
|
|
1447
|
+
aiAgentKnowledgeBases(variables?: AiAgentKnowledgeBasesQueryVariables, options?: C): Promise<AiAgentKnowledgeBasesQuery>;
|
|
1453
1448
|
extractImageMetadata(variables: ExtractImageMetadataMutationVariables, options?: C): Promise<ExtractImageMetadataMutation>;
|
|
1454
1449
|
getNlpInstance(variables: GetNlpInstanceQueryVariables, options?: C): Promise<GetNlpInstanceQuery>;
|
|
1455
1450
|
listNlpInstances(variables?: ListNlpInstancesQueryVariables, options?: C): Promise<ListNlpInstancesQuery>;
|
package/src/sdks/ai.js
CHANGED
|
@@ -112,7 +112,6 @@ exports.AiAgentSpecFragmentDoc = `
|
|
|
112
112
|
can
|
|
113
113
|
cannot
|
|
114
114
|
knowledgeBaseIds
|
|
115
|
-
knowledgeCredentialRef
|
|
116
115
|
knowledgeFallback
|
|
117
116
|
toolIds
|
|
118
117
|
budget {
|
|
@@ -502,8 +501,8 @@ exports.AiAgentRoutingPreviewDocument = `
|
|
|
502
501
|
}
|
|
503
502
|
`;
|
|
504
503
|
exports.AiAgentKnowledgeBasesDocument = `
|
|
505
|
-
query aiAgentKnowledgeBases
|
|
506
|
-
aiAgentKnowledgeBases
|
|
504
|
+
query aiAgentKnowledgeBases {
|
|
505
|
+
aiAgentKnowledgeBases {
|
|
507
506
|
id
|
|
508
507
|
title
|
|
509
508
|
}
|