@tellescope/types-models 1.217.0 → 1.218.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.ts CHANGED
@@ -220,6 +220,7 @@ export type OrganizationSettings = {
220
220
  launchDosespotWebhookURL?: string,
221
221
  reverseTimeline?: boolean,
222
222
  delayedReadingIntervalInMS?: number,
223
+ createChatRoomWithBlankUserIds?: boolean,
223
224
  },
224
225
  tickets?: {
225
226
  defaultJourneyDueDateOffsetInMS?: number | '',
@@ -390,6 +391,7 @@ export interface Organization extends Organization_readonly, Organization_requir
390
391
  hasConnectedCustomerIO?: boolean,
391
392
  hasConnectedSuperDial?: boolean,
392
393
  hasConnectedBeluga?: boolean,
394
+ hasConnectedMetriport?: boolean,
393
395
  hasConfiguredZoom?: boolean,
394
396
  hasTicketQueues?: boolean,
395
397
  vitalTeamId?: string,
@@ -695,6 +697,8 @@ export interface EnduserEngagementTimestamps{
695
697
  recentInboundSMSAt?: Date,
696
698
  recentOutboundEmailAt?: Date,
697
699
  recentInboundEmailAt?: Date,
700
+ recentOutboundGroupMMSAt?: Date,
701
+ recentInboundGroupMMSAt?: Date,
698
702
  recentActivityAt?: Date,
699
703
  }
700
704
 
@@ -2697,6 +2701,7 @@ export type AutomationEventType =
2697
2701
  | "ticketCompleted"
2698
2702
  | 'waitForTrigger'
2699
2703
  | "onCallOutcome"
2704
+ | "onAIDecision"
2700
2705
 
2701
2706
  interface AutomationEventBuilder <T extends AutomationEventType, V extends object> {
2702
2707
  type: T,
@@ -2800,17 +2805,7 @@ export type OnJourneyStartAutomationEvent = AutomationEventBuilder<'onJourneySta
2800
2805
  export type TicketCompletedAutomationEvent = AutomationEventBuilder<'ticketCompleted', TicketCompletedEventInfo>
2801
2806
  export type WaitForTriggerAutomationEvent = AutomationEventBuilder<'waitForTrigger', { automationStepId: string, triggerId: string }>
2802
2807
  export type OnCallOutcomeAutomationEvent = AutomationEventBuilder<'onCallOutcome', { automationStepId: string, outcome: string }>
2803
-
2804
- export type AutomationEvent =
2805
- FormResponseAutomationEvent
2806
- | FormResponsesAutomationEvent
2807
- | AfterActionAutomationEvent
2808
- | OnJourneyStartAutomationEvent
2809
- | FormUnsubmittedEvent
2810
- | FormsUnsubmittedEvent
2811
- | TicketCompletedAutomationEvent
2812
- | WaitForTriggerAutomationEvent
2813
- | OnCallOutcomeAutomationEvent
2808
+ export type OnAIDecisionAutomationEvent = AutomationEventBuilder<'onAIDecision', { automationStepId: string, outcomes: string[] }>
2814
2809
 
2815
2810
  export type AutomationEventForType = {
2816
2811
  'onJourneyStart': OnJourneyStartAutomationEvent
@@ -2822,7 +2817,9 @@ export type AutomationEventForType = {
2822
2817
  'ticketCompleted': TicketCompletedAutomationEvent
2823
2818
  'waitForTrigger': WaitForTriggerAutomationEvent
2824
2819
  'onCallOutcome': OnCallOutcomeAutomationEvent,
2820
+ 'onAIDecision': OnAIDecisionAutomationEvent
2825
2821
  }
2822
+ export type AutomationEvent = AutomationEventForType[keyof AutomationEventForType]
2826
2823
 
2827
2824
  export type SetEnduserStatusInfo = { status: string }
2828
2825
 
@@ -2936,6 +2933,7 @@ export type CreateCarePlanAutomationAction = AutomationActionBuilder<'createCare
2936
2933
  export type CompleteCarePlanAutomationAction = AutomationActionBuilder<'completeCarePlan', {}>
2937
2934
  export type ZusSyncAutomationAction = AutomationActionBuilder<'zusSync', {}>
2938
2935
  export type ZusPullAutomationAction = AutomationActionBuilder<'zusPull', {}>
2936
+ export type MetriportSyncAutomationAction = AutomationActionBuilder<'metriportSync', { facilityId: string }>
2939
2937
  export type ZusSubscribeAutomationAction = AutomationActionBuilder<'zusSubscribe', { practitionerId: string, packageIds: string[] }>
2940
2938
  export type PagerDutyCreateIncidentAutomationAction = AutomationActionBuilder<'pagerDutyCreateIncident', { type: string, title: string, serviceId: string }>
2941
2939
  export type SmartMeterOrderLineItem = { quantity: number, sku: string }
@@ -3036,7 +3034,23 @@ export type StripeChargeCardOnFileAutomationAction = AutomationActionBuilder<'st
3036
3034
  priceIds: string[], // Stripe price ids to charge
3037
3035
  }>
3038
3036
 
3037
+ export type AIContextSource = {
3038
+ type: "Email" | "SMS"
3039
+ limit: number,
3040
+ }
3041
+ export type AIDecisionAutomationAction = AutomationActionBuilder<'aiDecision', {
3042
+ prompt: string,
3043
+ sources: AIContextSource[]
3044
+ outcomes: string[],
3045
+ }>
3046
+ export type AssignInboxItemAutomationAction = AutomationActionBuilder<'assignInboxItem', {
3047
+ tags: ListOfStringsWithQualifier,
3048
+ limit: number,
3049
+ }>
3050
+
3039
3051
  export type AutomationActionForType = {
3052
+ 'aiDecision': AIDecisionAutomationAction,
3053
+ 'assignInboxItem': AssignInboxItemAutomationAction,
3040
3054
  'stripeChargeCardOnFile': StripeChargeCardOnFileAutomationAction,
3041
3055
  'outboundCall': OutboundCallAutomationAction,
3042
3056
  "sendEmail" : SendEmailAutomationAction,
@@ -3063,6 +3077,7 @@ export type AutomationActionForType = {
3063
3077
  'completeCarePlan': CompleteCarePlanAutomationAction,
3064
3078
  'zusSync': ZusSyncAutomationAction,
3065
3079
  'zusPull': ZusPullAutomationAction,
3080
+ 'metriportSync': MetriportSyncAutomationAction,
3066
3081
  'zusSubscribe': ZusSubscribeAutomationAction,
3067
3082
  'pagerDutyCreateIncident': PagerDutyCreateIncidentAutomationAction,
3068
3083
  'smartMeterPlaceOrder': SmartMeterPlaceOrderAutomationAction,
@@ -3382,7 +3397,6 @@ export interface CommentLike extends CommentLike_readonly, CommentLike_required,
3382
3397
 
3383
3398
  export type AutomatedActionStatus = 'active' | 'finished' | 'cancelled' | 'error'
3384
3399
  export interface AutomatedAction_readonly extends ClientRecord {
3385
- journeyContext?: JourneyContext
3386
3400
  source?: string,
3387
3401
  triggerId?: string,
3388
3402
  lockedAt?: number,
@@ -3408,6 +3422,7 @@ export interface AutomatedAction_updatesDisabled {}
3408
3422
  export interface AutomatedAction extends AutomatedAction_readonly, AutomatedAction_required, AutomatedAction_updatesDisabled {
3409
3423
  isNOP?: boolean,
3410
3424
  cancelledBy?: string,
3425
+ journeyContext?: JourneyContext
3411
3426
  }
3412
3427
 
3413
3428
  export interface UserLog_readonly extends ClientRecord {
@@ -4513,6 +4528,7 @@ export type GroupMMSMessage = {
4513
4528
  sender: string,
4514
4529
  timestamp: number,
4515
4530
  images?: ImageAttachment[]
4531
+ logOnly?: boolean,
4516
4532
  }
4517
4533
 
4518
4534
  export type GroupMMSUserState = {
@@ -4525,7 +4541,6 @@ export type GroupMMSUserState = {
4525
4541
  export interface GroupMMSConversation_readonly extends ClientRecord {
4526
4542
  externalId: string,
4527
4543
  destinations: string[],
4528
- messages: GroupMMSMessage[],
4529
4544
  phoneNumber: string,
4530
4545
  title: string,
4531
4546
  pinnedAt?: Date | '',
@@ -4534,7 +4549,9 @@ export interface GroupMMSConversation_readonly extends ClientRecord {
4534
4549
  hiddenBy?: { [index: string] : Date | '' };
4535
4550
  hiddenForAll?: boolean,
4536
4551
  }
4537
- export interface GroupMMSConversation_updatesDisabled {}
4552
+ export interface GroupMMSConversation_updatesDisabled {
4553
+ messages: GroupMMSMessage[],
4554
+ }
4538
4555
  export interface GroupMMSConversation_required {
4539
4556
  userIds: string[],
4540
4557
  userStates: GroupMMSUserState[],