@snugdesk/core 0.2.40 → 0.2.42

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.
@@ -5,8 +5,8 @@ import * as i5 from '@angular/forms';
5
5
  import { ValidatorFn, FormGroup } from '@angular/forms';
6
6
  import { DomSanitizer } from '@angular/platform-browser';
7
7
  import { BehaviorSubject, Subscription, Observable } from 'rxjs';
8
- import { HttpClient } from '@angular/common/http';
9
8
  import { GraphQLResult } from '@aws-amplify/api-graphql';
9
+ import { HttpClient } from '@angular/common/http';
10
10
 
11
11
  declare class ErrorComponent implements OnChanges {
12
12
  private cdr;
@@ -86,31 +86,7 @@ declare class SnugdeskCoreModule {
86
86
  static ɵinj: i0.ɵɵInjectorDeclaration<SnugdeskCoreModule>;
87
87
  }
88
88
 
89
- declare class SnugdeskIPRegistryService {
90
- private http;
91
- private readonly IP_REGISTRY_API;
92
- private readonly SESSION_KEY;
93
- constructor(http: HttpClient);
94
- private get cachedIPDetails();
95
- private set cachedIPDetails(value);
96
- getIPDetails(): Promise<any>;
97
- static ɵfac: i0.ɵɵFactoryDeclaration<SnugdeskIPRegistryService, never>;
98
- static ɵprov: i0.ɵɵInjectableDeclaration<SnugdeskIPRegistryService>;
99
- }
100
-
101
- declare class SnugdeskAuthenticationHelperService {
102
- private httpClient;
103
- private ipRegistryService;
104
- private readonly headers;
105
- private readonly authEndpointURL;
106
- constructor(httpClient: HttpClient, ipRegistryService: SnugdeskIPRegistryService);
107
- getSessionToken(tenantId: string, userId: string): Promise<any>;
108
- static ɵfac: i0.ɵɵFactoryDeclaration<SnugdeskAuthenticationHelperService, never>;
109
- static ɵprov: i0.ɵɵInjectableDeclaration<SnugdeskAuthenticationHelperService>;
110
- }
111
-
112
89
  declare class SnugdeskAuthenticationService {
113
- private authenticationHelperService;
114
90
  isAuthenticated$: BehaviorSubject<boolean>;
115
91
  tenant$: BehaviorSubject<any>;
116
92
  user$: BehaviorSubject<any>;
@@ -120,7 +96,7 @@ declare class SnugdeskAuthenticationService {
120
96
  userSessionSubscription: Subscription;
121
97
  private readonly jwtHelper;
122
98
  private readonly TOKEN_KEY;
123
- constructor(authenticationHelperService: SnugdeskAuthenticationHelperService);
99
+ constructor();
124
100
  getToken(): string | null;
125
101
  setToken(token: string): void;
126
102
  checkToken(token: string): boolean;
@@ -130,8 +106,12 @@ declare class SnugdeskAuthenticationService {
130
106
  getUserSessionId(): string;
131
107
  getUserPreferences(): any;
132
108
  isAuthenticated(): boolean;
133
- authenticate(token?: string, tenantId?: string, userId?: string): Promise<boolean>;
134
- login(tenantId: string, userId: string): Promise<Boolean>;
109
+ /**
110
+ * Establishes a session from a token issued by the host's backend. The token
111
+ * carries tenantId, userId and userSessionId, so nothing else is needed — read
112
+ * them back with getTenantId() / getUserId() once this resolves.
113
+ */
114
+ authenticate(token: string): Promise<boolean>;
135
115
  logout(userSessionId?: string): Promise<void>;
136
116
  endUserSession(userSessionId?: string): Promise<void>;
137
117
  static ɵfac: i0.ɵɵFactoryDeclaration<SnugdeskAuthenticationService, never>;
@@ -386,9 +366,19 @@ declare enum TenantSSOConfigurationProtocol {
386
366
  SAML = "SAML",
387
367
  OIDC = "OIDC"
388
368
  }
369
+ declare enum TenantExternalCrmProvider {
370
+ SAP = "SAP",
371
+ SALESFORCE = "SALESFORCE"
372
+ }
373
+ declare enum TenantOnboardingStatus {
374
+ NOT_STARTED = "NOT_STARTED",
375
+ IN_PROGRESS = "IN_PROGRESS",
376
+ COMPLETED = "COMPLETED"
377
+ }
389
378
  type Tenant = {
390
379
  id: string;
391
380
  externalId?: string | null;
381
+ externalCrmProvider?: TenantExternalCrmProvider | null;
392
382
  tenantDomain: string;
393
383
  organizationName: string;
394
384
  websiteURL?: string | null;
@@ -398,6 +388,8 @@ type Tenant = {
398
388
  preferences?: TenantPreferences | null;
399
389
  ssoConfiguration?: TenantSSOConfiguration | null;
400
390
  security?: TenantSecurity | null;
391
+ profile?: TenantProfile | null;
392
+ onboarding?: TenantOnboarding | null;
401
393
  activatedAt?: number | null;
402
394
  blockedAt?: number | null;
403
395
  createdAt: number;
@@ -452,6 +444,44 @@ type TenantPreferences = {
452
444
  language?: Language | null;
453
445
  allowUserToChangePreferences?: boolean | null;
454
446
  brandColor?: string | null;
447
+ workingHours?: TenantWorkingHours | null;
448
+ availabilityConfig?: TenantAvailabilityCallingConfig | null;
449
+ recordingExcludedUserIds?: Array<string | null> | null;
450
+ };
451
+ type TenantWorkingHours = {
452
+ timezone?: string | null;
453
+ days?: Array<TenantWorkingHoursDay | null> | null;
454
+ };
455
+ type TenantWorkingHoursDay = {
456
+ day?: string | null;
457
+ open?: boolean | null;
458
+ start?: string | null;
459
+ end?: string | null;
460
+ };
461
+ type TenantAvailabilityCallingConfig = {
462
+ customStatuses?: Array<TenantAvailabilityStatus | null> | null;
463
+ allowDialUnsavedNumber?: boolean | null;
464
+ acwTime?: number | null;
465
+ ringtone?: string | null;
466
+ };
467
+ type TenantAvailabilityStatus = {
468
+ key?: string | null;
469
+ name?: string | null;
470
+ colour?: string | null;
471
+ available?: boolean | null;
472
+ };
473
+ type TenantProfile = {
474
+ businessType?: string | null;
475
+ industry?: string | null;
476
+ teamSize?: string | null;
477
+ goals?: Array<string | null> | null;
478
+ };
479
+ type TenantOnboarding = {
480
+ status: TenantOnboardingStatus;
481
+ currentStep?: string | null;
482
+ completedSteps?: Array<string | null> | null;
483
+ startedAt?: number | null;
484
+ completedAt?: number | null;
455
485
  };
456
486
  type TenantSecurity = {
457
487
  domainValidationTokenExpiry?: number | null;
@@ -471,6 +501,7 @@ type TenantSSOConfiguration = {
471
501
  type CreateTenantInput = {
472
502
  id?: string | null;
473
503
  externalId?: string | null;
504
+ externalCrmProvider?: TenantExternalCrmProvider | null;
474
505
  tenantDomain: string;
475
506
  organizationName: string;
476
507
  websiteURL?: string | null;
@@ -480,6 +511,8 @@ type CreateTenantInput = {
480
511
  preferences?: TenantPreferences | null;
481
512
  ssoConfiguration?: TenantSSOConfiguration | null;
482
513
  security?: TenantSecurity | null;
514
+ profile?: TenantProfile | null;
515
+ onboarding?: TenantOnboarding | null;
483
516
  temp_activationToken?: string | null;
484
517
  activatedAt?: number | null;
485
518
  blockedAt?: number | null;
@@ -492,6 +525,7 @@ type CreateTenantInput = {
492
525
  type UpdateTenantInput = {
493
526
  id: string;
494
527
  externalId?: string | null;
528
+ externalCrmProvider?: TenantExternalCrmProvider | null;
495
529
  tenantDomain?: string | null;
496
530
  organizationName?: string | null;
497
531
  websiteURL?: string | null;
@@ -501,6 +535,8 @@ type UpdateTenantInput = {
501
535
  preferences?: TenantPreferences | null;
502
536
  ssoConfiguration?: TenantSSOConfiguration | null;
503
537
  security?: TenantSecurity | null;
538
+ profile?: TenantProfile | null;
539
+ onboarding?: TenantOnboarding | null;
504
540
  temp_activationToken?: string | null;
505
541
  activatedAt?: number | null;
506
542
  blockedAt?: number | null;
@@ -512,6 +548,7 @@ type UpdateTenantInput = {
512
548
  };
513
549
  type ModelTenantConditionInput = {
514
550
  externalId?: ModelStringInput | null;
551
+ externalCrmProvider?: ModelTenantExternalCrmProviderInput | null;
515
552
  tenantDomain?: ModelStringInput | null;
516
553
  organizationName?: ModelStringInput | null;
517
554
  websiteURL?: ModelStringInput | null;
@@ -527,6 +564,29 @@ type ModelTenantConditionInput = {
527
564
  or?: Array<ModelTenantConditionInput | null> | null;
528
565
  not?: ModelTenantConditionInput | null;
529
566
  };
567
+ type ModelTenantFilterInput = {
568
+ id?: ModelIDInput | null;
569
+ externalId?: ModelStringInput | null;
570
+ externalCrmProvider?: ModelTenantExternalCrmProviderInput | null;
571
+ tenantDomain?: ModelStringInput | null;
572
+ organizationName?: ModelStringInput | null;
573
+ websiteURL?: ModelStringInput | null;
574
+ temp_activationToken?: ModelStringInput | null;
575
+ activatedAt?: ModelIntInput | null;
576
+ blockedAt?: ModelIntInput | null;
577
+ createdAt?: ModelIntInput | null;
578
+ updatedAt?: ModelIntInput | null;
579
+ deletedAt?: ModelIntInput | null;
580
+ updatedByUserId?: ModelIDInput | null;
581
+ updatedByUserSessionId?: ModelIDInput | null;
582
+ and?: Array<ModelTenantFilterInput | null> | null;
583
+ or?: Array<ModelTenantFilterInput | null> | null;
584
+ not?: ModelTenantFilterInput | null;
585
+ };
586
+ type ModelTenantExternalCrmProviderInput = {
587
+ eq?: TenantExternalCrmProvider | null;
588
+ ne?: TenantExternalCrmProvider | null;
589
+ };
530
590
  type CreateTenantComplianceDocumentInput = {
531
591
  id?: string | null;
532
592
  tenantId: string;
@@ -625,9 +685,14 @@ declare enum BillingAccountStatus {
625
685
  PENDING_KYC = "PENDING_KYC",
626
686
  ACTIVE = "ACTIVE",
627
687
  NO_BALANCE = "NO_BALANCE",
688
+ SUSPENDED = "SUSPENDED",
628
689
  BLOCKED = "BLOCKED",
629
690
  TERMINATED = "TERMINATED"
630
691
  }
692
+ declare enum BillingMode {
693
+ PREPAID = "PREPAID",
694
+ POSTPAID = "POSTPAID"
695
+ }
631
696
  declare enum BillingLedgerDirection {
632
697
  DEBIT = "DEBIT",
633
698
  CREDIT = "CREDIT"
@@ -777,11 +842,15 @@ type BillingAccount = {
777
842
  id: string;
778
843
  tenantId: string;
779
844
  accountStatus: BillingAccountStatus;
780
- blockReason?: string | null;
781
845
  profile?: TenantBillingInformation | null;
782
846
  contractPriceBookId?: string | null;
783
847
  gatewayCustomerId?: string | null;
784
848
  bankTransferCode?: string | null;
849
+ suspendedReason?: string | null;
850
+ blockReason?: string | null;
851
+ billingMode?: BillingMode | null;
852
+ creditLimitMicros?: number | null;
853
+ billingExempt?: boolean | null;
785
854
  createdAt: number;
786
855
  updatedAt: number;
787
856
  updatedByUserId?: string | null;
@@ -797,6 +866,7 @@ type BillingWalletBalance = {
797
866
  lowBalanceThresholdMicros?: number | null;
798
867
  autoTopupConfig?: string | null;
799
868
  updatedAt: number;
869
+ createdAt: number;
800
870
  };
801
871
  type BillingLedgerEntry = {
802
872
  billingAccountId: string;
@@ -819,12 +889,15 @@ type BillingLedgerEntry = {
819
889
  approvedBy?: string | null;
820
890
  entryHash: string;
821
891
  prevHash: string;
892
+ updatedAt: number;
822
893
  };
823
894
  type BillingIdempotencyKey = {
824
895
  idemKey: string;
825
896
  scope?: string | null;
826
897
  resultRef?: string | null;
827
898
  expiresAt?: number | null;
899
+ createdAt: number;
900
+ updatedAt: number;
828
901
  };
829
902
  type BillingProduct = {
830
903
  id: string;
@@ -836,6 +909,8 @@ type BillingProduct = {
836
909
  productStatus?: BillingEntityStatus | null;
837
910
  effectiveFrom?: number | null;
838
911
  effectiveTo?: number | null;
912
+ createdAt: number;
913
+ updatedAt: number;
839
914
  };
840
915
  type BillingPriceBook = {
841
916
  id: string;
@@ -844,6 +919,8 @@ type BillingPriceBook = {
844
919
  bookStatus?: BillingEntityStatus | null;
845
920
  effectiveFrom?: number | null;
846
921
  effectiveTo?: number | null;
922
+ createdAt: number;
923
+ updatedAt: number;
847
924
  };
848
925
  type BillingRateCard = {
849
926
  priceBookId: string;
@@ -859,6 +936,8 @@ type BillingRateCard = {
859
936
  fxCapture?: string | null;
860
937
  effectiveFrom: number;
861
938
  effectiveTo?: number | null;
939
+ createdAt: number;
940
+ updatedAt: number;
862
941
  };
863
942
  type BillingPlanDefinition = {
864
943
  id: string;
@@ -871,6 +950,8 @@ type BillingPlanDefinition = {
871
950
  featureFlags?: string | null;
872
951
  trialDays?: number | null;
873
952
  planStatus?: BillingEntityStatus | null;
953
+ createdAt: number;
954
+ updatedAt: number;
874
955
  };
875
956
  type BillingSubscription = {
876
957
  billingAccountId: string;
@@ -901,6 +982,8 @@ type BillingUsageEvent = {
901
982
  occurredAt: number;
902
983
  receivedAt: number;
903
984
  ratingStatus: BillingRatingStatus;
985
+ createdAt: number;
986
+ updatedAt: number;
904
987
  };
905
988
  type BillingRatedCharge = {
906
989
  billingAccountId: string;
@@ -919,6 +1002,7 @@ type BillingRatedCharge = {
919
1002
  ledgerTxnId?: string | null;
920
1003
  invoiceId?: string | null;
921
1004
  createdAt: number;
1005
+ updatedAt: number;
922
1006
  };
923
1007
  type BillingInvoice = {
924
1008
  id: string;
@@ -954,6 +1038,8 @@ type BillingInvoiceLine = {
954
1038
  taxCode?: string | null;
955
1039
  sourceChargeCount?: number | null;
956
1040
  tenantId?: string | null;
1041
+ createdAt: number;
1042
+ updatedAt: number;
957
1043
  };
958
1044
  type BillingPayment = {
959
1045
  id: string;
@@ -987,6 +1073,7 @@ type BillingPaymentMethod = {
987
1073
  methodStatus?: BillingPaymentMethodStatus | null;
988
1074
  billingAddress?: string | null;
989
1075
  createdAt: number;
1076
+ updatedAt: number;
990
1077
  };
991
1078
  type BillingBankReceipt = {
992
1079
  id: string;
@@ -1001,6 +1088,8 @@ type BillingBankReceipt = {
1001
1088
  matchedBy?: string | null;
1002
1089
  matchedAt?: number | null;
1003
1090
  ledgerTxnId?: string | null;
1091
+ createdAt: number;
1092
+ updatedAt: number;
1004
1093
  };
1005
1094
  type BillingAdminAction = {
1006
1095
  id: string;
@@ -1013,6 +1102,8 @@ type BillingAdminAction = {
1013
1102
  actionStatus: BillingAdminActionStatus;
1014
1103
  ledgerTxnId?: string | null;
1015
1104
  reason?: string | null;
1105
+ createdAt: number;
1106
+ updatedAt: number;
1016
1107
  };
1017
1108
  type BillingTaxRule = {
1018
1109
  jurisdiction: string;
@@ -1022,6 +1113,8 @@ type BillingTaxRule = {
1022
1113
  f5Box?: string | null;
1023
1114
  invoiceWording?: string | null;
1024
1115
  notes?: string | null;
1116
+ createdAt: number;
1117
+ updatedAt: number;
1025
1118
  };
1026
1119
  type BillingFxRate = {
1027
1120
  pair: string;
@@ -1029,6 +1122,8 @@ type BillingFxRate = {
1029
1122
  midRateMicros: number;
1030
1123
  source: string;
1031
1124
  providerPayloadRef?: string | null;
1125
+ createdAt: number;
1126
+ updatedAt: number;
1032
1127
  };
1033
1128
  type BillingAuditLog = {
1034
1129
  id: string;
@@ -1040,6 +1135,7 @@ type BillingAuditLog = {
1040
1135
  requestId?: string | null;
1041
1136
  sourceIp?: string | null;
1042
1137
  createdAt: number;
1138
+ updatedAt: number;
1043
1139
  };
1044
1140
  type BillingPlatformConfig = {
1045
1141
  configKey: string;
@@ -1049,6 +1145,7 @@ type BillingPlatformConfig = {
1049
1145
  updatedBy?: string | null;
1050
1146
  updatedAt?: number | null;
1051
1147
  version?: number | null;
1148
+ createdAt: number;
1052
1149
  };
1053
1150
  type BillingKycCase = {
1054
1151
  id: string;
@@ -1074,6 +1171,7 @@ type TenantBillingSnapshot = {
1074
1171
  accountStatus?: BillingAccountStatus | null;
1075
1172
  lowBalance?: boolean | null;
1076
1173
  updatedAt: number;
1174
+ createdAt: number;
1077
1175
  };
1078
1176
 
1079
1177
  type Entity = {
@@ -1090,7 +1188,7 @@ type Entity = {
1090
1188
  phoneNumber?: PhoneNumber | null;
1091
1189
  phoneNumberE164?: string | null;
1092
1190
  isOrganization: boolean;
1093
- metadata?: string;
1191
+ metadata?: string | null;
1094
1192
  notes?: string | null;
1095
1193
  customFields?: Array<string | null> | null;
1096
1194
  preferences?: EntityPreferences | null;
@@ -1138,7 +1236,7 @@ type CreateEntityInput = {
1138
1236
  phoneNumberE164?: string | null;
1139
1237
  isOrganization: boolean;
1140
1238
  notes?: string | null;
1141
- metadata?: Array<string | null> | null;
1239
+ metadata?: string | null;
1142
1240
  customFields?: Array<string | null> | null;
1143
1241
  preferences?: EntityPreferences | null;
1144
1242
  contactPreferences?: EntityContactPreferences | null;
@@ -1162,12 +1260,12 @@ type UpdateEntityInput = {
1162
1260
  phoneNumberE164?: string | null;
1163
1261
  isOrganization?: boolean | null;
1164
1262
  notes?: string | null;
1165
- metadata?: Array<string | null> | null;
1263
+ metadata?: string | null;
1166
1264
  customFields?: Array<string | null> | null;
1167
1265
  preferences?: EntityPreferences | null;
1168
1266
  contactPreferences?: EntityContactPreferences | null;
1169
1267
  createdAt?: number | null;
1170
- updatedAt: number;
1268
+ updatedAt?: number | null;
1171
1269
  blockedAt?: number | null;
1172
1270
  deletedAt?: number | null;
1173
1271
  updatedByUserId?: string | null;
@@ -1266,6 +1364,19 @@ type InteractionWidget = {
1266
1364
  createdAt: number;
1267
1365
  updatedAt: number;
1268
1366
  deletedAt?: number | null;
1367
+ updatedByUserId: string;
1368
+ updatedByUserSessionId?: string | null;
1369
+ };
1370
+ type InteractionWidgetSession = {
1371
+ id: string;
1372
+ tenantId: string;
1373
+ widgetId: string;
1374
+ widget?: InteractionWidget | null;
1375
+ entityId: string;
1376
+ entity?: Entity | null;
1377
+ ipDetails?: string | null;
1378
+ createdAt: number;
1379
+ updatedAt: number;
1269
1380
  };
1270
1381
  type InteractionWidgetUserSetting = {
1271
1382
  id: string;
@@ -1276,7 +1387,7 @@ type InteractionWidgetUserSetting = {
1276
1387
  createdAt: number;
1277
1388
  updatedAt: number;
1278
1389
  deletedAt?: number | null;
1279
- updatedByUserId?: string | null;
1390
+ updatedByUserId: string;
1280
1391
  updatedByUserSessionId?: string | null;
1281
1392
  };
1282
1393
  type ModelInteractionWidgetConditionInput = {
@@ -1322,6 +1433,18 @@ type ModelInteractionWidgetFilterInput = {
1322
1433
  or?: Array<ModelInteractionWidgetFilterInput | null> | null;
1323
1434
  not?: ModelInteractionWidgetFilterInput | null;
1324
1435
  };
1436
+ type ModelInteractionWidgetSessionFilterInput = {
1437
+ id?: ModelIDInput | null;
1438
+ tenantId?: ModelIDInput | null;
1439
+ widgetId?: ModelIDInput | null;
1440
+ entityId?: ModelIDInput | null;
1441
+ ipDetails?: ModelStringInput | null;
1442
+ createdAt?: ModelIntInput | null;
1443
+ updatedAt?: ModelIntInput | null;
1444
+ and?: Array<ModelInteractionWidgetSessionFilterInput | null> | null;
1445
+ or?: Array<ModelInteractionWidgetSessionFilterInput | null> | null;
1446
+ not?: ModelInteractionWidgetSessionFilterInput | null;
1447
+ };
1325
1448
  type ModelInteractionWidgetUserSettingFilterInput = {
1326
1449
  id?: ModelIDInput | null;
1327
1450
  widgetId?: ModelIDInput | null;
@@ -1338,6 +1461,45 @@ type ModelInteractionWidgetUserSettingFilterInput = {
1338
1461
  not?: ModelInteractionWidgetUserSettingFilterInput | null;
1339
1462
  };
1340
1463
 
1464
+ declare enum RecordingMode {
1465
+ OFF = "OFF",
1466
+ INBOUND = "INBOUND",
1467
+ OUTBOUND = "OUTBOUND",
1468
+ BOTH = "BOTH"
1469
+ }
1470
+ declare enum RecordingNotify {
1471
+ NONE = "NONE",
1472
+ ANNOUNCE = "ANNOUNCE",
1473
+ CONSENT = "CONSENT"
1474
+ }
1475
+ declare enum WorkingHoursFallbackAction {
1476
+ PLAY_MESSAGE = "PLAY_MESSAGE",
1477
+ VOICEMAIL = "VOICEMAIL"
1478
+ }
1479
+ declare enum RoutingRole {
1480
+ AGENT = "AGENT",
1481
+ SUPERVISOR = "SUPERVISOR",
1482
+ ADMINISTRATOR = "ADMINISTRATOR"
1483
+ }
1484
+ declare enum RoutingStrategy {
1485
+ TICKET_ASSIGNEE = "TICKET_ASSIGNEE",
1486
+ LAST_TALKED_TO = "LAST_TALKED_TO",
1487
+ MOST_IDLE = "MOST_IDLE",
1488
+ RANDOM_ACTIVE = "RANDOM_ACTIVE",
1489
+ ROUND_ROBIN = "ROUND_ROBIN"
1490
+ }
1491
+ declare enum RoutingFallback {
1492
+ ANNOUNCE_DISCONNECT = "ANNOUNCE_DISCONNECT",
1493
+ VOICEMAIL_TICKET = "VOICEMAIL_TICKET",
1494
+ VOICEMAIL = "VOICEMAIL"
1495
+ }
1496
+ declare enum RoutingNoPickup {
1497
+ ANNOUNCE_DISCONNECT = "ANNOUNCE_DISCONNECT",
1498
+ DISCONNECT = "DISCONNECT",
1499
+ TRY_OTHERS = "TRY_OTHERS",
1500
+ VOICEMAIL = "VOICEMAIL",
1501
+ VOICEMAIL_TICKET = "VOICEMAIL_TICKET"
1502
+ }
1341
1503
  type InteractionEndpoint = {
1342
1504
  id: string;
1343
1505
  externalId: string;
@@ -1346,11 +1508,17 @@ type InteractionEndpoint = {
1346
1508
  widget?: InteractionWidget | null;
1347
1509
  address: string;
1348
1510
  configuration?: string | null;
1511
+ recordingConfig?: InteractionEndpointRecordingConfig | null;
1512
+ workingHoursActionConfig?: InteractionEndpointWorkingHoursActionConfig | null;
1513
+ routingConfig?: InteractionEndpointRoutingConfig | null;
1514
+ buyPrice?: InteractionEndpointPriceDetails | null;
1349
1515
  sellPrice?: InteractionEndpointPriceDetails | null;
1350
1516
  documents?: Array<InteractionEndpointRegulatoryComplianceDocument | null> | null;
1351
1517
  createdAt: number;
1352
1518
  updatedAt: number;
1353
1519
  deletedAt?: number | null;
1520
+ updatedByUserId: string;
1521
+ updatedByUserSessionId?: string | null;
1354
1522
  };
1355
1523
  type InteractionEndpointPriceDetails = {
1356
1524
  currency: string;
@@ -1365,6 +1533,40 @@ type InteractionEndpointRegulatoryComplianceDocument = {
1365
1533
  contentType?: string | null;
1366
1534
  file?: S3Object | null;
1367
1535
  };
1536
+ type InteractionEndpointRecordingConfig = {
1537
+ mode?: RecordingMode | null;
1538
+ notify?: RecordingNotify | null;
1539
+ audioMediaName?: string | null;
1540
+ audioUrl?: string | null;
1541
+ };
1542
+ type InteractionEndpointWorkingHoursAction = {
1543
+ action?: WorkingHoursFallbackAction | null;
1544
+ audioMediaName?: string | null;
1545
+ audioUrl?: string | null;
1546
+ };
1547
+ type InteractionEndpointWorkingHoursActionConfig = {
1548
+ duringHours?: InteractionEndpointWorkingHoursAction | null;
1549
+ afterHours?: InteractionEndpointWorkingHoursAction | null;
1550
+ whenClosed?: InteractionEndpointWorkingHoursAction | null;
1551
+ };
1552
+ type InteractionEndpointRoutingAction = {
1553
+ action?: RoutingFallback | null;
1554
+ audioMediaName?: string | null;
1555
+ audioUrl?: string | null;
1556
+ };
1557
+ type InteractionEndpointRoutingFirstAction = {
1558
+ action?: RoutingNoPickup | null;
1559
+ audioMediaName?: string | null;
1560
+ audioUrl?: string | null;
1561
+ };
1562
+ type InteractionEndpointRoutingConfig = {
1563
+ answeringRoles?: Array<RoutingRole | null> | null;
1564
+ knownCallerStrategy?: RoutingStrategy | null;
1565
+ unknownCallerStrategy?: RoutingStrategy | null;
1566
+ ifNoPickup?: InteractionEndpointRoutingFirstAction | null;
1567
+ escalationRoles?: Array<RoutingRole | null> | null;
1568
+ noAnswer?: InteractionEndpointRoutingAction | null;
1569
+ };
1368
1570
  type CreateInteractionEndpointInput = {
1369
1571
  id?: string | null;
1370
1572
  externalId: string;
@@ -1372,6 +1574,9 @@ type CreateInteractionEndpointInput = {
1372
1574
  widgetId: string;
1373
1575
  address: string;
1374
1576
  configuration?: string | null;
1577
+ recordingConfig?: InteractionEndpointRecordingConfig | null;
1578
+ workingHoursActionConfig?: InteractionEndpointWorkingHoursActionConfig | null;
1579
+ routingConfig?: InteractionEndpointRoutingConfig | null;
1375
1580
  buyPrice?: InteractionEndpointPriceDetails | null;
1376
1581
  sellPrice?: InteractionEndpointPriceDetails | null;
1377
1582
  documents?: Array<InteractionEndpointRegulatoryComplianceDocument | null> | null;
@@ -1388,6 +1593,9 @@ type UpdateInteractionEndpointInput = {
1388
1593
  widgetId?: string | null;
1389
1594
  address?: string | null;
1390
1595
  configuration?: string | null;
1596
+ recordingConfig?: InteractionEndpointRecordingConfig | null;
1597
+ workingHoursActionConfig?: InteractionEndpointWorkingHoursActionConfig | null;
1598
+ routingConfig?: InteractionEndpointRoutingConfig | null;
1391
1599
  buyPrice?: InteractionEndpointPriceDetails | null;
1392
1600
  sellPrice?: InteractionEndpointPriceDetails | null;
1393
1601
  documents?: Array<InteractionEndpointRegulatoryComplianceDocument | null> | null;
@@ -1674,6 +1882,8 @@ type UserSession = {
1674
1882
  user?: User | null;
1675
1883
  ipDetails?: string | null;
1676
1884
  status?: UserStatus | null;
1885
+ statusKey?: string | null;
1886
+ lastInteractionHandledAt?: number | null;
1677
1887
  teamIds?: Array<string | null> | null;
1678
1888
  temp_isLocked?: boolean | null;
1679
1889
  temp_isAvailableTenantIdUnion?: string | null;
@@ -1689,6 +1899,8 @@ type UpdateUserSessionInput = {
1689
1899
  userId?: string | null;
1690
1900
  ipDetails?: string | null;
1691
1901
  status?: UserStatus | null;
1902
+ statusKey?: string | null;
1903
+ lastInteractionHandledAt?: number | null;
1692
1904
  teamIds?: Array<string | null> | null;
1693
1905
  temp_isLocked?: boolean | null;
1694
1906
  temp_isAvailableTenantIdUnion?: string | null;
@@ -1703,6 +1915,8 @@ type ModelUserSessionConditionInput = {
1703
1915
  userId?: ModelIDInput | null;
1704
1916
  ipDetails?: ModelStringInput | null;
1705
1917
  status?: ModelUserStatusInput | null;
1918
+ statusKey?: ModelStringInput | null;
1919
+ lastInteractionHandledAt?: ModelIntInput | null;
1706
1920
  teamIds?: ModelStringInput | null;
1707
1921
  temp_isLocked?: ModelBooleanInput | null;
1708
1922
  temp_isAvailableTenantIdUnion?: ModelStringInput | null;
@@ -1721,6 +1935,8 @@ type ModelUserSessionFilterInput = {
1721
1935
  userId?: ModelIDInput | null;
1722
1936
  ipDetails?: ModelStringInput | null;
1723
1937
  status?: ModelUserStatusInput | null;
1938
+ statusKey?: ModelStringInput | null;
1939
+ lastInteractionHandledAt?: ModelIntInput | null;
1724
1940
  teamIds?: ModelStringInput | null;
1725
1941
  temp_isLocked?: ModelBooleanInput | null;
1726
1942
  temp_isAvailableTenantIdUnion?: ModelStringInput | null;
@@ -1768,11 +1984,21 @@ declare enum InteractionStatus {
1768
1984
  FAILED = "FAILED"
1769
1985
  }
1770
1986
  declare enum InteractionMessageStatus {
1771
- PENDING = "PENDING",
1987
+ QUEUED = "QUEUED",
1772
1988
  SENT = "SENT",
1773
1989
  DELIVERED = "DELIVERED",
1774
1990
  READ = "READ",
1775
- FAILED = "FAILED"
1991
+ FAILED = "FAILED",
1992
+ RECEIVED = "RECEIVED"
1993
+ }
1994
+ declare enum FlowRuntimeStatus {
1995
+ AWAITING_DISPATCH = "AWAITING_DISPATCH",
1996
+ AWAITING_REPLY = "AWAITING_REPLY",
1997
+ AWAITING_TIMER = "AWAITING_TIMER",
1998
+ PAUSED_BY_AGENT = "PAUSED_BY_AGENT",
1999
+ COMPLETED = "COMPLETED",
2000
+ FAILED = "FAILED",
2001
+ ABANDONED = "ABANDONED"
1776
2002
  }
1777
2003
  declare enum InteractionProvider {
1778
2004
  AVAYA_IPO = "AVAYA_IPO",
@@ -1835,6 +2061,19 @@ type Interaction = {
1835
2061
  routeConfiguration?: InteractionRouteConfiguration | null;
1836
2062
  temp_isLocked?: boolean | null;
1837
2063
  temp_isAvailableTenantIdUnion?: string | null;
2064
+ campaignId?: string | null;
2065
+ flowVersion?: number | null;
2066
+ currentCampaignFlowNodeId?: string | null;
2067
+ flowVariables?: string | null;
2068
+ flowStatus?: FlowRuntimeStatus | null;
2069
+ flowRetryCount?: number | null;
2070
+ flowReminderIndex?: number | null;
2071
+ flowTimeoutAt?: number | null;
2072
+ flowTimerScheduleArn?: string | null;
2073
+ isAgentHandling?: boolean | null;
2074
+ assignedAgentId?: string | null;
2075
+ agentHandlingStartedAt?: number | null;
2076
+ agentHandlingEndedAt?: number | null;
1838
2077
  createdAt: number;
1839
2078
  updatedAt: number;
1840
2079
  deletedAt?: number | null;
@@ -1893,6 +2132,22 @@ type InteractionAttendee = {
1893
2132
  updatedAt: number;
1894
2133
  deletedAt?: number | null;
1895
2134
  };
2135
+ type InteractionAttendeeConnection = {
2136
+ id: string;
2137
+ connectionId: string;
2138
+ interactionId: string;
2139
+ interaction?: Interaction | null;
2140
+ interactionAttendeeId: string;
2141
+ interactionAttendee?: InteractionAttendee | null;
2142
+ connectedAt?: number | null;
2143
+ disconnectedAt?: number | null;
2144
+ duration?: number | null;
2145
+ metadata?: string | null;
2146
+ recording?: S3Object | null;
2147
+ transcript?: S3Object | null;
2148
+ createdAt: number;
2149
+ updatedAt: number;
2150
+ };
1896
2151
  type InteractionMessage = {
1897
2152
  id: string;
1898
2153
  externalId?: string | null;
@@ -1911,6 +2166,7 @@ type InteractionMessage = {
1911
2166
  metadata?: string | null;
1912
2167
  direction?: InteractionMessageDirection | null;
1913
2168
  status?: InteractionMessageStatus | null;
2169
+ statusUpdatedAt?: number | null;
1914
2170
  createdAt: number;
1915
2171
  updatedAt: number;
1916
2172
  deletedAt?: number | null;
@@ -1964,6 +2220,19 @@ type CreateInteractionInput = {
1964
2220
  routeConfiguration?: InteractionRouteConfigurationInput | null;
1965
2221
  temp_isLocked?: boolean | null;
1966
2222
  temp_isAvailableTenantIdUnion?: string | null;
2223
+ campaignId?: string | null;
2224
+ flowVersion?: number | null;
2225
+ currentCampaignFlowNodeId?: string | null;
2226
+ flowVariables?: string | null;
2227
+ flowStatus?: FlowRuntimeStatus | null;
2228
+ flowRetryCount?: number | null;
2229
+ flowReminderIndex?: number | null;
2230
+ flowTimeoutAt?: number | null;
2231
+ flowTimerScheduleArn?: string | null;
2232
+ isAgentHandling?: boolean | null;
2233
+ assignedAgentId?: string | null;
2234
+ agentHandlingStartedAt?: number | null;
2235
+ agentHandlingEndedAt?: number | null;
1967
2236
  createdAt: number;
1968
2237
  updatedAt: number;
1969
2238
  deletedAt?: number | null;
@@ -2002,6 +2271,19 @@ type UpdateInteractionInput = {
2002
2271
  routeConfiguration?: InteractionRouteConfigurationInput | null;
2003
2272
  temp_isLocked?: boolean | null;
2004
2273
  temp_isAvailableTenantIdUnion?: string | null;
2274
+ campaignId?: string | null;
2275
+ flowVersion?: number | null;
2276
+ currentCampaignFlowNodeId?: string | null;
2277
+ flowVariables?: string | null;
2278
+ flowStatus?: FlowRuntimeStatus | null;
2279
+ flowRetryCount?: number | null;
2280
+ flowReminderIndex?: number | null;
2281
+ flowTimeoutAt?: number | null;
2282
+ flowTimerScheduleArn?: string | null;
2283
+ isAgentHandling?: boolean | null;
2284
+ assignedAgentId?: string | null;
2285
+ agentHandlingStartedAt?: number | null;
2286
+ agentHandlingEndedAt?: number | null;
2005
2287
  createdAt?: number | null;
2006
2288
  updatedAt?: number | null;
2007
2289
  deletedAt?: number | null;
@@ -2036,6 +2318,19 @@ type ModelInteractionConditionInput = {
2036
2318
  reportProcessingCompletedAt?: ModelIntInput | null;
2037
2319
  temp_isLocked?: ModelBooleanInput | null;
2038
2320
  temp_isAvailableTenantIdUnion?: ModelStringInput | null;
2321
+ campaignId?: ModelIDInput | null;
2322
+ flowVersion?: ModelIntInput | null;
2323
+ currentCampaignFlowNodeId?: ModelIDInput | null;
2324
+ flowVariables?: ModelStringInput | null;
2325
+ flowStatus?: ModelFlowRuntimeStatusInput | null;
2326
+ flowRetryCount?: ModelIntInput | null;
2327
+ flowReminderIndex?: ModelIntInput | null;
2328
+ flowTimeoutAt?: ModelIntInput | null;
2329
+ flowTimerScheduleArn?: ModelStringInput | null;
2330
+ isAgentHandling?: ModelBooleanInput | null;
2331
+ assignedAgentId?: ModelIDInput | null;
2332
+ agentHandlingStartedAt?: ModelIntInput | null;
2333
+ agentHandlingEndedAt?: ModelIntInput | null;
2039
2334
  createdAt?: ModelIntInput | null;
2040
2335
  updatedAt?: ModelIntInput | null;
2041
2336
  deletedAt?: ModelIntInput | null;
@@ -2074,6 +2369,19 @@ type ModelInteractionFilterInput = {
2074
2369
  reportProcessingCompletedAt?: ModelIntInput | null;
2075
2370
  temp_isLocked?: ModelBooleanInput | null;
2076
2371
  temp_isAvailableTenantIdUnion?: ModelStringInput | null;
2372
+ campaignId?: ModelIDInput | null;
2373
+ flowVersion?: ModelIntInput | null;
2374
+ currentCampaignFlowNodeId?: ModelIDInput | null;
2375
+ flowVariables?: ModelStringInput | null;
2376
+ flowStatus?: ModelFlowRuntimeStatusInput | null;
2377
+ flowRetryCount?: ModelIntInput | null;
2378
+ flowReminderIndex?: ModelIntInput | null;
2379
+ flowTimeoutAt?: ModelIntInput | null;
2380
+ flowTimerScheduleArn?: ModelStringInput | null;
2381
+ isAgentHandling?: ModelBooleanInput | null;
2382
+ assignedAgentId?: ModelIDInput | null;
2383
+ agentHandlingStartedAt?: ModelIntInput | null;
2384
+ agentHandlingEndedAt?: ModelIntInput | null;
2077
2385
  createdAt?: ModelIntInput | null;
2078
2386
  updatedAt?: ModelIntInput | null;
2079
2387
  deletedAt?: ModelIntInput | null;
@@ -2273,10 +2581,31 @@ type CreateInteractionMessageInput = {
2273
2581
  body?: string | null;
2274
2582
  metadata?: string | null;
2275
2583
  direction?: InteractionMessageDirection | null;
2584
+ status?: InteractionMessageStatus | null;
2585
+ statusUpdatedAt?: number | null;
2276
2586
  createdAt: number;
2277
2587
  updatedAt: number;
2278
2588
  deletedAt?: number | null;
2279
2589
  };
2590
+ type UpdateInteractionMessageInput = {
2591
+ id: string;
2592
+ externalId?: string | null;
2593
+ endpointId?: string | null;
2594
+ campaignId?: string | null;
2595
+ campaignFlowNodeId?: string | null;
2596
+ entityConversationId?: string | null;
2597
+ interactionId?: string | null;
2598
+ interactionAttendeeId?: string | null;
2599
+ referenceMessageId?: string | null;
2600
+ body?: string | null;
2601
+ metadata?: string | null;
2602
+ direction?: InteractionMessageDirection | null;
2603
+ status?: InteractionMessageStatus | null;
2604
+ statusUpdatedAt?: number | null;
2605
+ createdAt?: number | null;
2606
+ updatedAt?: number | null;
2607
+ deletedAt?: number | null;
2608
+ };
2280
2609
  type ModelInteractionMessageConditionInput = {
2281
2610
  externalId?: ModelStringInput | null;
2282
2611
  endpointId?: ModelIDInput | null;
@@ -2289,6 +2618,8 @@ type ModelInteractionMessageConditionInput = {
2289
2618
  body?: ModelStringInput | null;
2290
2619
  metadata?: ModelStringInput | null;
2291
2620
  direction?: ModelInteractionMessageDirectionInput | null;
2621
+ status?: ModelInteractionMessageStatusInput | null;
2622
+ statusUpdatedAt?: ModelIntInput | null;
2292
2623
  createdAt?: ModelIntInput | null;
2293
2624
  updatedAt?: ModelIntInput | null;
2294
2625
  deletedAt?: ModelIntInput | null;
@@ -2309,6 +2640,8 @@ type ModelInteractionMessageFilterInput = {
2309
2640
  body?: ModelStringInput | null;
2310
2641
  metadata?: ModelStringInput | null;
2311
2642
  direction?: ModelInteractionMessageDirectionInput | null;
2643
+ status?: ModelInteractionMessageStatusInput | null;
2644
+ statusUpdatedAt?: ModelIntInput | null;
2312
2645
  createdAt?: ModelIntInput | null;
2313
2646
  updatedAt?: ModelIntInput | null;
2314
2647
  deletedAt?: ModelIntInput | null;
@@ -2374,6 +2707,14 @@ type ModelInteractionMessageDirectionInput = {
2374
2707
  eq?: InteractionMessageDirection | null;
2375
2708
  ne?: InteractionMessageDirection | null;
2376
2709
  };
2710
+ type ModelInteractionMessageStatusInput = {
2711
+ eq?: InteractionMessageStatus | null;
2712
+ ne?: InteractionMessageStatus | null;
2713
+ };
2714
+ type ModelFlowRuntimeStatusInput = {
2715
+ eq?: FlowRuntimeStatus | null;
2716
+ ne?: FlowRuntimeStatus | null;
2717
+ };
2377
2718
  type ModelInteractionProviderInput = {
2378
2719
  eq?: InteractionProvider | null;
2379
2720
  ne?: InteractionProvider | null;
@@ -2525,6 +2866,8 @@ type Ticket = {
2525
2866
  createdByUser?: User | null;
2526
2867
  createdAt: number;
2527
2868
  updatedAt: number;
2869
+ updatedByUserId: string;
2870
+ updatedByUserSessionId?: string | null;
2528
2871
  deletedAt?: number | null;
2529
2872
  };
2530
2873
  type TicketPriority = {
@@ -2538,6 +2881,8 @@ type TicketPriority = {
2538
2881
  colorCode?: string | null;
2539
2882
  createdAt: number;
2540
2883
  updatedAt: number;
2884
+ updatedByUserId: string;
2885
+ updatedByUserSessionId?: string | null;
2541
2886
  deletedAt?: number | null;
2542
2887
  };
2543
2888
  type TicketStatus = {
@@ -2552,6 +2897,8 @@ type TicketStatus = {
2552
2897
  colorCode?: string | null;
2553
2898
  createdAt: number;
2554
2899
  updatedAt: number;
2900
+ updatedByUserId: string;
2901
+ updatedByUserSessionId?: string | null;
2555
2902
  deletedAt?: number | null;
2556
2903
  };
2557
2904
  type TicketType = {
@@ -2565,10 +2912,13 @@ type TicketType = {
2565
2912
  colorCode?: string | null;
2566
2913
  createdAt: number;
2567
2914
  updatedAt: number;
2915
+ updatedByUserId: string;
2916
+ updatedByUserSessionId?: string | null;
2568
2917
  deletedAt?: number | null;
2569
2918
  };
2570
2919
  type ModelTicketConditionInput = {
2571
2920
  externalId?: ModelStringInput | null;
2921
+ referenceNumber?: ModelStringInput | null;
2572
2922
  tenantId?: ModelIDInput | null;
2573
2923
  entityId?: ModelIDInput | null;
2574
2924
  parentEntityId?: ModelIDInput | null;
@@ -2582,6 +2932,8 @@ type ModelTicketConditionInput = {
2582
2932
  createdByUserId?: ModelIDInput | null;
2583
2933
  createdAt?: ModelIntInput | null;
2584
2934
  updatedAt?: ModelIntInput | null;
2935
+ updatedByUserId?: ModelIDInput | null;
2936
+ updatedByUserSessionId?: ModelIDInput | null;
2585
2937
  deletedAt?: ModelIntInput | null;
2586
2938
  and?: Array<ModelTicketConditionInput | null> | null;
2587
2939
  or?: Array<ModelTicketConditionInput | null> | null;
@@ -2590,6 +2942,7 @@ type ModelTicketConditionInput = {
2590
2942
  type ModelTicketFilterInput = {
2591
2943
  id?: ModelIDInput | null;
2592
2944
  externalId?: ModelStringInput | null;
2945
+ referenceNumber?: ModelStringInput | null;
2593
2946
  tenantId?: ModelIDInput | null;
2594
2947
  entityId?: ModelIDInput | null;
2595
2948
  parentEntityId?: ModelIDInput | null;
@@ -2603,6 +2956,8 @@ type ModelTicketFilterInput = {
2603
2956
  createdByUserId?: ModelIDInput | null;
2604
2957
  createdAt?: ModelIntInput | null;
2605
2958
  updatedAt?: ModelIntInput | null;
2959
+ updatedByUserId?: ModelIDInput | null;
2960
+ updatedByUserSessionId?: ModelIDInput | null;
2606
2961
  deletedAt?: ModelIntInput | null;
2607
2962
  and?: Array<ModelTicketFilterInput | null> | null;
2608
2963
  or?: Array<ModelTicketFilterInput | null> | null;
@@ -2617,6 +2972,8 @@ type ModelTicketPriorityConditionInput = {
2617
2972
  colorCode?: ModelStringInput | null;
2618
2973
  createdAt?: ModelIntInput | null;
2619
2974
  updatedAt?: ModelIntInput | null;
2975
+ updatedByUserId?: ModelIDInput | null;
2976
+ updatedByUserSessionId?: ModelIDInput | null;
2620
2977
  deletedAt?: ModelIntInput | null;
2621
2978
  and?: Array<ModelTicketPriorityConditionInput | null> | null;
2622
2979
  or?: Array<ModelTicketPriorityConditionInput | null> | null;
@@ -2632,6 +2989,8 @@ type ModelTicketPriorityFilterInput = {
2632
2989
  colorCode?: ModelStringInput | null;
2633
2990
  createdAt?: ModelIntInput | null;
2634
2991
  updatedAt?: ModelIntInput | null;
2992
+ updatedByUserId?: ModelIDInput | null;
2993
+ updatedByUserSessionId?: ModelIDInput | null;
2635
2994
  deletedAt?: ModelIntInput | null;
2636
2995
  and?: Array<ModelTicketPriorityFilterInput | null> | null;
2637
2996
  or?: Array<ModelTicketPriorityFilterInput | null> | null;
@@ -2647,6 +3006,8 @@ type ModelTicketStatusConditionInput = {
2647
3006
  colorCode?: ModelStringInput | null;
2648
3007
  createdAt?: ModelIntInput | null;
2649
3008
  updatedAt?: ModelIntInput | null;
3009
+ updatedByUserId?: ModelIDInput | null;
3010
+ updatedByUserSessionId?: ModelIDInput | null;
2650
3011
  deletedAt?: ModelIntInput | null;
2651
3012
  and?: Array<ModelTicketStatusConditionInput | null> | null;
2652
3013
  or?: Array<ModelTicketStatusConditionInput | null> | null;
@@ -2663,6 +3024,8 @@ type ModelTicketStatusFilterInput = {
2663
3024
  colorCode?: ModelStringInput | null;
2664
3025
  createdAt?: ModelIntInput | null;
2665
3026
  updatedAt?: ModelIntInput | null;
3027
+ updatedByUserId?: ModelIDInput | null;
3028
+ updatedByUserSessionId?: ModelIDInput | null;
2666
3029
  deletedAt?: ModelIntInput | null;
2667
3030
  and?: Array<ModelTicketStatusFilterInput | null> | null;
2668
3031
  or?: Array<ModelTicketStatusFilterInput | null> | null;
@@ -2677,6 +3040,8 @@ type ModelTicketTypeConditionInput = {
2677
3040
  colorCode?: ModelStringInput | null;
2678
3041
  createdAt?: ModelIntInput | null;
2679
3042
  updatedAt?: ModelIntInput | null;
3043
+ updatedByUserId?: ModelIDInput | null;
3044
+ updatedByUserSessionId?: ModelIDInput | null;
2680
3045
  deletedAt?: ModelIntInput | null;
2681
3046
  and?: Array<ModelTicketTypeConditionInput | null> | null;
2682
3047
  or?: Array<ModelTicketTypeConditionInput | null> | null;
@@ -2692,6 +3057,8 @@ type ModelTicketTypeFilterInput = {
2692
3057
  colorCode?: ModelStringInput | null;
2693
3058
  createdAt?: ModelIntInput | null;
2694
3059
  updatedAt?: ModelIntInput | null;
3060
+ updatedByUserId?: ModelIDInput | null;
3061
+ updatedByUserSessionId?: ModelIDInput | null;
2695
3062
  deletedAt?: ModelIntInput | null;
2696
3063
  and?: Array<ModelTicketTypeFilterInput | null> | null;
2697
3064
  or?: Array<ModelTicketTypeFilterInput | null> | null;
@@ -2718,9 +3085,10 @@ declare class CommonService {
2718
3085
  }
2719
3086
 
2720
3087
  declare const FIELDS_ENTITY_TYPE = "\n id\n externalId\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n";
2721
- declare const FIELDS_ENTITY = "\n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n";
2722
- declare const FIELDS_ENTITY_EXPANDED = "\n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n parent {\n id\n externalId\n tenantId\n entityTypeId\n name\n image {\n key\n bucket\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n createdAt\n updatedAt\n blockedAt\n deletedAt\n }\n name\n image {\n key\n bucket\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n";
2723
- declare const FIELDS_ENTITY_MINIMAL = "\n id\n externalId\n tenantId\n entityTypeId\n metadata\n name\n image {\n key\n bucket\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n";
3088
+ declare const FIELDS_ENTITY_TYPE_EXPANDED = "\n \n id\n externalId\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n entityFields\n organizationFields\n";
3089
+ declare const FIELDS_ENTITY = "\n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
3090
+ declare const FIELDS_ENTITY_EXPANDED = "\n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n parent {\n id\n externalId\n tenantId\n entityTypeId\n name\n image {\n key\n bucket\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n createdAt\n updatedAt\n blockedAt\n deletedAt\n }\n name\n image {\n key\n bucket\n location\n }\n isOrganization\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
3091
+ declare const FIELDS_ENTITY_MINIMAL = "\n id\n externalId\n tenantId\n entityTypeId\n metadata\n name\n image {\n key\n bucket\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
2724
3092
  type __SubscriptionContainer$5 = {
2725
3093
  OnEntityById: Entity;
2726
3094
  };
@@ -2742,9 +3110,9 @@ declare class EntityService {
2742
3110
  type __SubscriptionContainer$4 = {
2743
3111
  OnEntityConversationByTenantId: EntityConversation;
2744
3112
  };
2745
- declare const FIELDS_ENTITY_CONVERSATION = "\n id\n tenantId\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n entityAddress\n interactionWidgetId\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n";
3113
+ declare const FIELDS_ENTITY_CONVERSATION = "\n id\n tenantId\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n\n }\n entityAddress\n interactionWidgetId\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n";
2746
3114
  declare const FIELDS_ENTITY_CONVERSATION_MINIMAL = "\n id\n tenantId\n entityId\n entityAddress\n interactionWidgetId\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n";
2747
- declare const FIELDS_ENTITY_CONVERSATION_EXPANDED = "\n id\n tenantId\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n entityAddress\n interactionWidgetId\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n interactions (limit: 1, sortDirection: DESC) {\n items {\n \n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n subject\n metadata\n notes\n summary\n transcription {\n key\n bucket\n location\n }\n recording {\n key\n bucket\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n messages (limit: 1, sortDirection: DESC) {\n items {\n \n id\n externalId\n endpointId\n campaignId\n campaignFlowNodeId\n entityConversationId\n interactionId\n interactionAttendeeId\n body\n metadata\n referenceMessageId\n direction\n status\n createdAt\n updatedAt\n deletedAt\n messageAttachments {\n items {\n \n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n\n }\n nextToken\n }\n";
3115
+ declare const FIELDS_ENTITY_CONVERSATION_EXPANDED = "\n id\n tenantId\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n\n }\n entityAddress\n interactionWidgetId\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n interactions (limit: 1, sortDirection: DESC) {\n items {\n \n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n subject\n metadata\n notes\n summary\n transcription {\n key\n bucket\n location\n }\n recording {\n key\n bucket\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\n campaignId\n flowVersion\n currentCampaignFlowNodeId\n flowVariables\n flowStatus\n flowRetryCount\n flowReminderIndex\n flowTimeoutAt\n flowTimerScheduleArn\n isAgentHandling\n assignedAgentId\n agentHandlingStartedAt\n agentHandlingEndedAt\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n messages (limit: 1, sortDirection: DESC) {\n items {\n \n id\n externalId\n endpointId\n campaignId\n campaignFlowNodeId\n entityConversationId\n interactionId\n interactionAttendeeId\n body\n metadata\n referenceMessageId\n direction\n status\n statusUpdatedAt\n createdAt\n updatedAt\n deletedAt\n messageAttachments {\n items {\n \n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n\n }\n nextToken\n }\n";
2748
3116
  declare class EntityConversationService {
2749
3117
  private readonly appSyncService;
2750
3118
  constructor(appSyncService: AppSyncHelperService);
@@ -2766,15 +3134,15 @@ type __SubscriptionContainer$3 = {
2766
3134
  OnInteractionMessageByEntityConversationId: InteractionMessage;
2767
3135
  };
2768
3136
  declare const FIELDS_INTERACTION_HOST = "\n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n";
2769
- declare const FIELDS_INTERACTION_MINIMAL = "\n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n subject\n metadata\n notes\n summary\n transcription {\n key\n bucket\n location\n }\n recording {\n key\n bucket\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\n createdAt\n updatedAt\n deletedAt\n";
2770
- declare const FIELDS_INTERACTION = "\n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n subject\n metadata\n notes\n summary\n transcription {\n key\n bucket\n location\n }\n recording {\n key\n bucket\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\n createdAt\n updatedAt\n deletedAt\n";
2771
- declare const FIELDS_INTERACTION_EXPANDED = "\n id\n tenantId\n widgetId\n widget {\n \n id\n tenantId\n channel\n provider\n providerAccountId\n name\n description\n configuration\n isRecordingEnabledByDefault\n isRecordingEnabledOnDemand\n isTranscriptionEnabledByDefault\n isTranscriptionEnabledOnDemand\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n endpointId\n endpoint {\n \n id\n externalId\n tenantId\n widgetId\n address\n configuration\n createdAt\n updatedAt\n deletedAt\n\n }\n entityConversationId\n entityConversation {\n id\n tenantId\n entityId\n entityAddress\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n }\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n ticketFields\n createdAt\n updatedAt\n deletedAt\n\n }\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n subject\n metadata\n notes\n summary\n transcription {\n key\n bucket\n location\n }\n recording {\n key\n bucket\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\n createdAt\n updatedAt\n deletedAt\n";
2772
- declare const FIELDS_INTERACTION_INVITEE = "\n id\n interactionId\n interaction {\n \n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n subject\n metadata\n notes\n summary\n transcription {\n key\n bucket\n location\n }\n recording {\n key\n bucket\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\n createdAt\n updatedAt\n deletedAt\n\n }\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n metadata\n name\n image {\n key\n bucket\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n teamId\n userId\n isAdministrator\n temp_expiringAt\n expiredAt\n createdAt\n updatedAt\n deletedAt\n";
3137
+ declare const FIELDS_INTERACTION_MINIMAL = "\n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n subject\n metadata\n notes\n summary\n transcription {\n key\n bucket\n location\n }\n recording {\n key\n bucket\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\n campaignId\n flowVersion\n currentCampaignFlowNodeId\n flowVariables\n flowStatus\n flowRetryCount\n flowReminderIndex\n flowTimeoutAt\n flowTimerScheduleArn\n isAgentHandling\n assignedAgentId\n agentHandlingStartedAt\n agentHandlingEndedAt\n createdAt\n updatedAt\n deletedAt\n";
3138
+ declare const FIELDS_INTERACTION = "\n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n subject\n metadata\n notes\n summary\n transcription {\n key\n bucket\n location\n }\n recording {\n key\n bucket\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\n campaignId\n flowVersion\n currentCampaignFlowNodeId\n flowVariables\n flowStatus\n flowRetryCount\n flowReminderIndex\n flowTimeoutAt\n flowTimerScheduleArn\n isAgentHandling\n assignedAgentId\n agentHandlingStartedAt\n agentHandlingEndedAt\n createdAt\n updatedAt\n deletedAt\n";
3139
+ declare const FIELDS_INTERACTION_EXPANDED = "\n id\n tenantId\n widgetId\n widget {\n \n id\n tenantId\n channel\n provider\n providerAccountId\n name\n description\n configuration\n isRecordingEnabledByDefault\n isRecordingEnabledOnDemand\n isTranscriptionEnabledByDefault\n isTranscriptionEnabledOnDemand\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n\n }\n endpointId\n endpoint {\n \n id\n externalId\n tenantId\n widgetId\n address\n configuration\n createdAt\n updatedAt\n deletedAt\n\n }\n entityConversationId\n entityConversation {\n id\n tenantId\n entityId\n entityAddress\n interactionChannel\n interactionProvider\n isCampaignEngaged\n campaignId\n lastCampaignFlowNodeId\n lastInteractionMessageId\n metadata\n lastActivityAt\n lastMessageAt\n archivedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n }\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n\n }\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n ticketFields\n createdAt\n updatedAt\n deletedAt\n\n }\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n subject\n metadata\n notes\n summary\n transcription {\n key\n bucket\n location\n }\n recording {\n key\n bucket\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\n campaignId\n flowVersion\n currentCampaignFlowNodeId\n flowVariables\n flowStatus\n flowRetryCount\n flowReminderIndex\n flowTimeoutAt\n flowTimerScheduleArn\n isAgentHandling\n assignedAgentId\n agentHandlingStartedAt\n agentHandlingEndedAt\n createdAt\n updatedAt\n deletedAt\n";
3140
+ declare const FIELDS_INTERACTION_INVITEE = "\n id\n interactionId\n interaction {\n \n id\n tenantId\n widgetId\n endpointId\n entityConversationId\n entityId\n teamId\n hostId\n host {\n \n id\n interactionId\n entityId\n teamId\n userId\n createdAt\n updatedAt\n deletedAt\n\n }\n providerInteractionId\n channel\n provider\n context\n direction\n status\n last_status\n subject\n metadata\n notes\n summary\n transcription {\n key\n bucket\n location\n }\n recording {\n key\n bucket\n location\n }\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n startedAt\n completedAt\n duration\n aiProcessingStatus\n aiProcessingCompletedAt\n postProcessingStatus\n postProcessingCompletedAt\n reportProcessingStatus\n reportProcessingCompletedAt\n temp_isLocked\n temp_isAvailableTenantIdUnion\n campaignId\n flowVersion\n currentCampaignFlowNodeId\n flowVariables\n flowStatus\n flowRetryCount\n flowReminderIndex\n flowTimeoutAt\n flowTimerScheduleArn\n isAgentHandling\n assignedAgentId\n agentHandlingStartedAt\n agentHandlingEndedAt\n createdAt\n updatedAt\n deletedAt\n\n }\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n metadata\n name\n image {\n key\n bucket\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n\n }\n teamId\n userId\n isAdministrator\n temp_expiringAt\n expiredAt\n createdAt\n updatedAt\n deletedAt\n";
2773
3141
  declare const FIELDS_INTERACTION_ATTENDEE = "\n id\n interactionId\n entityId\n interactionWidgetSessionId\n teamId\n userId\n userSessionId\n name\n metadata\n customFields\n isAdministrator\n joinedAt\n exitedAt\n createdAt\n updatedAt\n deletedAt\n";
2774
- declare const FIELDS_INTERACTION_ATTENDEE_EXPANDED = "\n id\n interactionId\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n\n }\n interactionWidgetSessionId\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n ticketFields\n createdAt\n updatedAt\n deletedAt\n\n }\n userId\n user {\n \n id\n externalId\n tenantId\n email\n name\n image {\n key\n bucket\n location\n }\n phoneNumber {\n \n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n\n }\n preferences {\n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n }\n notificationSettings {\n allowPush\n allowEmail\n allowSMS\n allowWhatsApp\n }\n type\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n\n }\n userSessionId\n name\n metadata\n customFields\n isAdministrator\n joinedAt\n exitedAt\n createdAt\n updatedAt\n deletedAt\n";
3142
+ declare const FIELDS_INTERACTION_ATTENDEE_EXPANDED = "\n id\n interactionId\n entityId\n entity {\n \n id\n externalId\n tenantId\n entityTypeId\n entityType {\n \n id\n externalId\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n parentId\n name\n image {\n key\n bucket\n location\n }\n email\n phoneNumber {\n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n }\n phoneNumberE164\n isOrganization\n customFields\n metadata\n notes\n preferences {\n timezoneName\n language {\n code\n nameEn\n nameLocal\n }\n }\n contactPreferences {\n allowCall\n allowEmail\n allowSMS\n allowWhatsApp\n }\n createdAt\n updatedAt\n blockedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n\n }\n interactionWidgetSessionId\n teamId\n team {\n \n id\n tenantId\n name\n description\n image {\n key\n bucket\n location\n }\n ticketFields\n createdAt\n updatedAt\n deletedAt\n\n }\n userId\n user {\n \n id\n externalId\n tenantId\n email\n name\n image {\n key\n bucket\n location\n }\n phoneNumber {\n \n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n\n }\n preferences {\n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n }\n notificationSettings {\n allowPush\n allowEmail\n allowSMS\n allowWhatsApp\n }\n type\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n\n }\n userSessionId\n name\n metadata\n customFields\n isAdministrator\n joinedAt\n exitedAt\n createdAt\n updatedAt\n deletedAt\n";
2775
3143
  declare const FIELDS_INTERACTION_MESSAGE_ATTACHMENT = "\n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n";
2776
- declare const FIELDS_INTERACTION_MESSAGE = "\n id\n externalId\n endpointId\n campaignId\n campaignFlowNodeId\n entityConversationId\n interactionId\n interactionAttendeeId\n body\n metadata\n referenceMessageId\n direction\n status\n createdAt\n updatedAt\n deletedAt\n messageAttachments {\n items {\n \n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n";
2777
- declare const FIELDS_INTERACTION_MESSAGE_EXPANDED = "\n id\n externalId\n endpointId\n endpoint {\n \n id\n externalId\n tenantId\n widgetId\n address\n configuration\n createdAt\n updatedAt\n deletedAt\n\n }\n campaignId\n campaignFlowNodeId\n entityConversationId\n interactionId\n interactionAttendeeId\n interactionAttendee {\n \n id\n interactionId\n entityId\n interactionWidgetSessionId\n teamId\n userId\n userSessionId\n name\n metadata\n customFields\n isAdministrator\n joinedAt\n exitedAt\n createdAt\n updatedAt\n deletedAt\n\n }\n body\n metadata\n referenceMessageId\n direction\n status\n createdAt\n updatedAt\n deletedAt\n messageAttachments {\n items {\n \n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n";
3144
+ declare const FIELDS_INTERACTION_MESSAGE = "\n id\n externalId\n endpointId\n campaignId\n campaignFlowNodeId\n entityConversationId\n interactionId\n interactionAttendeeId\n body\n metadata\n referenceMessageId\n direction\n status\n statusUpdatedAt\n createdAt\n updatedAt\n deletedAt\n messageAttachments {\n items {\n \n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n";
3145
+ declare const FIELDS_INTERACTION_MESSAGE_EXPANDED = "\n id\n externalId\n endpointId\n endpoint {\n \n id\n externalId\n tenantId\n widgetId\n address\n configuration\n createdAt\n updatedAt\n deletedAt\n\n }\n campaignId\n campaignFlowNodeId\n entityConversationId\n interactionId\n interactionAttendeeId\n interactionAttendee {\n \n id\n interactionId\n entityId\n interactionWidgetSessionId\n teamId\n userId\n userSessionId\n name\n metadata\n customFields\n isAdministrator\n joinedAt\n exitedAt\n createdAt\n updatedAt\n deletedAt\n\n }\n body\n metadata\n referenceMessageId\n direction\n status\n statusUpdatedAt\n createdAt\n updatedAt\n deletedAt\n messageAttachments {\n items {\n \n id\n externalId\n interactionId\n interactionMessageId\n name\n size\n type\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n\n }\n nextToken\n }\n";
2778
3146
  declare class InteractionService {
2779
3147
  private readonly appSyncService;
2780
3148
  newInteractionInviteObservable$: BehaviorSubject<any>;
@@ -2794,7 +3162,7 @@ declare class InteractionService {
2794
3162
  ListInteractionAttendeesByInteractionIdAndEntityId(interactionId: string, entityId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionAttendee>>;
2795
3163
  ListInteractionAttendeesByInteractionIdAndUserId(interactionId: string, userId?: ModelIDKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionAttendeeFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionAttendee>>;
2796
3164
  ListInteractionMessagesByEntityConversationId(entityConversationId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
2797
- ListInteractionMessagesByExternalMessageId(externalMessageId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
3165
+ ListInteractionMessagesByExternalId(externalId: string, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
2798
3166
  ListInteractionMessagesByInteractionAttendeeId(interactionAttendeeId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessage>>;
2799
3167
  ListInteractionMessageAttachmentsByInteractionMessageId(interactionMessageId: string, createdAt?: ModelIntKeyConditionInput, sortDirection?: ModelSortDirection, filter?: ModelInteractionMessageAttachmentFilterInput, limit?: number, nextToken?: string): Promise<List<InteractionMessageAttachment>>;
2800
3168
  OnInteractionByEntityIdListener(entityId: string): Observable<SubscriptionResponse<Pick<__SubscriptionContainer$3, 'OnInteractionByEntityId'>>>;
@@ -2804,7 +3172,10 @@ declare class InteractionService {
2804
3172
  static ɵprov: i0.ɵɵInjectableDeclaration<InteractionService>;
2805
3173
  }
2806
3174
 
2807
- declare const FIELDS_INTERACTION_ENDPOINT = "\n id\n externalId\n tenantId\n widgetId\n address\n configuration\n sellPrice {\n currency\n upfrontCost\n monthlyCost\n inboundCost\n outboundCost\n }\n documents {\n fileName\n documentType\n contentType\n }\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
3175
+ declare const FIELDS_INTERACTION_ENDPOINT_RECORDING_CONFIG = "\n mode\n notify\n audioMediaName\n audioUrl\n";
3176
+ declare const FIELDS_INTERACTION_ENDPOINT_WORKING_HOURS_ACTION_CONFIG = "\n duringHours {\n \n action\n audioMediaName\n audioUrl\n\n }\n afterHours {\n \n action\n audioMediaName\n audioUrl\n\n }\n whenClosed {\n \n action\n audioMediaName\n audioUrl\n\n }\n";
3177
+ declare const FIELDS_INTERACTION_ENDPOINT_ROUTING_CONFIG = "\n answeringRoles\n knownCallerStrategy\n unknownCallerStrategy\n ifNoPickup {\n \n action\n audioMediaName\n audioUrl\n\n }\n escalationRoles\n noAnswer {\n \n action\n audioMediaName\n audioUrl\n\n }\n";
3178
+ declare const FIELDS_INTERACTION_ENDPOINT = "\n id\n externalId\n tenantId\n widgetId\n address\n configuration\n recordingConfig {\n \n mode\n notify\n audioMediaName\n audioUrl\n\n }\n workingHoursActionConfig {\n \n duringHours {\n \n action\n audioMediaName\n audioUrl\n\n }\n afterHours {\n \n action\n audioMediaName\n audioUrl\n\n }\n whenClosed {\n \n action\n audioMediaName\n audioUrl\n\n }\n\n }\n routingConfig {\n \n answeringRoles\n knownCallerStrategy\n unknownCallerStrategy\n ifNoPickup {\n \n action\n audioMediaName\n audioUrl\n\n }\n escalationRoles\n noAnswer {\n \n action\n audioMediaName\n audioUrl\n\n }\n\n }\n # buyPrice is intentionally not selected here \u2014 it is our cost, not the tenant's price.\n sellPrice {\n \n currency\n upfrontCost\n monthlyCost\n inboundCost\n outboundCost\n\n }\n documents {\n fileName\n documentType\n contentType\n file {\n key\n bucket\n location\n }\n }\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
2808
3179
  declare const FIELDS_INTERACTION_ENDPOINT_MINIMAL = "\n id\n externalId\n tenantId\n widgetId\n address\n configuration\n createdAt\n updatedAt\n deletedAt\n";
2809
3180
  declare class InteractionEndpointService {
2810
3181
  private readonly appSyncService;
@@ -2818,7 +3189,8 @@ declare class InteractionEndpointService {
2818
3189
  static ɵprov: i0.ɵɵInjectableDeclaration<InteractionEndpointService>;
2819
3190
  }
2820
3191
 
2821
- declare const FIELDS_INTERACTION_WIDGET = "\n id\n tenantId\n channel\n provider\n providerAccountId\n name\n description\n configuration\n isRecordingEnabledByDefault\n isRecordingEnabledOnDemand\n isTranscriptionEnabledByDefault\n isTranscriptionEnabledOnDemand\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n createdAt\n updatedAt\n deletedAt\n";
3192
+ declare const FIELDS_INTERACTION_WIDGET = "\n id\n tenantId\n channel\n provider\n providerAccountId\n name\n description\n configuration\n isRecordingEnabledByDefault\n isRecordingEnabledOnDemand\n isTranscriptionEnabledByDefault\n isTranscriptionEnabledOnDemand\n routeConfiguration {\n teamId\n routingLogic\n maxWaitTimeoutSeconds\n }\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
3193
+ declare const FIELDS_INTERACTION_WIDGET_SESSION = "\n id\n tenantId\n widgetId\n entityId\n ipDetails\n createdAt\n updatedAt\n";
2822
3194
  declare const FIELDS_INTERACTION_WIDGET_USER_SETTING = "\n id\n widgetId\n userId\n configuration\n allowOverride\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
2823
3195
  declare class InteractionWidgetService {
2824
3196
  private readonly appSyncService;
@@ -2843,9 +3215,12 @@ declare class TeamService {
2843
3215
  static ɵprov: i0.ɵɵInjectableDeclaration<TeamService>;
2844
3216
  }
2845
3217
 
2846
- declare const FIELDS_TENANT = "\n id\n externalId\n tenantDomain\n organizationName\n websiteURL\n image {\n key\n bucket\n location\n }\n preferences {\n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n allowUserToChangePreferences\n }\n security {\n domainValidationTokenExpiry\n userValidationTokenExpiry\n secretTokenExpiry\n sessionTokenExpiry\n sessionIdleTimeout\n }\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
2847
- declare const FIELDS_TENANT_MINIMAL = "\n id\n externalId\n tenantDomain\n organizationName\n websiteURL\n image {\n key\n bucket\n location\n }\n preferences {\n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n allowUserToChangePreferences\n }\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
2848
- declare const FIELDS_TENANT_EXPANDED = "\n id\n externalId\n tenantDomain\n organizationName\n websiteURL\n image {\n key\n bucket\n location\n }\n billingInformation {\n companyName\n address\n state\n city\n postalCode\n country {\n \n code\n nameEn\n nameLocal\n currency {\n code\n nameEn\n }\n officialLanguage {\n \n code\n nameEn\n nameLocal\n\n }\n callingCode\n region\n flag\n\n }\n companyIdentificationNumber\n taxIdentificationNumber\n }\n contactInformation {\n name\n email\n phoneNumber {\n \n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n\n }\n address\n state\n city\n postalCode\n country {\n \n code\n nameEn\n nameLocal\n currency {\n code\n nameEn\n }\n officialLanguage {\n \n code\n nameEn\n nameLocal\n\n }\n callingCode\n region\n flag\n\n }\n }\n preferences {\n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n allowUserToChangePreferences\n }\n ssoConfiguration {\n provider\n protocol\n displayName\n configuration\n isEnabled\n isDefaultLoginMode\n }\n security {\n domainValidationTokenExpiry\n userValidationTokenExpiry\n secretTokenExpiry\n sessionTokenExpiry\n sessionIdleTimeout\n }\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
3218
+ declare const FIELDS_TENANT_PREFERENCES = "\n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n allowUserToChangePreferences\n brandColor\n workingHours {\n timezone\n days {\n day\n open\n start\n end\n }\n }\n availabilityConfig {\n customStatuses {\n key\n name\n colour\n available\n }\n allowDialUnsavedNumber\n acwTime\n ringtone\n }\n recordingExcludedUserIds\n";
3219
+ declare const FIELDS_TENANT_PROFILE = "\n businessType\n industry\n teamSize\n goals\n";
3220
+ declare const FIELDS_TENANT_ONBOARDING = "\n status\n currentStep\n completedSteps\n startedAt\n completedAt\n";
3221
+ declare const FIELDS_TENANT = "\n id\n externalId\n externalCrmProvider\n tenantDomain\n organizationName\n websiteURL\n image {\n key\n bucket\n location\n }\n preferences {\n \n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n allowUserToChangePreferences\n brandColor\n workingHours {\n timezone\n days {\n day\n open\n start\n end\n }\n }\n availabilityConfig {\n customStatuses {\n key\n name\n colour\n available\n }\n allowDialUnsavedNumber\n acwTime\n ringtone\n }\n recordingExcludedUserIds\n\n }\n security {\n domainValidationTokenExpiry\n userValidationTokenExpiry\n secretTokenExpiry\n sessionTokenExpiry\n sessionIdleTimeout\n }\n profile {\n \n businessType\n industry\n teamSize\n goals\n\n }\n onboarding {\n \n status\n currentStep\n completedSteps\n startedAt\n completedAt\n\n }\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
3222
+ declare const FIELDS_TENANT_MINIMAL = "\n id\n externalId\n externalCrmProvider\n tenantDomain\n organizationName\n websiteURL\n image {\n key\n bucket\n location\n }\n preferences {\n \n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n allowUserToChangePreferences\n brandColor\n workingHours {\n timezone\n days {\n day\n open\n start\n end\n }\n }\n availabilityConfig {\n customStatuses {\n key\n name\n colour\n available\n }\n allowDialUnsavedNumber\n acwTime\n ringtone\n }\n recordingExcludedUserIds\n\n }\n onboarding {\n \n status\n currentStep\n completedSteps\n startedAt\n completedAt\n\n }\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
3223
+ declare const FIELDS_TENANT_EXPANDED = "\n id\n externalId\n externalCrmProvider\n tenantDomain\n organizationName\n websiteURL\n image {\n key\n bucket\n location\n }\n billingInformation {\n companyName\n address\n state\n city\n postalCode\n country {\n \n code\n nameEn\n nameLocal\n currency {\n code\n nameEn\n }\n officialLanguage {\n \n code\n nameEn\n nameLocal\n\n }\n callingCode\n region\n flag\n\n }\n companyIdentificationNumber\n taxIdentificationNumber\n billingEmail\n website\n }\n contactInformation {\n name\n email\n phoneNumber {\n \n countryCode\n dialCode\n e164Number\n internationalNumber\n nationalNumber\n number\n\n }\n address\n state\n city\n postalCode\n country {\n \n code\n nameEn\n nameLocal\n currency {\n code\n nameEn\n }\n officialLanguage {\n \n code\n nameEn\n nameLocal\n\n }\n callingCode\n region\n flag\n\n }\n }\n preferences {\n \n timezoneName\n language {\n \n code\n nameEn\n nameLocal\n\n }\n allowUserToChangePreferences\n brandColor\n workingHours {\n timezone\n days {\n day\n open\n start\n end\n }\n }\n availabilityConfig {\n customStatuses {\n key\n name\n colour\n available\n }\n allowDialUnsavedNumber\n acwTime\n ringtone\n }\n recordingExcludedUserIds\n\n }\n ssoConfiguration {\n provider\n protocol\n displayName\n configuration\n isEnabled\n isDefaultLoginMode\n }\n security {\n domainValidationTokenExpiry\n userValidationTokenExpiry\n secretTokenExpiry\n sessionTokenExpiry\n sessionIdleTimeout\n }\n profile {\n \n businessType\n industry\n teamSize\n goals\n\n }\n onboarding {\n \n status\n currentStep\n completedSteps\n startedAt\n completedAt\n\n }\n activatedAt\n blockedAt\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
2849
3224
  declare const FIELDS_TENANT_COMPLIANCE_DOCUMENT = "\n id\n tenantId\n documentName\n documentType\n documentNumber\n legalEntityName\n issuedBy\n issueDate\n expiryDate\n status\n notes\n file {\n key\n bucket\n location\n }\n createdAt\n updatedAt\n deletedAt\n updatedByUserId\n updatedByUserSessionId\n";
2850
3225
  type __SubscriptionContainer$2 = {
2851
3226
  OnTenantById: Tenant;
@@ -2881,7 +3256,7 @@ declare class TicketService {
2881
3256
  static ɵprov: i0.ɵɵInjectableDeclaration<TicketService>;
2882
3257
  }
2883
3258
 
2884
- declare const FIELDS_USER_SESSION = "\n id\n tenantId\n userId\n ipDetails\n status\n teamIds\n temp_isLocked\n temp_isAvailableTenantIdUnion\n createdAt\n updatedAt\n expiryAt\n loggedOutAt\n blockedAt\n";
3259
+ declare const FIELDS_USER_SESSION = "\n id\n tenantId\n userId\n ipDetails\n status\n statusKey\n lastInteractionHandledAt\n teamIds\n temp_isLocked\n temp_isAvailableTenantIdUnion\n createdAt\n updatedAt\n expiryAt\n loggedOutAt\n blockedAt\n";
2885
3260
  type __SubscriptionContainer$1 = {
2886
3261
  OnUserSessionById: UserSession;
2887
3262
  };
@@ -2949,6 +3324,18 @@ declare class EncryptedStorageService {
2949
3324
  static ɵprov: i0.ɵɵInjectableDeclaration<EncryptedStorageService>;
2950
3325
  }
2951
3326
 
3327
+ declare class SnugdeskIPRegistryService {
3328
+ private http;
3329
+ private readonly IP_REGISTRY_API;
3330
+ private readonly SESSION_KEY;
3331
+ constructor(http: HttpClient);
3332
+ private get cachedIPDetails();
3333
+ private set cachedIPDetails(value);
3334
+ getIPDetails(): Promise<any>;
3335
+ static ɵfac: i0.ɵɵFactoryDeclaration<SnugdeskIPRegistryService, never>;
3336
+ static ɵprov: i0.ɵɵInjectableDeclaration<SnugdeskIPRegistryService>;
3337
+ }
3338
+
2952
3339
  declare class CleanDeep {
2953
3340
  static clean(obj: any): typeof obj;
2954
3341
  }
@@ -3098,5 +3485,5 @@ declare class InteractionMessageTemplateService {
3098
3485
  static ɵprov: i0.ɵɵInjectableDeclaration<InteractionMessageTemplateService>;
3099
3486
  }
3100
3487
 
3101
- export { AMPLIFY_CONFIG, AppSyncHelperService, BillingAccountStatus, BillingAdminActionStatus, BillingAdminActionType, BillingChargeStatus, BillingCreditClass, BillingEntityStatus, BillingInvoiceStatus, BillingInvoiceType, BillingKycCaseStatus, BillingKycCaseType, BillingLedgerDirection, BillingLedgerEntryType, BillingPaymentDirection, BillingPaymentMethodStatus, BillingPaymentPurpose, BillingPaymentRail, BillingPaymentStatus, BillingPeriodType, BillingPriceBookType, BillingPricingType, BillingRatingStatus, BillingReceiptMatchStatus, BillingSubscriptionStatus, BillingTaxTreatment, CleanDeep, CommonService, CustomPipesModule, CustomValidators, DomainNamePipe, EmailConversationResolverService, EmailEntityResolverService, EncryptedStorageService, EntityConversationService, EntityService, ErrorComponent, FIELDS_COUNTRY, FIELDS_ENTITY, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_ENTITY_CONVERSATION_MINIMAL, FIELDS_ENTITY_EXPANDED, FIELDS_ENTITY_MINIMAL, FIELDS_ENTITY_TYPE, FIELDS_INTERACTION, FIELDS_INTERACTION_ATTENDEE, FIELDS_INTERACTION_ATTENDEE_EXPANDED, FIELDS_INTERACTION_ENDPOINT, FIELDS_INTERACTION_ENDPOINT_MINIMAL, FIELDS_INTERACTION_EXPANDED, FIELDS_INTERACTION_HOST, FIELDS_INTERACTION_INVITEE, FIELDS_INTERACTION_MESSAGE, FIELDS_INTERACTION_MESSAGE_ATTACHMENT, FIELDS_INTERACTION_MESSAGE_EXPANDED, FIELDS_INTERACTION_MESSAGE_TEMPLATE, FIELDS_INTERACTION_MINIMAL, FIELDS_INTERACTION_WIDGET, FIELDS_INTERACTION_WIDGET_USER_SETTING, FIELDS_LANGUAGE, FIELDS_PHONE_NUMBER, FIELDS_TEAM, FIELDS_TEAM_MEMBER, FIELDS_TENANT, FIELDS_TENANT_COMPLIANCE_DOCUMENT, FIELDS_TENANT_EXPANDED, FIELDS_TENANT_MINIMAL, FIELDS_TICKET, FIELDS_TICKET_PRIORITY, FIELDS_TICKET_STATUS, FIELDS_TICKET_TYPE, FIELDS_USER, FIELDS_USER_SESSION, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionMessageDirection, InteractionMessageStatus, InteractionMessageTemplateService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, OpenSearchHelperService, ProcessingStatus, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, StorageType, TeamService, TenantComplianceDocumentStatus, TenantComplianceDocumentType, TenantSSOConfigurationProtocol, TenantService, TicketService, UserService, UserSessionService, UserStatus, UserType, generateReferenceNumber, provideAmplifyConfig, sanitizeHtmlBody };
3102
- export type { AmplifyConfig, BillingAccount, BillingAdminAction, BillingAuditLog, BillingBankReceipt, BillingFxRate, BillingIdempotencyKey, BillingInvoice, BillingInvoiceLine, BillingKycCase, BillingLedgerEntry, BillingPayment, BillingPaymentMethod, BillingPlanDefinition, BillingPlatformConfig, BillingPriceBook, BillingProduct, BillingRateCard, BillingRatedCharge, BillingSubscription, BillingTaxRule, BillingUsageEvent, BillingWalletBalance, Country, CreateEntityConversationInput, CreateEntityInput, CreateInteractionAttendeeInput, CreateInteractionEndpointInput, CreateInteractionHostInput, CreateInteractionInput, CreateInteractionInviteeInput, CreateInteractionMessageAttachmentInput, CreateInteractionMessageInput, CreateTeamInput, CreateTeamMemberInput, CreateTenantComplianceDocumentInput, CreateTenantInput, CreateUserInput, Currency, EmailConversationFilters, EmailHeaders, EmailMessageMetadata, EncryptedStorageKeys, Entity, EntityContactPreferences, EntityConversation, EntityPreferences, EntityType, Interaction, InteractionAttendee, InteractionEndpoint, InteractionEndpointPriceDetails, InteractionEndpointRegulatoryComplianceDocument, InteractionHost, InteractionInvitee, InteractionMessage, InteractionMessageAttachment, InteractionMessageTemplate, InteractionRouteConfiguration, InteractionRouteConfigurationInput, InteractionWidget, InteractionWidgetUserSetting, Language, List, MailboxConfig, ModelBooleanInput, ModelEntityConditionInput, ModelEntityConversationConditionInput, ModelEntityConversationFilterInput, ModelEntityFilterInput, ModelEntityTypeConditionInput, ModelEntityTypeFilterInput, ModelIDInput, ModelIDKeyConditionInput, ModelIntInput, ModelIntKeyConditionInput, ModelInteractionAttendeeConditionInput, ModelInteractionAttendeeFilterInput, ModelInteractionChannelInput, ModelInteractionConditionInput, ModelInteractionContextInput, ModelInteractionDirectionInput, ModelInteractionEndpointConditionInput, ModelInteractionEndpointFilterInput, ModelInteractionFilterInput, ModelInteractionHostConditionInput, ModelInteractionHostFilterInput, ModelInteractionInviteeConditionInput, ModelInteractionInviteeFilterInput, ModelInteractionMessageAttachmentConditionInput, ModelInteractionMessageAttachmentFilterInput, ModelInteractionMessageConditionInput, ModelInteractionMessageDirectionInput, ModelInteractionMessageFilterInput, ModelInteractionProviderInput, ModelInteractionStatusInput, ModelInteractionWidgetConditionInput, ModelInteractionWidgetFilterInput, ModelInteractionWidgetUserSettingFilterInput, ModelProcessingStatusInput, ModelSizeInput, ModelStringInput, ModelStringKeyConditionInput, ModelTeamConditionInput, ModelTeamFilterInput, ModelTeamMemberConditionInput, ModelTeamMemberFilterInput, ModelTenantComplianceDocumentConditionInput, ModelTenantComplianceDocumentFilterInput, ModelTenantComplianceDocumentStatusInput, ModelTenantComplianceDocumentTypeInput, ModelTenantConditionInput, ModelTicketConditionInput, ModelTicketFilterInput, ModelTicketPriorityConditionInput, ModelTicketPriorityFilterInput, ModelTicketStatusConditionInput, ModelTicketStatusFilterInput, ModelTicketTypeConditionInput, ModelTicketTypeFilterInput, ModelUserConditionInput, ModelUserFilterInput, ModelUserSessionConditionInput, ModelUserSessionFilterInput, ModelUserStatusInput, ModelUserTypeInput, OAuthConfig, OpenSearchHit, OpenSearchResponse, PhoneNumber, S3Config, S3Credentials, S3Object, SubscriptionResponse, Team, TeamMember, Tenant, TenantBillingInformation, TenantBillingSnapshot, TenantComplianceDocument, TenantContactInformation, TenantPreferences, TenantSSOConfiguration, TenantSecurity, Ticket, TicketPriority, TicketStatus, TicketType, UpdateEntityConversationInput, UpdateEntityInput, UpdateInteractionAttendeeInput, UpdateInteractionEndpointInput, UpdateInteractionHostInput, UpdateInteractionInput, UpdateInteractionInviteeInput, UpdateTeamInput, UpdateTeamMemberInput, UpdateTenantComplianceDocumentInput, UpdateTenantInput, UpdateUserInput, UpdateUserSessionInput, User, UserNotificationSettings, UserPreferences, UserSession };
3488
+ export { AMPLIFY_CONFIG, AppSyncHelperService, BillingAccountStatus, BillingAdminActionStatus, BillingAdminActionType, BillingChargeStatus, BillingCreditClass, BillingEntityStatus, BillingInvoiceStatus, BillingInvoiceType, BillingKycCaseStatus, BillingKycCaseType, BillingLedgerDirection, BillingLedgerEntryType, BillingMode, BillingPaymentDirection, BillingPaymentMethodStatus, BillingPaymentPurpose, BillingPaymentRail, BillingPaymentStatus, BillingPeriodType, BillingPriceBookType, BillingPricingType, BillingRatingStatus, BillingReceiptMatchStatus, BillingSubscriptionStatus, BillingTaxTreatment, CleanDeep, CommonService, CustomPipesModule, CustomValidators, DomainNamePipe, EmailConversationResolverService, EmailEntityResolverService, EncryptedStorageService, EntityConversationService, EntityService, ErrorComponent, FIELDS_COUNTRY, FIELDS_ENTITY, FIELDS_ENTITY_CONVERSATION, FIELDS_ENTITY_CONVERSATION_EXPANDED, FIELDS_ENTITY_CONVERSATION_MINIMAL, FIELDS_ENTITY_EXPANDED, FIELDS_ENTITY_MINIMAL, FIELDS_ENTITY_TYPE, FIELDS_ENTITY_TYPE_EXPANDED, FIELDS_INTERACTION, FIELDS_INTERACTION_ATTENDEE, FIELDS_INTERACTION_ATTENDEE_EXPANDED, FIELDS_INTERACTION_ENDPOINT, FIELDS_INTERACTION_ENDPOINT_MINIMAL, FIELDS_INTERACTION_ENDPOINT_RECORDING_CONFIG, FIELDS_INTERACTION_ENDPOINT_ROUTING_CONFIG, FIELDS_INTERACTION_ENDPOINT_WORKING_HOURS_ACTION_CONFIG, FIELDS_INTERACTION_EXPANDED, FIELDS_INTERACTION_HOST, FIELDS_INTERACTION_INVITEE, FIELDS_INTERACTION_MESSAGE, FIELDS_INTERACTION_MESSAGE_ATTACHMENT, FIELDS_INTERACTION_MESSAGE_EXPANDED, FIELDS_INTERACTION_MESSAGE_TEMPLATE, FIELDS_INTERACTION_MINIMAL, FIELDS_INTERACTION_WIDGET, FIELDS_INTERACTION_WIDGET_SESSION, FIELDS_INTERACTION_WIDGET_USER_SETTING, FIELDS_LANGUAGE, FIELDS_PHONE_NUMBER, FIELDS_TEAM, FIELDS_TEAM_MEMBER, FIELDS_TENANT, FIELDS_TENANT_COMPLIANCE_DOCUMENT, FIELDS_TENANT_EXPANDED, FIELDS_TENANT_MINIMAL, FIELDS_TENANT_ONBOARDING, FIELDS_TENANT_PREFERENCES, FIELDS_TENANT_PROFILE, FIELDS_TICKET, FIELDS_TICKET_PRIORITY, FIELDS_TICKET_STATUS, FIELDS_TICKET_TYPE, FIELDS_USER, FIELDS_USER_SESSION, FlowRuntimeStatus, FooterComponent, FormatEpochTimestampPipe, InteractionChannel, InteractionContext, InteractionDirection, InteractionEndpointService, InteractionMessageDirection, InteractionMessageStatus, InteractionMessageTemplateService, InteractionProvider, InteractionRouteLogic, InteractionService, InteractionStatus, InteractionWidgetService, LoaderComponent, ModelAttributeTypes, ModelSortDirection, OpenSearchHelperService, ProcessingStatus, RecordingMode, RecordingNotify, RoutingFallback, RoutingNoPickup, RoutingRole, RoutingStrategy, S3HelperService, SafeHtmlPipe, SearchInnerFieldPipe, SearchPipe, SingularizePipe, SnugdeskAuthenticationService, SnugdeskCoreModule, SnugdeskIPRegistryService, StorageType, TeamService, TenantComplianceDocumentStatus, TenantComplianceDocumentType, TenantExternalCrmProvider, TenantOnboardingStatus, TenantSSOConfigurationProtocol, TenantService, TicketService, UserService, UserSessionService, UserStatus, UserType, WorkingHoursFallbackAction, generateReferenceNumber, provideAmplifyConfig, sanitizeHtmlBody };
3489
+ export type { AmplifyConfig, BillingAccount, BillingAdminAction, BillingAuditLog, BillingBankReceipt, BillingFxRate, BillingIdempotencyKey, BillingInvoice, BillingInvoiceLine, BillingKycCase, BillingLedgerEntry, BillingPayment, BillingPaymentMethod, BillingPlanDefinition, BillingPlatformConfig, BillingPriceBook, BillingProduct, BillingRateCard, BillingRatedCharge, BillingSubscription, BillingTaxRule, BillingUsageEvent, BillingWalletBalance, Country, CreateEntityConversationInput, CreateEntityInput, CreateInteractionAttendeeInput, CreateInteractionEndpointInput, CreateInteractionHostInput, CreateInteractionInput, CreateInteractionInviteeInput, CreateInteractionMessageAttachmentInput, CreateInteractionMessageInput, CreateTeamInput, CreateTeamMemberInput, CreateTenantComplianceDocumentInput, CreateTenantInput, CreateUserInput, Currency, EmailConversationFilters, EmailHeaders, EmailMessageMetadata, EncryptedStorageKeys, Entity, EntityContactPreferences, EntityConversation, EntityPreferences, EntityType, Interaction, InteractionAttendee, InteractionAttendeeConnection, InteractionEndpoint, InteractionEndpointPriceDetails, InteractionEndpointRecordingConfig, InteractionEndpointRegulatoryComplianceDocument, InteractionEndpointRoutingAction, InteractionEndpointRoutingConfig, InteractionEndpointRoutingFirstAction, InteractionEndpointWorkingHoursAction, InteractionEndpointWorkingHoursActionConfig, InteractionHost, InteractionInvitee, InteractionMessage, InteractionMessageAttachment, InteractionMessageTemplate, InteractionRouteConfiguration, InteractionRouteConfigurationInput, InteractionWidget, InteractionWidgetSession, InteractionWidgetUserSetting, Language, List, MailboxConfig, ModelBooleanInput, ModelEntityConditionInput, ModelEntityConversationConditionInput, ModelEntityConversationFilterInput, ModelEntityFilterInput, ModelEntityTypeConditionInput, ModelEntityTypeFilterInput, ModelFlowRuntimeStatusInput, ModelIDInput, ModelIDKeyConditionInput, ModelIntInput, ModelIntKeyConditionInput, ModelInteractionAttendeeConditionInput, ModelInteractionAttendeeFilterInput, ModelInteractionChannelInput, ModelInteractionConditionInput, ModelInteractionContextInput, ModelInteractionDirectionInput, ModelInteractionEndpointConditionInput, ModelInteractionEndpointFilterInput, ModelInteractionFilterInput, ModelInteractionHostConditionInput, ModelInteractionHostFilterInput, ModelInteractionInviteeConditionInput, ModelInteractionInviteeFilterInput, ModelInteractionMessageAttachmentConditionInput, ModelInteractionMessageAttachmentFilterInput, ModelInteractionMessageConditionInput, ModelInteractionMessageDirectionInput, ModelInteractionMessageFilterInput, ModelInteractionMessageStatusInput, ModelInteractionProviderInput, ModelInteractionStatusInput, ModelInteractionWidgetConditionInput, ModelInteractionWidgetFilterInput, ModelInteractionWidgetSessionFilterInput, ModelInteractionWidgetUserSettingFilterInput, ModelProcessingStatusInput, ModelSizeInput, ModelStringInput, ModelStringKeyConditionInput, ModelTeamConditionInput, ModelTeamFilterInput, ModelTeamMemberConditionInput, ModelTeamMemberFilterInput, ModelTenantComplianceDocumentConditionInput, ModelTenantComplianceDocumentFilterInput, ModelTenantComplianceDocumentStatusInput, ModelTenantComplianceDocumentTypeInput, ModelTenantConditionInput, ModelTenantExternalCrmProviderInput, ModelTenantFilterInput, ModelTicketConditionInput, ModelTicketFilterInput, ModelTicketPriorityConditionInput, ModelTicketPriorityFilterInput, ModelTicketStatusConditionInput, ModelTicketStatusFilterInput, ModelTicketTypeConditionInput, ModelTicketTypeFilterInput, ModelUserConditionInput, ModelUserFilterInput, ModelUserSessionConditionInput, ModelUserSessionFilterInput, ModelUserStatusInput, ModelUserTypeInput, OAuthConfig, OpenSearchHit, OpenSearchResponse, PhoneNumber, S3Config, S3Credentials, S3Object, SubscriptionResponse, Team, TeamMember, Tenant, TenantAvailabilityCallingConfig, TenantAvailabilityStatus, TenantBillingInformation, TenantBillingSnapshot, TenantComplianceDocument, TenantContactInformation, TenantOnboarding, TenantPreferences, TenantProfile, TenantSSOConfiguration, TenantSecurity, TenantWorkingHours, TenantWorkingHoursDay, Ticket, TicketPriority, TicketStatus, TicketType, UpdateEntityConversationInput, UpdateEntityInput, UpdateInteractionAttendeeInput, UpdateInteractionEndpointInput, UpdateInteractionHostInput, UpdateInteractionInput, UpdateInteractionInviteeInput, UpdateInteractionMessageInput, UpdateTeamInput, UpdateTeamMemberInput, UpdateTenantComplianceDocumentInput, UpdateTenantInput, UpdateUserInput, UpdateUserSessionInput, User, UserNotificationSettings, UserPreferences, UserSession };