@tellescope/types-models 1.217.0 → 1.219.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.
@@ -210,6 +210,7 @@ export type OrganizationSettings = {
210
210
  launchDosespotWebhookURL?: string;
211
211
  reverseTimeline?: boolean;
212
212
  delayedReadingIntervalInMS?: number;
213
+ createChatRoomWithBlankUserIds?: boolean;
213
214
  };
214
215
  tickets?: {
215
216
  defaultJourneyDueDateOffsetInMS?: number | '';
@@ -373,6 +374,7 @@ export interface Organization extends Organization_readonly, Organization_requir
373
374
  hasConnectedCustomerIO?: boolean;
374
375
  hasConnectedSuperDial?: boolean;
375
376
  hasConnectedBeluga?: boolean;
377
+ hasConnectedMetriport?: boolean;
376
378
  hasConfiguredZoom?: boolean;
377
379
  hasTicketQueues?: boolean;
378
380
  vitalTeamId?: string;
@@ -682,6 +684,8 @@ export interface EnduserEngagementTimestamps {
682
684
  recentInboundSMSAt?: Date;
683
685
  recentOutboundEmailAt?: Date;
684
686
  recentInboundEmailAt?: Date;
687
+ recentOutboundGroupMMSAt?: Date;
688
+ recentInboundGroupMMSAt?: Date;
685
689
  recentActivityAt?: Date;
686
690
  }
687
691
  export type StripeSubscriptionStatus = 'active' | 'trialing' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'canceled' | 'unpaid';
@@ -2632,7 +2636,7 @@ export interface WebhookCall {
2632
2636
  integrity: string;
2633
2637
  description?: string;
2634
2638
  }
2635
- export type AutomationEventType = 'onJourneyStart' | 'afterAction' | "formResponse" | "formResponses" | "formUnsubmitted" | "formsUnsubmitted" | "ticketCompleted" | 'waitForTrigger' | "onCallOutcome";
2639
+ export type AutomationEventType = 'onJourneyStart' | 'afterAction' | "formResponse" | "formResponses" | "formUnsubmitted" | "formsUnsubmitted" | "ticketCompleted" | 'waitForTrigger' | "onCallOutcome" | "onAIDecision";
2636
2640
  interface AutomationEventBuilder<T extends AutomationEventType, V extends object> {
2637
2641
  type: T;
2638
2642
  info: V;
@@ -2694,6 +2698,7 @@ export interface AutomationForWebhook {
2694
2698
  fields?: LabeledField[];
2695
2699
  headers?: LabeledField[];
2696
2700
  method?: 'get' | 'patch' | 'post' | 'put' | 'delete';
2701
+ rawJSONBody?: string;
2697
2702
  }
2698
2703
  export type FormResponseAutomationEvent = AutomationEventBuilder<'formResponse', {
2699
2704
  automationStepId: string;
@@ -2762,7 +2767,10 @@ export type OnCallOutcomeAutomationEvent = AutomationEventBuilder<'onCallOutcome
2762
2767
  automationStepId: string;
2763
2768
  outcome: string;
2764
2769
  }>;
2765
- export type AutomationEvent = FormResponseAutomationEvent | FormResponsesAutomationEvent | AfterActionAutomationEvent | OnJourneyStartAutomationEvent | FormUnsubmittedEvent | FormsUnsubmittedEvent | TicketCompletedAutomationEvent | WaitForTriggerAutomationEvent | OnCallOutcomeAutomationEvent;
2770
+ export type OnAIDecisionAutomationEvent = AutomationEventBuilder<'onAIDecision', {
2771
+ automationStepId: string;
2772
+ outcomes: string[];
2773
+ }>;
2766
2774
  export type AutomationEventForType = {
2767
2775
  'onJourneyStart': OnJourneyStartAutomationEvent;
2768
2776
  'afterAction': AfterActionAutomationEvent;
@@ -2773,7 +2781,9 @@ export type AutomationEventForType = {
2773
2781
  'ticketCompleted': TicketCompletedAutomationEvent;
2774
2782
  'waitForTrigger': WaitForTriggerAutomationEvent;
2775
2783
  'onCallOutcome': OnCallOutcomeAutomationEvent;
2784
+ 'onAIDecision': OnAIDecisionAutomationEvent;
2776
2785
  };
2786
+ export type AutomationEvent = AutomationEventForType[keyof AutomationEventForType];
2777
2787
  export type SetEnduserStatusInfo = {
2778
2788
  status: string;
2779
2789
  };
@@ -2900,6 +2910,9 @@ export type CreateCarePlanAutomationAction = AutomationActionBuilder<'createCare
2900
2910
  export type CompleteCarePlanAutomationAction = AutomationActionBuilder<'completeCarePlan', {}>;
2901
2911
  export type ZusSyncAutomationAction = AutomationActionBuilder<'zusSync', {}>;
2902
2912
  export type ZusPullAutomationAction = AutomationActionBuilder<'zusPull', {}>;
2913
+ export type MetriportSyncAutomationAction = AutomationActionBuilder<'metriportSync', {
2914
+ facilityId: string;
2915
+ }>;
2903
2916
  export type ZusSubscribeAutomationAction = AutomationActionBuilder<'zusSubscribe', {
2904
2917
  practitionerId: string;
2905
2918
  packageIds: string[];
@@ -3019,7 +3032,22 @@ export type StripeChargeCardOnFileAutomationAction = AutomationActionBuilder<'st
3019
3032
  stripeKey?: string;
3020
3033
  priceIds: string[];
3021
3034
  }>;
3035
+ export type AIContextSource = {
3036
+ type: "Email" | "SMS";
3037
+ limit: number;
3038
+ };
3039
+ export type AIDecisionAutomationAction = AutomationActionBuilder<'aiDecision', {
3040
+ prompt: string;
3041
+ sources: AIContextSource[];
3042
+ outcomes: string[];
3043
+ }>;
3044
+ export type AssignInboxItemAutomationAction = AutomationActionBuilder<'assignInboxItem', {
3045
+ tags: ListOfStringsWithQualifier;
3046
+ limit: number;
3047
+ }>;
3022
3048
  export type AutomationActionForType = {
3049
+ 'aiDecision': AIDecisionAutomationAction;
3050
+ 'assignInboxItem': AssignInboxItemAutomationAction;
3023
3051
  'stripeChargeCardOnFile': StripeChargeCardOnFileAutomationAction;
3024
3052
  'outboundCall': OutboundCallAutomationAction;
3025
3053
  "sendEmail": SendEmailAutomationAction;
@@ -3046,6 +3074,7 @@ export type AutomationActionForType = {
3046
3074
  'completeCarePlan': CompleteCarePlanAutomationAction;
3047
3075
  'zusSync': ZusSyncAutomationAction;
3048
3076
  'zusPull': ZusPullAutomationAction;
3077
+ 'metriportSync': MetriportSyncAutomationAction;
3049
3078
  'zusSubscribe': ZusSubscribeAutomationAction;
3050
3079
  'pagerDutyCreateIncident': PagerDutyCreateIncidentAutomationAction;
3051
3080
  'smartMeterPlaceOrder': SmartMeterPlaceOrderAutomationAction;
@@ -3144,6 +3173,7 @@ export interface EnduserObservation extends EnduserObservation_readonly, Enduser
3144
3173
  classification: string;
3145
3174
  }[];
3146
3175
  beforeMeal?: boolean;
3176
+ timestampIsEstimated?: boolean;
3147
3177
  dontTrigger?: boolean;
3148
3178
  showWithPlotsByUnit?: string[];
3149
3179
  invalidationReason?: string;
@@ -3358,7 +3388,6 @@ export interface CommentLike extends CommentLike_readonly, CommentLike_required,
3358
3388
  }
3359
3389
  export type AutomatedActionStatus = 'active' | 'finished' | 'cancelled' | 'error';
3360
3390
  export interface AutomatedAction_readonly extends ClientRecord {
3361
- journeyContext?: JourneyContext;
3362
3391
  source?: string;
3363
3392
  triggerId?: string;
3364
3393
  lockedAt?: number;
@@ -3385,6 +3414,7 @@ export interface AutomatedAction_updatesDisabled {
3385
3414
  export interface AutomatedAction extends AutomatedAction_readonly, AutomatedAction_required, AutomatedAction_updatesDisabled {
3386
3415
  isNOP?: boolean;
3387
3416
  cancelledBy?: string;
3417
+ journeyContext?: JourneyContext;
3388
3418
  }
3389
3419
  export interface UserLog_readonly extends ClientRecord {
3390
3420
  userId: string;
@@ -4620,6 +4650,7 @@ export type GroupMMSMessage = {
4620
4650
  sender: string;
4621
4651
  timestamp: number;
4622
4652
  images?: ImageAttachment[];
4653
+ logOnly?: boolean;
4623
4654
  };
4624
4655
  export type GroupMMSUserState = {
4625
4656
  id: string;
@@ -4629,7 +4660,6 @@ export type GroupMMSUserState = {
4629
4660
  export interface GroupMMSConversation_readonly extends ClientRecord {
4630
4661
  externalId: string;
4631
4662
  destinations: string[];
4632
- messages: GroupMMSMessage[];
4633
4663
  phoneNumber: string;
4634
4664
  title: string;
4635
4665
  pinnedAt?: Date | '';
@@ -4641,6 +4671,7 @@ export interface GroupMMSConversation_readonly extends ClientRecord {
4641
4671
  hiddenForAll?: boolean;
4642
4672
  }
4643
4673
  export interface GroupMMSConversation_updatesDisabled {
4674
+ messages: GroupMMSMessage[];
4644
4675
  }
4645
4676
  export interface GroupMMSConversation_required {
4646
4677
  userIds: string[];