@droz-js/sdk 0.25.21 → 0.25.22
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/nucleus.d.ts +4 -0
- package/src/sdks/ai.d.ts +42 -307
- package/src/sdks/ai.js +20 -5
- package/src/sdks/chatwidget.d.ts +6 -4
- package/src/sdks/chatwidget.js +2 -0
- package/src/sdks/drozchat.d.ts +1 -0
- package/src/sdks/nucleus.d.ts +36 -16
- package/src/sdks/nucleus.js +17 -2
- package/src/sdks/reclameaqui.d.ts +1 -0
package/src/sdks/ai.js
CHANGED
|
@@ -97,7 +97,6 @@ var AiAgentExecutionAutonomy;
|
|
|
97
97
|
AiAgentExecutionAutonomy["Autonomous"] = "autonomous";
|
|
98
98
|
AiAgentExecutionAutonomy["NeedsApproval"] = "needsApproval";
|
|
99
99
|
})(AiAgentExecutionAutonomy || (exports.AiAgentExecutionAutonomy = AiAgentExecutionAutonomy = {}));
|
|
100
|
-
/** Selo de frequência de um item das listas do dashboard: Muito frequente, Frequente ou Pouco frequente. */
|
|
101
100
|
var AiAgentFrequencyLevel;
|
|
102
101
|
(function (AiAgentFrequencyLevel) {
|
|
103
102
|
AiAgentFrequencyLevel["Frequent"] = "FREQUENT";
|
|
@@ -221,6 +220,7 @@ var ToolParameterFormat;
|
|
|
221
220
|
})(ToolParameterFormat || (exports.ToolParameterFormat = ToolParameterFormat = {}));
|
|
222
221
|
var ToolParameterType;
|
|
223
222
|
(function (ToolParameterType) {
|
|
223
|
+
ToolParameterType["Attachment"] = "attachment";
|
|
224
224
|
ToolParameterType["Boolean"] = "boolean";
|
|
225
225
|
ToolParameterType["Number"] = "number";
|
|
226
226
|
ToolParameterType["String"] = "string";
|
|
@@ -311,6 +311,7 @@ exports.AiAgentSpecFragmentDoc = `
|
|
|
311
311
|
reminderMessage
|
|
312
312
|
renewalMessage
|
|
313
313
|
}
|
|
314
|
+
typingIndicator
|
|
314
315
|
}
|
|
315
316
|
`;
|
|
316
317
|
exports.AiAgentToolExclusionFragmentDoc = `
|
|
@@ -392,6 +393,7 @@ exports.AiAgentToolFragmentDoc = `
|
|
|
392
393
|
availability
|
|
393
394
|
requiresAuthenticatedCustomer
|
|
394
395
|
onFailure
|
|
396
|
+
emptyResultMessage
|
|
395
397
|
customerScope
|
|
396
398
|
returns
|
|
397
399
|
approval
|
|
@@ -422,6 +424,8 @@ exports.AiAgentTraceFragmentDoc = `
|
|
|
422
424
|
steps
|
|
423
425
|
answer
|
|
424
426
|
startedAt
|
|
427
|
+
model
|
|
428
|
+
reasoningEffort
|
|
425
429
|
excludedTools {
|
|
426
430
|
...aiAgentToolExclusion
|
|
427
431
|
}
|
|
@@ -430,6 +434,7 @@ exports.AiAgentTraceFragmentDoc = `
|
|
|
430
434
|
name
|
|
431
435
|
result
|
|
432
436
|
ok
|
|
437
|
+
empty
|
|
433
438
|
connection
|
|
434
439
|
errorClass
|
|
435
440
|
}
|
|
@@ -506,6 +511,11 @@ exports.AiAgentCheckRunFragmentDoc = `
|
|
|
506
511
|
}
|
|
507
512
|
result {
|
|
508
513
|
safeToPublish
|
|
514
|
+
authoring {
|
|
515
|
+
useCases
|
|
516
|
+
procedures
|
|
517
|
+
updatedAt
|
|
518
|
+
}
|
|
509
519
|
reports {
|
|
510
520
|
scenarioId
|
|
511
521
|
runs
|
|
@@ -528,6 +538,11 @@ exports.AiAgentCheckRunFragmentDoc = `
|
|
|
528
538
|
key
|
|
529
539
|
count
|
|
530
540
|
}
|
|
541
|
+
rejectedCalls {
|
|
542
|
+
toolName
|
|
543
|
+
reason
|
|
544
|
+
count
|
|
545
|
+
}
|
|
531
546
|
blockCategories {
|
|
532
547
|
key
|
|
533
548
|
count
|
|
@@ -554,10 +569,6 @@ exports.AiAgentMetricsReportFragmentDoc = `
|
|
|
554
569
|
conversationsHandoffRequested
|
|
555
570
|
resolutionRate
|
|
556
571
|
resolutionDefinition
|
|
557
|
-
conversationsByClassification {
|
|
558
|
-
key
|
|
559
|
-
count
|
|
560
|
-
}
|
|
561
572
|
classificationBreakdown {
|
|
562
573
|
state
|
|
563
574
|
subcategory
|
|
@@ -642,6 +653,10 @@ exports.AiAgentMetricsReportFragmentDoc = `
|
|
|
642
653
|
key
|
|
643
654
|
count
|
|
644
655
|
}
|
|
656
|
+
turnsByModelAndReasoningEffort {
|
|
657
|
+
key
|
|
658
|
+
count
|
|
659
|
+
}
|
|
645
660
|
avgTurnDurationMs
|
|
646
661
|
p95TurnDurationMs
|
|
647
662
|
avgLlmLatencyMs
|
package/src/sdks/chatwidget.d.ts
CHANGED
|
@@ -173,6 +173,8 @@ export type ChatWidgetMessage = {
|
|
|
173
173
|
payload: Array<ChatWidgetMessagePayload>;
|
|
174
174
|
sessionClosed: Scalars['Boolean']['output'];
|
|
175
175
|
type: Scalars['String']['output'];
|
|
176
|
+
typing?: Maybe<Scalars['Boolean']['output']>;
|
|
177
|
+
typingExpiresInMs?: Maybe<Scalars['Int']['output']>;
|
|
176
178
|
};
|
|
177
179
|
export type ChatWidgetMessagePayload = {
|
|
178
180
|
channelId: Scalars['String']['output'];
|
|
@@ -365,7 +367,7 @@ export type UpdateChatWidgetInput = {
|
|
|
365
367
|
};
|
|
366
368
|
export type ChatWidgetFragment = Pick<ChatWidget, 'id' | 'name' | 'allowedDomains' | 'drn' | 'createdAt' | 'updatedAt'>;
|
|
367
369
|
export type ChatWidgetStylingFragment = Pick<ChatWidget, 'headerTitle' | 'mainColor' | 'fontSize' | 'fontFamily' | 'buttonsBorderRadius' | 'headerBorderRadius' | 'messagesBorderRadius' | 'avatarUrl' | 'iconButtonUrl'>;
|
|
368
|
-
export type ChatWidgetMessageFragment = (Pick<ChatWidgetMessage, 'id' | 'type' | 'sessionClosed'> & {
|
|
370
|
+
export type ChatWidgetMessageFragment = (Pick<ChatWidgetMessage, 'id' | 'type' | 'sessionClosed' | 'typing' | 'typingExpiresInMs'> & {
|
|
369
371
|
payload: Array<Pick<ChatWidgetMessagePayload, 'from' | 'to' | 'channelId' | 'contentType' | 'content' | 'filename'>>;
|
|
370
372
|
});
|
|
371
373
|
export type GetChatWidgetQueryVariables = Exact<{
|
|
@@ -423,16 +425,16 @@ export type OnChatWidgetMessageSubscription = {
|
|
|
423
425
|
};
|
|
424
426
|
export declare const ChatWidgetFragmentDoc = "\n fragment chatWidget on ChatWidget {\n id\n name\n allowedDomains\n drn\n createdAt\n updatedAt\n}\n ";
|
|
425
427
|
export declare const ChatWidgetStylingFragmentDoc = "\n fragment chatWidgetStyling on ChatWidget {\n headerTitle\n mainColor\n fontSize\n fontFamily\n buttonsBorderRadius\n headerBorderRadius\n messagesBorderRadius\n avatarUrl\n iconButtonUrl\n}\n ";
|
|
426
|
-
export declare const ChatWidgetMessageFragmentDoc = "\n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n type\n sessionClosed\n payload {\n from\n to\n channelId\n contentType\n content\n filename\n }\n}\n ";
|
|
428
|
+
export declare const ChatWidgetMessageFragmentDoc = "\n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n type\n sessionClosed\n typing\n typingExpiresInMs\n payload {\n from\n to\n channelId\n contentType\n content\n filename\n }\n}\n ";
|
|
427
429
|
export declare const GetChatWidgetDocument = "\n query getChatWidget($id: ID!, $stylesOnly: Boolean = false) {\n getChatWidget(id: $id) {\n ...chatWidget @skip(if: $stylesOnly)\n ...chatWidgetStyling\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n allowedDomains\n drn\n createdAt\n updatedAt\n}\n \n\n fragment chatWidgetStyling on ChatWidget {\n headerTitle\n mainColor\n fontSize\n fontFamily\n buttonsBorderRadius\n headerBorderRadius\n messagesBorderRadius\n avatarUrl\n iconButtonUrl\n}\n ";
|
|
428
430
|
export declare const ListChatWidgetsDocument = "\n query listChatWidgets {\n listChatWidgets {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n allowedDomains\n drn\n createdAt\n updatedAt\n}\n ";
|
|
429
431
|
export declare const CreateChatWidgetDocument = "\n mutation createChatWidget($input: CreateChatWidgetInput!) {\n createChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n allowedDomains\n drn\n createdAt\n updatedAt\n}\n ";
|
|
430
432
|
export declare const UpdateChatWidgetDocument = "\n mutation updateChatWidget($input: UpdateChatWidgetInput!) {\n updateChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n allowedDomains\n drn\n createdAt\n updatedAt\n}\n ";
|
|
431
433
|
export declare const RemoveChatWidgetDocument = "\n mutation removeChatWidget($input: RemoveChatWidgetInput!) {\n removeChatWidget(input: $input) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n allowedDomains\n drn\n createdAt\n updatedAt\n}\n ";
|
|
432
434
|
export declare const StartChatWidgetSessionDocument = "\n mutation startChatWidgetSession($input: StartChatWidgetSessionInput!) {\n startChatWidgetSession(input: $input) {\n id\n }\n}\n ";
|
|
433
|
-
export declare const SendMessageToChatWidgetDocument = "\n mutation sendMessageToChatWidget($input: SendMessageToChatWidgetInput!) {\n sendMessageToChatWidget(input: $input) {\n ...chatWidgetMessage\n }\n}\n \n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n type\n sessionClosed\n payload {\n from\n to\n channelId\n contentType\n content\n filename\n }\n}\n ";
|
|
435
|
+
export declare const SendMessageToChatWidgetDocument = "\n mutation sendMessageToChatWidget($input: SendMessageToChatWidgetInput!) {\n sendMessageToChatWidget(input: $input) {\n ...chatWidgetMessage\n }\n}\n \n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n type\n sessionClosed\n typing\n typingExpiresInMs\n payload {\n from\n to\n channelId\n contentType\n content\n filename\n }\n}\n ";
|
|
434
436
|
export declare const CloseChatWidgetSessionDocument = "\n mutation closeChatWidgetSession($input: CloseChatWidgetSessionInput!) {\n closeChatWidgetSession(input: $input)\n}\n ";
|
|
435
|
-
export declare const OnChatWidgetMessageDocument = "\n subscription onChatWidgetMessage($sessionId: ID!) {\n onChatWidgetMessage(sessionId: $sessionId) {\n ...chatWidgetMessage\n }\n}\n \n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n type\n sessionClosed\n payload {\n from\n to\n channelId\n contentType\n content\n filename\n }\n}\n ";
|
|
437
|
+
export declare const OnChatWidgetMessageDocument = "\n subscription onChatWidgetMessage($sessionId: ID!) {\n onChatWidgetMessage(sessionId: $sessionId) {\n ...chatWidgetMessage\n }\n}\n \n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n type\n sessionClosed\n typing\n typingExpiresInMs\n payload {\n from\n to\n channelId\n contentType\n content\n filename\n }\n}\n ";
|
|
436
438
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
437
439
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
438
440
|
getChatWidget(variables: GetChatWidgetQueryVariables, options?: C): Promise<GetChatWidgetQuery>;
|
package/src/sdks/chatwidget.js
CHANGED
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -347,6 +347,7 @@ export type CreateQuickAnswerInput = {
|
|
|
347
347
|
export type CreateTicketInput = {
|
|
348
348
|
channelId: Scalars['ID']['input'];
|
|
349
349
|
customerId: Scalars['ID']['input'];
|
|
350
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
350
351
|
subject: Scalars['String']['input'];
|
|
351
352
|
};
|
|
352
353
|
export type CreateTicketMessageEnvelopeAttachmentInput = {
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -191,6 +191,7 @@ export type ApiKeyCredentialsType = ICredentials & {
|
|
|
191
191
|
export type App = {
|
|
192
192
|
channels?: Maybe<Array<AppChannel>>;
|
|
193
193
|
color: Scalars['String']['output'];
|
|
194
|
+
controlsSessionLifecycle: Scalars['Boolean']['output'];
|
|
194
195
|
description?: Maybe<Scalars['String']['output']>;
|
|
195
196
|
id: Scalars['ID']['output'];
|
|
196
197
|
instances: Array<AppInstance>;
|
|
@@ -710,6 +711,7 @@ export type NumberMatcherInput = {
|
|
|
710
711
|
export type OAuth2Credentials = {
|
|
711
712
|
clientId: Scalars['String']['output'];
|
|
712
713
|
clientSecret: Scalars['String']['output'];
|
|
714
|
+
scope?: Maybe<Scalars['String']['output']>;
|
|
713
715
|
};
|
|
714
716
|
export type OAuth2CredentialsType = ICredentials & {
|
|
715
717
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -767,6 +769,7 @@ export type Query = {
|
|
|
767
769
|
countCredentials: Scalars['Int']['output'];
|
|
768
770
|
countLiveStateMachineConfigs: Scalars['Int']['output'];
|
|
769
771
|
dynamicSearchCustomer: CustomerSearchResults;
|
|
772
|
+
getActiveSession?: Maybe<Session>;
|
|
770
773
|
getAgent?: Maybe<Agent>;
|
|
771
774
|
getAgentByEmail?: Maybe<Agent>;
|
|
772
775
|
getAgents: Array<Maybe<Agent>>;
|
|
@@ -824,6 +827,10 @@ export type QueryDynamicSearchCustomerArgs = {
|
|
|
824
827
|
data: DynamicSearchInput;
|
|
825
828
|
page?: InputMaybe<Scalars['Number']['input']>;
|
|
826
829
|
};
|
|
830
|
+
export type QueryGetActiveSessionArgs = {
|
|
831
|
+
customer: GetOrCreateCustomerInput;
|
|
832
|
+
triggerDrn: Scalars['ID']['input'];
|
|
833
|
+
};
|
|
827
834
|
export type QueryGetAgentArgs = {
|
|
828
835
|
id: Scalars['ID']['input'];
|
|
829
836
|
};
|
|
@@ -1021,10 +1028,13 @@ export type SecureCronJob = {
|
|
|
1021
1028
|
timestamp: Scalars['DateTime']['output'];
|
|
1022
1029
|
};
|
|
1023
1030
|
export type Session = {
|
|
1031
|
+
aiAgentId?: Maybe<Scalars['ID']['output']>;
|
|
1024
1032
|
attributes: Scalars['JSON']['output'];
|
|
1025
1033
|
context: SessionContext;
|
|
1034
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1026
1035
|
customer: Customer;
|
|
1027
1036
|
customerId: Scalars['ID']['output'];
|
|
1037
|
+
lastMessageAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1028
1038
|
sessionId: Scalars['ID']['output'];
|
|
1029
1039
|
stateMachineId: Scalars['ID']['output'];
|
|
1030
1040
|
status: SessionStatus;
|
|
@@ -1077,6 +1087,7 @@ export type Settings = {
|
|
|
1077
1087
|
groupsMapping: Array<GroupMapping>;
|
|
1078
1088
|
};
|
|
1079
1089
|
export type StartSessionInput = {
|
|
1090
|
+
aiAgentId?: InputMaybe<Scalars['ID']['input']>;
|
|
1080
1091
|
context?: InputMaybe<SessionContextInput>;
|
|
1081
1092
|
customer: GetOrCreateCustomerInput;
|
|
1082
1093
|
stateMachineId?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -1397,7 +1408,7 @@ export type ResendConfirmationEmailMutationVariables = Exact<{
|
|
|
1397
1408
|
input: ResendConfirmationEmailInput;
|
|
1398
1409
|
}>;
|
|
1399
1410
|
export type ResendConfirmationEmailMutation = Pick<Mutation, 'resendConfirmationEmail'>;
|
|
1400
|
-
export type AppFragment = (Pick<App, 'id' | 'type' | 'name' | 'description' | 'color'> & {
|
|
1411
|
+
export type AppFragment = (Pick<App, 'id' | 'type' | 'name' | 'description' | 'color' | 'controlsSessionLifecycle'> & {
|
|
1401
1412
|
channels?: Maybe<Array<Pick<AppChannel, 'id' | 'sources' | 'main' | 'readonly' | 'hidden'>>>;
|
|
1402
1413
|
});
|
|
1403
1414
|
export type AppInstanceFragment = Pick<AppInstance, 'appId' | 'appType' | 'drn' | 'instanceId' | 'name' | 'transitions' | 'createdAt' | 'updatedAt'>;
|
|
@@ -1494,7 +1505,7 @@ type CredentialsWithSecret_MetaCredentialsType_Fragment = (Pick<MetaCredentialsT
|
|
|
1494
1505
|
credentials: Pick<MetaCredentials, 'code' | 'accessToken' | 'wabaId'>;
|
|
1495
1506
|
});
|
|
1496
1507
|
type CredentialsWithSecret_OAuth2CredentialsType_Fragment = (Pick<OAuth2CredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt' | 'url'> & {
|
|
1497
|
-
credentials: Pick<OAuth2Credentials, 'clientId' | 'clientSecret'>;
|
|
1508
|
+
credentials: Pick<OAuth2Credentials, 'clientId' | 'clientSecret' | 'scope'>;
|
|
1498
1509
|
});
|
|
1499
1510
|
export type CredentialsWithSecretFragment = CredentialsWithSecret_ApiKeyCredentialsType_Fragment | CredentialsWithSecret_BasicCredentialsType_Fragment | CredentialsWithSecret_MercadoLivreCredentialsType_Fragment | CredentialsWithSecret_MetaCredentialsType_Fragment | CredentialsWithSecret_OAuth2CredentialsType_Fragment;
|
|
1500
1511
|
export type GetCredentialsQueryVariables = Exact<{
|
|
@@ -1687,7 +1698,7 @@ export type CheckPermissionsQueryVariables = Exact<{
|
|
|
1687
1698
|
resources: Array<Scalars['String']['input']> | Scalars['String']['input'];
|
|
1688
1699
|
}>;
|
|
1689
1700
|
export type CheckPermissionsQuery = Pick<Query, 'checkPermissions'>;
|
|
1690
|
-
export type SessionFragment = Pick<Session, 'sessionId' | 'customerId' | 'stateMachineId' | 'triggerDrn' | 'status'>;
|
|
1701
|
+
export type SessionFragment = Pick<Session, 'sessionId' | 'customerId' | 'stateMachineId' | 'aiAgentId' | 'triggerDrn' | 'status' | 'createdAt' | 'lastMessageAt'>;
|
|
1691
1702
|
export type IndexedSessionFragment = Pick<IndexedSession, 'sessionId' | 'customerId' | 'stateMachineId' | 'triggerDrn' | 'status' | 'customer' | 'attributes' | 'context' | 'messages'>;
|
|
1692
1703
|
export type SessionSchemaFragment = (Pick<AppSessionSchemaFields, 'name'> & {
|
|
1693
1704
|
fields: Array<Pick<AppSessionSchemaFieldDescription, 'name' | 'description'>>;
|
|
@@ -1717,6 +1728,13 @@ export type GetSessionQuery = {
|
|
|
1717
1728
|
customer?: CustomerFragment;
|
|
1718
1729
|
} & SessionFragment)>;
|
|
1719
1730
|
};
|
|
1731
|
+
export type GetActiveSessionQueryVariables = Exact<{
|
|
1732
|
+
customer: GetOrCreateCustomerInput;
|
|
1733
|
+
triggerDrn: Scalars['ID']['input'];
|
|
1734
|
+
}>;
|
|
1735
|
+
export type GetActiveSessionQuery = {
|
|
1736
|
+
getActiveSession?: Maybe<SessionFragment>;
|
|
1737
|
+
};
|
|
1720
1738
|
export type GetSessionSchemaQueryVariables = Exact<{
|
|
1721
1739
|
lang?: InputMaybe<Scalars['String']['input']>;
|
|
1722
1740
|
}>;
|
|
@@ -1901,16 +1919,16 @@ export type CreatePresignedUploadUrlMutation = {
|
|
|
1901
1919
|
};
|
|
1902
1920
|
export declare const AgentFragmentDoc = "\n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n bio\n department\n apps\n roles\n status\n statusChangedAt\n cognitoUserStatus\n systemAgent\n removed\n deactivated\n groupMappings\n jobTitle\n phone\n createdAt\n updatedAt\n}\n ";
|
|
1903
1921
|
export declare const ApiKeyFragmentDoc = "\n fragment apiKey on ApiKeyAgent {\n email\n password\n token\n user {\n ...agent\n }\n}\n ";
|
|
1904
|
-
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 ";
|
|
1922
|
+
export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type\n name\n description\n color\n controlsSessionLifecycle\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1905
1923
|
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 ";
|
|
1906
1924
|
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n ";
|
|
1907
1925
|
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 ";
|
|
1908
|
-
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 ";
|
|
1926
|
+
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 scope\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 ";
|
|
1909
1927
|
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 ";
|
|
1910
1928
|
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 ";
|
|
1911
1929
|
export declare const PolicyFragmentDoc = "\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1912
1930
|
export declare const RoleFragmentDoc = "\n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n ";
|
|
1913
|
-
export declare const SessionFragmentDoc = "\n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n ";
|
|
1931
|
+
export declare const SessionFragmentDoc = "\n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n aiAgentId\n triggerDrn\n status\n createdAt\n lastMessageAt\n}\n ";
|
|
1914
1932
|
export declare const IndexedSessionFragmentDoc = "\n fragment indexedSession on IndexedSession {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n customer\n attributes\n context\n messages\n}\n ";
|
|
1915
1933
|
export declare const SessionSchemaFragmentDoc = "\n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1916
1934
|
export declare const SettingsFragmentDoc = "\n fragment settings on Settings {\n doNotAllowUserSignup\n allowedEmailDomains\n groupsMapping {\n from\n to\n }\n}\n ";
|
|
@@ -1940,11 +1958,11 @@ export declare const ChangeAgentRoleDocument = "\n mutation changeAgentRole($
|
|
|
1940
1958
|
export declare const JoinAsSuperAdminDocument = "\n mutation joinAsSuperAdmin($input: JoinAsSuperAdminInput!) {\n joinAsSuperAdmin(input: $input)\n}\n ";
|
|
1941
1959
|
export declare const LeaveOrganizationDocument = "\n mutation leaveOrganization($input: LeaveOrganizationInput!) {\n leaveOrganization(input: $input)\n}\n ";
|
|
1942
1960
|
export declare const ResendConfirmationEmailDocument = "\n mutation resendConfirmationEmail($input: ResendConfirmationEmailInput!) {\n resendConfirmationEmail(input: $input)\n}\n ";
|
|
1943
|
-
export declare const GetAppDocument = "\n query getApp($appId: ID!, $withInstances: Boolean = false) {\n getApp(appId: $appId) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \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 \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1944
|
-
export declare const ListAppsDocument = "\n query listApps($type: AppType, $withInstances: Boolean = false) {\n listApps(type: $type) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \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 \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1945
|
-
export declare const GetAppInstanceDocument = "\n query getAppInstance($drn: ID!) {\n appInstance: getAppInstance(drn: $drn) {\n ...appInstance\n }\n app: getApp(appId: $drn) {\n ...app\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n \n\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 ";
|
|
1946
|
-
export declare const GetAppInstancesDocument = "\n query getAppInstances($drns: [ID!]!) {\n getAppInstances(drns: $drns) {\n ...appInstance\n app {\n ...app\n }\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n \n\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 ";
|
|
1947
|
-
export declare const ListAppInstancesDocument = "\n query listAppInstances($appId: ID, $appType: AppType, $withApp: Boolean = false) {\n listAppInstances(appId: $appId, appType: $appType) {\n ...appInstance\n app @include(if: $withApp) {\n ...app\n }\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n \n\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 ";
|
|
1961
|
+
export declare const GetAppDocument = "\n query getApp($appId: ID!, $withInstances: Boolean = false) {\n getApp(appId: $appId) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n color\n controlsSessionLifecycle\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1962
|
+
export declare const ListAppsDocument = "\n query listApps($type: AppType, $withInstances: Boolean = false) {\n listApps(type: $type) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n color\n controlsSessionLifecycle\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1963
|
+
export declare const GetAppInstanceDocument = "\n query getAppInstance($drn: ID!) {\n appInstance: getAppInstance(drn: $drn) {\n ...appInstance\n }\n app: getApp(appId: $drn) {\n ...app\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n color\n controlsSessionLifecycle\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1964
|
+
export declare const GetAppInstancesDocument = "\n query getAppInstances($drns: [ID!]!) {\n getAppInstances(drns: $drns) {\n ...appInstance\n app {\n ...app\n }\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n color\n controlsSessionLifecycle\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1965
|
+
export declare const ListAppInstancesDocument = "\n query listAppInstances($appId: ID, $appType: AppType, $withApp: Boolean = false) {\n listAppInstances(appId: $appId, appType: $appType) {\n ...appInstance\n app @include(if: $withApp) {\n ...app\n }\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n color\n controlsSessionLifecycle\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1948
1966
|
export declare const CountAppInstancesDocument = "\n query countAppInstances {\n countAppInstances\n}\n ";
|
|
1949
1967
|
export declare const RegisterAppInstanceDocument = "\n mutation registerAppInstance($input: RegisterAppInstanceInput!) {\n registerAppInstance(input: $input) {\n ...appInstance\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1950
1968
|
export declare const UnregisterAppInstanceDocument = "\n mutation unregisterAppInstance($input: UnregisterAppInstanceInput!) {\n unregisterAppInstance(input: $input) {\n ...appInstance\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n instanceId\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1952,7 +1970,7 @@ export declare const GetFederationMetadataDocument = "\n query getFederationM
|
|
|
1952
1970
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean, $forService: String) {\n amplifyConfig(forDev: $forDev, forService: $forService)\n}\n ";
|
|
1953
1971
|
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 ";
|
|
1954
1972
|
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 ";
|
|
1955
|
-
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 ";
|
|
1973
|
+
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 scope\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 ";
|
|
1956
1974
|
export declare const GetMetaAuthInfoDocument = "\n query getMetaAuthInfo {\n getMetaAuthInfo {\n configurationId\n metaAppId\n scope\n }\n}\n ";
|
|
1957
1975
|
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 ";
|
|
1958
1976
|
export declare const CountCredentialsDocument = "\n query countCredentials {\n countCredentials\n}\n ";
|
|
@@ -1980,9 +1998,10 @@ export declare const RemoveCronJobDocument = "\n mutation removeCronJob($inpu
|
|
|
1980
1998
|
export declare const ListSystemRolesDocument = "\n query listSystemRoles {\n listSystemRoles {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1981
1999
|
export declare const GetSystemRoleDocument = "\n query getSystemRole($id: SystemRole!) {\n getSystemRole(id: $id) {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1982
2000
|
export declare const CheckPermissionsDocument = "\n query checkPermissions($can: Can!, $resources: [String!]!) {\n checkPermissions(can: $can, resources: $resources)\n}\n ";
|
|
1983
|
-
export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\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 ";
|
|
1984
|
-
export declare const StartCustomSessionDocument = "\n mutation startCustomSession($input: StartSessionInput!) {\n startCustomSession(input: $input) {\n ...session\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n ";
|
|
1985
|
-
export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\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 ";
|
|
2001
|
+
export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n aiAgentId\n triggerDrn\n status\n createdAt\n lastMessageAt\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 ";
|
|
2002
|
+
export declare const StartCustomSessionDocument = "\n mutation startCustomSession($input: StartSessionInput!) {\n startCustomSession(input: $input) {\n ...session\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n aiAgentId\n triggerDrn\n status\n createdAt\n lastMessageAt\n}\n ";
|
|
2003
|
+
export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n aiAgentId\n triggerDrn\n status\n createdAt\n lastMessageAt\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 ";
|
|
2004
|
+
export declare const GetActiveSessionDocument = "\n query getActiveSession($customer: GetOrCreateCustomerInput!, $triggerDrn: ID!) {\n getActiveSession(customer: $customer, triggerDrn: $triggerDrn) {\n ...session\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n aiAgentId\n triggerDrn\n status\n createdAt\n lastMessageAt\n}\n ";
|
|
1986
2005
|
export declare const GetSessionSchemaDocument = "\n query getSessionSchema($lang: String) {\n getSessionSchema(lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1987
2006
|
export declare const GetSessionSchemaForAppIdDocument = "\n query getSessionSchemaForAppId($appId: ID!, $lang: String) {\n getSessionSchemaForAppId(appId: $appId, lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1988
2007
|
export declare const SearchSessionsDocument = "\n query searchSessions($q: String, $filters: [SessionSearchFilterInput!], $page: Number, $perPage: Number) {\n searchSessions(q: $q, filters: $filters, page: $page, perPage: $perPage) {\n nodes {\n ...indexedSession\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n }\n}\n \n fragment indexedSession on IndexedSession {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n customer\n attributes\n context\n messages\n}\n ";
|
|
@@ -1990,7 +2009,7 @@ export declare const SetSessionAttributeDocument = "\n mutation setSessionAtt
|
|
|
1990
2009
|
export declare const PatchSessionAttributesDocument = "\n mutation patchSessionAttributes($input: PatchSessionAttributesInput!) {\n patchSessionAttributes(input: $input)\n}\n ";
|
|
1991
2010
|
export declare const AddTagsToSessionAttributesDocument = "\n mutation addTagsToSessionAttributes($input: AddTagsToSessionAttributesInput!) {\n addTagsToSessionAttributes(input: $input)\n}\n ";
|
|
1992
2011
|
export declare const RemoveTagsFromSessionAttributesDocument = "\n mutation removeTagsFromSessionAttributes($input: RemoveTagsFromSessionAttributesInput!) {\n removeTagsFromSessionAttributes(input: $input)\n}\n ";
|
|
1993
|
-
export declare const ReactivateSessionDocument = "\n mutation reactivateSession($sessionId: ID!) {\n reactivateSession(sessionId: $sessionId) {\n ...session\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n ";
|
|
2012
|
+
export declare const ReactivateSessionDocument = "\n mutation reactivateSession($sessionId: ID!) {\n reactivateSession(sessionId: $sessionId) {\n ...session\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n aiAgentId\n triggerDrn\n status\n createdAt\n lastMessageAt\n}\n ";
|
|
1994
2013
|
export declare const GetSettingsDocument = "\n query getSettings {\n getSettings {\n ...settings\n }\n}\n \n fragment settings on Settings {\n doNotAllowUserSignup\n allowedEmailDomains\n groupsMapping {\n from\n to\n }\n}\n ";
|
|
1995
2014
|
export declare const UpdateSettingsDocument = "\n mutation updateSettings($input: UpdateSettingsInput!) {\n updateSettings(input: $input) {\n ...settings\n }\n}\n \n fragment settings on Settings {\n doNotAllowUserSignup\n allowedEmailDomains\n groupsMapping {\n from\n to\n }\n}\n ";
|
|
1996
2015
|
export declare const GetStateMachineDocument = "\n query getStateMachine($id: ID!, $versionId: ID!) {\n getStateMachineConfig(id: $id, versionId: $versionId) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n createdAt\n updatedAt\n}\n \n\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
@@ -2077,6 +2096,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2077
2096
|
startSession(variables: StartSessionMutationVariables, options?: C): Promise<StartSessionMutation>;
|
|
2078
2097
|
startCustomSession(variables: StartCustomSessionMutationVariables, options?: C): Promise<StartCustomSessionMutation>;
|
|
2079
2098
|
getSession(variables: GetSessionQueryVariables, options?: C): Promise<GetSessionQuery>;
|
|
2099
|
+
getActiveSession(variables: GetActiveSessionQueryVariables, options?: C): Promise<GetActiveSessionQuery>;
|
|
2080
2100
|
getSessionSchema(variables?: GetSessionSchemaQueryVariables, options?: C): Promise<GetSessionSchemaQuery>;
|
|
2081
2101
|
getSessionSchemaForAppId(variables: GetSessionSchemaForAppIdQueryVariables, options?: C): Promise<GetSessionSchemaForAppIdQuery>;
|
|
2082
2102
|
searchSessions(variables?: SearchSessionsQueryVariables, options?: C): Promise<SearchSessionsQuery>;
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.ChangeAgentStatusDocument = exports.UpdateMyProfileDocument = exports.SearchAgentsDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentByEmailDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SettingsFragmentDoc = exports.SessionSchemaFragmentDoc = exports.IndexedSessionFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.SystemRole = exports.StateMachineConfigStatus = exports.SessionStatus = exports.PatchOperation = exports.OperationMode = exports.CustomerStatus = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = exports.AgentStatus = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.serviceName = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListStateMachineConfigsByStatusDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.UpdateSettingsDocument = exports.GetSettingsDocument = exports.ReactivateSessionDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = void 0;
|
|
5
|
+
exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetActiveSessionDocument = exports.GetSessionDocument = exports.StartCustomSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.DeleteCustomerDocument = exports.UpdateCustomerDocument = exports.RefreshContactDataDocument = exports.GetOrCreateCustomerDocument = exports.CreateCustomerDocument = exports.DynamicSearchCustomerDocument = exports.SearchCustomersDocument = exports.ListCustomersDocument = exports.BatchGetCustomersByIdDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.GetMercadoLivreAuthInfoDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetMetaAuthInfoDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.GetFederationMetadataDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.ResendConfirmationEmailDocument = exports.LeaveOrganizationDocument = exports.JoinAsSuperAdminDocument = exports.ChangeAgentRoleDocument = void 0;
|
|
6
|
+
exports.serviceName = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListStateMachineConfigsByStatusDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.UpdateSettingsDocument = exports.GetSettingsDocument = exports.ReactivateSessionDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.SearchSessionsDocument = void 0;
|
|
7
7
|
exports.getSdk = getSdk;
|
|
8
8
|
var AgentStatus;
|
|
9
9
|
(function (AgentStatus) {
|
|
@@ -151,6 +151,7 @@ exports.AppFragmentDoc = `
|
|
|
151
151
|
name
|
|
152
152
|
description
|
|
153
153
|
color
|
|
154
|
+
controlsSessionLifecycle
|
|
154
155
|
channels {
|
|
155
156
|
id
|
|
156
157
|
sources
|
|
@@ -219,6 +220,7 @@ exports.CredentialsWithSecretFragmentDoc = `
|
|
|
219
220
|
credentials {
|
|
220
221
|
clientId
|
|
221
222
|
clientSecret
|
|
223
|
+
scope
|
|
222
224
|
}
|
|
223
225
|
}
|
|
224
226
|
... on MetaCredentialsType {
|
|
@@ -295,8 +297,11 @@ exports.SessionFragmentDoc = `
|
|
|
295
297
|
sessionId
|
|
296
298
|
customerId
|
|
297
299
|
stateMachineId
|
|
300
|
+
aiAgentId
|
|
298
301
|
triggerDrn
|
|
299
302
|
status
|
|
303
|
+
createdAt
|
|
304
|
+
lastMessageAt
|
|
300
305
|
}
|
|
301
306
|
`;
|
|
302
307
|
exports.IndexedSessionFragmentDoc = `
|
|
@@ -913,6 +918,13 @@ exports.GetSessionDocument = `
|
|
|
913
918
|
}
|
|
914
919
|
${exports.SessionFragmentDoc}
|
|
915
920
|
${exports.CustomerFragmentDoc}`;
|
|
921
|
+
exports.GetActiveSessionDocument = `
|
|
922
|
+
query getActiveSession($customer: GetOrCreateCustomerInput!, $triggerDrn: ID!) {
|
|
923
|
+
getActiveSession(customer: $customer, triggerDrn: $triggerDrn) {
|
|
924
|
+
...session
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
${exports.SessionFragmentDoc}`;
|
|
916
928
|
exports.GetSessionSchemaDocument = `
|
|
917
929
|
query getSessionSchema($lang: String) {
|
|
918
930
|
getSessionSchema(lang: $lang) {
|
|
@@ -1335,6 +1347,9 @@ function getSdk(requester) {
|
|
|
1335
1347
|
getSession(variables, options) {
|
|
1336
1348
|
return requester(exports.GetSessionDocument, variables, options);
|
|
1337
1349
|
},
|
|
1350
|
+
getActiveSession(variables, options) {
|
|
1351
|
+
return requester(exports.GetActiveSessionDocument, variables, options);
|
|
1352
|
+
},
|
|
1338
1353
|
getSessionSchema(variables, options) {
|
|
1339
1354
|
return requester(exports.GetSessionSchemaDocument, variables, options);
|
|
1340
1355
|
},
|
|
@@ -453,6 +453,7 @@ export type UpdateReclameAquiInstanceInput = {
|
|
|
453
453
|
closeSessionOnRatingStatuses?: InputMaybe<Scalars['Boolean']['input']>;
|
|
454
454
|
companyId?: InputMaybe<Scalars['String']['input']>;
|
|
455
455
|
credentialId?: InputMaybe<Scalars['ID']['input']>;
|
|
456
|
+
cutoffSyncDate?: InputMaybe<Scalars['Date']['input']>;
|
|
456
457
|
id: Scalars['ID']['input'];
|
|
457
458
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
458
459
|
status?: InputMaybe<AppInstanceStatus>;
|