@droz-js/sdk 0.25.19 → 0.25.21
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 +0 -4
- package/src/sdks/ai.d.ts +306 -40
- package/src/sdks/ai.js +5 -19
- package/src/sdks/chatwidget.d.ts +4 -6
- package/src/sdks/chatwidget.js +0 -2
- package/src/sdks/nucleus.d.ts +16 -36
- package/src/sdks/nucleus.js +2 -17
package/src/sdks/ai.js
CHANGED
|
@@ -97,6 +97,7 @@ 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. */
|
|
100
101
|
var AiAgentFrequencyLevel;
|
|
101
102
|
(function (AiAgentFrequencyLevel) {
|
|
102
103
|
AiAgentFrequencyLevel["Frequent"] = "FREQUENT";
|
|
@@ -310,7 +311,6 @@ exports.AiAgentSpecFragmentDoc = `
|
|
|
310
311
|
reminderMessage
|
|
311
312
|
renewalMessage
|
|
312
313
|
}
|
|
313
|
-
typingIndicator
|
|
314
314
|
}
|
|
315
315
|
`;
|
|
316
316
|
exports.AiAgentToolExclusionFragmentDoc = `
|
|
@@ -392,7 +392,6 @@ exports.AiAgentToolFragmentDoc = `
|
|
|
392
392
|
availability
|
|
393
393
|
requiresAuthenticatedCustomer
|
|
394
394
|
onFailure
|
|
395
|
-
emptyResultMessage
|
|
396
395
|
customerScope
|
|
397
396
|
returns
|
|
398
397
|
approval
|
|
@@ -423,8 +422,6 @@ exports.AiAgentTraceFragmentDoc = `
|
|
|
423
422
|
steps
|
|
424
423
|
answer
|
|
425
424
|
startedAt
|
|
426
|
-
model
|
|
427
|
-
reasoningEffort
|
|
428
425
|
excludedTools {
|
|
429
426
|
...aiAgentToolExclusion
|
|
430
427
|
}
|
|
@@ -433,7 +430,6 @@ exports.AiAgentTraceFragmentDoc = `
|
|
|
433
430
|
name
|
|
434
431
|
result
|
|
435
432
|
ok
|
|
436
|
-
empty
|
|
437
433
|
connection
|
|
438
434
|
errorClass
|
|
439
435
|
}
|
|
@@ -510,11 +506,6 @@ exports.AiAgentCheckRunFragmentDoc = `
|
|
|
510
506
|
}
|
|
511
507
|
result {
|
|
512
508
|
safeToPublish
|
|
513
|
-
authoring {
|
|
514
|
-
useCases
|
|
515
|
-
procedures
|
|
516
|
-
updatedAt
|
|
517
|
-
}
|
|
518
509
|
reports {
|
|
519
510
|
scenarioId
|
|
520
511
|
runs
|
|
@@ -537,11 +528,6 @@ exports.AiAgentCheckRunFragmentDoc = `
|
|
|
537
528
|
key
|
|
538
529
|
count
|
|
539
530
|
}
|
|
540
|
-
rejectedCalls {
|
|
541
|
-
toolName
|
|
542
|
-
reason
|
|
543
|
-
count
|
|
544
|
-
}
|
|
545
531
|
blockCategories {
|
|
546
532
|
key
|
|
547
533
|
count
|
|
@@ -568,6 +554,10 @@ exports.AiAgentMetricsReportFragmentDoc = `
|
|
|
568
554
|
conversationsHandoffRequested
|
|
569
555
|
resolutionRate
|
|
570
556
|
resolutionDefinition
|
|
557
|
+
conversationsByClassification {
|
|
558
|
+
key
|
|
559
|
+
count
|
|
560
|
+
}
|
|
571
561
|
classificationBreakdown {
|
|
572
562
|
state
|
|
573
563
|
subcategory
|
|
@@ -652,10 +642,6 @@ exports.AiAgentMetricsReportFragmentDoc = `
|
|
|
652
642
|
key
|
|
653
643
|
count
|
|
654
644
|
}
|
|
655
|
-
turnsByModelAndReasoningEffort {
|
|
656
|
-
key
|
|
657
|
-
count
|
|
658
|
-
}
|
|
659
645
|
avgTurnDurationMs
|
|
660
646
|
p95TurnDurationMs
|
|
661
647
|
avgLlmLatencyMs
|
package/src/sdks/chatwidget.d.ts
CHANGED
|
@@ -173,8 +173,6 @@ 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']>;
|
|
178
176
|
};
|
|
179
177
|
export type ChatWidgetMessagePayload = {
|
|
180
178
|
channelId: Scalars['String']['output'];
|
|
@@ -367,7 +365,7 @@ export type UpdateChatWidgetInput = {
|
|
|
367
365
|
};
|
|
368
366
|
export type ChatWidgetFragment = Pick<ChatWidget, 'id' | 'name' | 'allowedDomains' | 'drn' | 'createdAt' | 'updatedAt'>;
|
|
369
367
|
export type ChatWidgetStylingFragment = Pick<ChatWidget, 'headerTitle' | 'mainColor' | 'fontSize' | 'fontFamily' | 'buttonsBorderRadius' | 'headerBorderRadius' | 'messagesBorderRadius' | 'avatarUrl' | 'iconButtonUrl'>;
|
|
370
|
-
export type ChatWidgetMessageFragment = (Pick<ChatWidgetMessage, 'id' | 'type' | 'sessionClosed'
|
|
368
|
+
export type ChatWidgetMessageFragment = (Pick<ChatWidgetMessage, 'id' | 'type' | 'sessionClosed'> & {
|
|
371
369
|
payload: Array<Pick<ChatWidgetMessagePayload, 'from' | 'to' | 'channelId' | 'contentType' | 'content' | 'filename'>>;
|
|
372
370
|
});
|
|
373
371
|
export type GetChatWidgetQueryVariables = Exact<{
|
|
@@ -425,16 +423,16 @@ export type OnChatWidgetMessageSubscription = {
|
|
|
425
423
|
};
|
|
426
424
|
export declare const ChatWidgetFragmentDoc = "\n fragment chatWidget on ChatWidget {\n id\n name\n allowedDomains\n drn\n createdAt\n updatedAt\n}\n ";
|
|
427
425
|
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 ";
|
|
428
|
-
export declare const ChatWidgetMessageFragmentDoc = "\n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n type\n sessionClosed\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 ";
|
|
429
427
|
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 ";
|
|
430
428
|
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 ";
|
|
431
429
|
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 ";
|
|
432
430
|
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 ";
|
|
433
431
|
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 ";
|
|
434
432
|
export declare const StartChatWidgetSessionDocument = "\n mutation startChatWidgetSession($input: StartChatWidgetSessionInput!) {\n startChatWidgetSession(input: $input) {\n id\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
|
|
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 ";
|
|
436
434
|
export declare const CloseChatWidgetSessionDocument = "\n mutation closeChatWidgetSession($input: CloseChatWidgetSessionInput!) {\n closeChatWidgetSession(input: $input)\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
|
|
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 ";
|
|
438
436
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
439
437
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
440
438
|
getChatWidget(variables: GetChatWidgetQueryVariables, options?: C): Promise<GetChatWidgetQuery>;
|
package/src/sdks/chatwidget.js
CHANGED
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -191,7 +191,6 @@ 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'];
|
|
195
194
|
description?: Maybe<Scalars['String']['output']>;
|
|
196
195
|
id: Scalars['ID']['output'];
|
|
197
196
|
instances: Array<AppInstance>;
|
|
@@ -711,7 +710,6 @@ export type NumberMatcherInput = {
|
|
|
711
710
|
export type OAuth2Credentials = {
|
|
712
711
|
clientId: Scalars['String']['output'];
|
|
713
712
|
clientSecret: Scalars['String']['output'];
|
|
714
|
-
scope?: Maybe<Scalars['String']['output']>;
|
|
715
713
|
};
|
|
716
714
|
export type OAuth2CredentialsType = ICredentials & {
|
|
717
715
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -769,7 +767,6 @@ export type Query = {
|
|
|
769
767
|
countCredentials: Scalars['Int']['output'];
|
|
770
768
|
countLiveStateMachineConfigs: Scalars['Int']['output'];
|
|
771
769
|
dynamicSearchCustomer: CustomerSearchResults;
|
|
772
|
-
getActiveSession?: Maybe<Session>;
|
|
773
770
|
getAgent?: Maybe<Agent>;
|
|
774
771
|
getAgentByEmail?: Maybe<Agent>;
|
|
775
772
|
getAgents: Array<Maybe<Agent>>;
|
|
@@ -827,10 +824,6 @@ export type QueryDynamicSearchCustomerArgs = {
|
|
|
827
824
|
data: DynamicSearchInput;
|
|
828
825
|
page?: InputMaybe<Scalars['Number']['input']>;
|
|
829
826
|
};
|
|
830
|
-
export type QueryGetActiveSessionArgs = {
|
|
831
|
-
customer: GetOrCreateCustomerInput;
|
|
832
|
-
triggerDrn: Scalars['ID']['input'];
|
|
833
|
-
};
|
|
834
827
|
export type QueryGetAgentArgs = {
|
|
835
828
|
id: Scalars['ID']['input'];
|
|
836
829
|
};
|
|
@@ -1028,13 +1021,10 @@ export type SecureCronJob = {
|
|
|
1028
1021
|
timestamp: Scalars['DateTime']['output'];
|
|
1029
1022
|
};
|
|
1030
1023
|
export type Session = {
|
|
1031
|
-
aiAgentId?: Maybe<Scalars['ID']['output']>;
|
|
1032
1024
|
attributes: Scalars['JSON']['output'];
|
|
1033
1025
|
context: SessionContext;
|
|
1034
|
-
createdAt: Scalars['DateTime']['output'];
|
|
1035
1026
|
customer: Customer;
|
|
1036
1027
|
customerId: Scalars['ID']['output'];
|
|
1037
|
-
lastMessageAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1038
1028
|
sessionId: Scalars['ID']['output'];
|
|
1039
1029
|
stateMachineId: Scalars['ID']['output'];
|
|
1040
1030
|
status: SessionStatus;
|
|
@@ -1087,7 +1077,6 @@ export type Settings = {
|
|
|
1087
1077
|
groupsMapping: Array<GroupMapping>;
|
|
1088
1078
|
};
|
|
1089
1079
|
export type StartSessionInput = {
|
|
1090
|
-
aiAgentId?: InputMaybe<Scalars['ID']['input']>;
|
|
1091
1080
|
context?: InputMaybe<SessionContextInput>;
|
|
1092
1081
|
customer: GetOrCreateCustomerInput;
|
|
1093
1082
|
stateMachineId?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -1408,7 +1397,7 @@ export type ResendConfirmationEmailMutationVariables = Exact<{
|
|
|
1408
1397
|
input: ResendConfirmationEmailInput;
|
|
1409
1398
|
}>;
|
|
1410
1399
|
export type ResendConfirmationEmailMutation = Pick<Mutation, 'resendConfirmationEmail'>;
|
|
1411
|
-
export type AppFragment = (Pick<App, 'id' | 'type' | 'name' | 'description' | 'color'
|
|
1400
|
+
export type AppFragment = (Pick<App, 'id' | 'type' | 'name' | 'description' | 'color'> & {
|
|
1412
1401
|
channels?: Maybe<Array<Pick<AppChannel, 'id' | 'sources' | 'main' | 'readonly' | 'hidden'>>>;
|
|
1413
1402
|
});
|
|
1414
1403
|
export type AppInstanceFragment = Pick<AppInstance, 'appId' | 'appType' | 'drn' | 'instanceId' | 'name' | 'transitions' | 'createdAt' | 'updatedAt'>;
|
|
@@ -1505,7 +1494,7 @@ type CredentialsWithSecret_MetaCredentialsType_Fragment = (Pick<MetaCredentialsT
|
|
|
1505
1494
|
credentials: Pick<MetaCredentials, 'code' | 'accessToken' | 'wabaId'>;
|
|
1506
1495
|
});
|
|
1507
1496
|
type CredentialsWithSecret_OAuth2CredentialsType_Fragment = (Pick<OAuth2CredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt' | 'url'> & {
|
|
1508
|
-
credentials: Pick<OAuth2Credentials, 'clientId' | 'clientSecret'
|
|
1497
|
+
credentials: Pick<OAuth2Credentials, 'clientId' | 'clientSecret'>;
|
|
1509
1498
|
});
|
|
1510
1499
|
export type CredentialsWithSecretFragment = CredentialsWithSecret_ApiKeyCredentialsType_Fragment | CredentialsWithSecret_BasicCredentialsType_Fragment | CredentialsWithSecret_MercadoLivreCredentialsType_Fragment | CredentialsWithSecret_MetaCredentialsType_Fragment | CredentialsWithSecret_OAuth2CredentialsType_Fragment;
|
|
1511
1500
|
export type GetCredentialsQueryVariables = Exact<{
|
|
@@ -1698,7 +1687,7 @@ export type CheckPermissionsQueryVariables = Exact<{
|
|
|
1698
1687
|
resources: Array<Scalars['String']['input']> | Scalars['String']['input'];
|
|
1699
1688
|
}>;
|
|
1700
1689
|
export type CheckPermissionsQuery = Pick<Query, 'checkPermissions'>;
|
|
1701
|
-
export type SessionFragment = Pick<Session, 'sessionId' | 'customerId' | 'stateMachineId' | '
|
|
1690
|
+
export type SessionFragment = Pick<Session, 'sessionId' | 'customerId' | 'stateMachineId' | 'triggerDrn' | 'status'>;
|
|
1702
1691
|
export type IndexedSessionFragment = Pick<IndexedSession, 'sessionId' | 'customerId' | 'stateMachineId' | 'triggerDrn' | 'status' | 'customer' | 'attributes' | 'context' | 'messages'>;
|
|
1703
1692
|
export type SessionSchemaFragment = (Pick<AppSessionSchemaFields, 'name'> & {
|
|
1704
1693
|
fields: Array<Pick<AppSessionSchemaFieldDescription, 'name' | 'description'>>;
|
|
@@ -1728,13 +1717,6 @@ export type GetSessionQuery = {
|
|
|
1728
1717
|
customer?: CustomerFragment;
|
|
1729
1718
|
} & SessionFragment)>;
|
|
1730
1719
|
};
|
|
1731
|
-
export type GetActiveSessionQueryVariables = Exact<{
|
|
1732
|
-
customer: GetOrCreateCustomerInput;
|
|
1733
|
-
triggerDrn: Scalars['ID']['input'];
|
|
1734
|
-
}>;
|
|
1735
|
-
export type GetActiveSessionQuery = {
|
|
1736
|
-
getActiveSession?: Maybe<SessionFragment>;
|
|
1737
|
-
};
|
|
1738
1720
|
export type GetSessionSchemaQueryVariables = Exact<{
|
|
1739
1721
|
lang?: InputMaybe<Scalars['String']['input']>;
|
|
1740
1722
|
}>;
|
|
@@ -1919,16 +1901,16 @@ export type CreatePresignedUploadUrlMutation = {
|
|
|
1919
1901
|
};
|
|
1920
1902
|
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 ";
|
|
1921
1903
|
export declare const ApiKeyFragmentDoc = "\n fragment apiKey on ApiKeyAgent {\n email\n password\n token\n user {\n ...agent\n }\n}\n ";
|
|
1922
|
-
export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type\n name\n description\n color\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 ";
|
|
1923
1905
|
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 ";
|
|
1924
1906
|
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n ";
|
|
1925
1907
|
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 ";
|
|
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
|
|
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 ";
|
|
1927
1909
|
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 ";
|
|
1928
1910
|
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 ";
|
|
1929
1911
|
export declare const PolicyFragmentDoc = "\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1930
1912
|
export declare const RoleFragmentDoc = "\n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n ";
|
|
1931
|
-
export declare const SessionFragmentDoc = "\n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n
|
|
1913
|
+
export declare const SessionFragmentDoc = "\n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n ";
|
|
1932
1914
|
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 ";
|
|
1933
1915
|
export declare const SessionSchemaFragmentDoc = "\n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1934
1916
|
export declare const SettingsFragmentDoc = "\n fragment settings on Settings {\n doNotAllowUserSignup\n allowedEmailDomains\n groupsMapping {\n from\n to\n }\n}\n ";
|
|
@@ -1958,11 +1940,11 @@ export declare const ChangeAgentRoleDocument = "\n mutation changeAgentRole($
|
|
|
1958
1940
|
export declare const JoinAsSuperAdminDocument = "\n mutation joinAsSuperAdmin($input: JoinAsSuperAdminInput!) {\n joinAsSuperAdmin(input: $input)\n}\n ";
|
|
1959
1941
|
export declare const LeaveOrganizationDocument = "\n mutation leaveOrganization($input: LeaveOrganizationInput!) {\n leaveOrganization(input: $input)\n}\n ";
|
|
1960
1942
|
export declare const ResendConfirmationEmailDocument = "\n mutation resendConfirmationEmail($input: ResendConfirmationEmailInput!) {\n resendConfirmationEmail(input: $input)\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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 ";
|
|
1966
1948
|
export declare const CountAppInstancesDocument = "\n query countAppInstances {\n countAppInstances\n}\n ";
|
|
1967
1949
|
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 ";
|
|
1968
1950
|
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 ";
|
|
@@ -1970,7 +1952,7 @@ export declare const GetFederationMetadataDocument = "\n query getFederationM
|
|
|
1970
1952
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean, $forService: String) {\n amplifyConfig(forDev: $forDev, forService: $forService)\n}\n ";
|
|
1971
1953
|
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 ";
|
|
1972
1954
|
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 ";
|
|
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
|
|
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 ";
|
|
1974
1956
|
export declare const GetMetaAuthInfoDocument = "\n query getMetaAuthInfo {\n getMetaAuthInfo {\n configurationId\n metaAppId\n scope\n }\n}\n ";
|
|
1975
1957
|
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 ";
|
|
1976
1958
|
export declare const CountCredentialsDocument = "\n query countCredentials {\n countCredentials\n}\n ";
|
|
@@ -1998,10 +1980,9 @@ export declare const RemoveCronJobDocument = "\n mutation removeCronJob($inpu
|
|
|
1998
1980
|
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 ";
|
|
1999
1981
|
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 ";
|
|
2000
1982
|
export declare const CheckPermissionsDocument = "\n query checkPermissions($can: Can!, $resources: [String!]!) {\n checkPermissions(can: $can, resources: $resources)\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
|
|
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
|
|
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
|
|
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 ";
|
|
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 ";
|
|
2005
1986
|
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 ";
|
|
2006
1987
|
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 ";
|
|
2007
1988
|
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 ";
|
|
@@ -2009,7 +1990,7 @@ export declare const SetSessionAttributeDocument = "\n mutation setSessionAtt
|
|
|
2009
1990
|
export declare const PatchSessionAttributesDocument = "\n mutation patchSessionAttributes($input: PatchSessionAttributesInput!) {\n patchSessionAttributes(input: $input)\n}\n ";
|
|
2010
1991
|
export declare const AddTagsToSessionAttributesDocument = "\n mutation addTagsToSessionAttributes($input: AddTagsToSessionAttributesInput!) {\n addTagsToSessionAttributes(input: $input)\n}\n ";
|
|
2011
1992
|
export declare const RemoveTagsFromSessionAttributesDocument = "\n mutation removeTagsFromSessionAttributes($input: RemoveTagsFromSessionAttributesInput!) {\n removeTagsFromSessionAttributes(input: $input)\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
|
|
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 ";
|
|
2013
1994
|
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 ";
|
|
2014
1995
|
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 ";
|
|
2015
1996
|
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 ";
|
|
@@ -2096,7 +2077,6 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2096
2077
|
startSession(variables: StartSessionMutationVariables, options?: C): Promise<StartSessionMutation>;
|
|
2097
2078
|
startCustomSession(variables: StartCustomSessionMutationVariables, options?: C): Promise<StartCustomSessionMutation>;
|
|
2098
2079
|
getSession(variables: GetSessionQueryVariables, options?: C): Promise<GetSessionQuery>;
|
|
2099
|
-
getActiveSession(variables: GetActiveSessionQueryVariables, options?: C): Promise<GetActiveSessionQuery>;
|
|
2100
2080
|
getSessionSchema(variables?: GetSessionSchemaQueryVariables, options?: C): Promise<GetSessionSchemaQuery>;
|
|
2101
2081
|
getSessionSchemaForAppId(variables: GetSessionSchemaForAppIdQueryVariables, options?: C): Promise<GetSessionSchemaForAppIdQuery>;
|
|
2102
2082
|
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 =
|
|
5
|
+
exports.SearchSessionsDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = 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 = void 0;
|
|
7
7
|
exports.getSdk = getSdk;
|
|
8
8
|
var AgentStatus;
|
|
9
9
|
(function (AgentStatus) {
|
|
@@ -151,7 +151,6 @@ exports.AppFragmentDoc = `
|
|
|
151
151
|
name
|
|
152
152
|
description
|
|
153
153
|
color
|
|
154
|
-
controlsSessionLifecycle
|
|
155
154
|
channels {
|
|
156
155
|
id
|
|
157
156
|
sources
|
|
@@ -220,7 +219,6 @@ exports.CredentialsWithSecretFragmentDoc = `
|
|
|
220
219
|
credentials {
|
|
221
220
|
clientId
|
|
222
221
|
clientSecret
|
|
223
|
-
scope
|
|
224
222
|
}
|
|
225
223
|
}
|
|
226
224
|
... on MetaCredentialsType {
|
|
@@ -297,11 +295,8 @@ exports.SessionFragmentDoc = `
|
|
|
297
295
|
sessionId
|
|
298
296
|
customerId
|
|
299
297
|
stateMachineId
|
|
300
|
-
aiAgentId
|
|
301
298
|
triggerDrn
|
|
302
299
|
status
|
|
303
|
-
createdAt
|
|
304
|
-
lastMessageAt
|
|
305
300
|
}
|
|
306
301
|
`;
|
|
307
302
|
exports.IndexedSessionFragmentDoc = `
|
|
@@ -918,13 +913,6 @@ exports.GetSessionDocument = `
|
|
|
918
913
|
}
|
|
919
914
|
${exports.SessionFragmentDoc}
|
|
920
915
|
${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}`;
|
|
928
916
|
exports.GetSessionSchemaDocument = `
|
|
929
917
|
query getSessionSchema($lang: String) {
|
|
930
918
|
getSessionSchema(lang: $lang) {
|
|
@@ -1347,9 +1335,6 @@ function getSdk(requester) {
|
|
|
1347
1335
|
getSession(variables, options) {
|
|
1348
1336
|
return requester(exports.GetSessionDocument, variables, options);
|
|
1349
1337
|
},
|
|
1350
|
-
getActiveSession(variables, options) {
|
|
1351
|
-
return requester(exports.GetActiveSessionDocument, variables, options);
|
|
1352
|
-
},
|
|
1353
1338
|
getSessionSchema(variables, options) {
|
|
1354
1339
|
return requester(exports.GetSessionSchemaDocument, variables, options);
|
|
1355
1340
|
},
|