@droz-js/sdk 0.25.18 → 0.25.20

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/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";
@@ -424,6 +424,8 @@ exports.AiAgentTraceFragmentDoc = `
424
424
  steps
425
425
  answer
426
426
  startedAt
427
+ model
428
+ reasoningEffort
427
429
  excludedTools {
428
430
  ...aiAgentToolExclusion
429
431
  }
@@ -536,6 +538,11 @@ exports.AiAgentCheckRunFragmentDoc = `
536
538
  key
537
539
  count
538
540
  }
541
+ rejectedCalls {
542
+ toolName
543
+ reason
544
+ count
545
+ }
539
546
  blockCategories {
540
547
  key
541
548
  count
@@ -646,6 +653,10 @@ exports.AiAgentMetricsReportFragmentDoc = `
646
653
  key
647
654
  count
648
655
  }
656
+ turnsByModelAndReasoningEffort {
657
+ key
658
+ count
659
+ }
649
660
  avgTurnDurationMs
650
661
  p95TurnDurationMs
651
662
  avgLlmLatencyMs
@@ -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 = {
@@ -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'];
@@ -1026,6 +1028,7 @@ export type SecureCronJob = {
1026
1028
  timestamp: Scalars['DateTime']['output'];
1027
1029
  };
1028
1030
  export type Session = {
1031
+ aiAgentId?: Maybe<Scalars['ID']['output']>;
1029
1032
  attributes: Scalars['JSON']['output'];
1030
1033
  context: SessionContext;
1031
1034
  createdAt: Scalars['DateTime']['output'];
@@ -1084,6 +1087,7 @@ export type Settings = {
1084
1087
  groupsMapping: Array<GroupMapping>;
1085
1088
  };
1086
1089
  export type StartSessionInput = {
1090
+ aiAgentId?: InputMaybe<Scalars['ID']['input']>;
1087
1091
  context?: InputMaybe<SessionContextInput>;
1088
1092
  customer: GetOrCreateCustomerInput;
1089
1093
  stateMachineId?: InputMaybe<Scalars['ID']['input']>;
@@ -1404,7 +1408,7 @@ export type ResendConfirmationEmailMutationVariables = Exact<{
1404
1408
  input: ResendConfirmationEmailInput;
1405
1409
  }>;
1406
1410
  export type ResendConfirmationEmailMutation = Pick<Mutation, 'resendConfirmationEmail'>;
1407
- export type AppFragment = (Pick<App, 'id' | 'type' | 'name' | 'description' | 'color'> & {
1411
+ export type AppFragment = (Pick<App, 'id' | 'type' | 'name' | 'description' | 'color' | 'controlsSessionLifecycle'> & {
1408
1412
  channels?: Maybe<Array<Pick<AppChannel, 'id' | 'sources' | 'main' | 'readonly' | 'hidden'>>>;
1409
1413
  });
1410
1414
  export type AppInstanceFragment = Pick<AppInstance, 'appId' | 'appType' | 'drn' | 'instanceId' | 'name' | 'transitions' | 'createdAt' | 'updatedAt'>;
@@ -1501,7 +1505,7 @@ type CredentialsWithSecret_MetaCredentialsType_Fragment = (Pick<MetaCredentialsT
1501
1505
  credentials: Pick<MetaCredentials, 'code' | 'accessToken' | 'wabaId'>;
1502
1506
  });
1503
1507
  type CredentialsWithSecret_OAuth2CredentialsType_Fragment = (Pick<OAuth2CredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt' | 'url'> & {
1504
- credentials: Pick<OAuth2Credentials, 'clientId' | 'clientSecret'>;
1508
+ credentials: Pick<OAuth2Credentials, 'clientId' | 'clientSecret' | 'scope'>;
1505
1509
  });
1506
1510
  export type CredentialsWithSecretFragment = CredentialsWithSecret_ApiKeyCredentialsType_Fragment | CredentialsWithSecret_BasicCredentialsType_Fragment | CredentialsWithSecret_MercadoLivreCredentialsType_Fragment | CredentialsWithSecret_MetaCredentialsType_Fragment | CredentialsWithSecret_OAuth2CredentialsType_Fragment;
1507
1511
  export type GetCredentialsQueryVariables = Exact<{
@@ -1694,7 +1698,7 @@ export type CheckPermissionsQueryVariables = Exact<{
1694
1698
  resources: Array<Scalars['String']['input']> | Scalars['String']['input'];
1695
1699
  }>;
1696
1700
  export type CheckPermissionsQuery = Pick<Query, 'checkPermissions'>;
1697
- export type SessionFragment = Pick<Session, 'sessionId' | 'customerId' | 'stateMachineId' | 'triggerDrn' | 'status' | 'createdAt' | 'lastMessageAt'>;
1701
+ export type SessionFragment = Pick<Session, 'sessionId' | 'customerId' | 'stateMachineId' | 'aiAgentId' | 'triggerDrn' | 'status' | 'createdAt' | 'lastMessageAt'>;
1698
1702
  export type IndexedSessionFragment = Pick<IndexedSession, 'sessionId' | 'customerId' | 'stateMachineId' | 'triggerDrn' | 'status' | 'customer' | 'attributes' | 'context' | 'messages'>;
1699
1703
  export type SessionSchemaFragment = (Pick<AppSessionSchemaFields, 'name'> & {
1700
1704
  fields: Array<Pick<AppSessionSchemaFieldDescription, 'name' | 'description'>>;
@@ -1915,16 +1919,16 @@ export type CreatePresignedUploadUrlMutation = {
1915
1919
  };
1916
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 ";
1917
1921
  export declare const ApiKeyFragmentDoc = "\n fragment apiKey on ApiKeyAgent {\n email\n password\n token\n user {\n ...agent\n }\n}\n ";
1918
- 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 ";
1919
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 ";
1920
1924
  export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n ";
1921
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 ";
1922
- 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 ";
1923
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 ";
1924
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 ";
1925
1929
  export declare const PolicyFragmentDoc = "\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
1926
1930
  export declare const RoleFragmentDoc = "\n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n ";
1927
- export declare const SessionFragmentDoc = "\n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n createdAt\n lastMessageAt\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 ";
1928
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 ";
1929
1933
  export declare const SessionSchemaFragmentDoc = "\n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
1930
1934
  export declare const SettingsFragmentDoc = "\n fragment settings on Settings {\n doNotAllowUserSignup\n allowedEmailDomains\n groupsMapping {\n from\n to\n }\n}\n ";
@@ -1954,11 +1958,11 @@ export declare const ChangeAgentRoleDocument = "\n mutation changeAgentRole($
1954
1958
  export declare const JoinAsSuperAdminDocument = "\n mutation joinAsSuperAdmin($input: JoinAsSuperAdminInput!) {\n joinAsSuperAdmin(input: $input)\n}\n ";
1955
1959
  export declare const LeaveOrganizationDocument = "\n mutation leaveOrganization($input: LeaveOrganizationInput!) {\n leaveOrganization(input: $input)\n}\n ";
1956
1960
  export declare const ResendConfirmationEmailDocument = "\n mutation resendConfirmationEmail($input: ResendConfirmationEmailInput!) {\n resendConfirmationEmail(input: $input)\n}\n ";
1957
- 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 ";
1958
- 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 ";
1959
- 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 ";
1960
- 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 ";
1961
- 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 ";
1962
1966
  export declare const CountAppInstancesDocument = "\n query countAppInstances {\n countAppInstances\n}\n ";
1963
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 ";
1964
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 ";
@@ -1966,7 +1970,7 @@ export declare const GetFederationMetadataDocument = "\n query getFederationM
1966
1970
  export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean, $forService: String) {\n amplifyConfig(forDev: $forDev, forService: $forService)\n}\n ";
1967
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 ";
1968
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 ";
1969
- 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 ";
1970
1974
  export declare const GetMetaAuthInfoDocument = "\n query getMetaAuthInfo {\n getMetaAuthInfo {\n configurationId\n metaAppId\n scope\n }\n}\n ";
1971
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 ";
1972
1976
  export declare const CountCredentialsDocument = "\n query countCredentials {\n countCredentials\n}\n ";
@@ -1994,10 +1998,10 @@ export declare const RemoveCronJobDocument = "\n mutation removeCronJob($inpu
1994
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 ";
1995
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 ";
1996
2000
  export declare const CheckPermissionsDocument = "\n query checkPermissions($can: Can!, $resources: [String!]!) {\n checkPermissions(can: $can, resources: $resources)\n}\n ";
1997
- 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 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 ";
1998
- 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 createdAt\n lastMessageAt\n}\n ";
1999
- 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 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 ";
2000
- 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 triggerDrn\n status\n createdAt\n lastMessageAt\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 ";
2001
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 ";
2002
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 ";
2003
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 ";
@@ -2005,7 +2009,7 @@ export declare const SetSessionAttributeDocument = "\n mutation setSessionAtt
2005
2009
  export declare const PatchSessionAttributesDocument = "\n mutation patchSessionAttributes($input: PatchSessionAttributesInput!) {\n patchSessionAttributes(input: $input)\n}\n ";
2006
2010
  export declare const AddTagsToSessionAttributesDocument = "\n mutation addTagsToSessionAttributes($input: AddTagsToSessionAttributesInput!) {\n addTagsToSessionAttributes(input: $input)\n}\n ";
2007
2011
  export declare const RemoveTagsFromSessionAttributesDocument = "\n mutation removeTagsFromSessionAttributes($input: RemoveTagsFromSessionAttributesInput!) {\n removeTagsFromSessionAttributes(input: $input)\n}\n ";
2008
- 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 createdAt\n lastMessageAt\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 ";
2009
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 ";
2010
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 ";
2011
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 ";
@@ -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,6 +297,7 @@ exports.SessionFragmentDoc = `
295
297
  sessionId
296
298
  customerId
297
299
  stateMachineId
300
+ aiAgentId
298
301
  triggerDrn
299
302
  status
300
303
  createdAt