@droz-js/sdk 0.19.31 → 0.19.33
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 +7 -2
- package/src/sdks/ai.js +15 -0
- package/src/sdks/nucleus.d.ts +11 -9
- package/src/sdks/nucleus.js +1 -0
- package/src/sdks/outsource.d.ts +2 -0
package/package.json
CHANGED
package/src/sdks/ai.d.ts
CHANGED
|
@@ -1290,7 +1290,12 @@ export type CheckAiAgentVersionMutationVariables = Exact<{
|
|
|
1290
1290
|
}>;
|
|
1291
1291
|
export type CheckAiAgentVersionMutation = {
|
|
1292
1292
|
checkAiAgentVersion?: Maybe<(Pick<AiAgentCheckResult, 'safeToPublish'> & {
|
|
1293
|
-
reports: Array<Pick<AiAgentScenarioReport, 'scenarioId' | 'runs' | 'passed' | 'rate'
|
|
1293
|
+
reports: Array<(Pick<AiAgentScenarioReport, 'scenarioId' | 'runs' | 'passed' | 'rate'> & {
|
|
1294
|
+
turns: Array<(Pick<AiAgentScenarioTurn, 'turn' | 'runs' | 'answered' | 'grounded' | 'blocked'> & {
|
|
1295
|
+
toolNames: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
1296
|
+
blockCategories: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
1297
|
+
})>;
|
|
1298
|
+
})>;
|
|
1294
1299
|
regressions: Array<Pick<AiAgentRegression, 'scenarioId' | 'before' | 'after'>>;
|
|
1295
1300
|
})>;
|
|
1296
1301
|
};
|
|
@@ -1459,7 +1464,7 @@ export declare const ResolveAiAgentApprovalDocument = "\n mutation resolveAiA
|
|
|
1459
1464
|
export declare const RegisterAiAgentToolDocument = "\n mutation registerAiAgentTool($input: RegisterAiAgentToolInput!) {\n registerAiAgentTool(input: $input) {\n ...aiAgentTool\n }\n}\n \n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n }\n}\n ";
|
|
1460
1465
|
export declare const UnregisterAiAgentToolDocument = "\n mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {\n unregisterAiAgentTool(input: $input)\n}\n ";
|
|
1461
1466
|
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 ";
|
|
1462
|
-
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 ";
|
|
1467
|
+
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 turns {\n turn\n runs\n answered\n grounded\n blocked\n toolNames {\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 ";
|
|
1463
1468
|
export declare const AiAgentMetricsDocument = "\n query aiAgentMetrics($input: AiAgentMetricsInput!) {\n aiAgentMetrics(input: $input) {\n ...aiAgentMetricsReport\n }\n}\n \n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n escalatedToHuman\n escalatedToFlow\n escalatedTargetUndeclared\n handoffsByReason {\n key\n count\n }\n humanRequestedTurns\n costMicroUsd\n costMicroUsdPerResolvedConversation\n unpricedTurns\n inputTokens\n outputTokens\n totalTokens\n cachedInputTokens\n cachedTurns\n llmCalls\n turnsByModel {\n key\n count\n }\n avgTurnDurationMs\n p95TurnDurationMs\n avgLlmLatencyMs\n turns\n answeredTurns\n answeredWithFailedConnectionTurns\n unansweredTurns\n unansweredDefinition\n topTopics {\n key\n count\n }\n topUnansweredQuestions {\n key\n count\n }\n blockedTurns\n blocksByCategory {\n key\n count\n }\n haltedTurns\n haltReasons {\n key\n count\n }\n budgetExceededTurns\n identificationRequiredTurns\n toolCalls\n toolCallsFailed\n toolErrorsByConnection {\n key\n count\n }\n toolErrorsByClass {\n key\n count\n }\n knowledgeRetrieved\n knowledgeEmpty\n knowledgeUnavailable\n knowledgeSkipped\n}\n ";
|
|
1464
1469
|
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 ";
|
|
1465
1470
|
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
|
@@ -551,6 +551,21 @@ exports.CheckAiAgentVersionDocument = `
|
|
|
551
551
|
runs
|
|
552
552
|
passed
|
|
553
553
|
rate
|
|
554
|
+
turns {
|
|
555
|
+
turn
|
|
556
|
+
runs
|
|
557
|
+
answered
|
|
558
|
+
grounded
|
|
559
|
+
blocked
|
|
560
|
+
toolNames {
|
|
561
|
+
key
|
|
562
|
+
count
|
|
563
|
+
}
|
|
564
|
+
blockCategories {
|
|
565
|
+
key
|
|
566
|
+
count
|
|
567
|
+
}
|
|
568
|
+
}
|
|
554
569
|
}
|
|
555
570
|
regressions {
|
|
556
571
|
scenarioId
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -446,6 +446,7 @@ export type ICredentials = {
|
|
|
446
446
|
systemCredentials?: Maybe<Scalars['Boolean']['output']>;
|
|
447
447
|
type: CredentialsType;
|
|
448
448
|
updatedAt: Scalars['DateTime']['output'];
|
|
449
|
+
url?: Maybe<Scalars['String']['output']>;
|
|
449
450
|
};
|
|
450
451
|
export type IndexedSession = {
|
|
451
452
|
attributes?: Maybe<Scalars['JSON']['output']>;
|
|
@@ -976,6 +977,7 @@ export type SafeCredentials = ICredentials & {
|
|
|
976
977
|
systemCredentials?: Maybe<Scalars['Boolean']['output']>;
|
|
977
978
|
type: CredentialsType;
|
|
978
979
|
updatedAt: Scalars['DateTime']['output'];
|
|
980
|
+
url?: Maybe<Scalars['String']['output']>;
|
|
979
981
|
};
|
|
980
982
|
export type SearchResultsFacet = {
|
|
981
983
|
name: Scalars['String']['output'];
|
|
@@ -1468,7 +1470,7 @@ export type GetAuthInfoQuery = {
|
|
|
1468
1470
|
cognitoConfig: Pick<CognitoConfig, 'region' | 'userPoolId' | 'userPoolWebClientId'>;
|
|
1469
1471
|
})>;
|
|
1470
1472
|
};
|
|
1471
|
-
export type SafeCredentialsFragment = Pick<SafeCredentials, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt'>;
|
|
1473
|
+
export type SafeCredentialsFragment = Pick<SafeCredentials, 'id' | 'type' | 'description' | 'url' | 'systemCredentials' | 'createdAt' | 'updatedAt'>;
|
|
1472
1474
|
type CredentialsWithSecret_ApiKeyCredentialsType_Fragment = (Pick<ApiKeyCredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt' | 'url'> & {
|
|
1473
1475
|
credentials: Pick<ApiKeyCredentials, 'apiKey'>;
|
|
1474
1476
|
});
|
|
@@ -1886,7 +1888,7 @@ export declare const ApiKeyFragmentDoc = "\n fragment apiKey on ApiKeyAgent {
|
|
|
1886
1888
|
export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1887
1889
|
export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1888
1890
|
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n ";
|
|
1889
|
-
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1891
|
+
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n url\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1890
1892
|
export declare const CredentialsWithSecretFragmentDoc = "\n fragment credentialsWithSecret on Credentials {\n ... on ICredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n }\n ... on BasicCredentialsType {\n url\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n url\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n url\n credentials {\n clientId\n clientSecret\n }\n }\n ... on MetaCredentialsType {\n url\n credentials {\n code\n accessToken\n wabaId\n }\n }\n ... on MercadoLivreCredentialsType {\n url\n credentials {\n code\n }\n }\n}\n ";
|
|
1891
1893
|
export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1892
1894
|
export declare const CronJobFragmentDoc = "\n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n times\n runs\n}\n ";
|
|
@@ -1933,17 +1935,17 @@ export declare const UnregisterAppInstanceDocument = "\n mutation unregisterA
|
|
|
1933
1935
|
export declare const GetFederationMetadataDocument = "\n query getFederationMetadata {\n getFederationMetadata\n}\n ";
|
|
1934
1936
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean, $forService: String) {\n amplifyConfig(forDev: $forDev, forService: $forService)\n}\n ";
|
|
1935
1937
|
export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n ";
|
|
1936
|
-
export declare const GetCredentialsDocument = "\n query getCredentials($id: ID!) {\n getCredentials(id: $id) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1938
|
+
export declare const GetCredentialsDocument = "\n query getCredentials($id: ID!) {\n getCredentials(id: $id) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n url\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1937
1939
|
export declare const GetCredentialsSecretDocument = "\n query getCredentialsSecret($id: ID!) {\n getCredentialsSecret(id: $id) {\n ...credentialsWithSecret\n }\n}\n \n fragment credentialsWithSecret on Credentials {\n ... on ICredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n }\n ... on BasicCredentialsType {\n url\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n url\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n url\n credentials {\n clientId\n clientSecret\n }\n }\n ... on MetaCredentialsType {\n url\n credentials {\n code\n accessToken\n wabaId\n }\n }\n ... on MercadoLivreCredentialsType {\n url\n credentials {\n code\n }\n }\n}\n ";
|
|
1938
1940
|
export declare const GetMetaAuthInfoDocument = "\n query getMetaAuthInfo {\n getMetaAuthInfo {\n configurationId\n metaAppId\n scope\n }\n}\n ";
|
|
1939
|
-
export declare const ListCredentialsDocument = "\n query listCredentials($type: CredentialsType) {\n listCredentials(type: $type) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1941
|
+
export declare const ListCredentialsDocument = "\n query listCredentials($type: CredentialsType) {\n listCredentials(type: $type) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n url\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1940
1942
|
export declare const CountCredentialsDocument = "\n query countCredentials {\n countCredentials\n}\n ";
|
|
1941
1943
|
export declare const GetMercadoLivreAuthInfoDocument = "\n query getMercadoLivreAuthInfo {\n getMercadoLivreAuthInfo {\n authUrl\n }\n}\n ";
|
|
1942
|
-
export declare const CreateCredentialsDocument = "\n mutation createCredentials($input: CreateCredentialsInput!) {\n createCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1943
|
-
export declare const CreateSystemCredentialsDocument = "\n mutation createSystemCredentials($input: CreateCredentialsInput!) {\n createSystemCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1944
|
-
export declare const UpdateCredentialsDocument = "\n mutation updateCredentials($input: UpdateCredentialsInput!) {\n updateCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1945
|
-
export declare const RemoveCredentialsDocument = "\n mutation removeCredentials($input: RemoveCredentialsInput!) {\n removeCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1946
|
-
export declare const RemoveSystemCredentialsDocument = "\n mutation removeSystemCredentials($input: RemoveCredentialsInput!) {\n removeSystemCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1944
|
+
export declare const CreateCredentialsDocument = "\n mutation createCredentials($input: CreateCredentialsInput!) {\n createCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n url\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1945
|
+
export declare const CreateSystemCredentialsDocument = "\n mutation createSystemCredentials($input: CreateCredentialsInput!) {\n createSystemCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n url\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1946
|
+
export declare const UpdateCredentialsDocument = "\n mutation updateCredentials($input: UpdateCredentialsInput!) {\n updateCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n url\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1947
|
+
export declare const RemoveCredentialsDocument = "\n mutation removeCredentials($input: RemoveCredentialsInput!) {\n removeCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n url\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1948
|
+
export declare const RemoveSystemCredentialsDocument = "\n mutation removeSystemCredentials($input: RemoveCredentialsInput!) {\n removeSystemCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n url\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1947
1949
|
export declare const GetCustomerDocument = "\n query getCustomer($identifier: ID!) {\n getCustomer(identifier: $identifier) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1948
1950
|
export declare const BatchGetCustomersByIdDocument = "\n query batchGetCustomersById($ids: [ID!]!) {\n batchGetCustomersById(ids: $ids) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1949
1951
|
export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n nodes {\n ...customer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
package/src/sdks/nucleus.js
CHANGED
package/src/sdks/outsource.d.ts
CHANGED
|
@@ -280,7 +280,9 @@ export declare enum Typenames {
|
|
|
280
280
|
OutsourceInstance = "OutsourceInstance"
|
|
281
281
|
}
|
|
282
282
|
export type UpdateOutsourceInstanceInput = {
|
|
283
|
+
credentialId?: InputMaybe<Scalars['ID']['input']>;
|
|
283
284
|
id: Scalars['ID']['input'];
|
|
285
|
+
linkedInstanceRef?: InputMaybe<Scalars['String']['input']>;
|
|
284
286
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
285
287
|
status?: InputMaybe<AppInstanceStatus>;
|
|
286
288
|
tags?: InputMaybe<Array<Scalars['Tag']['input']>>;
|